Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- generator client {
- provider = "prisma-client-js"
- }
- datasource db {
- provider = "mysql"
- url = env("DATABASE_URL")
- }
- model User {
- id String @id @default(uuid())
- name String?
- email String @unique
- hashedPassword String?
- phone String?
- balance Float @default(0)
- withdrawn Float @default(0)
- coverPhotoLink String?
- profilePhotoLink String?
- tickStatus Int @default(0)
- aboutMe String?
- // featuredProduct Product
- // featuredCause Cause
- isOrganization Boolean @default(false)
- isRegistered Boolean @default(false)
- isVerified Boolean @default(false)
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
- }
- model Product {
- id String @id @default(uuid())
- name String
- description String?
- price Float
- originLink String?
- photoLink String?
- soldQuantity Int @default(0)
- // seller User
- // buyer User
- // cause Cause
- // category Category
- // tags Tag[]
- // images Image[]
- // reviews Review[]
- // orders Order[]
- // createdAt DateTime @default(now())
- // updatedAt DateTime @updatedAt
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement