createUser + update de la BD

This commit is contained in:
Laurian Dufrechou
2023-03-20 14:07:05 +01:00
parent 96db0da60b
commit e0c01cd08c
4 changed files with 49 additions and 38 deletions
+3
View File
@@ -11,6 +11,9 @@ model User {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
password String?
name String
surname String
admin Boolean @default(false)
messageSent Chat[]
messageReceived Chat[] @relation("chatReceived")