feat(db): generate canonical schema contract from sqlite migrations

This commit is contained in:
ciat-777
2026-03-14 22:45:05 +08:00
parent c037ea866e
commit 5bc5fb7039
5 changed files with 1457 additions and 0 deletions
+2
View File
@@ -41,6 +41,8 @@
"start:desktop": "electron dist/desktop/main.js",
"db:generate": "drizzle-kit generate",
"db:migrate": "tsx src/server/db/migrate.ts",
"schema:contract": "tsx scripts/dev/generate-schema-contract.ts",
"schema:generate": "npm run db:generate && npm run schema:contract",
"smoke:db": "tsx scripts/dev/db-smoke.ts",
"smoke:db:sqlite": "tsx scripts/dev/db-smoke.ts --db-type sqlite",
"smoke:db:mysql": "tsx scripts/dev/db-smoke.ts --db-type mysql",