23 lines
1.4 KiB
JSON
23 lines
1.4 KiB
JSON
{
|
|
"summary": [{"name": "world_sync_log", "title": "世界同步日志表", "primary": ["id"], "catelog": "relation"}],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "task_id", "title": "同步任务ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "world_id", "title": "所属世界ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "status", "title": "同步结果", "type": "str", "length": 16, "nullable": "no", "default": "success"},
|
|
{"name": "total", "title": "同步记录数", "type": "int", "nullable": "yes"},
|
|
{"name": "detail", "title": "同步明细", "type": "text", "nullable": "yes"},
|
|
{"name": "started_at", "title": "开始时间", "type": "timestamp", "nullable": "yes"},
|
|
{"name": "finished_at", "title": "结束时间", "type": "timestamp", "nullable": "yes"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_sync_log_task", "idxtype": "index", "idxfields": ["task_id"]},
|
|
{"name": "idx_sync_log_world", "idxtype": "index", "idxfields": ["world_id"]}
|
|
],
|
|
"codes": [
|
|
{"field": "task_id", "table": "world_sync_task", "valuefield": "id", "textfield": "name"},
|
|
{"field": "world_id", "table": "world", "valuefield": "id", "textfield": "name"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='sync_result'"}
|
|
]
|
|
}
|