{
"$schema": "https://lix.dev/schema-v1.json",
"key": "lix_branch_ref",
"description": "Branch head pointer. Records which commit a branch should currently resolve to in the local runtime. Intentionally not part of canonical commit membership: refs may be reset client-side after sync without introducing content conflicts. Each `lix_branch_descriptor.id` has exactly one `lix_branch_ref` row.",
"columns": [
{
"name": "commit_id",
"type": "uuid",
"nullable": false,
"description": "Commit the branch should currently resolve to in the local runtime (references `lix_commit.id`)."
},
{
"name": "id",
"type": "uuid",
"nullable": false,
"default_expression": "uuidv7()",
"description": "Branch identifier whose head pointer is being stored; matches `lix_branch_descriptor.id`."
}
],
"primary_key": [
"id"
],
"foreign_keys": [
{
"columns": [
"id"
],
"references": {
"schema_key": "lix_branch_descriptor",
"columns": [
"id"
]
}
},
{
"columns": [
"commit_id"
],
"references": {
"schema_key": "lix_commit",
"columns": [
"id"
]
}
}
]
}