✅ add - ajout page mon compte

This commit is contained in:
eric committed 2022-12-04 11:51:02 +01:00
1 parent a73958e500
commit 6a10740307
4 files changed
+81 -35

No files matched your search

+4 -3
View File
@@ -72,12 +72,12 @@ model Gain {
produitId Int?
user User? @relation(fields: [userId], references: [id])
userId Int?
actif Boolean @default(true)
codeActif Boolean @default(true)
retrait Boolean @default(false)
}
model Produit {
id Int @id @default(autoincrement())
actif Boolean?
id Int @id @default(autoincrement())
nomProduit String?
prixTtc Int?
image String?
@@ -86,6 +86,7 @@ model Produit {
enum Role {
USER
SELLER
ADMIN
SUPERADMIN
}
+5 -32
View File
@@ -4,44 +4,17 @@ export const userData: Prisma.UserCreateInput[] = [
{
name: 'Alice',
email: 'alice@prisma.io',
posts: {
create: [
{
title: 'Join the Prisma Slack',
content: 'https://slack.prisma.io',
published: true,
},
],
},
},
{
name: 'Nilu',
email: 'nilu@prisma.io',
posts: {
create: [
{
title: 'Follow Prisma on Twitter',
content: 'https://www.twitter.com/prisma',
published: true,
},
],
},
},
{
name: 'Mahmoud',
},
{
name: 'Mahmoud',
email: 'mahmoud@prisma.io',
posts: {
create: [
{
title: 'Ask a question about Prisma on GitHub',
content: 'https://www.github.com/prisma/prisma/discussions',
published: true,
},
{
title: 'Prisma on YouTube',
content: 'https://pris.ly/youtube',
},
],
},
},
]