37 lines
725 B
Text
37 lines
725 B
Text
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = "file:./mastodon-bingo.sqlite"
|
|
}
|
|
|
|
model Term {
|
|
id Int @id @default(autoincrement())
|
|
createdAt DateTime @default(now())
|
|
text String
|
|
user User @relation(fields: [userId], references: [id])
|
|
userId Int
|
|
}
|
|
|
|
model User {
|
|
id Int @id @default(autoincrement())
|
|
terms Term[]
|
|
instance Instance @relation(fields: [instanceId], references: [id])
|
|
instanceId Int
|
|
|
|
displayName String
|
|
handle String
|
|
}
|
|
|
|
model Instance {
|
|
id Int @id @default(autoincrement())
|
|
name String @unique
|
|
users User[]
|
|
|
|
appName String?
|
|
appClientId String?
|
|
appClientSecret String?
|
|
|
|
}
|