mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-26 14:56:39 +00:00
🚧 SQLite database schema with modes (is it okay ?)
This commit is contained in:
@@ -718,14 +718,17 @@ export const idpOrg = sqliteTable("idpOrg", {
|
|||||||
|
|
||||||
// Blueprint runs
|
// Blueprint runs
|
||||||
export const blueprintRuns = sqliteTable("blueprintRuns", {
|
export const blueprintRuns = sqliteTable("blueprintRuns", {
|
||||||
blueprintRunId: text("blueprintRunId").primaryKey().notNull(),
|
blueprintRunId: integer("blueprintRunId").primaryKey({
|
||||||
createdAt: integer("createdAt", {mode: 'timestamp'}).notNull(),
|
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(),
|
succeeded: integer("succeeded", { mode: "boolean" }).notNull(),
|
||||||
contents: text("contents").notNull(),
|
contents: text("contents").notNull(),
|
||||||
message: text("message")
|
message: text("message")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
export type Org = InferSelectModel<typeof orgs>;
|
export type Org = InferSelectModel<typeof orgs>;
|
||||||
export type User = InferSelectModel<typeof users>;
|
export type User = InferSelectModel<typeof users>;
|
||||||
export type Site = InferSelectModel<typeof sites>;
|
export type Site = InferSelectModel<typeof sites>;
|
||||||
|
|||||||
Reference in New Issue
Block a user