✅ ajout de page mon compte - en cours

This commit is contained in:
eric committed 2022-12-02 03:27:55 +01:00
1 parent 7827aa119f
commit 65efdcac94
19 files changed
+2126 -92

No files matched your search

+6 -20
View File
@@ -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)
}