monsterdon-bingo/server/prisma/schema.prisma

38 lines
725 B
Text
Raw Normal View History

2023-08-14 04:13:18 +00:00
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
2023-08-14 06:57:52 +00:00
url = "file:./mastodon-bingo.sqlite"
2023-08-14 04:13:18 +00:00
}
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())
2023-08-14 06:57:52 +00:00
name String @unique
2023-08-14 04:13:18 +00:00
users User[]
2023-08-14 06:57:52 +00:00
2023-08-14 04:13:18 +00:00
appName String?
appClientId String?
appClientSecret String?
}