mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-01 17:44:52 +02:00
Initial pass at migrations
This commit is contained in:
parent
29bd88ebdf
commit
2a265e5cdd
9 changed files with 191 additions and 26 deletions
|
@ -356,6 +356,11 @@ export const resourceOtp = sqliteTable("resourceOtp", {
|
|||
expiresAt: integer("expiresAt").notNull()
|
||||
});
|
||||
|
||||
export const versionMigrations = sqliteTable("versionMigrations", {
|
||||
version: text("version").primaryKey(),
|
||||
executedAt: integer("executedAt").notNull()
|
||||
});
|
||||
|
||||
export type Org = InferSelectModel<typeof orgs>;
|
||||
export type User = InferSelectModel<typeof users>;
|
||||
export type Site = InferSelectModel<typeof sites>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue