🚧 SQLite database schema with modes (is it okay ?)

This commit is contained in:
Fred KISSIE
2025-10-22 21:56:10 +02:00
parent d84ee3d03d
commit e575fae73b

View File

@@ -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<typeof orgs>;
export type User = InferSelectModel<typeof users>;
export type Site = InferSelectModel<typeof sites>;