scene/models/scene_import.json
2026-08-29 12:44:22 +08:00

28 lines
1.4 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": "scene_import",
"primary": ["id"],
"engine": "InnoDB",
"comment": "场景导入记录表(只读)"
}
],
"fields": [
{"name": "id", "type": "str(32)", "nullable": false, "default": "", "comment": "主键"},
{"name": "world_id", "type": "str(32)", "nullable": false, "default": "", "comment": "目标世界(逻辑关联 world.id"},
{"name": "file_name", "type": "str(255)", "nullable": false, "default": "", "comment": "导入文件名"},
{"name": "total", "type": "int", "nullable": false, "default": 0, "comment": "总条数"},
{"name": "success", "type": "int", "nullable": false, "default": 0, "comment": "成功条数"},
{"name": "fail", "type": "int", "nullable": false, "default": 0, "comment": "失败条数"},
{"name": "status", "type": "str(16)", "nullable": false, "default": "0", "comment": "导入状态appcodes import_status0 进行中/1 成功/2 失败)"},
{"name": "created_at", "type": "timestamp", "nullable": false, "comment": "导入时间"}
],
"indexes": [
{"name": "idx_scene_import_world", "fields": ["world_id"], "unique": false}
],
"codes": [
{"field": "world_id", "table": "world", "valuefield": "id", "textfield": "name"},
{"field": "status", "table": "appcodes_kv", "cond": "parentid='import_status'", "valuefield": "k", "textfield": "v"}
]
}