sharding0.sql 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 自己的阿里云3年mysql
  4. Source Server Type : MySQL
  5. Source Server Version : 50734
  6. Source Host : 47.108.115.128:3306
  7. Source Schema : sharding0
  8. Target Server Type : MySQL
  9. Target Server Version : 50734
  10. File Encoding : 65001
  11. Date: 17/02/2022 15:13:14
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for t_order_2022
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `t_order_2022`;
  19. CREATE TABLE `t_order_2022` (
  20. `id` bigint(18) NOT NULL COMMENT '主键',
  21. `user_id` bigint(18) NOT NULL COMMENT '用户id',
  22. `order_num` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单编号',
  23. `money` decimal(20, 0) NULL DEFAULT NULL COMMENT '订单金额',
  24. `year` int(10) NULL DEFAULT NULL COMMENT '新增年份',
  25. `create_time` datetime(0) NULL DEFAULT NULL COMMENT '新增时间',
  26. PRIMARY KEY (`id`) USING BTREE
  27. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  28. -- ----------------------------
  29. -- Records of t_order_2022
  30. -- ----------------------------
  31. INSERT INTO `t_order_2022` VALUES (1494203246671671298, 1, '935', 438, 2022, '2022-01-03 00:00:00');
  32. INSERT INTO `t_order_2022` VALUES (1494203265957081090, 2, '669', 354, 2022, '2022-01-03 00:00:00');
  33. -- ----------------------------
  34. -- Table structure for t_order_2023
  35. -- ----------------------------
  36. DROP TABLE IF EXISTS `t_order_2023`;
  37. CREATE TABLE `t_order_2023` (
  38. `id` bigint(18) NOT NULL COMMENT '主键',
  39. `user_id` bigint(18) NOT NULL COMMENT '用户id',
  40. `order_num` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '订单编号',
  41. `money` decimal(20, 0) NULL DEFAULT NULL COMMENT '订单金额',
  42. `year` int(10) NULL DEFAULT NULL COMMENT '新增年份',
  43. `create_time` datetime(0) NULL DEFAULT NULL COMMENT '新增时间',
  44. PRIMARY KEY (`id`) USING BTREE
  45. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  46. -- ----------------------------
  47. -- Table structure for t_user_2022
  48. -- ----------------------------
  49. DROP TABLE IF EXISTS `t_user_2022`;
  50. CREATE TABLE `t_user_2022` (
  51. `id` bigint(18) NOT NULL AUTO_INCREMENT COMMENT '主键',
  52. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
  53. `age` int(11) NULL DEFAULT NULL COMMENT '年龄',
  54. `year` int(10) NULL DEFAULT NULL COMMENT '新增年份',
  55. `create_time` datetime(0) NULL DEFAULT NULL COMMENT '新增时间',
  56. PRIMARY KEY (`id`) USING BTREE
  57. ) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  58. -- ----------------------------
  59. -- Records of t_user_2022
  60. -- ----------------------------
  61. INSERT INTO `t_user_2022` VALUES (4, 'Rubenmouth', 824, 2022, '2022-02-03 00:00:00');
  62. -- ----------------------------
  63. -- Table structure for t_user_2023
  64. -- ----------------------------
  65. DROP TABLE IF EXISTS `t_user_2023`;
  66. CREATE TABLE `t_user_2023` (
  67. `id` bigint(18) NOT NULL AUTO_INCREMENT COMMENT '主键',
  68. `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
  69. `age` int(11) NULL DEFAULT NULL COMMENT '年龄',
  70. `year` int(10) NULL DEFAULT NULL COMMENT '新增年份',
  71. `create_time` datetime(0) NULL DEFAULT NULL COMMENT '新增时间',
  72. PRIMARY KEY (`id`) USING BTREE
  73. ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  74. -- ----------------------------
  75. -- Records of t_user_2023
  76. -- ----------------------------
  77. INSERT INTO `t_user_2023` VALUES (2, 'Carlsbad', 829, 2023, '2023-02-03 00:00:00');
  78. SET FOREIGN_KEY_CHECKS = 1;