i2bill_acquirer_attendance_record.sql 1.0 KB

123456789101112131415161718
  1. -- 打卡记录表--
  2. DROP TABLE IF EXISTS `i2bill_acquirer_attendance_record`;
  3. CREATE TABLE `i2bill_acquirer_attendance_record` (
  4. `id` int(11) NOT NULL AUTO_INCREMENT,
  5. `user_id` int(11) NULL DEFAULT NULL COMMENT '用户id',
  6. `start_lat` varchar(36) NULL DEFAULT NULL,
  7. `start_address` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '上班地址',
  8. `end_lat` varchar(36) NULL DEFAULT NULL,
  9. `end_address` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '下班地址',
  10. `start_time` datetime(0) NULL DEFAULT NULL COMMENT '上班时间',
  11. `end_time` datetime(0) NULL DEFAULT NULL COMMENT '下班时间',
  12. `create_time` datetime(0) NULL DEFAULT NULL,
  13. `del_flag` int(11) NULL DEFAULT NULL,
  14. `date` date NULL DEFAULT NULL,
  15. PRIMARY KEY (`id`) USING BTREE,
  16. INDEX `attendance_record_user_id_date`(`user_id`,`date`) USING BTREE,
  17. INDEX `attendance_record_date`(`date`) USING BTREE
  18. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;