Release room-scoped Matrix bot plugins and room configuration
This commit is contained in:
commit
86c7e4359c
76 files changed
+13539
No files matched your search
@@ -0,0 +1,23 @@
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
// 用 docker compose 在目标机本地构建,native 即正确目标,无需多架构。
|
||||
binaryTargets = ["native"]
|
||||
}
|
||||
|
||||
datasource db {
|
||||
// 起步用 SQLite,零运维。切换 Postgres 只需改 provider + url。
|
||||
provider = "sqlite"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
/// 通用 KV 状态表,对应 Rust 版 Sled 的 `scope:id` 模式。
|
||||
/// botName 充当 scope,实现各 bot 数据隔离。
|
||||
model BotState {
|
||||
botName String
|
||||
key String
|
||||
valueJson String
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@id([botName, key])
|
||||
@@map("bot_state")
|
||||
}
|
||||
Reference in new issue
Block a user