pbl_blueprint/pbl_blueprint/models/pbl_blueprint_approval.json
2026-09-16 12:49:06 +08:00

183 lines
3.9 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": "蓝图审批记录(B3)。记录提交人/审批人/审批状态/审批意见与时间,支撑 draft→submitted→approved/rejected→published 状态流转的审批留痕。一次提交一条记录,驳回后可再次提交形成多条。",
"primary": [
"id"
],
"fields": {
"id": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": false,
"summary": "主键ID(str32,UUID去横线)"
},
"tenant_id": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": true,
"summary": "租户ID(首业务字段,所有读写强制打头,缺失即 fail-closed 拒绝)"
},
"blueprint_id": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": true,
"summary": "所属蓝图ID"
},
"version_no": {
"type": "int",
"notnull": true,
"default": 1,
"editable": true,
"query": true,
"summary": "被审批的版本号"
},
"submit_user": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": true,
"query": true,
"summary": "提交人ID"
},
"submit_time": {
"type": "datetime",
"notnull": false,
"default": null,
"editable": true,
"query": true,
"summary": "提交时间"
},
"approver_id": {
"type": "str",
"size": 32,
"notnull": false,
"default": "",
"editable": true,
"query": true,
"summary": "审批人ID"
},
"approval_status": {
"type": "str",
"size": 32,
"notnull": true,
"default": "pending",
"editable": true,
"query": true,
"summary": "审批状态",
"code": "pbl_approval_status"
},
"approval_opinion": {
"type": "str",
"size": 1000,
"notnull": true,
"default": "",
"editable": true,
"query": false,
"summary": "审批意见"
},
"approval_time": {
"type": "datetime",
"notnull": false,
"default": null,
"editable": true,
"query": true,
"summary": "审批时间"
},
"approval_round": {
"type": "int",
"notnull": true,
"default": 1,
"editable": true,
"query": true,
"summary": "审批轮次(驳回重提递增)"
},
"create_user": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": false,
"query": false,
"summary": "创建人"
},
"create_time": {
"type": "datetime",
"notnull": false,
"default": null,
"editable": false,
"query": false,
"summary": "创建时间"
},
"update_user": {
"type": "str",
"size": 32,
"notnull": true,
"default": "",
"editable": false,
"query": false,
"summary": "更新人"
},
"update_time": {
"type": "datetime",
"notnull": false,
"default": null,
"editable": false,
"query": false,
"summary": "更新时间"
},
"deleted": {
"type": "int",
"notnull": true,
"default": 0,
"editable": false,
"query": false,
"summary": "逻辑删除标记 0正常 1删除"
}
},
"indexes": [
{
"name": "PRIMARY",
"type": "primary",
"fields": [
"id"
]
},
{
"name": "idx_tenant_bp",
"type": "normal",
"fields": [
"tenant_id",
"blueprint_id"
]
},
{
"name": "idx_tenant_approver",
"type": "normal",
"fields": [
"tenant_id",
"approver_id"
]
},
{
"name": "idx_tenant_status",
"type": "normal",
"fields": [
"tenant_id",
"approval_status"
]
}
],
"codes": [
"pbl_approval_status"
]
}