- 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 迁移
67 lines
1.6 KiB
JSON
67 lines
1.6 KiB
JSON
{
|
|
"tblname": "rag_documents",
|
|
"params": {
|
|
"title": "文档管理",
|
|
"browserfields": [
|
|
{
|
|
"field": "file_name",
|
|
"title": "文件名",
|
|
"width": "25%"
|
|
},
|
|
{
|
|
"field": "file_type",
|
|
"title": "类型",
|
|
"width": "10%"
|
|
},
|
|
{
|
|
"field": "file_size",
|
|
"title": "大小",
|
|
"width": "10%"
|
|
},
|
|
{
|
|
"field": "chunk_count",
|
|
"title": "分片数",
|
|
"width": "8%"
|
|
},
|
|
{
|
|
"field": "status",
|
|
"title": "状态",
|
|
"width": "10%"
|
|
},
|
|
{
|
|
"field": "kb_id",
|
|
"title": "知识库",
|
|
"width": "17%"
|
|
},
|
|
{
|
|
"field": "created_at",
|
|
"title": "上传时间",
|
|
"width": "20%"
|
|
}
|
|
],
|
|
"editfields": [
|
|
{
|
|
"field": "file_name",
|
|
"uitype": "Text",
|
|
"required": true
|
|
},
|
|
{
|
|
"field": "kb_id",
|
|
"uitype": "Text",
|
|
"required": true
|
|
},
|
|
{
|
|
"field": "file_type",
|
|
"uitype": "Text"
|
|
}
|
|
],
|
|
"searchfields": [
|
|
"file_name"
|
|
],
|
|
"sort": "created_at desc",
|
|
"data_filter": {
|
|
"org_id": "{{userorgid}}"
|
|
}
|
|
}
|
|
}
|