mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
binaryTargets = ["native", "debian-openssl-3.0.x"]
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = "file:./vinci.db"
|
|
}
|
|
|
|
model AiChat {
|
|
id Int @id @default(autoincrement())
|
|
messageid String @unique
|
|
threadid String @unique
|
|
messages AiMessage[]
|
|
}
|
|
|
|
model AiMessage {
|
|
id Int @id @default(autoincrement())
|
|
role String
|
|
content String
|
|
|
|
aiChatId Int
|
|
aiChat AiChat @relation(fields: [aiChatId], references: [id])
|
|
}
|
|
|
|
model Afk {
|
|
id Int @id @default(autoincrement())
|
|
userId String @unique
|
|
reason String
|
|
}
|
|
|
|
model Birthday {
|
|
id Int @id @default(autoincrement())
|
|
userId String @unique
|
|
date String
|
|
sent Boolean @default(false)
|
|
}
|
|
|
|
model Suggestion {
|
|
id Int @id @default(autoincrement())
|
|
userId String
|
|
msgId String
|
|
upDown Int
|
|
}
|
|
|