2023-05-02 17:55:48 +02:00
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
provider = "sqlite"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model Usage {
|
2023-07-23 05:50:16 +02:00
|
|
|
@@id([timestamp, functionRan])
|
|
|
|
timestamp DateTime
|
2023-05-02 17:55:48 +02:00
|
|
|
user BigInt
|
|
|
|
channel BigInt
|
|
|
|
guild BigInt?
|
|
|
|
usageReguest Int
|
|
|
|
usageResponse Int
|
2023-07-23 05:50:16 +02:00
|
|
|
functionName String?
|
|
|
|
functionRan Int @default(0)
|
2023-05-02 17:55:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
model Limits {
|
|
|
|
user BigInt @id
|
|
|
|
limit Int?
|
|
|
|
vip Boolean @default(false)
|
|
|
|
}
|