hr-system/models/hr_flow/flow_instance.json

133 lines
2.3 KiB
JSON

{
"summary": [
{
"name": "flow_instance",
"title": "流程实例",
"pk": [
"id"
],
"charset": "utf8mb4",
"collate": "utf8mb4_unicode_ci"
}
],
"fields": [
{
"name": "id",
"title": "主键",
"type": "varchar",
"length": 32,
"notnull": true
},
{
"name": "inst_no",
"title": "审批编号",
"type": "varchar",
"length": 32,
"notnull": true
},
{
"name": "flow_id",
"title": "流程定义",
"type": "varchar",
"length": 32,
"notnull": true
},
{
"name": "form_id",
"title": "表单定义",
"type": "varchar",
"length": 32,
"notnull": true
},
{
"name": "biz_type",
"title": "业务类型(字典FLOW_BIZ_TYPE)",
"type": "varchar",
"length": 32,
"notnull": true
},
{
"name": "biz_id",
"title": "业务单据ID",
"type": "varchar",
"length": 32
},
{
"name": "title",
"title": "标题",
"type": "varchar",
"length": 256
},
{
"name": "initiator_id",
"title": "发起人",
"type": "varchar",
"length": 32,
"notnull": true
},
{
"name": "inst_status",
"title": "实例状态(字典INST_STATUS)",
"type": "varchar",
"length": 16,
"notnull": true,
"default": "running"
},
{
"name": "submit_data_json",
"title": "提交表单数据快照",
"type": "text"
},
{
"name": "start_time",
"title": "发起时间",
"type": "timestamp"
},
{
"name": "finish_time",
"title": "结束时间",
"type": "timestamp"
}
],
"indexes": [
{
"name": "uk_inst_no",
"fields": [
"inst_no"
],
"unique": true
},
{
"name": "idx_biz",
"fields": [
"biz_type",
"biz_id"
]
},
{
"name": "idx_initiator",
"fields": [
"initiator_id"
]
},
{
"name": "idx_status",
"fields": [
"inst_status"
]
}
],
"codes": [
{
"name": "biz_type",
"source": "appcodes",
"code": "FLOW_BIZ_TYPE"
},
{
"name": "inst_status",
"source": "appcodes",
"code": "INST_STATUS"
}
]
}