From f161c950993d8f166850c3001a08f81454616f4a Mon Sep 17 00:00:00 2001 From: HoussinSa Date: Fri, 9 Feb 2024 06:46:23 -0800 Subject: [PATCH] feat: last missing params added --- prisma/schema.prisma | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 801f39f4..141b211b 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -26,6 +26,7 @@ model User { availabilityId String? MeetingUserAvailability MeetingUserAvailability[] Key Key[] + Session Session[] } model Key { @@ -38,11 +39,13 @@ model Key { } model Session { - id String @id @unique @default(cuid()) - user_id String? @unique @default(uuid()) - active_expires Int? - idle_expires Int? - last_accessed Int? + id String @id @unique + user_id String + active_expires BigInt + idle_expires BigInt + user User @relation(references: [id], fields: [user_id], onDelete: Cascade) + + @@index([user_id]) } model Meeting {