pbl_agent_runtime/models/pbl_approval.json

140 lines
2.5 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_approval",
"comment": "人工审批单14.2 四类,无绕过路径)",
"module": "pbl_agent_runtime",
"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": "approval_uid",
"comment": "审批UID",
"null": false,
"type": "str",
"length": 32
},
{
"name": "approval_type",
"comment": "类型",
"null": false,
"type": "str",
"length": 64
},
{
"name": "target_type",
"comment": "对象类型",
"null": false,
"type": "str",
"length": 64
},
{
"name": "target_id",
"comment": "对象ID",
"null": false,
"type": "bigint"
},
{
"name": "payload_json",
"comment": "变更内容",
"null": true,
"type": "json"
},
{
"name": "status",
"comment": "状态",
"null": false,
"type": "str",
"length": 64
},
{
"name": "requested_by",
"comment": "发起人",
"null": false,
"type": "str",
"length": 32
},
{
"name": "decided_by",
"comment": "决策人",
"null": false,
"type": "str",
"length": 32
},
{
"name": "decided_at",
"comment": "决策时间",
"null": true,
"type": "datetime"
},
{
"name": "comment_txt",
"comment": "意见",
"null": true,
"type": "text"
},
{
"name": "created_at",
"comment": "创建时间",
"null": false,
"type": "datetime"
},
{
"name": "updated_at",
"comment": "更新时间",
"null": false,
"type": "datetime"
}
],
"indexes": [
{
"name": "uk_ap_uid",
"unique": true,
"fields": [
"tenant_id",
"approval_uid"
]
},
{
"name": "idx_ap_status",
"unique": false,
"fields": [
"tenant_id",
"status"
]
},
{
"name": "PRIMARY",
"unique": true,
"fields": [
"id"
]
}
],
"codes": [
{
"field": "status",
"appcode": "pbl_approval_status"
}
]
}