bot/prisma/schema.prisma

35 lines
1.1 KiB
Text

generator client {
provider = "prisma-client-js"
output = "./"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model learn {
id Int @id @default(autoincrement())
command String @db.VarChar(255)
result String @db.VarChar(255)
user_id String @db.VarChar(255)
created_at DateTime @default(now()) @db.DateTime(0)
}
model nsfw_content {
id Int @id @default(autoincrement())
text String @default("") @db.VarChar(255)
created_at DateTime? @default(now()) @db.DateTime(0)
persona String @default("") @db.VarChar(50)
}
model statement {
id Int @id @default(autoincrement())
text String @db.VarChar(255)
search_text String @default("") @db.VarChar(255)
conversation String @default("") @db.VarChar(32)
created_at DateTime? @default(now()) @db.DateTime(0)
in_response_to String? @db.VarChar(255)
search_in_response_to String @default("") @db.VarChar(255)
persona String @default("") @db.VarChar(50)
}