166 lines
3.1 KiB
JSON
166 lines
3.1 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "contract_info",
|
|
"title": "合同台账",
|
|
"pk": [
|
|
"id"
|
|
],
|
|
"charset": "utf8mb4",
|
|
"collate": "utf8mb4_unicode_ci"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键",
|
|
"type": "varchar",
|
|
"length": 32,
|
|
"notnull": true
|
|
},
|
|
{
|
|
"name": "contract_no",
|
|
"title": "合同编号",
|
|
"type": "varchar",
|
|
"length": 64,
|
|
"notnull": true
|
|
},
|
|
{
|
|
"name": "employee_id",
|
|
"title": "员工档案",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "type_id",
|
|
"title": "合同类型",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "company_id",
|
|
"title": "签约公司(org_contract_company)",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "template_id",
|
|
"title": "合同模板",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "start_date",
|
|
"title": "合同起始日",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "end_date",
|
|
"title": "合同到期日",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "sign_date",
|
|
"title": "签订日期",
|
|
"type": "date"
|
|
},
|
|
{
|
|
"name": "contract_status",
|
|
"title": "合同状态(字典CONTRACT_STATUS)",
|
|
"type": "varchar",
|
|
"length": 16,
|
|
"default": "active"
|
|
},
|
|
{
|
|
"name": "file_path",
|
|
"title": "合同文件(文件ID)",
|
|
"type": "varchar",
|
|
"length": 256
|
|
},
|
|
{
|
|
"name": "text_file_path",
|
|
"title": "模板生成合同文本(D4)",
|
|
"type": "varchar",
|
|
"length": 256
|
|
},
|
|
{
|
|
"name": "flow_instance_id",
|
|
"title": "流程实例",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "remind_rule_id",
|
|
"title": "到期提醒规则",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "esign_status",
|
|
"title": "电子签状态(字典ESIGN_STATUS,D4预留)",
|
|
"type": "varchar",
|
|
"length": 16,
|
|
"default": "not_enabled"
|
|
},
|
|
{
|
|
"name": "remark",
|
|
"title": "备注",
|
|
"type": "text"
|
|
},
|
|
{
|
|
"name": "created_by",
|
|
"title": "创建人",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "updated_by",
|
|
"title": "更新人",
|
|
"type": "varchar",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "idx_employee",
|
|
"fields": [
|
|
"employee_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_end_date",
|
|
"fields": [
|
|
"end_date"
|
|
]
|
|
},
|
|
{
|
|
"name": "idx_status",
|
|
"fields": [
|
|
"contract_status"
|
|
]
|
|
}
|
|
],
|
|
"codes": [
|
|
{
|
|
"name": "contract_status",
|
|
"source": "appcodes",
|
|
"code": "CONTRACT_STATUS"
|
|
},
|
|
{
|
|
"name": "esign_status",
|
|
"source": "appcodes",
|
|
"code": "ESIGN_STATUS"
|
|
}
|
|
]
|
|
}
|