Files
dokploy/packages/server/src/db/schema/session.ts
Mauricio Siu e6cb6454db Revert "Merge branch 'canary' into kucherenko/canary"
This reverts commit 819822f30b, reversing
changes made to bda9b05134.
2025-03-02 00:26:59 -06:00

14 lines
363 B
TypeScript

import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
import { auth } from "./auth";
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(),
});