pbl_scense_ext/models/pbl_session_member.json

113 lines
2.0 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "pbl_session_member",
"comment": "会话成员(复用 world_session不污染基表",
"module": "pbl_scense_ext",
"engine": "mariadb",
"charset": "utf8mb4",
"tenant_scoped": true
}
],
"fields": [
{
"name": "tenant_id",
"comment": "租户ID(强制打头)",
"null": false,
"type": "str",
"length": 32
},
{
"name": "id",
"comment": "主键",
"null": false,
"type": "int",
"length": 20,
"unsigned": true,
"auto_increment": true
},
{
"name": "session_id",
"comment": "会话",
"null": false,
"type": "bigint"
},
{
"name": "user_id",
"comment": "用户",
"null": false,
"type": "str",
"length": 32
},
{
"name": "role_code",
"comment": "角色",
"null": false,
"type": "str",
"length": 64
},
{
"name": "team_id",
"comment": "团队",
"null": false,
"type": "bigint"
},
{
"name": "joined_at",
"comment": "加入时间",
"null": true,
"type": "datetime"
},
{
"name": "last_seen_at",
"comment": "心跳",
"null": true,
"type": "datetime"
},
{
"name": "state_version",
"comment": "已见状态版本",
"null": false,
"type": "bigint"
},
{
"name": "status",
"comment": "状态",
"null": false,
"type": "str",
"length": 64
},
{
"name": "created_at",
"comment": "创建时间",
"null": false,
"type": "datetime"
},
{
"name": "updated_at",
"comment": "更新时间",
"null": false,
"type": "datetime"
}
],
"indexes": [
{
"name": "uk_sm",
"unique": true,
"fields": [
"tenant_id",
"session_id",
"user_id"
]
},
{
"name": "PRIMARY",
"unique": true,
"fields": [
"id"
]
}
],
"codes": []
}