aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/lib/server/db/schema.ts
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-12-26 13:18:15 +0100
committerivar <i@oiee.no>2025-12-26 13:18:15 +0100
commitfe0fe074ec8e8959bbdeff0ccc7f68d20b30e963 (patch)
tree032fcc7ee0b72899405a5046e7761d71fb029c9c /app/src/lib/server/db/schema.ts
parent874e1572298531dde9bc1d3ccdb704af0a045605 (diff)
downloadsparebank1-actualbudget-fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963.tar.xz
sparebank1-actualbudget-fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963.zip
WIP form
Diffstat (limited to 'app/src/lib/server/db/schema.ts')
-rw-r--r--app/src/lib/server/db/schema.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/lib/server/db/schema.ts b/app/src/lib/server/db/schema.ts
index bb57703..4d13ed6 100644
--- a/app/src/lib/server/db/schema.ts
+++ b/app/src/lib/server/db/schema.ts
@@ -1,6 +1,7 @@
import { relations, sql } from 'drizzle-orm';
import { numeric, text, pgTable, uuid, json } from "drizzle-orm/pg-core";
import type { Sb1Tokens } from '../sb1';
+import type { SessionLogType } from '../session-log';
export const syncSession = pgTable("session", {
id: uuid('id').primaryKey().default(sql`uuidv7()`),
@@ -14,6 +15,7 @@ export const syncLog = pgTable("session_log", {
id: uuid('id').primaryKey().default(sql`uuidv7()`),
sessionId: text("session_id"),
dateTime: text("date_time"),
+ type: text("type").$type<SessionLogType>(),
msg: text("msg")
})