- 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 迁移
40 lines
886 B
JSON
40 lines
886 B
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "rag_org_storage_limits",
|
|
"title": "机构存储限额",
|
|
"primary": [
|
|
"org_id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "org_id",
|
|
"title": "机构ID",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "limit_bytes",
|
|
"title": "限额(字节)",
|
|
"type": "bigint",
|
|
"nullable": "no",
|
|
"default": "104857600"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "datetime",
|
|
"nullable": "yes"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "datetime",
|
|
"nullable": "yes"
|
|
}
|
|
]
|
|
}
|