export const LixEntityLabelSchema = {
    "x-lix-key": "lix_entity_label",
    "x-lix-version": "1.0",
    "x-lix-primary-key": ["/entity_id", "/schema_key", "/file_id", "/label_id"],
    "x-lix-override-lixcols": {
        lixcol_file_id: '"lix"',
        lixcol_plugin_key: '"lix_sdk"',
    },
    "x-lix-foreign-keys": [
        {
            properties: ["/entity_id", "/schema_key", "/file_id"],
            references: {
                schemaKey: "state",
                properties: ["/entity_id", "/schema_key", "/file_id"],
            },
            // Labels live in the shared "lix" file but reference entities in
            // whatever file they originally came from, so we scope only by version.
            scope: ["version_id"],
        },
        {
            properties: ["/label_id"],
            references: {
                schemaKey: "lix_label",
                properties: ["/id"],
            },
        },
    ],
    type: "object",
    properties: {
        entity_id: { type: "string" },
        schema_key: { type: "string" },
        file_id: { type: "string" },
        label_id: { type: "string" },
    },
    required: ["entity_id", "schema_key", "file_id", "label_id"],
    additionalProperties: false,
};
LixEntityLabelSchema;
//# sourceMappingURL=schema-definition.js.map