30 lines
1.6 KiB
JSON
30 lines
1.6 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": "世界ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "name", "title": "快照名称", "type": "str", "length": 255, "nullable": "no"},
|
|
{"name": "snapshot_type", "title": "快照类型", "type": "str", "length": 32, "nullable": "no", "default": "full"},
|
|
{"name": "snapshot_json", "title": "快照内容", "type": "text"},
|
|
{"name": "status", "title": "快照状态", "type": "str", "length": 32, "nullable": "no", "default": "active"},
|
|
{"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", "snapshot_date"]},
|
|
{"name": "idx_snapshot_list", "idxtype": "index", "idxfields": ["world_id", "status", "created_at"]}
|
|
],
|
|
"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'"}
|
|
]
|
|
}
|