{
"$schema": "https://lix.dev/schema-v1.json",
"key": "lix_collection_generation",
"description": "Internal tracked control row selecting the active physical generation for one schema/file collection. This schema is intentionally hidden from generated schema SQL surfaces.",
"columns": [
{
"name": "file_id",
"type": "text",
"nullable": true,
"description": "Optional file scope. Null selects the whole schema collection."
},
{
"name": "live_count",
"type": "int8",
"nullable": false,
"description": "Number of live logical rows in the selected generation."
},
{
"name": "schema_key",
"type": "text",
"nullable": false,
"description": "Schema whose rows are controlled by this generation."
},
{
"name": "scope_key",
"type": "text",
"nullable": false,
"description": "Canonical JSON tuple [schema_key, file_id] used as the internal row identity."
}
],
"primary_key": [
"scope_key"
]
}