26 lines
416 B
Text
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?
|
|
usageRequest Int
|
|
usageResponse Int
|
|
functionName String?
|
|
functionRan Int @default(0)
|
|
}
|
|
|
|
model Limits {
|
|
user BigInt @id
|
|
limit Int?
|
|
vip Boolean @default(false)
|
|
}
|