-- 各部门月度业绩目标(制定业绩) CREATE TABLE IF NOT EXISTS `zyt_dept_performance_target` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', `dept_id` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '部门ID', `dept_name` varchar(100) NOT NULL DEFAULT '' COMMENT '部门名称快照', `year_month` char(7) NOT NULL DEFAULT '' COMMENT '目标月份 YYYY-MM', `target_amount` decimal(12,2) NOT NULL DEFAULT '0.00' COMMENT '目标业绩金额(元)', `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注', `creator_id` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '创建人', `creator_name` varchar(64) NOT NULL DEFAULT '' COMMENT '创建人姓名', `updater_id` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '最后修改人', `updater_name` varchar(64) NOT NULL DEFAULT '' COMMENT '最后修改人姓名', `create_time` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '创建时间', `update_time` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '更新时间', PRIMARY KEY (`id`), UNIQUE KEY `uk_dept_year_month` (`dept_id`, `year_month`), KEY `idx_year_month` (`year_month`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='部门月度业绩目标';