Untitled

 avatar
unknown
plain_text
10 months ago
440 B
6
Indexable
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])
}
Editor is loading...
Leave a Comment