Edit Crud, add loaders during authentication

Took 2 hours 49 minutes
This commit is contained in:
Lucàs
2023-03-26 17:02:24 +02:00
parent 668e092dd3
commit 5cc56e46ec
16 changed files with 3319 additions and 154 deletions
+9 -9
View File
@@ -43,15 +43,6 @@ model User {
OtherUserLikes User[] @relation("Likes", fields: [OtherUserLikesID], references: [id])
}
model Chat {
id String @id @default(auto()) @map("_id") @db.ObjectId
messages Message[]
// Les utilisateurs qui ont un chat en commun
User User[] @relation(fields: [UserId], references: [id])
UserId String[] @db.ObjectId
}
model Passion {
id String @id @default(auto()) @map("_id") @db.ObjectId
name String
@@ -61,6 +52,15 @@ model Passion {
User User[] @relation(fields: [UserId], references: [id])
}
model Chat {
id String @id @default(auto()) @map("_id") @db.ObjectId
messages Message[]
// Les utilisateurs qui ont un chat en commun
User User[] @relation(fields: [UserId], references: [id])
UserId String[] @db.ObjectId
}
model Message {
id String @id @default(auto()) @map("_id") @db.ObjectId
message String