```datasource db { provider = "postgresql" url...
# orm-help
j
Copy code
datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}

generator client {
  provider        = "prisma-client-js"

}

model Account {
  id                 String  @id @default(cuid())
  userId             String
  type               String
  provider           String
  providerAccountId  String
  refresh_token      String?  @db.Text
  access_token       String?  @db.Text
  expires_at         Int?
  token_type         String?
  scope              String?
  id_token           String?  @db.Text
  session_state      String?

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@unique([provider, providerAccountId])
}


model Session {
  id           String   @id @default(cuid())
  sessionToken String   @unique
  userId       String
  expires      DateTime
  user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
  id            String    @id @default(cuid())
  name          String?
  email         String?   @unique
  password String?
  emailVerified DateTime?
  image         String?
  accounts      Account[]
  sessions      Session[]
  role  Role    @default(USER)
  payments    Payment[] 
}
enum Role {
  USER
  PREMIUM
  ADMIN
}

model VerificationToken {
  identifier String
  token      String   @unique
  expires    DateTime

  @@unique([identifier, token])
}

model Payment {
        id           String   @id @default(cuid())
        orderID String
        status  String
        price String
        user User @relation(fields: [userId], references: [id], onDelete: Cascade)
        userId String       
}

model Subscription {
  id           String   @id @default(cuid())
  price       String 
  text       String
  description String
}
This is my schema
👀 1
a
Hey Jannick 👋🏾 Are you deploying your app to Vercel using Vercel’s CLI tool or GitHub?
Vercel could be using a cached version of the
node_modules
. One workaround would be adding a
postinstall
script to generate Prisma Client explicitly at build time:
Copy code
"postinstall": "prisma generate"
v
👋 hey @Jannik Köster! Did you have a chance to see Alex's comment? Let us know if you still have any issues!