fix: add sessions table to Drizzle schema + auto-create at startup
This commit is contained in:
@@ -2,3 +2,4 @@ export * from "./tools";
|
||||
export * from "./ratings";
|
||||
export * from "./users";
|
||||
export * from "./audit-logs";
|
||||
export * from "./sessions";
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
Reference in New Issue
Block a user