Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

prisma user model

model User {
  id          Int @id @default(autoincrement())
  name        String
  email       String
  username    String @unique
  password    String
  projects Project[]
  createdAt   DateTime @default(now())
  updatedAt   DateTime @updatedAt
}
 
PREVIOUS NEXT
Tagged: #prisma #user #model
ADD COMMENT
Topic
Name
2+7 =