

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for CoreCmsPrinter
-- ----------------------------
DROP TABLE IF EXISTS `CoreCmsPrinter`;
CREATE TABLE `CoreCmsPrinter`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '序列',
  `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '应用名称',
  `code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '应用编码',
  `clientId` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '易联云应用id',
  `clientSecret` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '易联云应用密钥',
  `machineCode` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '易联云终端号',
  `msign` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '易联云终端密钥',
  `printerName` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '打印机名称',
  `phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '联系电话',
  `accessToken` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '访问令牌，API调用时需要，令牌可以重复使用无失效时间，请开发者全局保存',
  `refreshToken` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新access_token所需，有效时间35天',
  `expiresIn` int(11) NULL DEFAULT NULL COMMENT '令牌的有效时间，单位秒 (30天),注：该模式下可忽略此参数',
  `expiressEndTime` datetime(0) NULL DEFAULT NULL COMMENT '有效期截止时间',
  `parameters` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '其他参数',
  `createTime` datetime(0) NOT NULL COMMENT '创建时间',
  `isDefault` bit(4) NOT NULL COMMENT '是否默认',
  `isOpen` bit(4) NOT NULL COMMENT '是否开启',
  `storeId` int(11) NOT NULL COMMENT '绑定门店',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '打印机列表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of CoreCmsPrinter
-- ----------------------------

SET FOREIGN_KEY_CHECKS = 1;
