
CREATE TABLE `cb_servicer`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `corpid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '企业ID',
  `open_kfid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '客服ID',
  `userid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '接待人员的userid',
  `status` tinyint(4) NOT NULL COMMENT '接待人员的接待状态。0:接待中,1:停止接待',
  `stop_type` tinyint(4) NULL DEFAULT NULL COMMENT '停止接待的子类型。0:停止接待,1:暂时挂起',
  `department_id` int(11) NOT NULL COMMENT '部门ID',
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `open_kfid`(`open_kfid`) USING BTREE,
  INDEX `userid`(`userid`) USING BTREE,
  INDEX `created_at`(`created_at`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '接待人员表' ROW_FORMAT = Compact;
