25 lines
1.5 KiB
JSON
25 lines
1.5 KiB
JSON
{
|
|
"summary": [
|
|
{"name": "world_snapshot", "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": "name", "title": "快照名称", "type": "str", "length": 255, "nullable": "no"},
|
|
{"name": "snapshot_type", "title": "快照类型", "type": "str", "length": 16, "nullable": "no", "default": "0"},
|
|
{"name": "snapshot_json", "title": "快照数据JSON", "type": "text", "nullable": "no"},
|
|
{"name": "status", "title": "状态", "type": "str", "length": 16, "nullable": "no", "default": "0"},
|
|
{"name": "snapshot_date", "title": "快照日期", "type": "date", "nullable": "no"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_snapshot_world", "idxtype": "index", "idxfields": ["world_id"]},
|
|
{"name": "idx_snapshot_world_date", "idxtype": "index", "idxfields": ["world_id", "snapshot_date"]}
|
|
],
|
|
"codes": [
|
|
{"field": "world_id", "table": "world", "valuefield": "id", "textfield": "name"},
|
|
{"field": "snapshot_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='snapshot_type'"},
|
|
{"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='snapshot_status'"}
|
|
]
|
|
}
|