aa
This commit is contained in:
@@ -46,7 +46,9 @@ export const sessions = pgTable(
|
||||
.notNull()
|
||||
.references(() => users.id, { onDelete: "cascade" }),
|
||||
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
||||
expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
|
||||
// NULL = never expires (preferred for new sessions). Older rows with
|
||||
// a timestamp value are still honoured for backward compatibility.
|
||||
expiresAt: timestamp("expires_at", { withTimezone: true }),
|
||||
userAgent: text("user_agent"),
|
||||
},
|
||||
(t) => [
|
||||
|
||||
Reference in New Issue
Block a user