import { JSONTypeSchema } from "../schema-definition/json-type.js";
export const LixLogSchema = {
    "x-lix-key": "lix_log",
    "x-lix-version": "1.0",
    "x-lix-primary-key": ["/id"],
    "x-lix-override-lixcols": {
        lixcol_file_id: '"lix"',
        lixcol_plugin_key: '"lix_sdk"',
    },
    type: "object",
    properties: {
        id: {
            type: "string",
            description: "The unique identifier of the log entry",
            "x-lix-default": "lix_uuid_v7()",
        },
        key: {
            type: "string",
            description: "The key of the log entry",
        },
        message: {
            type: "string",
            description: "The message of the log entry",
            nullable: true,
        },
        payload: {
            ...JSONTypeSchema,
            description: "Structured payload for the log entry",
        },
        level: {
            type: "string",
            description: "The level of the log entry",
        },
    },
    required: ["id", "key", "level"],
    additionalProperties: false,
};
LixLogSchema;
//# sourceMappingURL=schema-definition.js.map