This commit is contained in:
seb
2026-10-18 20:48:47 +02:00
parent 8cc7d0eb0b
commit 9ed7e4ee3b
11 changed files with 201 additions and 1 deletions

View File

@@ -1058,8 +1058,17 @@ CREATE TABLE IF NOT EXISTS subagentschedule (
CREATE INDEX IF NOT EXISTS IX_subagentschedule_company ON subagentschedule (company_id);
`;
export const INIT_HEALTHCHECK = `
CREATE TABLE IF NOT EXISTS healthcheck (
id INTEGER PRIMARY KEY AUTOINCREMENT,
"sequence" INTEGER NOT NULL DEFAULT 0,
updated_at TEXT NOT NULL DEFAULT (${UTC_NOW})
);
`;
/** DDL scripts in dependency order for SQLite schema initialization. */
export const SCHEMA_SCRIPTS = [
INIT_HEALTHCHECK,
INIT_META,
INIT_LANGUAGE,
INIT_TAX,