From e575fae73b835a25a9a88f0fcf0dfc23ac04cdeb Mon Sep 17 00:00:00 2001 From: Fred KISSIE Date: Wed, 22 Oct 2025 21:56:10 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20SQLite=20database=20schema=20wit?= =?UTF-8?q?h=20modes=20(is=20it=20okay=20=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/db/sqlite/schema/schema.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/db/sqlite/schema/schema.ts b/server/db/sqlite/schema/schema.ts index 55ee35e8..e15f8166 100644 --- a/server/db/sqlite/schema/schema.ts +++ b/server/db/sqlite/schema/schema.ts @@ -718,14 +718,17 @@ export const idpOrg = sqliteTable("idpOrg", { // Blueprint runs export const blueprintRuns = sqliteTable("blueprintRuns", { - blueprintRunId: text("blueprintRunId").primaryKey().notNull(), - createdAt: integer("createdAt", {mode: 'timestamp'}).notNull(), + blueprintRunId: integer("blueprintRunId").primaryKey({ + autoIncrement: true + }), + name: text("name").notNull(), + source: text("source", { enum: ["WEB", "CLI", "API"] }), + createdAt: integer("createdAt", { mode: "timestamp" }).notNull(), succeeded: integer("succeeded", { mode: "boolean" }).notNull(), contents: text("contents").notNull(), message: text("message") }); - export type Org = InferSelectModel; export type User = InferSelectModel; export type Site = InferSelectModel;