导excel的.sql 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /*
  2. Navicat Premium Data Transfer
  3. Source Server : 192.168.1.173
  4. Source Server Type : MySQL
  5. Source Server Version : 50724
  6. Source Host : 192.168.1.173:3306
  7. Source Schema : reptileorder
  8. Target Server Type : MySQL
  9. Target Server Version : 50724
  10. File Encoding : 65001
  11. Date: 15/12/2020 14:36:47
  12. */
  13. SET NAMES utf8mb4;
  14. SET FOREIGN_KEY_CHECKS = 0;
  15. -- ----------------------------
  16. -- Table structure for hm_excel_pay_order
  17. -- ----------------------------
  18. DROP TABLE IF EXISTS `hm_excel_pay_order`;
  19. CREATE TABLE `hm_excel_pay_order` (
  20. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  21. `pay_mast_order_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '支付主单号',
  22. `service_deliver_place` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务交付地点',
  23. `service_deliver_mode` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务交付方式',
  24. `service_performance_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务履约类型',
  25. `store_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '经营店编码',
  26. `store_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '经营店名称',
  27. `bill_amount` double(10, 2) NULL DEFAULT NULL COMMENT '开单金额',
  28. `payment_amount` double(10, 2) NULL DEFAULT NULL COMMENT '实付金额',
  29. `product_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '商品名称',
  30. `consignee_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '收货人',
  31. `consignee_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '收货电话',
  32. `user_nick_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '用户昵称',
  33. `user_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '用户手机',
  34. `shopping_guide` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '导购员',
  35. `billing_time` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '开单时间',
  36. `payment_time` datetime(0) NULL DEFAULT NULL COMMENT '支付时间',
  37. `operate` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '实际操作者',
  38. `rela_service_mast_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '关联服务主单',
  39. `tao_transaction_mast_order_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '淘系交易主单号',
  40. `hm_transaction_mast_order_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '盒马交易主单号',
  41. `payment_no_state` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '支付单状态',
  42. `booked_remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约备注',
  43. `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP,
  44. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  45. `attr1` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  46. PRIMARY KEY (`id`) USING BTREE,
  47. INDEX `index_pay_mast_order_no`(`pay_mast_order_no`) USING BTREE
  48. ) ENGINE = InnoDB AUTO_INCREMENT = 24391 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
  49. -- ----------------------------
  50. -- Table structure for hm_excel_sales_order
  51. -- ----------------------------
  52. DROP TABLE IF EXISTS `hm_excel_sales_order`;
  53. CREATE TABLE `hm_excel_sales_order` (
  54. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  55. `sales_order_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '订单号',
  56. `supplier_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '供应商名称',
  57. `store_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '门店名称',
  58. `product_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '商品名称',
  59. `pay_time` datetime(0) NULL DEFAULT NULL COMMENT '支付时间',
  60. `refund_time` datetime(0) NULL DEFAULT NULL COMMENT '退款时间',
  61. `sales_channel` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '销售渠道',
  62. `stock_unity` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '库存单位',
  63. `product_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '商品编码',
  64. `supplier_code` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '供应商编码',
  65. `sales_amount` double(10, 2) NULL DEFAULT NULL COMMENT '销售数量',
  66. `price_tax` double(10, 2) NULL DEFAULT NULL COMMENT '含税单价',
  67. `price_money` double(10, 2) NULL DEFAULT NULL COMMENT '含税金额',
  68. `refund_money` double(10, 2) NULL DEFAULT NULL COMMENT '退款金额',
  69. `coupon_detailed` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '优惠券明细',
  70. `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP,
  71. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  72. `attr1` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  73. PRIMARY KEY (`id`) USING BTREE
  74. ) ENGINE = InnoDB AUTO_INCREMENT = 7780 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
  75. -- ----------------------------
  76. -- Table structure for hm_excel_service_order
  77. -- ----------------------------
  78. DROP TABLE IF EXISTS `hm_excel_service_order`;
  79. CREATE TABLE `hm_excel_service_order` (
  80. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  81. `service_order_no` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务订单号',
  82. `store_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '门店名称',
  83. `service_item` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务项',
  84. `booked_person` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约人',
  85. `booked_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约手机号',
  86. `booked_address` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '上门地址',
  87. `booked_time` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约时间',
  88. `service_order_create_time` datetime(0) NULL DEFAULT NULL COMMENT '订单创建时间',
  89. `booked_user_id` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约用户id',
  90. `rela_worker_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '关联工单',
  91. `rela_bi_order_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '关联业务订单号',
  92. `bi_order_pay` double(10, 2) NULL DEFAULT NULL COMMENT '业务订单实付',
  93. `rela_channel_order_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '关联渠道订单号',
  94. `service_mast_order_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务主订单号',
  95. `write_off_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '核销券码',
  96. `cancel_reason` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '取消原因',
  97. `user_booked_remark` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '用户预约备注',
  98. `operate_remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '运营备注',
  99. `cancel_type` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '取消类型',
  100. `service_order_state` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '状态',
  101. `service_scene` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务场景',
  102. `service_performance_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务履约类型',
  103. `service_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务类型',
  104. `merchants` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '商户',
  105. `technician_remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '技师备注',
  106. `payment_no` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '付款单',
  107. `create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  108. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  109. `attr1` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  110. PRIMARY KEY (`id`) USING BTREE,
  111. INDEX `index_service_order_no`(`service_order_no`) USING BTREE
  112. ) ENGINE = InnoDB AUTO_INCREMENT = 2885 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
  113. -- ----------------------------
  114. -- Table structure for hm_excel_service_work_order
  115. -- ----------------------------
  116. DROP TABLE IF EXISTS `hm_excel_service_work_order`;
  117. CREATE TABLE `hm_excel_service_work_order` (
  118. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  119. `worker_order_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '工单号',
  120. `service_station` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务站',
  121. `rela_service_order_no` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '关联服务订单',
  122. `worker_order_type` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '工单类型',
  123. `worker_time_consuming` int(5) NULL DEFAULT 0 COMMENT '工单耗时',
  124. `service_provider` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务者',
  125. `service_provider_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务者手机',
  126. `service_item` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '服务项',
  127. `booked_time` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约时间',
  128. `booked_address` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约地址',
  129. `customer_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '客户姓名',
  130. `booked_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '预约手机号',
  131. `worker_order_objective` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '工单目的',
  132. `rela_bill` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '关联单据',
  133. `last_operate_person` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '最后操作人',
  134. `work_order_state` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '状态',
  135. `technician_remark` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '技师备注',
  136. `agreement_sheet` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '协议单',
  137. `payment_note` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '支付单',
  138. `usage_desc` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '用途描述',
  139. `cancel_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '取消类型',
  140. `crate_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  141. `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  142. `attr1` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL,
  143. PRIMARY KEY (`id`) USING BTREE,
  144. INDEX `index_worker_order_no`(`worker_order_no`) USING BTREE
  145. ) ENGINE = InnoDB AUTO_INCREMENT = 7017 CHARACTER SET = utf8 COLLATE = utf8_unicode_ci ROW_FORMAT = Dynamic;
  146. SET FOREIGN_KEY_CHECKS = 1;