GPTcord/schema.prisma
Wroclaw a66115c3b8 Track all requests to OpenAI in a database
this will be in future used to limit access to the bot
2023-05-02 17:55:48 +02:00

23 lines
334 B
Text

generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model Usage {
timestamp DateTime @id
user BigInt
channel BigInt
guild BigInt?
usageReguest Int
usageResponse Int
}
model Limits {
user BigInt @id
limit Int?
vip Boolean @default(false)
}