Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
440 B
3
Indexable
Never
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "sqlite"
  url      = "file:./dev.db"
}

model User {
  id          Int      @id @default(autoincrement())
  phoneNumber String   @unique
  conversations Conversation[]
}

model Conversation {
  id      Int    @id @default(autoincrement())
  message String
  userId  Int
  user    User   @relation(fields: [userId], references: [id])
}
Leave a Comment