monsterdon-bingo/server/prisma/schema.prisma
ansible user/allowed to read system logs c7e8eccb57 initial work on logging in with masto
2023-08-13 23:57:52 -07:00

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?
}