125 lines
2.2 KiB
JSON
125 lines
2.2 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "game_session",
|
|
"title": "game_session",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "会话ID",
|
|
"type": "str",
|
|
"length": 255,
|
|
"nullable": "no"
|
|
},
|
|
{
|
|
"name": "user_id",
|
|
"title": "用户ID",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "game_id",
|
|
"title": "游戏标识",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "game_name",
|
|
"title": "游戏名称",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "会话状态 created/playing/paused/ended",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "score",
|
|
"title": "当前得分",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "level",
|
|
"title": "当前关卡",
|
|
"type": "int"
|
|
},
|
|
{
|
|
"name": "elapsed_ms",
|
|
"title": "已玩时长毫秒",
|
|
"type": "long"
|
|
},
|
|
{
|
|
"name": "progress_json",
|
|
"title": "进度快照JSON",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "share_token",
|
|
"title": "分享令牌",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "world_id",
|
|
"title": "世界ID",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "datetime"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "datetime"
|
|
},
|
|
{
|
|
"name": "ended_at",
|
|
"title": "结束时间",
|
|
"type": "datetime"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_user_status",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"user_id",
|
|
"status"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_user_game",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"user_id",
|
|
"game_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_share_token",
|
|
"idxtype": "index",
|
|
"idxfields": [
|
|
"share_token"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"field": "status",
|
|
"table": "appcodes_kv",
|
|
"valuefield": "k",
|
|
"textfield": "v",
|
|
"cond": "parentid='game_session_status'"
|
|
}
|
|
]
|
|
} |