Advertisement
shawon_majid

Untitled

Dec 23rd, 2023
1,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. generator client {
  2.     provider = "prisma-client-js"
  3. }
  4.  
  5. datasource db {
  6.     provider = "mysql"
  7.     url      = env("DATABASE_URL")
  8. }
  9.  
  10. model User {
  11.     id               String  @id @default(uuid())
  12.     name             String?
  13.     email            String  @unique
  14.     hashedPassword   String?
  15.     phone            String?
  16.     balance          Float   @default(0)
  17.     withdrawn        Float   @default(0)
  18.     coverPhotoLink   String?
  19.     profilePhotoLink String?
  20.     tickStatus       Int     @default(0)
  21.     aboutMe          String?
  22.     // featuredProduct Product
  23.     // featuredCause Cause
  24.     isOrganization   Boolean @default(false)
  25.     isRegistered     Boolean @default(false)
  26.     isVerified       Boolean @default(false)
  27.  
  28.     createdAt DateTime @default(now())
  29.     updatedAt DateTime @updatedAt
  30. }
  31.  
  32. model Product {
  33.     id           String  @id @default(uuid())
  34.     name         String
  35.     description  String?
  36.     price        Float
  37.     originLink   String?
  38.     photoLink    String?
  39.     soldQuantity Int     @default(0)
  40.  
  41.     // seller      User
  42.     // buyer       User
  43.     // cause       Cause
  44.     // category    Category
  45.     // tags        Tag[]
  46.     // images      Image[]
  47.     // reviews     Review[]
  48.     // orders      Order[]
  49.     // createdAt   DateTime @default(now())
  50.     // updatedAt   DateTime @updatedAt
  51. }
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement