fix: add sessions table to Drizzle schema + auto-create at startup

This commit is contained in:
root
2026-07-29 20:04:15 +02:00
parent 4e0861df71
commit a569bba5e1
3 changed files with 29 additions and 0 deletions
+1
View File
@@ -2,3 +2,4 @@ export * from "./tools";
export * from "./ratings";
export * from "./users";
export * from "./audit-logs";
export * from "./sessions";
+7
View File
@@ -0,0 +1,7 @@
import { pgTable, text, json, timestamp } from "drizzle-orm/pg-core";
export const sessionsTable = pgTable("sessions", {
sid: text("sid").notNull().primaryKey(),
sess: json("sess").notNull(),
expire: timestamp("expire", { withTimezone: true, precision: 6 }).notNull(),
});