✅ add - ajout page mon compte
This commit is contained in:
1 parent
a73958e500
commit
6a10740307
4 files changed
+81
-35
No files matched your search
@@ -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
@@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]
|
||||
Reference in new issue
Block a user