install.sql 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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:30:33
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for ai_ais_city
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `ai_ais_city`;
  17. CREATE TABLE `ai_ais_city` (
  18. `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  19. `code` bigint(12) DEFAULT NULL COMMENT '行政区划代码',
  20. `name` varchar(32) DEFAULT NULL COMMENT '名称',
  21. `parent_id` bigint(11) DEFAULT NULL COMMENT '上级id',
  22. `level` varchar(32) DEFAULT NULL COMMENT 'level_id',
  23. `sort` int(11) DEFAULT '0',
  24. PRIMARY KEY (`id`)
  25. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  26. -- ----------------------------
  27. -- Table structure for ai_citys
  28. -- ----------------------------
  29. DROP TABLE IF EXISTS `ai_citys`;
  30. CREATE TABLE `ai_citys` (
  31. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  32. `type_id` int(11) DEFAULT NULL,
  33. `cate_id` int(11) DEFAULT NULL,
  34. `uid` bigint(20) DEFAULT NULL,
  35. `member_miniapp_id` int(11) DEFAULT NULL,
  36. `themes` text,
  37. `fields` text,
  38. `telphone` varchar(255) DEFAULT NULL,
  39. `url_slogan` varchar(255) DEFAULT NULL,
  40. `links` varchar(255) DEFAULT NULL,
  41. `is_get` tinyint(2) DEFAULT '0' COMMENT '是否获取用户信息',
  42. `send_price` decimal(10,2) DEFAULT NULL,
  43. `price` decimal(10,2) DEFAULT '0.00' COMMENT '获取用户价格',
  44. `video` varchar(255) DEFAULT NULL,
  45. `images` text,
  46. `is_top` int(11) DEFAULT '0',
  47. `topday` int(11) DEFAULT NULL,
  48. `top_money` decimal(10,2) DEFAULT '0.00',
  49. `is_pay` tinyint(1) DEFAULT '0',
  50. `is_lock` tinyint(1) DEFAULT '0',
  51. `is_end` tinyint(1) DEFAULT '0' COMMENT '已结束',
  52. `is_pay_time` int(11) DEFAULT '0',
  53. `order_no` varchar(100) DEFAULT NULL,
  54. `sort` int(11) DEFAULT '0',
  55. `views` int(11) DEFAULT '0' COMMENT '阅读人数',
  56. `like` int(11) DEFAULT '0' COMMENT '点赞人数',
  57. `like_face` text,
  58. `reply_num` int(11) DEFAULT '0' COMMENT '评论人数',
  59. `create_time` int(11) DEFAULT NULL,
  60. PRIMARY KEY (`id`)
  61. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  62. -- ----------------------------
  63. -- Table structure for ai_citys_adwords
  64. -- ----------------------------
  65. DROP TABLE IF EXISTS `ai_citys_adwords`;
  66. CREATE TABLE `ai_citys_adwords` (
  67. `id` int(11) NOT NULL AUTO_INCREMENT,
  68. `member_miniapp_id` int(11) DEFAULT '0',
  69. `open_type` varchar(50) DEFAULT NULL,
  70. `group` varchar(100) DEFAULT NULL,
  71. `title` varchar(50) DEFAULT NULL,
  72. `link` varchar(200) DEFAULT NULL,
  73. `picture` varchar(255) DEFAULT NULL,
  74. `sort` int(11) DEFAULT '0',
  75. `update_time` int(11) DEFAULT NULL,
  76. `create_time` int(11) DEFAULT NULL,
  77. PRIMARY KEY (`id`)
  78. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  79. -- ----------------------------
  80. -- Table structure for ai_citys_cate
  81. -- ----------------------------
  82. DROP TABLE IF EXISTS `ai_citys_cate`;
  83. CREATE TABLE `ai_citys_cate` (
  84. `id` int(11) NOT NULL AUTO_INCREMENT,
  85. `member_miniapp_id` int(11) DEFAULT NULL,
  86. `title` varchar(50) DEFAULT NULL,
  87. `name` varchar(50) DEFAULT NULL,
  88. `picture` varchar(100) DEFAULT NULL,
  89. `price` decimal(10,2) DEFAULT '0.00',
  90. `phone` decimal(10,2) DEFAULT '0.00',
  91. `tpl_id` int(11) DEFAULT NULL,
  92. `sort` int(11) DEFAULT '0',
  93. `update_time` int(11) DEFAULT NULL,
  94. `create_time` int(11) DEFAULT NULL,
  95. PRIMARY KEY (`id`),
  96. UNIQUE KEY `ID` (`id`) USING BTREE
  97. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='信息栏目';
  98. -- ----------------------------
  99. -- Table structure for ai_citys_config
  100. -- ----------------------------
  101. DROP TABLE IF EXISTS `ai_citys_config`;
  102. CREATE TABLE `ai_citys_config` (
  103. `id` int(11) NOT NULL AUTO_INCREMENT,
  104. `member_miniapp_id` int(11) DEFAULT NULL,
  105. `top` varchar(255) DEFAULT NULL COMMENT '置顶',
  106. `charge` tinyint(4) DEFAULT '0',
  107. `vip` int(11) DEFAULT '0',
  108. `phone` decimal(10,2) DEFAULT '0.00',
  109. `mch_id` int(10) DEFAULT NULL,
  110. PRIMARY KEY (`id`)
  111. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  112. -- ----------------------------
  113. -- Table structure for ai_citys_follow
  114. -- ----------------------------
  115. DROP TABLE IF EXISTS `ai_citys_follow`;
  116. CREATE TABLE `ai_citys_follow` (
  117. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  118. `uid` int(11) DEFAULT NULL,
  119. `like_uid` int(11) DEFAULT NULL,
  120. PRIMARY KEY (`id`)
  121. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='关注与取消';
  122. -- ----------------------------
  123. -- Table structure for ai_citys_mp
  124. -- ----------------------------
  125. DROP TABLE IF EXISTS `ai_citys_mp`;
  126. CREATE TABLE `ai_citys_mp` (
  127. `id` int(11) NOT NULL AUTO_INCREMENT,
  128. `member_miniapp_id` int(11) DEFAULT NULL,
  129. `uid` bigint(20) DEFAULT NULL,
  130. `logo` varchar(255) DEFAULT NULL,
  131. `skin` varchar(255) DEFAULT NULL,
  132. `title` varchar(255) DEFAULT NULL,
  133. `note` varchar(255) DEFAULT NULL,
  134. `tags` text,
  135. `fans` int(255) DEFAULT '0',
  136. `is_vip` tinyint(1) DEFAULT '0',
  137. `is_apply` tinyint(1) DEFAULT '0',
  138. `vip_title` varchar(100) DEFAULT NULL,
  139. `vip_about` varchar(255) DEFAULT NULL,
  140. `vip_time` int(11) DEFAULT NULL,
  141. `reg_time` int(11) DEFAULT NULL,
  142. `is_lock` tinyint(1) DEFAULT '0',
  143. PRIMARY KEY (`id`)
  144. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  145. -- ----------------------------
  146. -- Table structure for ai_citys_order
  147. -- ----------------------------
  148. DROP TABLE IF EXISTS `ai_citys_order`;
  149. CREATE TABLE `ai_citys_order` (
  150. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  151. `member_miniapp_id` int(11) DEFAULT NULL,
  152. `info_id` int(11) DEFAULT NULL,
  153. `info_uid` int(11) DEFAULT NULL,
  154. `uid` int(11) DEFAULT NULL,
  155. `status` tinyint(1) DEFAULT '0',
  156. `is_del` tinyint(1) DEFAULT '0',
  157. `phone` varchar(255) DEFAULT NULL,
  158. `amount` decimal(10,2) DEFAULT '0.00' COMMENT '单商品价格总额',
  159. `order_no` varchar(50) DEFAULT NULL,
  160. `paid_at` tinyint(1) DEFAULT '0',
  161. `paid_time` int(11) DEFAULT NULL,
  162. `paid_no` varchar(255) DEFAULT NULL,
  163. `message` varchar(255) DEFAULT NULL,
  164. `fields` text,
  165. `cache` text,
  166. `create_time` int(11) DEFAULT NULL,
  167. PRIMARY KEY (`id`),
  168. UNIQUE KEY `ORDER_NO` (`order_no`) USING BTREE,
  169. KEY `IS_DEL` (`is_del`) USING BTREE,
  170. KEY `STATUS` (`status`) USING BTREE
  171. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  172. -- ----------------------------
  173. -- Table structure for ai_citys_page
  174. -- ----------------------------
  175. DROP TABLE IF EXISTS `ai_citys_page`;
  176. CREATE TABLE `ai_citys_page` (
  177. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  178. `member_miniapp_id` int(11) DEFAULT NULL,
  179. `phone` varchar(255) DEFAULT NULL COMMENT '客服电话',
  180. `disclaimer` text COMMENT '免责申明',
  181. `fraud` text,
  182. `about` text COMMENT '关于我们',
  183. `agreement` text COMMENT '服务协议',
  184. PRIMARY KEY (`id`)
  185. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  186. -- ----------------------------
  187. -- Table structure for ai_citys_phone
  188. -- ----------------------------
  189. DROP TABLE IF EXISTS `ai_citys_phone`;
  190. CREATE TABLE `ai_citys_phone` (
  191. `id` int(11) NOT NULL AUTO_INCREMENT,
  192. `uid` int(11) DEFAULT NULL,
  193. `info_id` int(11) DEFAULT NULL,
  194. `price` decimal(10,2) DEFAULT NULL,
  195. `order_no` varchar(50) CHARACTER SET utf8 DEFAULT NULL,
  196. `paid_at` tinyint(1) DEFAULT '0',
  197. `paid_time` int(11) DEFAULT NULL,
  198. `paid_no` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  199. PRIMARY KEY (`id`)
  200. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  201. -- ----------------------------
  202. -- Table structure for ai_citys_reply
  203. -- ----------------------------
  204. DROP TABLE IF EXISTS `ai_citys_reply`;
  205. CREATE TABLE `ai_citys_reply` (
  206. `id` int(11) NOT NULL AUTO_INCREMENT,
  207. `member_miniapp_id` int(11) DEFAULT NULL,
  208. `uid` bigint(20) DEFAULT NULL,
  209. `info_id` int(11) DEFAULT NULL,
  210. `reply` varchar(255) DEFAULT NULL,
  211. `like` int(11) DEFAULT '0',
  212. `create_time` int(11) DEFAULT NULL,
  213. `state` tinyint(1) DEFAULT '0',
  214. PRIMARY KEY (`id`)
  215. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  216. -- ----------------------------
  217. -- Table structure for ai_citys_share
  218. -- ----------------------------
  219. DROP TABLE IF EXISTS `ai_citys_share`;
  220. CREATE TABLE `ai_citys_share` (
  221. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  222. `uid` bigint(20) DEFAULT NULL,
  223. `info_id` bigint(20) DEFAULT NULL,
  224. `views` int(11) DEFAULT NULL,
  225. `times` int(11) DEFAULT NULL,
  226. PRIMARY KEY (`id`)
  227. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  228. -- ----------------------------
  229. -- Table structure for ai_citys_tpl
  230. -- ----------------------------
  231. DROP TABLE IF EXISTS `ai_citys_tpl`;
  232. CREATE TABLE `ai_citys_tpl` (
  233. `id` int(11) NOT NULL AUTO_INCREMENT,
  234. `member_miniapp_id` int(11) DEFAULT NULL,
  235. `name` varchar(20) DEFAULT NULL,
  236. `is_shop` tinyint(1) DEFAULT '0',
  237. `button_name` varchar(20) DEFAULT NULL,
  238. `tips` varchar(255) DEFAULT NULL,
  239. `users` text,
  240. `fields` text,
  241. `update_time` int(11) DEFAULT NULL,
  242. PRIMARY KEY (`id`)
  243. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品规格';
  244. -- ----------------------------
  245. -- Table structure for ai_citys_type
  246. -- ----------------------------
  247. DROP TABLE IF EXISTS `ai_citys_type`;
  248. CREATE TABLE `ai_citys_type` (
  249. `id` int(11) NOT NULL AUTO_INCREMENT,
  250. `member_miniapp_id` int(11) DEFAULT NULL,
  251. `title` varchar(50) DEFAULT NULL,
  252. `sort` int(11) DEFAULT '0',
  253. `phone` decimal(10,2) DEFAULT '0.00',
  254. `price` decimal(10,2) DEFAULT '0.00',
  255. `endtips` varchar(255) DEFAULT NULL,
  256. `update_time` int(11) DEFAULT NULL,
  257. `create_time` int(11) DEFAULT NULL,
  258. PRIMARY KEY (`id`),
  259. UNIQUE KEY `ID` (`id`) USING BTREE
  260. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='信息栏目';
  261. -- ----------------------------
  262. -- Table structure for ai_wuliu_city
  263. -- ----------------------------
  264. DROP TABLE IF EXISTS `ai_wuliu_city`;
  265. CREATE TABLE `ai_wuliu_city` (
  266. `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
  267. `code` bigint(12) DEFAULT NULL COMMENT '行政区划代码',
  268. `name` varchar(32) DEFAULT NULL COMMENT '名称',
  269. `parent_id` bigint(11) DEFAULT NULL COMMENT '上级id',
  270. `level` varchar(32) DEFAULT NULL COMMENT 'level_id',
  271. `sort` int(11) DEFAULT '0',
  272. `latitude` varchar(255) DEFAULT NULL,
  273. `longitude` varchar(255) DEFAULT NULL,
  274. PRIMARY KEY (`id`)
  275. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  276. SET FOREIGN_KEY_CHECKS=1;