mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
14 lines
363 B
TypeScript
14 lines
363 B
TypeScript
import { auth } from "./auth";
|
|
import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
|
|
export const sessionTable = pgTable("session", {
|
|
id: text("id").primaryKey(),
|
|
userId: text("user_id")
|
|
.notNull()
|
|
.references(() => auth.id, { onDelete: "cascade" }),
|
|
expiresAt: timestamp("expires_at", {
|
|
withTimezone: true,
|
|
mode: "date",
|
|
}).notNull(),
|
|
});
|