Files
0pt/packages/schemas/0pt.dataset_iceberg_mapping.schema.json
T

37 lines
1.5 KiB
JSON

{
"$id": "0pt.dataset_iceberg_mapping.schema.v1",
"type": "object",
"required": [
"dataset_iceberg_mapping_id",
"tenant_id",
"project_id",
"dataset_id",
"iceberg_table_id",
"mapping_status",
"mapped_at",
"created_at"
],
"properties": {
"dataset_iceberg_mapping_id": { "type": "string" },
"tenant_id": { "type": "string" },
"project_id": { "type": "string" },
"dataset_id": { "type": "string", "description": "References 0pt.dataset.schema.v1's dataset_id." },
"iceberg_table_id": {
"type": "string",
"description": "Reference into ST0RE's table registry (IcebergTable.tableId, st0re_iceberg_tables). Never a copy of ST0RE's table row."
},
"namespace_id": {
"type": "string",
"description": "Reference into ST0RE's namespace registry (LakehouseNamespace.namespaceId, /v1/st0re/lakehouse/namespaces). The literal field name this contract's task spec requires."
},
"namespace": { "type": "string", "description": "ST0RE lakehouse namespace NAME, carried for convenience/filtering only." },
"table_name": { "type": "string" },
"mapping_status": { "type": "string", "enum": ["pending", "active", "deprecated", "archived"] },
"mapped_at": { "type": "string", "description": "When this mapping was created/last (re)mapped." },
"mapped_by": { "type": "string" },
"correlation_id": { "type": "string" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
}
}