28 lines
1.3 KiB
JSON
28 lines
1.3 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "scene_import",
|
|
"title": "场景导入记录表",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "world_id", "title": "目标世界", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "file_name", "title": "导入文件名", "type": "str", "length": 255, "nullable": "no"},
|
|
{"name": "total", "title": "总条数", "type": "int", "nullable": "no", "default": "0"},
|
|
{"name": "success", "title": "成功条数", "type": "int", "nullable": "no", "default": "0"},
|
|
{"name": "fail", "title": "失败条数", "type": "int", "nullable": "no", "default": "0"},
|
|
{"name": "status", "title": "导入状态", "type": "str", "length": 16, "nullable": "no", "default": "0"},
|
|
{"name": "created_at", "title": "导入时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_scene_import_world", "idxtype": "index", "idxfields": ["world_id"]}
|
|
],
|
|
"codes": [
|
|
{"field": "world_id", "table": "world", "valuefield": "id", "textfield": "name"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='import_status'"}
|
|
]
|
|
}
|