install.sql 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : 本地开发
  4. Source Server Version : 50721
  5. Source Host : localhost:3306
  6. Source Database : wechat
  7. Target Server Type : MYSQL
  8. Target Server Version : 50721
  9. File Encoding : 65001
  10. Date: 2020-03-11 14:40:09
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for ai_fastshop_agent
  15. -- ----------------------------
  16. CREATE TABLE `ai_fastshop_agent` (
  17. `id` int(11) NOT NULL AUTO_INCREMENT,
  18. `member_miniapp_id` int(11) DEFAULT NULL,
  19. `user_id` int(11) DEFAULT NULL,
  20. `rebate` int(11) DEFAULT NULL,
  21. PRIMARY KEY (`id`)
  22. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  23. -- ----------------------------
  24. -- Table structure for ai_fastshop_article
  25. -- ----------------------------
  26. CREATE TABLE `ai_fastshop_article` (
  27. `id` int(11) NOT NULL AUTO_INCREMENT,
  28. `member_miniapp_id` int(11) DEFAULT NULL,
  29. `types` tinyint(255) DEFAULT NULL,
  30. `title` varchar(255) DEFAULT NULL,
  31. `content` longtext,
  32. `update_time` int(11) DEFAULT NULL,
  33. PRIMARY KEY (`id`)
  34. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  35. -- ----------------------------
  36. -- Table structure for ai_fastshop_auth
  37. -- ----------------------------
  38. CREATE TABLE `ai_fastshop_auth` (
  39. `id` int(11) NOT NULL AUTO_INCREMENT,
  40. `types` tinyint(1) DEFAULT NULL,
  41. `member_id` int(11) DEFAULT NULL,
  42. `member_miniapp_id` int(11) DEFAULT NULL,
  43. PRIMARY KEY (`id`)
  44. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  45. -- ----------------------------
  46. -- Table structure for ai_fastshop_bank
  47. -- ----------------------------
  48. CREATE TABLE `ai_fastshop_bank` (
  49. `id` int(11) NOT NULL AUTO_INCREMENT,
  50. `member_miniapp_id` int(11) DEFAULT NULL,
  51. `user_id` bigint(20) DEFAULT NULL,
  52. `money` bigint(20) DEFAULT '0' COMMENT '帐号余额',
  53. `lack_money` bigint(20) DEFAULT '0' COMMENT '锁定金额',
  54. `due_money` bigint(20) DEFAULT '0' COMMENT '应付款',
  55. `shop_money` bigint(20) DEFAULT '0' COMMENT '购物积分',
  56. `income_money` bigint(20) DEFAULT '0' COMMENT '累计收益',
  57. `profit` bigint(20) DEFAULT '0',
  58. `update_time` int(11) DEFAULT NULL,
  59. PRIMARY KEY (`id`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  61. -- ----------------------------
  62. -- Table structure for ai_fastshop_bank_all
  63. -- ----------------------------
  64. CREATE TABLE `ai_fastshop_bank_all` (
  65. `id` int(11) NOT NULL AUTO_INCREMENT,
  66. `member_miniapp_id` int(11) DEFAULT NULL,
  67. `uid` int(11) DEFAULT NULL,
  68. `account` decimal(10,2) DEFAULT NULL,
  69. `pyramid` decimal(10,2) DEFAULT NULL,
  70. PRIMARY KEY (`id`)
  71. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  72. -- ----------------------------
  73. -- Table structure for ai_fastshop_bank_cash
  74. -- ----------------------------
  75. CREATE TABLE `ai_fastshop_bank_cash` (
  76. `id` int(11) NOT NULL AUTO_INCREMENT,
  77. `member_miniapp_id` int(11) DEFAULT NULL,
  78. `user_id` bigint(20) DEFAULT NULL,
  79. `money` bigint(20) DEFAULT '0' COMMENT '申请金额',
  80. `realmoney` bigint(20) DEFAULT '0' COMMENT '实际到账',
  81. `update_time` int(11) DEFAULT NULL,
  82. `state` tinyint(1) DEFAULT '0' COMMENT '0新申请1通过-1不通过',
  83. PRIMARY KEY (`id`)
  84. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='提现申请列表';
  85. -- ----------------------------
  86. -- Table structure for ai_fastshop_bank_info
  87. -- ----------------------------
  88. CREATE TABLE `ai_fastshop_bank_info` (
  89. `user_id` bigint(20) NOT NULL,
  90. `member_miniapp_id` bigint(20) NOT NULL,
  91. `name` varchar(255) DEFAULT NULL,
  92. `idcard` varchar(20) DEFAULT NULL,
  93. `bankname` varchar(255) DEFAULT NULL,
  94. `bankid` varchar(50) DEFAULT NULL,
  95. `update_time` int(11) DEFAULT NULL,
  96. PRIMARY KEY (`user_id`)
  97. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='提现银行';
  98. -- ----------------------------
  99. -- Table structure for ai_fastshop_bank_logs
  100. -- ----------------------------
  101. CREATE TABLE `ai_fastshop_bank_logs` (
  102. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  103. `member_miniapp_id` int(11) DEFAULT NULL,
  104. `user_id` int(11) DEFAULT '0',
  105. `money` bigint(20) DEFAULT '0',
  106. `update_time` int(11) DEFAULT NULL,
  107. `message` tinytext,
  108. `from_uid` int(11) DEFAULT '0',
  109. `order_no` varchar(200) DEFAULT NULL,
  110. PRIMARY KEY (`id`),
  111. KEY `id` (`id`),
  112. KEY `id_2` (`id`)
  113. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='财务变动记录';
  114. -- ----------------------------
  115. -- Table structure for ai_fastshop_bank_recharge
  116. -- ----------------------------
  117. CREATE TABLE `ai_fastshop_bank_recharge` (
  118. `id` int(11) NOT NULL AUTO_INCREMENT,
  119. `member_miniapp_id` int(11) DEFAULT NULL,
  120. `user_id` int(11) DEFAULT NULL,
  121. `money` bigint(20) DEFAULT NULL,
  122. `state` tinyint(1) DEFAULT '0',
  123. `order_no` varchar(255) DEFAULT NULL,
  124. `update_time` int(11) DEFAULT NULL,
  125. `paid_time` int(11) DEFAULT NULL,
  126. `paid_no` varchar(255) DEFAULT NULL,
  127. PRIMARY KEY (`id`)
  128. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  129. -- ----------------------------
  130. -- Table structure for ai_fastshop_banner
  131. -- ----------------------------
  132. CREATE TABLE `ai_fastshop_banner` (
  133. `id` int(11) NOT NULL AUTO_INCREMENT,
  134. `member_miniapp_id` int(11) DEFAULT '0',
  135. `group_id` tinyint(1) DEFAULT NULL,
  136. `open_type` varchar(100) DEFAULT NULL,
  137. `title` varchar(50) DEFAULT NULL,
  138. `link` varchar(200) DEFAULT NULL,
  139. `picture` varchar(255) DEFAULT NULL,
  140. `sort` int(11) DEFAULT '0',
  141. `update_time` int(11) DEFAULT NULL,
  142. `create_time` int(11) DEFAULT NULL,
  143. PRIMARY KEY (`id`)
  144. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  145. -- ----------------------------
  146. -- Table structure for ai_fastshop_cate
  147. -- ----------------------------
  148. CREATE TABLE `ai_fastshop_cate` (
  149. `id` int(11) NOT NULL AUTO_INCREMENT,
  150. `member_miniapp_id` int(11) DEFAULT NULL,
  151. `parent_id` int(11) DEFAULT '0',
  152. `root_id` int(11) DEFAULT NULL,
  153. `types` tinyint(1) DEFAULT '0',
  154. `title` varchar(50) DEFAULT NULL,
  155. `name` varchar(50) DEFAULT NULL,
  156. `picture` varchar(100) DEFAULT NULL,
  157. `sort` int(11) DEFAULT '0',
  158. `update_time` int(11) DEFAULT NULL,
  159. `create_time` int(11) DEFAULT NULL,
  160. PRIMARY KEY (`id`),
  161. UNIQUE KEY `ID` (`id`) USING BTREE,
  162. KEY `PARENT_ID` (`parent_id`,`root_id`) USING BTREE
  163. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品目录';
  164. -- ----------------------------
  165. -- Table structure for ai_fastshop_config
  166. -- ----------------------------
  167. CREATE TABLE `ai_fastshop_config` (
  168. `id` int(11) NOT NULL AUTO_INCREMENT,
  169. `member_miniapp_id` int(11) DEFAULT NULL,
  170. `is_pay_types` tinyint(4) DEFAULT '0',
  171. `goodpay_tax` varchar(10) DEFAULT NULL,
  172. `shop_types` tinyint(1) DEFAULT '0' COMMENT '购买限制',
  173. `regvip_price` int(10) DEFAULT '0' COMMENT '开通会员费用',
  174. `regvip_level1_ratio` int(2) DEFAULT '0' COMMENT '一级返佣',
  175. `regvip_level2_ratio` int(5) DEFAULT '0' COMMENT '二级返佣',
  176. `reward_types` int(10) DEFAULT '0' COMMENT '奖励方式',
  177. `reward_nth` int(10) DEFAULT '0' COMMENT '推荐奖励/奖励倍数',
  178. `reward_ratio` int(10) DEFAULT '0' COMMENT '间推荐/绩效奖励比例',
  179. `tax` int(5) DEFAULT '0' COMMENT '手续费比例',
  180. `profit` int(5) DEFAULT '0' COMMENT '利润率',
  181. `shopping_name` varchar(255) DEFAULT NULL,
  182. `shopping` int(5) DEFAULT NULL COMMENT '购物金比例',
  183. `cycle` int(5) DEFAULT NULL COMMENT '提现周期',
  184. `message` varchar(255) DEFAULT NULL,
  185. `payment_type` tinyint(1) DEFAULT '0' COMMENT '0关闭1应付2购物3',
  186. `payment_point` tinyint(4) DEFAULT NULL,
  187. `payment_type_shop` tinyint(1) DEFAULT NULL,
  188. `payment_point_shop` tinyint(4) DEFAULT NULL,
  189. `amountlimit` int(11) DEFAULT NULL,
  190. `lack_cash` int(11) DEFAULT '0' COMMENT '提现限制',
  191. `is_priority` tinyint(1) DEFAULT '0',
  192. `update_time` int(11) DEFAULT NULL,
  193. `day_ordernum` tinyint(4) DEFAULT '0' COMMENT '用户限抢',
  194. `sale_ordernum` tinyint(4) DEFAULT '0' COMMENT '活动抢购',
  195. `old_users` tinyint(4) DEFAULT '0' COMMENT '是否老用户',
  196. `rules` varchar(255) DEFAULT NULL,
  197. `platform_ratio` tinyint(4) DEFAULT '0' COMMENT '平台奖励比例()',
  198. `platform_amout` int(11) DEFAULT '0' COMMENT '平台奖励条件',
  199. `lock_sale_day` int(11) DEFAULT '0' COMMENT '限委托(天)',
  200. `num_referee_people` int(11) DEFAULT '0' COMMENT '每推荐多少人可以购买一单',
  201. PRIMARY KEY (`id`)
  202. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  203. -- ----------------------------
  204. -- Table structure for ai_fastshop_entrust
  205. -- ----------------------------
  206. CREATE TABLE `ai_fastshop_entrust` (
  207. `id` int(11) NOT NULL AUTO_INCREMENT,
  208. `member_miniapp_id` int(11) DEFAULT NULL,
  209. `item_id` int(11) DEFAULT NULL,
  210. `gite_count` int(11) DEFAULT NULL,
  211. `entrust_price` int(11) DEFAULT NULL,
  212. PRIMARY KEY (`id`)
  213. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  214. -- ----------------------------
  215. -- Table structure for ai_fastshop_entrust_list
  216. -- ----------------------------
  217. CREATE TABLE `ai_fastshop_entrust_list` (
  218. `id` int(11) NOT NULL AUTO_INCREMENT,
  219. `member_miniapp_id` int(11) DEFAULT NULL,
  220. `order_no` varchar(50) DEFAULT NULL,
  221. `entrust_id` int(11) DEFAULT NULL,
  222. `item_id` int(11) DEFAULT NULL,
  223. `user_id` int(11) DEFAULT NULL,
  224. `order_amount` int(11) DEFAULT NULL,
  225. `entrust_price` int(11) DEFAULT NULL,
  226. `rebate` int(11) DEFAULT '0' COMMENT '返利多少钱(分)',
  227. `is_rebate` tinyint(1) DEFAULT '0' COMMENT '是否返利',
  228. `create_time` int(11) DEFAULT NULL,
  229. `update_time` int(11) DEFAULT NULL,
  230. `is_diy` tinyint(1) DEFAULT '0',
  231. `is_under` tinyint(1) DEFAULT '0' COMMENT '是否下架',
  232. `is_fusion` tinyint(1) DEFAULT '0',
  233. PRIMARY KEY (`id`)
  234. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  235. -- ----------------------------
  236. -- Table structure for ai_fastshop_fare
  237. -- ----------------------------
  238. CREATE TABLE `ai_fastshop_fare` (
  239. `id` int(11) NOT NULL AUTO_INCREMENT,
  240. `member_miniapp_id` int(11) DEFAULT NULL,
  241. `first_weight` int(11) DEFAULT NULL,
  242. `first_price` float(10,2) DEFAULT NULL,
  243. `second_weight` int(11) DEFAULT NULL,
  244. `second_price` float(10,2) DEFAULT NULL,
  245. `update_time` int(11) DEFAULT NULL,
  246. PRIMARY KEY (`id`)
  247. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费设置';
  248. -- ----------------------------
  249. -- Table structure for ai_fastshop_group
  250. -- ----------------------------
  251. CREATE TABLE `ai_fastshop_group` (
  252. `id` int(11) NOT NULL AUTO_INCREMENT,
  253. `member_miniapp_id` int(11) DEFAULT NULL,
  254. `item_id` bigint(20) DEFAULT NULL,
  255. `amount` decimal(10,2) DEFAULT NULL,
  256. `hao_people` int(10) DEFAULT NULL,
  257. `uids` varchar(255) DEFAULT NULL,
  258. PRIMARY KEY (`id`)
  259. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='团购数据';
  260. -- ----------------------------
  261. -- Table structure for ai_fastshop_item
  262. -- ----------------------------
  263. CREATE TABLE `ai_fastshop_item` (
  264. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  265. `member_miniapp_id` int(11) DEFAULT NULL,
  266. `category_id` bigint(20) DEFAULT NULL,
  267. `category_path_id` varchar(255) DEFAULT NULL,
  268. `is_shopping` tinyint(1) DEFAULT '0',
  269. `is_sale` tinyint(1) DEFAULT '0' COMMENT '0:下架、1:删除,、2:上架,',
  270. `name` varchar(255) DEFAULT NULL,
  271. `price` int(11) DEFAULT '0',
  272. `sell_price` decimal(10,2) NOT NULL DEFAULT '0.00',
  273. `market_price` decimal(10,2) DEFAULT '0.00',
  274. `cost_price` decimal(10,2) DEFAULT '0.00',
  275. `points` int(11) DEFAULT '0',
  276. `repoints` int(11) DEFAULT '0',
  277. `weight` int(10) DEFAULT NULL,
  278. `imgs` text,
  279. `img` varchar(255) DEFAULT NULL,
  280. `content` mediumtext,
  281. `sort` int(11) DEFAULT NULL,
  282. `types` tinyint(1) DEFAULT NULL,
  283. `update_time` int(11) DEFAULT NULL,
  284. PRIMARY KEY (`id`),
  285. UNIQUE KEY `ID` (`id`) USING BTREE,
  286. KEY `IS_SALE` (`is_sale`) USING BTREE
  287. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品主表';
  288. -- ----------------------------
  289. -- Table structure for ai_fastshop_order
  290. -- ----------------------------
  291. CREATE TABLE `ai_fastshop_order` (
  292. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  293. `member_miniapp_id` int(11) DEFAULT NULL,
  294. `user_id` int(11) DEFAULT NULL,
  295. `sale_id` int(11) DEFAULT NULL,
  296. `order_no` varchar(40) DEFAULT NULL,
  297. `status` tinyint(1) DEFAULT '0',
  298. `is_fusion` tinyint(1) DEFAULT '0',
  299. `is_entrust` tinyint(1) DEFAULT '0',
  300. `is_del` tinyint(1) DEFAULT '0',
  301. `is_point` tinyint(1) DEFAULT '0',
  302. `payment_id` int(11) DEFAULT NULL,
  303. `real_amount` decimal(10,2) DEFAULT '0.00' COMMENT '单商品价格总额',
  304. `real_freight` decimal(10,2) DEFAULT '0.00' COMMENT '物流价钱',
  305. `order_amount` decimal(10,2) DEFAULT '0.00',
  306. `order_starttime` int(11) DEFAULT NULL,
  307. `order_endtime` int(11) DEFAULT NULL,
  308. `paid_at` tinyint(1) DEFAULT '0',
  309. `paid_time` int(11) DEFAULT NULL,
  310. `paid_no` varchar(255) DEFAULT NULL,
  311. `express_name` varchar(50) DEFAULT NULL,
  312. `express_phone` varchar(20) DEFAULT NULL,
  313. `express_address` varchar(255) DEFAULT NULL,
  314. `express_status` tinyint(1) DEFAULT '0',
  315. `express_starttime` int(11) DEFAULT NULL,
  316. `express_company` varchar(100) DEFAULT NULL COMMENT '快递公司',
  317. `express_no` varchar(50) DEFAULT NULL COMMENT '快递单号',
  318. `message` varchar(255) DEFAULT NULL COMMENT '留言',
  319. PRIMARY KEY (`id`),
  320. UNIQUE KEY `ORDER_NO` (`order_no`) USING BTREE,
  321. KEY `IS_DEL` (`is_del`) USING BTREE,
  322. KEY `STATUS` (`status`) USING BTREE,
  323. KEY `IS_ENTRUST` (`is_entrust`),
  324. KEY `ORDER_STARTTIME` (`order_starttime`),
  325. KEY `EXPRESS_STATUS` (`express_status`)
  326. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  327. -- ----------------------------
  328. -- Table structure for ai_fastshop_order_cache
  329. -- ----------------------------
  330. CREATE TABLE `ai_fastshop_order_cache` (
  331. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  332. `order_no` varchar(40) DEFAULT NULL,
  333. `item_id` bigint(20) DEFAULT NULL,
  334. `sale_price` bigint(20) DEFAULT NULL,
  335. `name` varchar(255) DEFAULT NULL,
  336. `img` varchar(255) DEFAULT NULL,
  337. `gift` text,
  338. `entrust` varchar(255) DEFAULT NULL COMMENT '真是委托假是提货',
  339. `fusion_state` tinyint(1) DEFAULT '0' COMMENT '聚变产品状态 0不委托1委托',
  340. PRIMARY KEY (`id`),
  341. KEY `ORDER_NO` (`order_no`)
  342. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  343. -- ----------------------------
  344. -- Table structure for ai_fastshop_regnum
  345. -- ----------------------------
  346. CREATE TABLE `ai_fastshop_regnum` (
  347. `id` int(11) NOT NULL AUTO_INCREMENT,
  348. `member_miniapp_id` int(11) DEFAULT NULL,
  349. `uid` int(11) NOT NULL,
  350. `num` int(11) DEFAULT '0',
  351. `allnum` int(11) DEFAULT '0',
  352. PRIMARY KEY (`id`),
  353. UNIQUE KEY `UID` (`uid`) USING BTREE,
  354. KEY `MINAPP` (`member_miniapp_id`)
  355. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  356. -- ----------------------------
  357. -- Table structure for ai_fastshop_sales
  358. -- ----------------------------
  359. CREATE TABLE `ai_fastshop_sales` (
  360. `id` int(11) NOT NULL AUTO_INCREMENT,
  361. `member_miniapp_id` int(11) DEFAULT NULL,
  362. `category_id` int(11) DEFAULT NULL,
  363. `class_id` int(11) DEFAULT NULL,
  364. `is_fusion` tinyint(1) DEFAULT '0' COMMENT '聚变还是裂变',
  365. `is_vip` tinyint(1) DEFAULT NULL,
  366. `is_newuser` tinyint(1) DEFAULT NULL,
  367. `types` tinyint(1) DEFAULT '0',
  368. `title` varchar(255) DEFAULT NULL,
  369. `item_id` int(11) DEFAULT NULL,
  370. `sale_nums` int(10) DEFAULT NULL,
  371. `cost_price` int(11) DEFAULT NULL,
  372. `sale_price` int(11) DEFAULT NULL,
  373. `market_price` int(11) DEFAULT NULL,
  374. `gift` text,
  375. `img` varchar(255) DEFAULT NULL,
  376. `sort` int(11) DEFAULT NULL,
  377. `start_time` int(11) DEFAULT NULL,
  378. `end_time` int(11) DEFAULT NULL,
  379. `update_time` int(11) DEFAULT NULL,
  380. PRIMARY KEY (`id`),
  381. KEY `NEWUSER` (`is_newuser`),
  382. KEY `VIP` (`is_vip`)
  383. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  384. -- ----------------------------
  385. -- Table structure for ai_fastshop_shopping
  386. -- ----------------------------
  387. CREATE TABLE `ai_fastshop_shopping` (
  388. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  389. `member_miniapp_id` int(11) DEFAULT NULL,
  390. `user_id` int(11) DEFAULT NULL,
  391. `order_no` varchar(50) DEFAULT NULL,
  392. `status` tinyint(1) DEFAULT '0',
  393. `is_del` tinyint(1) DEFAULT '0',
  394. `payment_id` int(11) DEFAULT NULL,
  395. `real_amount` float(10,2) DEFAULT '0.00' COMMENT '单商品价格总额',
  396. `real_freight` float(10,2) DEFAULT '0.00' COMMENT '物流价钱',
  397. `order_amount` float(10,2) DEFAULT NULL,
  398. `order_starttime` int(11) DEFAULT NULL,
  399. `order_endtime` int(11) DEFAULT NULL,
  400. `paid_at` tinyint(1) DEFAULT '0',
  401. `paid_time` int(11) DEFAULT NULL,
  402. `paid_no` varchar(255) DEFAULT NULL,
  403. `express_name` varchar(50) DEFAULT NULL,
  404. `express_phone` varchar(20) DEFAULT NULL,
  405. `express_address` varchar(255) DEFAULT NULL,
  406. `express_status` tinyint(1) DEFAULT '0',
  407. `express_starttime` int(11) DEFAULT NULL,
  408. `express_company` varchar(100) DEFAULT NULL COMMENT '快递公司',
  409. `express_no` varchar(50) DEFAULT NULL COMMENT '快递单号',
  410. PRIMARY KEY (`id`),
  411. UNIQUE KEY `ORDER_NO` (`order_no`) USING BTREE,
  412. KEY `IS_DEL` (`is_del`) USING BTREE,
  413. KEY `STATUS` (`status`) USING BTREE
  414. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  415. -- ----------------------------
  416. -- Table structure for ai_fastshop_shopping_cache
  417. -- ----------------------------
  418. CREATE TABLE `ai_fastshop_shopping_cache` (
  419. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  420. `order_no` varchar(50) DEFAULT NULL,
  421. `item_id` bigint(20) DEFAULT NULL,
  422. `buy_price` float(10,2) DEFAULT '0.00',
  423. `buy_nums` int(11) DEFAULT '1',
  424. `name` varchar(255) DEFAULT NULL,
  425. `img` varchar(255) DEFAULT NULL,
  426. PRIMARY KEY (`id`)
  427. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  428. -- ----------------------------
  429. -- Table structure for ai_fastshop_store
  430. -- ----------------------------
  431. CREATE TABLE `ai_fastshop_store` (
  432. `id` int(11) NOT NULL AUTO_INCREMENT,
  433. `uid` int(11) DEFAULT NULL,
  434. `name` varchar(255) DEFAULT NULL,
  435. `update_time` int(11) DEFAULT NULL,
  436. PRIMARY KEY (`id`)
  437. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  438. -- ----------------------------
  439. -- Table structure for ai_fastshop_times
  440. -- ----------------------------
  441. CREATE TABLE `ai_fastshop_times` (
  442. `id` int(11) NOT NULL AUTO_INCREMENT,
  443. `member_miniapp_id` int(11) DEFAULT NULL,
  444. `name` varchar(255) DEFAULT NULL,
  445. `start_time` int(4) DEFAULT NULL,
  446. `end_time` int(4) DEFAULT NULL,
  447. `sort` int(11) DEFAULT NULL,
  448. PRIMARY KEY (`id`)
  449. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  450. -- ----------------------------
  451. -- Table structure for ai_fastshop_vip
  452. -- ----------------------------
  453. CREATE TABLE `ai_fastshop_vip` (
  454. `id` int(11) NOT NULL AUTO_INCREMENT,
  455. `member_miniapp_id` int(11) DEFAULT NULL,
  456. `user_id` int(11) DEFAULT NULL,
  457. `state` tinyint(1) DEFAULT '0',
  458. `order_no` varchar(255) DEFAULT NULL,
  459. `update_time` int(11) DEFAULT NULL,
  460. `paid_time` int(11) DEFAULT NULL,
  461. `paid_no` varchar(255) DEFAULT NULL,
  462. PRIMARY KEY (`id`)
  463. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  464. SET FOREIGN_KEY_CHECKS=1;