Explorar o código

离线包状态

lyhzzz hai 5 meses
pai
achega
9a0eba3e60
Modificáronse 1 ficheiros con 88 adicións e 7 borrados
  1. 88 7
      doc/update1.10.9.sql

+ 88 - 7
doc/update1.10.9.sql

@@ -1,11 +1,92 @@
-CREATE TABLE `4dkankan_v4`.`t_product`  (
+/*
+ Navicat Premium Data Transfer
+
+ Source Server         : 4dkk120.24.144.164
+ Source Server Type    : MySQL
+ Source Server Version : 80025
+ Source Host           : 120.24.144.164:3306
+ Source Schema         : 4dkankan_v4
+
+ Target Server Type    : MySQL
+ Target Server Version : 80025
+ File Encoding         : 65001
+
+ Date: 17/03/2025 15:53:32
+*/
+
+SET NAMES utf8mb4;
+SET FOREIGN_KEY_CHECKS = 0;
+
+-- ----------------------------
+-- Table structure for t_product
+-- ----------------------------
+DROP TABLE IF EXISTS `t_product`;
+CREATE TABLE `t_product`  (
   `id` int NOT NULL AUTO_INCREMENT,
+  `type_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
   `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
   `price` decimal(10, 2) NULL DEFAULT NULL COMMENT '单价',
-  `scene_limit_count` int NULL DEFAULT NULL COMMENT '每个场景限购数量',
-  `scene_free_count` int NULL DEFAULT NULL COMMENT '每个场景免费数量',
+  `limit_count` int NULL DEFAULT NULL COMMENT '限购数量',
+  `free_count` int NULL DEFAULT NULL COMMENT '免费数量',
   `rec_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'A',
-  `create_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0),
-  `update_time` timestamp(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0),
-  PRIMARY KEY (`id`)
-);
+  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of t_product
+-- ----------------------------
+INSERT INTO `t_product` VALUES (1, 'cooperation', '协作', 0.01, 5, 1, 'A', '2025-03-13 11:48:36', '2025-03-13 11:49:05');
+
+-- ----------------------------
+-- Table structure for t_product_cooperation
+-- ----------------------------
+DROP TABLE IF EXISTS `t_product_cooperation`;
+CREATE TABLE `t_product_cooperation`  (
+  `id` int NOT NULL AUTO_INCREMENT,
+  `order_sn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
+  `num` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
+  `cooperation_user_id` int NULL DEFAULT NULL,
+  `rec_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT 'A',
+  `create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
+  `update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of t_product_cooperation
+-- ----------------------------
+
+-- ----------------------------
+-- Table structure for t_product_order
+-- ----------------------------
+DROP TABLE IF EXISTS `t_product_order`;
+CREATE TABLE `t_product_order`  (
+  `id` int NOT NULL AUTO_INCREMENT,
+  `product_id` int NULL DEFAULT NULL,
+  `order_sn` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '订单号',
+  `amount` decimal(10, 2) NULL DEFAULT NULL,
+  `number` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '支付宝的交易号或者微信支付订单号',
+  `pay_type` tinyint NOT NULL DEFAULT -1 COMMENT '付款方式,0表示微信,1表示支付宝,2表示paypal,3表示其他',
+  `pay_status` tinyint NULL DEFAULT 0 COMMENT '状态,0或-1表示未付款,-2表示已退款,1表示已付款',
+  `trade_time` datetime NULL DEFAULT NULL COMMENT '交易时间',
+  `user_id` bigint NULL DEFAULT NULL COMMENT '用户表t_user的id',
+  `count` tinyint NULL DEFAULT NULL COMMENT '购买数量',
+  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
+  `rec_status` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '记录的状态,A: 生效,I: 禁用',
+  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
+  `time_zone_off` int NULL DEFAULT 0 COMMENT '时区差,单位分钟',
+  PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
+
+-- ----------------------------
+-- Records of t_product_order
+-- ----------------------------
+INSERT INTO `t_product_order` VALUES (1, 1, '20250314162258529', 0.01, '', -1, 0, NULL, 477, 2, NULL, NULL, NULL, 0);
+INSERT INTO `t_product_order` VALUES (2, 1, '20250314162844933', 0.01, '', -1, 0, NULL, 477, 2, NULL, NULL, NULL, 0);
+INSERT INTO `t_product_order` VALUES (3, 1, '20250314170833882', 0.01, '', -1, 0, NULL, 477, 1, NULL, NULL, NULL, 0);
+INSERT INTO `t_product_order` VALUES (4, 1, '20250314173956466', 0.01, '', -1, 0, NULL, 477, 1, NULL, NULL, NULL, 0);
+INSERT INTO `t_product_order` VALUES (5, 1, '20250314174019899', 0.01, '', -1, 0, NULL, 477, 1, NULL, NULL, NULL, 0);
+
+SET FOREIGN_KEY_CHECKS = 1;