feat(Preferences): Choose preferences -- Fetch user from pref

This commit is contained in:
Laurian-Dufrechou
2023-04-09 14:27:49 +02:00
parent b2325fee0f
commit d10c7fcc71
7 changed files with 239 additions and 51 deletions
+8 -1
View File
@@ -24,6 +24,13 @@ model User {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
// Les préférences de l'utilisateur
distance Int @default(100)
ageMax Int @default(99)
ageMin Int @default(18)
prefGender Gender @default(UNKNOWN)
// Liste des chats de l'utilisateur
ChatID String[] @db.ObjectId
Chat Chat[] @relation(fields: [ChatID], references: [id])
@@ -128,4 +135,4 @@ enum NotificationType {
enum Role {
USER
ADMIN
}
}