80 lines
1.4 KiB
JSON
80 lines
1.4 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "headcount_snapshot",
|
|
"title": "编制快照(F16历史回溯/实时计数)",
|
|
"pk": [
|
|
"id"
|
|
],
|
|
"charset": "utf8mb4",
|
|
"collate": "utf8mb4_unicode_ci"
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "主键",
|
|
"type": "varchar",
|
|
"length": 32,
|
|
"notnull": true
|
|
},
|
|
{
|
|
"name": "scheme_id",
|
|
"title": "编制方案",
|
|
"type": "varchar",
|
|
"length": 32,
|
|
"notnull": true
|
|
},
|
|
{
|
|
"name": "item_id",
|
|
"title": "细分项",
|
|
"type": "varchar",
|
|
"length": 32,
|
|
"notnull": true
|
|
},
|
|
{
|
|
"name": "snap_date",
|
|
"title": "快照日期",
|
|
"type": "date",
|
|
"notnull": true
|
|
},
|
|
{
|
|
"name": "used_count",
|
|
"title": "占编人数",
|
|
"type": "int",
|
|
"notnull": true,
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "over_count",
|
|
"title": "超编数(0=未超编)",
|
|
"type": "int",
|
|
"notnull": true,
|
|
"default": 0
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp"
|
|
}
|
|
],
|
|
"indexes": [
|
|
{
|
|
"name": "uk_scheme_item_date",
|
|
"fields": [
|
|
"scheme_id",
|
|
"item_id",
|
|
"snap_date"
|
|
],
|
|
"unique": true
|
|
},
|
|
{
|
|
"name": "idx_snap_date",
|
|
"fields": [
|
|
"snap_date"
|
|
]
|
|
}
|
|
],
|
|
"codes": []
|
|
}
|