GPTcord/schema.prisma
Wroclaw 0df05e2f06 Add function handling for OpenAI model
for now it's querying only time, but in the future there will be more commands
2023-07-23 05:50:16 +02:00

26 lines
416 B
Text

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