pbl_runtime_ext/models/pbl_entity_state.json

101 lines
1.8 KiB
JSON
Raw Permalink 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_entity_state",
"comment": "实体状态服务端权威state_version 客户端禁写)",
"module": "pbl_runtime_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": "entity_id",
"comment": "实体标识",
"null": false,
"type": "str",
"length": 32
},
{
"name": "state_json",
"comment": "状态",
"null": true,
"type": "json"
},
{
"name": "state_version",
"comment": "单调版本",
"null": false,
"type": "bigint"
},
{
"name": "checksum",
"comment": "状态摘要",
"null": false,
"type": "str",
"length": 32
},
{
"name": "updated_by",
"comment": "写入者",
"null": false,
"type": "str",
"length": 32
},
{
"name": "created_at",
"comment": "创建时间",
"null": false,
"type": "datetime"
},
{
"name": "updated_at",
"comment": "更新时间",
"null": false,
"type": "datetime"
}
],
"indexes": [
{
"name": "uk_es",
"unique": true,
"fields": [
"tenant_id",
"session_id",
"entity_id"
]
},
{
"name": "PRIMARY",
"unique": true,
"fields": [
"id"
]
}
],
"codes": []
}