From 96f8c723cc21aedb1440b70dca1f97c3bed51f38 Mon Sep 17 00:00:00 2001 From: wqz Date: Tue, 19 Nov 2024 17:24:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E5=A4=B1sql=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=A1=A5=E5=85=85--1119?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yz_busi_card_sms.sql" | 38 ++++++++++++ .../yz_card_api_offeringinfo.sql" | 37 ++++++++++++ .../yz_card_api_offeringinfolist.sql" | 41 +++++++++++++ .../yz_card_packet.sql" | 58 +++++++++++++++++++ .../yz_card_polling_error.sql" | 40 +++++++++++++ .../yz_card_usage_reminder.sql" | 41 +++++++++++++ .../yz_sms_bulk_business.sql" | 41 +++++++++++++ .../yz_syn_card_info.sql" | 47 +++++++++++++++ .../yz_sys_logs.sql" | 37 ++++++++++++ .../yz_wx_by_product_category.sql" | 35 +++++++++++ .../yz_wx_by_product_info.sql" | 51 ++++++++++++++++ 11 files changed, 466 insertions(+) create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_busi_card_sms.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfo.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfolist.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_packet.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_polling_error.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_usage_reminder.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sms_bulk_business.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_syn_card_info.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sys_logs.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_category.sql" create mode 100644 "sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_info.sql" diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_busi_card_sms.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_busi_card_sms.sql" new file mode 100644 index 0000000..f0217f6 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_busi_card_sms.sql" @@ -0,0 +1,38 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:20:58 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_busi_card_sms +-- ---------------------------- +DROP TABLE IF EXISTS `yz_busi_card_sms`; +CREATE TABLE `yz_busi_card_sms` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `msgid` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '短息id', + `msisdn` varchar(60) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '短信服务号', + `content` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '下发内容', + `state_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '状态', + `type` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '操作方式', + `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间', + `del_flag` smallint(5) NOT NULL COMMENT '是否删除 0 否 1 是', + `sms_src_TerminalId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '短信服务号', + `msgFmt` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '信息格式', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'COLUMNAR=1 短信收发记录' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfo.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfo.sql" new file mode 100644 index 0000000..19ee6f3 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfo.sql" @@ -0,0 +1,37 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:19:07 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_card_api_offeringinfo +-- ---------------------------- +DROP TABLE IF EXISTS `yz_card_api_offeringinfo`; +CREATE TABLE `yz_card_api_offeringinfo` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `cd_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '通道类型', + `offeringId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资费 ID', + `offeringName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资费名称', + `apnName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'APN 名称', + `create_date` datetime NOT NULL COMMENT '创建时间', + `upd_date` datetime NOT NULL COMMENT '最近一次修改时间', + `type` smallint(6) NOT NULL DEFAULT 1 COMMENT '资费类型', + PRIMARY KEY (`id`) USING BTREE, + INDEX `offeringId`(`offeringId` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 99 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '上游接口返回已订购资费信息' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfolist.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfolist.sql" new file mode 100644 index 0000000..1b5c9b3 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_api_offeringinfolist.sql" @@ -0,0 +1,41 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:18:50 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_card_api_offeringinfolist +-- ---------------------------- +DROP TABLE IF EXISTS `yz_card_api_offeringinfolist`; +CREATE TABLE `yz_card_api_offeringinfolist` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `iccid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `offeringId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资费 ID', + `offeringName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资费名称', + `effectiveDate` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '生效时间', + `expiriedDate` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失效时间', + `apnName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'APN 名称', + `create_date` datetime NOT NULL COMMENT '创建时间', + `upd_date` datetime NOT NULL COMMENT '最近一次修改时间', + `cd_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '通道类型', + PRIMARY KEY (`id`) USING BTREE, + INDEX `iccid`(`iccid` ASC) USING BTREE, + INDEX `offeringId`(`offeringId` ASC) USING BTREE, + INDEX `cd_code`(`cd_code` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 42847759 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '上游接口返回已订购资费信息' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_packet.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_packet.sql" new file mode 100644 index 0000000..b57a402 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_packet.sql" @@ -0,0 +1,58 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:15:02 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_card_packet +-- ---------------------------- +DROP TABLE IF EXISTS `yz_card_packet`; +CREATE TABLE `yz_card_packet` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id', + `package_id` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '套餐ID', + `packet_id` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '套餐包ID', + `packet_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '套餐包名', + `packet_wx_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信端显示名称', + `packet_price` double(10, 2) NULL DEFAULT 0.00 COMMENT '套餐包金额', + `packet_flow` double(10, 2) NULL DEFAULT 0.00 COMMENT '套餐包流量', + `base_packet_type` int(11) NULL DEFAULT 0 COMMENT '资费计划 类型 0:仅一次,1可叠加', + `packet_type` int(11) NULL DEFAULT 0 COMMENT '加油包类型:0基础加油包-1叠加油包', + `is_profit` int(11) NULL DEFAULT 0 COMMENT '是否分润:0否 1是', + `show_profit` int(11) NULL DEFAULT 0 COMMENT '是否显示分润:0否-1是', + `wechat_pay` int(11) NULL DEFAULT 1 COMMENT '是否可微信支付:0否1是', + `balance_pay` int(11) NULL DEFAULT 0 COMMENT '是否可余额支付:0否-1是', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `error_flow` double(10, 2) NULL DEFAULT 0.00 COMMENT '套餐流量', + `error_so` double(10, 2) NULL DEFAULT 0.00 COMMENT '套餐包SO倍数', + `packet_valid_time` int(11) NULL DEFAULT NULL COMMENT '资费计划规格\r\n\r\n,根据packet_valid_name定义,表示为月或年', + `packet_cost` double(10, 2) NULL DEFAULT NULL COMMENT '成本价', + `is_month` int(11) NULL DEFAULT NULL COMMENT '是否分月到账:0否 1是', + `date_limit` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '限制不可充值日期', + `deduction` int(11) NULL DEFAULT NULL COMMENT '是否支持 自动扣代理预存授信延续', + `in_stock` int(11) NULL DEFAULT NULL COMMENT '是否在售 0 否 1 是', + `packet_valid_type` int(11) NULL DEFAULT NULL COMMENT '资费计划生效类型 当月生效 yunze_card_takeEffect_type', + `dept_id` int(11) NULL DEFAULT NULL COMMENT '代理编号 与 agent_id 一致 但需要用于系统结构 数据验证', + `user_id` int(11) NULL DEFAULT NULL COMMENT '系统登录账户id 用于系统结构数据验证', + `packet_valid_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '月' COMMENT '资费计划规则 月 年 ', + `card_count` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卡总数', + `is_dd` smallint(5) NULL DEFAULT NULL COMMENT '是否订购达量断网', + `underscorePrice` double(10, 2) NULL DEFAULT 0.00 COMMENT '下划线价格》原价', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `packet_id`(`packet_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 266 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = 'COLUMNAR=1 资费计划' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_polling_error.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_polling_error.sql" new file mode 100644 index 0000000..9536c45 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_polling_error.sql" @@ -0,0 +1,40 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:21:16 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_card_polling_error +-- ---------------------------- +DROP TABLE IF EXISTS `yz_card_polling_error`; +CREATE TABLE `yz_card_polling_error` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `iccid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `codeOn` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '错误代码', + `message` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '错误信息', + `cd_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '通道编码', + `create_date` datetime NOT NULL COMMENT '创建时间', + `upd_date` datetime NOT NULL COMMENT '最近一次修改时间', + `is_notice` smallint(6) NOT NULL COMMENT '是否需要通知默认是', + `rt_map` longblob NOT NULL COMMENT '返回数据', + PRIMARY KEY (`id`) USING BTREE, + INDEX `idx_iccid`(`iccid` ASC) USING BTREE, + INDEX `cd_code`(`cd_code` ASC, `iccid` ASC, `codeOn` ASC) USING BTREE, + INDEX `is_notice`(`is_notice` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '主要用于记录卡用量接口查询时错误记录' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_usage_reminder.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_usage_reminder.sql" new file mode 100644 index 0000000..0c80306 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_card_usage_reminder.sql" @@ -0,0 +1,41 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:18:29 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_card_usage_reminder +-- ---------------------------- +DROP TABLE IF EXISTS `yz_card_usage_reminder`; +CREATE TABLE `yz_card_usage_reminder` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `iccid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT 'iccid', + `offeringId` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资费id', + `offeringName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '资费激活名称', + `apnName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'APN 名称', + `totalAmount` double(10, 2) NOT NULL COMMENT '总量,单位:MB', + `useAmount` double(10, 2) NOT NULL COMMENT '使用量,单位:MB', + `remainAmount` double(10, 2) NOT NULL COMMENT '剩余量,单位:MB', + `percentage` double(6, 2) NOT NULL COMMENT '已用百分比', + `create_date` datetime NOT NULL COMMENT '创建时间', + `upd_date` datetime NOT NULL COMMENT '最近一次修改时间', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `id`(`id` ASC) USING BTREE, + INDEX `iccid`(`iccid` ASC, `offeringId` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 638804 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '上游返回套餐记录信息\r\n' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sms_bulk_business.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sms_bulk_business.sql" new file mode 100644 index 0000000..7e3bf43 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sms_bulk_business.sql" @@ -0,0 +1,41 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:20:40 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_sms_bulk_business +-- ---------------------------- +DROP TABLE IF EXISTS `yz_sms_bulk_business`; +CREATE TABLE `yz_sms_bulk_business` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `code` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '编号', + `create_time` datetime NOT NULL, + `update_time` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, + `start_time` datetime NULL DEFAULT NULL COMMENT '开始时间', + `end_time` datetime NULL DEFAULT NULL COMMENT '结束时间', + `task_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务名', + `url` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '任务下载地址 1,2,3', + `auth` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '任务创建人', + `agent_id` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '代理编号', + `type` int(11) NULL DEFAULT NULL COMMENT '类型', + `state_id` smallint(6) NOT NULL COMMENT '状态', + `message` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '短信内容-主表为单模板批量执行时插入,灵活发送时不插入', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 112 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '短信发送-批量任务主表' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_syn_card_info.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_syn_card_info.sql" new file mode 100644 index 0000000..c112723 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_syn_card_info.sql" @@ -0,0 +1,47 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:19:31 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_syn_card_info +-- ---------------------------- +DROP TABLE IF EXISTS `yz_syn_card_info`; +CREATE TABLE `yz_syn_card_info` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `msisdn` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '接入号', + `iccid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `imsi` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `activate_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '激活时间', + `open_date` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '开卡时间', + `create_date` datetime NOT NULL COMMENT '创建时间', + `update_date` datetime NULL DEFAULT NULL COMMENT '更新时间', + `syn_Time` datetime NULL DEFAULT NULL COMMENT '同步时间', + `channel_id` int(11) NOT NULL COMMENT '通道编号', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注', + `inconsistent_iccid` smallint(5) NOT NULL DEFAULT 0 COMMENT '是否 与 card_info 表 iccid不一致', + `is_new` smallint(5) NOT NULL DEFAULT 0 COMMENT '是否 需要新增到 card_info 表', + `groupId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '上游成员组id', + `custId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '客户id-[DX_CMP]', + `status_id` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '卡状态描述 -【DX-CMP】', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `msisdn`(`msisdn` ASC) USING BTREE, + INDEX `inconsistent_iccid`(`inconsistent_iccid` ASC, `is_new` ASC) USING BTREE, + INDEX `channel_id`(`channel_id` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 266456 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '上游返回-群组所属成员信息' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sys_logs.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sys_logs.sql" new file mode 100644 index 0000000..dda1169 --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_sys_logs.sql" @@ -0,0 +1,37 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:20:22 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_sys_logs +-- ---------------------------- +DROP TABLE IF EXISTS `yz_sys_logs`; +CREATE TABLE `yz_sys_logs` ( + `id` char(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'id', + `res_url` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '请求url', + `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', + `class_method` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '执行的类方法', + `ip` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'ip', + `request_args` longblob NOT NULL COMMENT '请求参数', + `response_args` longblob NOT NULL COMMENT '响应参数', + `user_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作人', + `project` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模块', + `action_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作名称' +) ENGINE = InnoDB AUTO_INCREMENT = 2009290 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统级日志' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_category.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_category.sql" new file mode 100644 index 0000000..c19a2be --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_category.sql" @@ -0,0 +1,35 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:19:47 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_wx_by_product_category +-- ---------------------------- +DROP TABLE IF EXISTS `yz_wx_by_product_category`; +CREATE TABLE `yz_wx_by_product_category` ( + `category_id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分类ID', + `category_name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分类名称', + `category_code` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分类编码', + `parent_id` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父分类ID', + `category_level` tinyint(4) NOT NULL DEFAULT 1 COMMENT '分类层级', + `category_status` tinyint(4) NOT NULL DEFAULT 1 COMMENT '分类状态', + `modified_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间', + PRIMARY KEY (`category_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; diff --git "a/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_info.sql" "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_info.sql" new file mode 100644 index 0000000..83a74bc --- /dev/null +++ "b/sql/\347\274\272\345\244\261sql\346\226\207\344\273\266-11-19/yz_wx_by_product_info.sql" @@ -0,0 +1,51 @@ +/* + Navicat Premium Data Transfer + + Source Server : 生产库 + Source Server Type : MySQL + Source Server Version : 80013 (8.0.13) + Source Host : iotlink.mysql.polardb.cn-chengdu.rds.aliyuncs.com:3306 + Source Schema : iotdb + + Target Server Type : MySQL + Target Server Version : 80013 (8.0.13) + File Encoding : 65001 + + Date: 19/11/2024 17:20:05 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for yz_wx_by_product_info +-- ---------------------------- +DROP TABLE IF EXISTS `yz_wx_by_product_info`; +CREATE TABLE `yz_wx_by_product_info` ( + `product_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '商品ID', + `product_core` char(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品编码', + `product_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '商品名称', + `bar_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '国条码', + `brand_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '品牌表的ID', + `one_category_id` smallint(5) UNSIGNED NOT NULL COMMENT '一级分类ID', + `two_category_id` smallint(5) UNSIGNED NULL DEFAULT NULL COMMENT '二级分类ID', + `three_category_id` smallint(5) UNSIGNED NULL DEFAULT NULL COMMENT '三级分类ID', + `supplier_id` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '商品的供应商ID', + `price` decimal(8, 2) NOT NULL COMMENT '商品销售价格', + `average_cost` decimal(18, 2) NULL DEFAULT NULL COMMENT '商品加权平均成本', + `publish_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '上下架状态:0下架1上架', + `audit_status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '审核状态:0未审核,1已审核', + `weight` float NULL DEFAULT NULL COMMENT '商品重量', + `length` float NULL DEFAULT NULL COMMENT '商品长度', + `height` float NULL DEFAULT NULL COMMENT '商品高度', + `width` float NULL DEFAULT NULL COMMENT '商品宽度', + `color_type` enum('红','黄','蓝','黑') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `production_date` datetime NULL DEFAULT NULL COMMENT '生产日期', + `shelf_life` int(11) NULL DEFAULT NULL COMMENT '商品有效期', + `descript` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '商品描述', + `indate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '商品录入时间', + `modified_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后修改时间', + PRIMARY KEY (`product_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '商品信息表' ROW_FORMAT = DYNAMIC; + +SET FOREIGN_KEY_CHECKS = 1; -- Gitee