egg_server/prisma/schema.prisma

32 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"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model chat_agent_summary_subscription {
id BigInt @id @default(autoincrement()) // 摘要订阅 ID
chat_id String @default("") // 关联的聊天 ID
robot_id String @default("") // 机器人 ID
initiator String @default("") // 发起者 ID
terminator String @default("") // 终止者 ID
created_at DateTime @default(now()) // 创建时间
updated_at DateTime @updatedAt // 更新时间
}
model chat_agent_message_log {
id BigInt @id @default(autoincrement()) // 消息日志 ID
subscription_id BigInt @default(0) // 关联的摘要订阅 ID
initiator String @default("") // 发起者 ID
langfuse_link String @default("") // Langfuse 日志
}