rag/json/rag_subscriptions.json
ymq 789960a1cf refactor(schema): rag 模块全部数据表加 rag_ 前缀(模块跨应用复用防冲突)
- models/ 重建为正确表定义格式(summary+fields+indexes),覆盖全部 11 个表
  修正原 models/ 误放 CRUD 格式副本(缺 summary)导致 json2ddl 100% 失败被静默忽略
- json/ 6 个 CRUD 定义 tblname 加前缀 + 文件改名
- 129 处 SQL/sor 表名加 rag_ 前缀(URL 路径 knowledge_bases_list 保持不变)
- 新增 init/migrate_rag_prefix.sql 幂等 RENAME TABLE 迁移
2026-08-25 14:24:37 +08:00

91 lines
2.2 KiB
JSON

{
"tblname": "rag_subscriptions",
"params": {
"title": "订阅管理",
"browserfields": [
{
"field": "org_id",
"title": "机构",
"width": "15%"
},
{
"field": "plan_name",
"title": "套餐",
"width": "15%"
},
{
"field": "disk_quota_bytes",
"title": "磁盘配额",
"width": "12%"
},
{
"field": "disk_used_bytes",
"title": "已用磁盘",
"width": "12%"
},
{
"field": "doc_used",
"title": "文档数",
"width": "10%"
},
{
"field": "start_date",
"title": "开始",
"width": "12%"
},
{
"field": "end_date",
"title": "结束",
"width": "12%"
},
{
"field": "status",
"title": "状态",
"width": "12%"
}
],
"editfields": [
{
"field": "org_id",
"uitype": "Text",
"required": true
},
{
"field": "plan_name",
"uitype": "Text",
"required": true
},
{
"field": "disk_quota_bytes",
"uitype": "Text",
"default": "1073741824"
},
{
"field": "doc_quota",
"uitype": "Text"
},
{
"field": "kb_quota",
"uitype": "Text"
},
{
"field": "api_call_quota",
"uitype": "Text"
},
{
"field": "start_date",
"uitype": "Text"
},
{
"field": "end_date",
"uitype": "Text"
}
],
"searchfields": [
"org_id",
"plan_name"
],
"sort": "created_at desc"
}
}