From 327ea5faa3f924168ebc15a8e7420dde615c7a4d Mon Sep 17 00:00:00 2001 From: pipeline-agent Date: Sun, 30 Aug 2026 14:02:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9F=9F=E6=A8=A1=E5=9E=8Bv2):=20world?= =?UTF-8?q?=E5=8A=A0game=5Fid(1:1=E8=81=9A=E5=90=88=E6=A0=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/world.json | 136 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 110 insertions(+), 26 deletions(-) diff --git a/models/world.json b/models/world.json index 435ff3e..160a476 100644 --- a/models/world.json +++ b/models/world.json @@ -1,28 +1,112 @@ { - "summary": [ - { - "name": "world", - "title": "世界表", - "primary": ["id"], - "catelog": "entity" - } - ], - "fields": [ - {"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"}, - {"name": "name", "title": "世界名称", "type": "str", "length": 255, "nullable": "no"}, - {"name": "code", "title": "世界编码", "type": "str", "length": 64, "nullable": "no"}, - {"name": "description", "title": "描述", "type": "text", "nullable": "yes"}, - {"name": "world_type", "title": "世界类型", "type": "str", "length": 16, "nullable": "no", "default": "0"}, - {"name": "status", "title": "状态", "type": "str", "length": 16, "nullable": "no", "default": "0"}, - {"name": "config_json", "title": "世界配置JSON", "type": "text", "nullable": "yes"}, - {"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"}, - {"name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "yes"} - ], - "indexes": [ - {"name": "idx_world_code", "idxtype": "unique", "idxfields": ["code"]} - ], - "codes": [ - {"field": "world_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='world_type'"}, - {"field": "status", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='world_status'"} - ] + "summary": [ + { + "name": "world", + "title": "世界表", + "primary": [ + "id" + ], + "catelog": "entity" + } + ], + "fields": [ + { + "name": "id", + "title": "主键ID", + "type": "str", + "length": 32, + "nullable": "no" + }, + { + "name": "game_id", + "title": "所属游戏ID(1:1)", + "type": "str", + "length": 32 + }, + { + "name": "name", + "title": "世界名称", + "type": "str", + "length": 255, + "nullable": "no" + }, + { + "name": "code", + "title": "世界编码", + "type": "str", + "length": 64, + "nullable": "no" + }, + { + "name": "description", + "title": "描述", + "type": "text", + "nullable": "yes" + }, + { + "name": "world_type", + "title": "世界类型", + "type": "str", + "length": 16, + "nullable": "no", + "default": "0" + }, + { + "name": "status", + "title": "状态", + "type": "str", + "length": 16, + "nullable": "no", + "default": "0" + }, + { + "name": "config_json", + "title": "世界配置JSON", + "type": "text", + "nullable": "yes" + }, + { + "name": "created_at", + "title": "创建时间", + "type": "timestamp", + "nullable": "no" + }, + { + "name": "updated_at", + "title": "更新时间", + "type": "timestamp", + "nullable": "yes" + } + ], + "indexes": [ + { + "name": "idx_world_code", + "idxtype": "unique", + "idxfields": [ + "code" + ] + }, + { + "name": "idx_world_game_id", + "fields": [ + "game_id" + ] + } + ], + "codes": [ + { + "field": "world_type", + "table": "appcodes_kv", + "valuefield": "k", + "textfield": "v", + "cond": "parentid='world_type'" + }, + { + "field": "status", + "table": "appcodes_kv", + "valuefield": "k", + "textfield": "v", + "cond": "parentid='world_status'" + } + ] } \ No newline at end of file