✅ ajout de page mon compte - en cours
This commit is contained in:
1 parent
7827aa119f
commit
65efdcac94
19 files changed
+2126
-92
No files matched your search
+6
-20
@@ -42,37 +42,23 @@ model Session {
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
name String?
|
||||
surname String?
|
||||
address String?
|
||||
zipCode String?
|
||||
phoneNumber String?
|
||||
email String? @unique
|
||||
emailVerified DateTime? @map("email_verified")
|
||||
image String?
|
||||
createdAt DateTime @default(now()) @map(name: "created_at")
|
||||
updatedAt DateTime @updatedAt @map(name: "updated_at")
|
||||
posts Post[]
|
||||
accounts Account[]
|
||||
sessions Session[]
|
||||
profile Profile?
|
||||
gain Gain?
|
||||
gain Gain[]
|
||||
role Role @default(USER)
|
||||
|
||||
@@map(name: "users")
|
||||
}
|
||||
|
||||
model Post {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
content String?
|
||||
published Boolean @default(false)
|
||||
author User? @relation(fields: [authorId], references: [id])
|
||||
authorId Int?
|
||||
}
|
||||
|
||||
model Profile {
|
||||
id Int @id @default(autoincrement())
|
||||
bio String?
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
userId Int @unique
|
||||
}
|
||||
|
||||
model TicketsRestants {
|
||||
id Int @id @default(autoincrement())
|
||||
total Int
|
||||
@@ -85,7 +71,7 @@ model Gain {
|
||||
produit Produit? @relation(fields: [produitId], references: [id])
|
||||
produitId Int?
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
userId Int? @unique
|
||||
userId Int?
|
||||
actif Boolean @default(true)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user