CREATE TABLE `attendance_cfg` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`company_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '细胞ID',
`month` char(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '年月:202111',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态:0=启用1=停用2=删除',
`off_type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '休息类型:0=单休,1=双休',
`days` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '出勤天数:最大31',
`off_days` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '休息天数:最大31',
`param_json` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '月度配置json',
`editor_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作人ID',
`created_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `company_id` (`company_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='考勤:细胞考勤配置表';
CREATE TABLE `attendance_check` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`check_id` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '打卡记录id',
`company_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '细胞ID',
`userinfo_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '寻木美系统userinfo_ID',
`deliuser_id` varchar(32) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '得力系统user_ID',
`check_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '打卡时间戳',
`check_day` timestamp NULL DEFAULT NULL COMMENT '打卡时间',
`check_minute` time NOT NULL DEFAULT '00:00:00' COMMENT '打卡时-分-秒',
`check_imei` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '考勤机设备序列号',
`check_name` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '考勤机设备名',
`check_type` varchar(16) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '得力打卡类型',
`check_data` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '打卡补充数据',
`cal` char(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '打卡日历2021-11-9',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态:0=有效1=无效打卡',
`editor_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '校对人',
`editor_type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '校对类型10=补卡',
`remark` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '校对备注',
`created_at` timestamp NULL DEFAULT NULL COMMENT '记录api导出时间',
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userinfo_id` (`userinfo_id`)
) ENGINE=InnoDB AUTO_INCREM