entity/models/entity_import.json
2026-08-29 12:51:16 +08:00

30 lines
1.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"table": "entity_import",
"title": "实体导入记录表",
"comment": "实体导入日志(只读,不可手工增删改)",
"primary": ["id"]
}
],
"fields": [
{"name": "id", "type": "str", "length": 32, "primary": true, "comment": "主键"},
{"name": "world_id", "type": "str", "length": 32, "comment": "目标世界"},
{"name": "scene_id", "type": "str", "length": 32, "comment": "目标场景"},
{"name": "file_name", "type": "str", "length": 255, "comment": "导入文件名"},
{"name": "total", "type": "int", "comment": "总条数"},
{"name": "success", "type": "int", "comment": "成功条数"},
{"name": "fail", "type": "int", "comment": "失败条数"},
{"name": "status", "type": "str", "length": 16, "comment": "导入状态appcodes import_status0进行中/1成功/2失败"},
{"name": "created_at", "type": "timestamp", "comment": "导入时间"}
],
"indexes": [
{"name": "idx_entity_import_world", "fields": ["world_id"]}
],
"codes": [
{"field": "world_id", "table": "world", "valuefield": "id", "textfield": "name"},
{"field": "scene_id", "table": "scene", "valuefield": "id", "textfield": "name"},
{"field": "status", "table": "appcodes_kv", "cond": "parentid='import_status'", "valuefield": "k", "textfield": "v"}
]
}