Create User Login/Logout

Took 3 hours 40 minutes
This commit is contained in:
Lucàs
2023-03-22 15:36:20 +01:00
parent f1e39e12e9
commit 843b5fcda8
18 changed files with 3351 additions and 2620 deletions
+4 -4
View File
@@ -10,12 +10,12 @@ datasource db {
// Models
model User {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
password String?
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
password String
firstName String
lastName String
role Role @default(USER)
role Role @default(USER)
Chat Chat? @relation(fields: [chatId], references: [id])
chatId String? @db.ObjectId