install.sql 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : 本地开发
  4. Source Server Version : 50731
  5. Source Host : localhost:3306
  6. Source Database : wechat
  7. Target Server Type : MYSQL
  8. Target Server Version : 50731
  9. File Encoding : 65001
  10. Date: 2020-12-18 10:31:08
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for ai_bestbao_ask
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `ai_bestbao_ask`;
  17. CREATE TABLE `ai_bestbao_ask` (
  18. `id` int(11) NOT NULL AUTO_INCREMENT,
  19. `member_miniapp_id` int(11) DEFAULT NULL,
  20. `category_id` int(11) DEFAULT NULL,
  21. `is_ad` tinyint(2) DEFAULT NULL,
  22. `ad_img` varchar(255) DEFAULT NULL,
  23. `is_top` tinyint(2) DEFAULT '0',
  24. `title` varchar(255) DEFAULT NULL,
  25. `note` varchar(255) DEFAULT NULL,
  26. `content` text,
  27. `answer` text,
  28. `price` decimal(10,2) DEFAULT '0.00',
  29. `like` int(11) DEFAULT '0',
  30. `sort` int(11) DEFAULT '0',
  31. `update_time` int(11) DEFAULT NULL,
  32. `create_time` int(11) DEFAULT NULL,
  33. PRIMARY KEY (`id`),
  34. UNIQUE KEY `ID` (`id`) USING BTREE
  35. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='知识库';
  36. -- ----------------------------
  37. -- Table structure for ai_bestbao_ask_category
  38. -- ----------------------------
  39. DROP TABLE IF EXISTS `ai_bestbao_ask_category`;
  40. CREATE TABLE `ai_bestbao_ask_category` (
  41. `id` int(11) NOT NULL AUTO_INCREMENT,
  42. `member_miniapp_id` int(11) DEFAULT NULL,
  43. `title` varchar(50) DEFAULT NULL,
  44. `picture` varchar(100) DEFAULT NULL,
  45. `sort` int(11) DEFAULT '0',
  46. `update_time` int(11) DEFAULT NULL,
  47. `create_time` int(11) DEFAULT NULL,
  48. PRIMARY KEY (`id`),
  49. UNIQUE KEY `ID` (`id`) USING BTREE
  50. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品目录';
  51. -- ----------------------------
  52. -- Table structure for ai_bestbao_ask_order
  53. -- ----------------------------
  54. DROP TABLE IF EXISTS `ai_bestbao_ask_order`;
  55. CREATE TABLE `ai_bestbao_ask_order` (
  56. `id` int(11) NOT NULL AUTO_INCREMENT,
  57. `member_miniapp_id` int(11) DEFAULT NULL,
  58. `ask_id` int(11) DEFAULT NULL,
  59. `uid` int(11) DEFAULT NULL,
  60. `amount` decimal(10,0) DEFAULT NULL,
  61. `paid_at` tinyint(1) DEFAULT '0',
  62. `order_no` varchar(255) DEFAULT NULL,
  63. `paid_no` varchar(255) DEFAULT NULL,
  64. `paid_time` int(11) DEFAULT NULL,
  65. `update_time` int(11) DEFAULT NULL,
  66. `create_time` int(11) DEFAULT NULL,
  67. PRIMARY KEY (`id`),
  68. UNIQUE KEY `ID` (`id`) USING BTREE
  69. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='购买列表';
  70. -- ----------------------------
  71. -- Table structure for ai_bestbao_card
  72. -- ----------------------------
  73. DROP TABLE IF EXISTS `ai_bestbao_card`;
  74. CREATE TABLE `ai_bestbao_card` (
  75. `id` int(11) NOT NULL AUTO_INCREMENT,
  76. `member_miniapp_id` int(11) DEFAULT NULL,
  77. `title` varchar(50) DEFAULT NULL,
  78. `content` text,
  79. `logo` varchar(100) DEFAULT NULL,
  80. `phone` varchar(50) DEFAULT '0',
  81. `email` varchar(50) DEFAULT NULL,
  82. `address` varchar(255) DEFAULT NULL,
  83. `longitude` decimal(10,7) DEFAULT NULL,
  84. `latitude` decimal(10,7) DEFAULT NULL,
  85. `update_time` int(11) DEFAULT NULL,
  86. `create_time` int(11) DEFAULT NULL,
  87. PRIMARY KEY (`id`),
  88. UNIQUE KEY `ID` (`id`) USING BTREE
  89. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='公司名片';
  90. -- ----------------------------
  91. -- Table structure for ai_bestbao_category
  92. -- ----------------------------
  93. DROP TABLE IF EXISTS `ai_bestbao_category`;
  94. CREATE TABLE `ai_bestbao_category` (
  95. `id` int(11) NOT NULL AUTO_INCREMENT,
  96. `member_miniapp_id` int(11) DEFAULT NULL,
  97. `title` varchar(50) DEFAULT NULL,
  98. `note` varchar(50) DEFAULT NULL,
  99. `picture` varchar(100) DEFAULT NULL,
  100. `sort` int(11) DEFAULT '0',
  101. `update_time` int(11) DEFAULT NULL,
  102. `create_time` int(11) DEFAULT NULL,
  103. PRIMARY KEY (`id`),
  104. UNIQUE KEY `ID` (`id`) USING BTREE
  105. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品目录';
  106. -- ----------------------------
  107. -- Table structure for ai_bestbao_config
  108. -- ----------------------------
  109. DROP TABLE IF EXISTS `ai_bestbao_config`;
  110. CREATE TABLE `ai_bestbao_config` (
  111. `id` int(11) NOT NULL AUTO_INCREMENT,
  112. `member_miniapp_id` int(11) DEFAULT NULL,
  113. `type` tinyint(2) DEFAULT NULL,
  114. `price` decimal(10,2) DEFAULT NULL,
  115. `create_time` int(11) DEFAULT NULL,
  116. PRIMARY KEY (`id`),
  117. UNIQUE KEY `ID` (`id`) USING BTREE
  118. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置';
  119. -- ----------------------------
  120. -- Table structure for ai_bestbao_engineer
  121. -- ----------------------------
  122. DROP TABLE IF EXISTS `ai_bestbao_engineer`;
  123. CREATE TABLE `ai_bestbao_engineer` (
  124. `id` int(11) NOT NULL AUTO_INCREMENT,
  125. `member_miniapp_id` int(11) DEFAULT NULL,
  126. `uid` int(11) DEFAULT NULL,
  127. `title` varchar(50) DEFAULT NULL,
  128. `occupation` varchar(50) DEFAULT NULL,
  129. `about` varchar(255) DEFAULT NULL,
  130. `level` tinyint(2) DEFAULT '1',
  131. `sort` int(11) DEFAULT '0',
  132. `update_time` int(11) DEFAULT NULL,
  133. `create_time` int(11) DEFAULT NULL,
  134. PRIMARY KEY (`id`),
  135. UNIQUE KEY `ID` (`id`) USING BTREE
  136. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='工程师';
  137. -- ----------------------------
  138. -- Table structure for ai_bestbao_information
  139. -- ----------------------------
  140. DROP TABLE IF EXISTS `ai_bestbao_information`;
  141. CREATE TABLE `ai_bestbao_information` (
  142. `id` int(11) NOT NULL AUTO_INCREMENT,
  143. `member_miniapp_id` int(11) DEFAULT NULL,
  144. `title` varchar(50) DEFAULT NULL,
  145. `note` varchar(255) DEFAULT NULL,
  146. `picture` varchar(100) DEFAULT NULL,
  147. `content` text,
  148. `update_time` int(11) DEFAULT NULL,
  149. `create_time` int(11) DEFAULT NULL,
  150. PRIMARY KEY (`id`),
  151. UNIQUE KEY `ID` (`id`) USING BTREE
  152. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='文章内容';
  153. -- ----------------------------
  154. -- Table structure for ai_bestbao_order
  155. -- ----------------------------
  156. DROP TABLE IF EXISTS `ai_bestbao_order`;
  157. CREATE TABLE `ai_bestbao_order` (
  158. `id` int(11) NOT NULL AUTO_INCREMENT,
  159. `member_miniapp_id` int(11) DEFAULT NULL,
  160. `uid` int(11) DEFAULT NULL,
  161. `engineer_id` int(11) DEFAULT '0',
  162. `product_id` int(11) DEFAULT NULL,
  163. `state` tinyint(2) DEFAULT '0',
  164. `title` varchar(50) DEFAULT NULL,
  165. `question` varchar(255) DEFAULT NULL,
  166. `real_question` varchar(255) DEFAULT NULL,
  167. `answer` varchar(255) DEFAULT NULL,
  168. `accessories` varchar(255) DEFAULT NULL,
  169. `imgs` text,
  170. `sound` varchar(255) DEFAULT NULL COMMENT '录音文件',
  171. `video` varchar(255) DEFAULT NULL COMMENT '视频',
  172. `update_time` int(11) DEFAULT NULL,
  173. `create_time` int(11) DEFAULT NULL,
  174. `realname` varchar(255) DEFAULT NULL,
  175. `phone` varchar(255) DEFAULT NULL,
  176. `address` varchar(255) DEFAULT NULL,
  177. `urgent` tinyint(2) DEFAULT '0',
  178. `buy_types` varchar(255) DEFAULT NULL,
  179. `server_types` varchar(255) DEFAULT NULL,
  180. `accessories_price` decimal(10,2) DEFAULT NULL,
  181. `service_price` decimal(10,2) DEFAULT NULL,
  182. `discount_price` decimal(10,2) DEFAULT NULL,
  183. `price` decimal(10,2) DEFAULT NULL,
  184. `order_no` varchar(100) DEFAULT NULL,
  185. `solve_time` int(11) DEFAULT NULL,
  186. `rate` tinyint(4) DEFAULT '0',
  187. PRIMARY KEY (`id`),
  188. UNIQUE KEY `ID` (`id`) USING BTREE
  189. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  190. -- ----------------------------
  191. -- Table structure for ai_bestbao_process
  192. -- ----------------------------
  193. DROP TABLE IF EXISTS `ai_bestbao_process`;
  194. CREATE TABLE `ai_bestbao_process` (
  195. `id` int(11) NOT NULL AUTO_INCREMENT,
  196. `member_miniapp_id` int(11) DEFAULT NULL,
  197. `order_id` int(11) DEFAULT NULL,
  198. `engineer_id` int(11) DEFAULT NULL,
  199. `remarks` varchar(255) DEFAULT NULL,
  200. `create_time` int(11) DEFAULT NULL,
  201. PRIMARY KEY (`id`),
  202. UNIQUE KEY `ID` (`id`) USING BTREE
  203. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='工程师流转';
  204. -- ----------------------------
  205. -- Table structure for ai_bestbao_product
  206. -- ----------------------------
  207. DROP TABLE IF EXISTS `ai_bestbao_product`;
  208. CREATE TABLE `ai_bestbao_product` (
  209. `id` int(11) NOT NULL AUTO_INCREMENT,
  210. `member_miniapp_id` int(11) DEFAULT NULL,
  211. `category_id` int(11) DEFAULT NULL,
  212. `code` varchar(100) DEFAULT NULL,
  213. `title` varchar(255) DEFAULT NULL,
  214. `images` varchar(255) DEFAULT NULL,
  215. `note` varchar(255) DEFAULT NULL,
  216. `sort` int(11) DEFAULT '0',
  217. `update_time` int(11) DEFAULT NULL,
  218. `create_time` int(11) DEFAULT NULL,
  219. PRIMARY KEY (`id`)
  220. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  221. SET FOREIGN_KEY_CHECKS=1;