install.sql 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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:30
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for ai_popupshop_adwords
  15. -- ----------------------------
  16. CREATE TABLE `ai_popupshop_adwords` (
  17. `id` int(11) NOT NULL AUTO_INCREMENT,
  18. `member_miniapp_id` int(11) DEFAULT '0',
  19. `group_id` tinyint(1) DEFAULT NULL,
  20. `open_type` varchar(100) DEFAULT NULL,
  21. `title` varchar(50) DEFAULT NULL,
  22. `link` varchar(200) DEFAULT NULL,
  23. `picture` varchar(255) DEFAULT NULL,
  24. `sort` int(11) DEFAULT '0',
  25. `update_time` int(11) DEFAULT NULL,
  26. `create_time` int(11) DEFAULT NULL,
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  29. -- ----------------------------
  30. -- Table structure for ai_popupshop_agent
  31. -- ----------------------------
  32. CREATE TABLE `ai_popupshop_agent` (
  33. `id` int(11) NOT NULL AUTO_INCREMENT,
  34. `member_miniapp_id` int(11) DEFAULT NULL,
  35. `user_id` int(11) DEFAULT NULL,
  36. `rebate` int(11) DEFAULT NULL,
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  39. -- ----------------------------
  40. -- Table structure for ai_popupshop_article
  41. -- ----------------------------
  42. CREATE TABLE `ai_popupshop_article` (
  43. `id` int(11) NOT NULL AUTO_INCREMENT,
  44. `member_miniapp_id` int(11) DEFAULT NULL,
  45. `types` tinyint(255) DEFAULT NULL,
  46. `title` varchar(255) DEFAULT NULL,
  47. `content` longtext,
  48. `update_time` int(11) DEFAULT NULL,
  49. PRIMARY KEY (`id`)
  50. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  51. -- ----------------------------
  52. -- Table structure for ai_popupshop_auth
  53. -- ----------------------------
  54. CREATE TABLE `ai_popupshop_auth` (
  55. `id` int(11) NOT NULL AUTO_INCREMENT,
  56. `types` tinyint(1) DEFAULT NULL,
  57. `member_id` int(11) DEFAULT NULL,
  58. `member_miniapp_id` int(11) DEFAULT NULL,
  59. PRIMARY KEY (`id`)
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  61. -- ----------------------------
  62. -- Table structure for ai_popupshop_bank
  63. -- ----------------------------
  64. CREATE TABLE `ai_popupshop_bank` (
  65. `id` int(11) NOT NULL AUTO_INCREMENT,
  66. `member_miniapp_id` int(11) DEFAULT NULL,
  67. `user_id` bigint(10) DEFAULT NULL,
  68. `lack_money` decimal(10,2) DEFAULT '0.00' COMMENT '锁定金额',
  69. `due_money` decimal(10,2) DEFAULT '0.00' COMMENT '应付款',
  70. `shop_money` decimal(10,2) DEFAULT '0.00' COMMENT '购物积分',
  71. `income_money` decimal(10,2) DEFAULT '0.00' COMMENT '累计收益',
  72. `update_time` int(11) DEFAULT NULL,
  73. PRIMARY KEY (`id`)
  74. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  75. -- ----------------------------
  76. -- Table structure for ai_popupshop_bank_bill
  77. -- ----------------------------
  78. CREATE TABLE `ai_popupshop_bank_bill` (
  79. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  80. `member_miniapp_id` int(11) DEFAULT NULL,
  81. `user_id` int(11) DEFAULT '0',
  82. `money` decimal(10,2) DEFAULT '0.00',
  83. `update_time` int(11) DEFAULT NULL,
  84. `message` tinytext,
  85. `from_uid` int(11) DEFAULT '0',
  86. `order_no` varchar(200) DEFAULT NULL,
  87. PRIMARY KEY (`id`)
  88. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='交易账单';
  89. -- ----------------------------
  90. -- Table structure for ai_popupshop_bank_cash
  91. -- ----------------------------
  92. CREATE TABLE `ai_popupshop_bank_cash` (
  93. `id` int(11) NOT NULL AUTO_INCREMENT,
  94. `member_miniapp_id` int(11) DEFAULT NULL,
  95. `user_id` bigint(20) DEFAULT NULL,
  96. `money` decimal(10,2) DEFAULT '0.00' COMMENT '申请金额',
  97. `realmoney` decimal(10,2) DEFAULT '0.00' COMMENT '实际到账',
  98. `update_time` int(11) DEFAULT NULL,
  99. `state` tinyint(1) DEFAULT '0' COMMENT '0新申请1通过-1不通过',
  100. `audit_time` int(11) DEFAULT NULL,
  101. `trade_no` varchar(100) DEFAULT NULL,
  102. `msg` varchar(255) DEFAULT NULL,
  103. PRIMARY KEY (`id`)
  104. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='提现申请';
  105. -- ----------------------------
  106. -- Table structure for ai_popupshop_bank_info
  107. -- ----------------------------
  108. CREATE TABLE `ai_popupshop_bank_info` (
  109. `user_id` bigint(20) NOT NULL,
  110. `member_miniapp_id` bigint(20) NOT NULL,
  111. `name` varchar(255) DEFAULT NULL,
  112. `idcard` varchar(20) DEFAULT NULL,
  113. `bankname` varchar(255) DEFAULT NULL,
  114. `bankid` varchar(50) DEFAULT NULL,
  115. `update_time` int(11) DEFAULT NULL,
  116. PRIMARY KEY (`user_id`)
  117. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='提现银行';
  118. -- ----------------------------
  119. -- Table structure for ai_popupshop_bank_recharge
  120. -- ----------------------------
  121. CREATE TABLE `ai_popupshop_bank_recharge` (
  122. `id` int(11) NOT NULL AUTO_INCREMENT,
  123. `member_miniapp_id` int(11) DEFAULT NULL,
  124. `user_id` int(11) DEFAULT NULL,
  125. `money` decimal(10,2) DEFAULT NULL,
  126. `state` tinyint(1) DEFAULT '0',
  127. `order_no` varchar(255) DEFAULT NULL,
  128. `update_time` int(11) DEFAULT NULL,
  129. `paid_time` int(11) DEFAULT NULL,
  130. `paid_no` varchar(255) DEFAULT NULL,
  131. PRIMARY KEY (`id`)
  132. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  133. -- ----------------------------
  134. -- Table structure for ai_popupshop_category
  135. -- ----------------------------
  136. CREATE TABLE `ai_popupshop_category` (
  137. `id` int(11) NOT NULL AUTO_INCREMENT,
  138. `member_miniapp_id` int(11) DEFAULT NULL,
  139. `parent_id` int(11) DEFAULT '0',
  140. `root_id` int(11) DEFAULT NULL,
  141. `types` tinyint(1) DEFAULT '0',
  142. `title` varchar(50) DEFAULT NULL,
  143. `name` varchar(50) DEFAULT NULL,
  144. `picture` varchar(100) DEFAULT NULL,
  145. `sort` int(11) DEFAULT '0',
  146. `update_time` int(11) DEFAULT NULL,
  147. `create_time` int(11) DEFAULT NULL,
  148. PRIMARY KEY (`id`),
  149. UNIQUE KEY `ID` (`id`) USING BTREE,
  150. KEY `PARENT_ID` (`parent_id`,`root_id`) USING BTREE
  151. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品目录';
  152. -- ----------------------------
  153. -- Table structure for ai_popupshop_config
  154. -- ----------------------------
  155. CREATE TABLE `ai_popupshop_config` (
  156. `id` int(11) NOT NULL AUTO_INCREMENT,
  157. `member_miniapp_id` int(11) DEFAULT '0',
  158. `tax` int(5) DEFAULT '0' COMMENT '手续费比例',
  159. `profit` int(5) DEFAULT '0' COMMENT '利润率',
  160. `cycle` int(5) DEFAULT '0' COMMENT '提现周期',
  161. `lack_cash` int(11) DEFAULT '0' COMMENT '提现限制',
  162. `lock_sale_day` int(11) DEFAULT '0' COMMENT '限委托(天)',
  163. `num_referee_people` int(11) DEFAULT '0' COMMENT '每推荐多少人可以购买一单',
  164. `is_wechat_touser` tinyint(1) DEFAULT '0',
  165. `update_time` int(11) DEFAULT NULL,
  166. PRIMARY KEY (`id`)
  167. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  168. -- ----------------------------
  169. -- Table structure for ai_popupshop_fare
  170. -- ----------------------------
  171. CREATE TABLE `ai_popupshop_fare` (
  172. `id` int(11) NOT NULL AUTO_INCREMENT,
  173. `member_miniapp_id` int(11) DEFAULT NULL,
  174. `first_weight` int(11) DEFAULT NULL,
  175. `first_price` float(10,2) DEFAULT NULL,
  176. `second_weight` int(11) DEFAULT NULL,
  177. `second_price` float(10,2) DEFAULT NULL,
  178. `update_time` int(11) DEFAULT NULL,
  179. PRIMARY KEY (`id`)
  180. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='运费设置';
  181. -- ----------------------------
  182. -- Table structure for ai_popupshop_fees
  183. -- ----------------------------
  184. CREATE TABLE `ai_popupshop_fees` (
  185. `id` bigint(11) NOT NULL AUTO_INCREMENT,
  186. `member_miniapp_id` int(11) DEFAULT NULL,
  187. `tax` decimal(10,2) DEFAULT NULL,
  188. `cost` decimal(10,2) DEFAULT NULL,
  189. `fees` decimal(10,2) DEFAULT NULL,
  190. `update_time` int(11) DEFAULT NULL,
  191. `create_time` int(11) DEFAULT NULL,
  192. PRIMARY KEY (`id`)
  193. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  194. -- ----------------------------
  195. -- Table structure for ai_popupshop_item
  196. -- ----------------------------
  197. CREATE TABLE `ai_popupshop_item` (
  198. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  199. `member_miniapp_id` int(11) DEFAULT NULL,
  200. `category_id` bigint(20) DEFAULT NULL,
  201. `category_path_id` varchar(255) DEFAULT NULL,
  202. `is_sale` tinyint(1) DEFAULT '0' COMMENT '0:下架、1:上架,',
  203. `name` varchar(255) DEFAULT NULL,
  204. `note` varchar(255) DEFAULT NULL,
  205. `sell_price` decimal(10,2) NOT NULL DEFAULT '0.00',
  206. `market_price` decimal(10,2) DEFAULT '0.00',
  207. `cost_price` decimal(10,2) DEFAULT '0.00',
  208. `points` int(11) DEFAULT '0',
  209. `repoints` int(11) DEFAULT '0',
  210. `weight` int(10) DEFAULT NULL,
  211. `imgs` text,
  212. `img` varchar(255) DEFAULT NULL,
  213. `content` mediumtext,
  214. `sort` int(11) DEFAULT NULL,
  215. `types` tinyint(1) DEFAULT NULL,
  216. `update_time` int(11) DEFAULT NULL,
  217. PRIMARY KEY (`id`),
  218. UNIQUE KEY `ID` (`id`) USING BTREE,
  219. KEY `IS_SALE` (`is_sale`) USING BTREE
  220. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品主表';
  221. -- ----------------------------
  222. -- Table structure for ai_popupshop_order
  223. -- ----------------------------
  224. CREATE TABLE `ai_popupshop_order` (
  225. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  226. `member_miniapp_id` int(11) DEFAULT NULL,
  227. `payment_id` varchar(11) DEFAULT NULL,
  228. `user_id` int(11) DEFAULT NULL,
  229. `sales_user_id` int(11) DEFAULT '0' COMMENT '重新提货来自ID',
  230. `order_no` varchar(50) DEFAULT NULL,
  231. `status` tinyint(1) NOT NULL DEFAULT '0',
  232. `real_amount` float(10,2) DEFAULT '0.00' COMMENT '单商品价格总额',
  233. `real_freight` float(10,2) DEFAULT '0.00' COMMENT '物流价钱',
  234. `order_amount` float(10,2) DEFAULT NULL,
  235. `order_starttime` int(11) DEFAULT NULL,
  236. `order_endtime` int(11) DEFAULT NULL,
  237. `paid_at` tinyint(1) DEFAULT '0',
  238. `paid_time` int(11) DEFAULT NULL,
  239. `paid_no` varchar(255) DEFAULT NULL,
  240. `express_status` tinyint(1) DEFAULT '0',
  241. `express_name` varchar(50) DEFAULT NULL,
  242. `express_phone` varchar(20) DEFAULT NULL,
  243. `express_address` varchar(255) DEFAULT NULL,
  244. `express_starttime` int(11) DEFAULT NULL,
  245. `express_company` varchar(100) DEFAULT NULL COMMENT '快递公司',
  246. `express_no` varchar(50) DEFAULT NULL COMMENT '快递单号',
  247. `is_del` tinyint(1) DEFAULT '0',
  248. PRIMARY KEY (`id`,`status`),
  249. UNIQUE KEY `ORDER_NO` (`order_no`) USING BTREE,
  250. KEY `IS_DEL` (`is_del`) USING BTREE,
  251. KEY `STATUS` (`status`) USING BTREE
  252. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  253. -- ----------------------------
  254. -- Table structure for ai_popupshop_order_cache
  255. -- ----------------------------
  256. CREATE TABLE `ai_popupshop_order_cache` (
  257. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  258. `order_id` int(11) DEFAULT NULL,
  259. `order_no` varchar(50) DEFAULT NULL,
  260. `item_id` bigint(20) DEFAULT NULL,
  261. `buy_price` float(10,2) DEFAULT '0.00',
  262. `buy_nums` int(11) DEFAULT '1',
  263. `name` varchar(255) DEFAULT NULL,
  264. `img` varchar(255) DEFAULT NULL,
  265. PRIMARY KEY (`id`)
  266. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  267. -- ----------------------------
  268. -- Table structure for ai_popupshop_regnum
  269. -- ----------------------------
  270. CREATE TABLE `ai_popupshop_regnum` (
  271. `id` int(11) NOT NULL AUTO_INCREMENT,
  272. `member_miniapp_id` int(11) DEFAULT NULL,
  273. `uid` int(11) NOT NULL,
  274. `num` int(11) DEFAULT '0',
  275. `allnum` int(11) DEFAULT '0',
  276. PRIMARY KEY (`id`),
  277. UNIQUE KEY `UID` (`uid`) USING BTREE,
  278. KEY `MINAPP` (`member_miniapp_id`)
  279. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  280. -- ----------------------------
  281. -- Table structure for ai_popupshop_sales
  282. -- ----------------------------
  283. CREATE TABLE `ai_popupshop_sales` (
  284. `id` int(11) NOT NULL AUTO_INCREMENT,
  285. `member_miniapp_id` int(11) DEFAULT NULL,
  286. `is_sale` tinyint(1) DEFAULT '0' COMMENT '上下架',
  287. `is_pay` tinyint(1) DEFAULT '0' COMMENT '是否买出去',
  288. `is_out` tinyint(1) DEFAULT '0' COMMENT '0正常 1强制发货',
  289. `store_id` int(11) DEFAULT NULL,
  290. `user_id` int(11) DEFAULT NULL,
  291. `house_id` int(11) DEFAULT NULL,
  292. `sales_user_id` int(11) DEFAULT '0',
  293. `user_cost_price` decimal(11,2) DEFAULT '0.00' COMMENT '成本价',
  294. `user_entrust_price` decimal(10,2) DEFAULT NULL,
  295. `user_sale_price` decimal(11,2) DEFAULT NULL COMMENT '销售价',
  296. `gift` text,
  297. `update_time` int(11) DEFAULT NULL,
  298. `create_time` int(11) DEFAULT NULL,
  299. PRIMARY KEY (`id`)
  300. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  301. -- ----------------------------
  302. -- Table structure for ai_popupshop_sales_category
  303. -- ----------------------------
  304. CREATE TABLE `ai_popupshop_sales_category` (
  305. `id` int(11) NOT NULL AUTO_INCREMENT,
  306. `member_miniapp_id` int(11) DEFAULT NULL,
  307. `title` varchar(50) DEFAULT NULL,
  308. `name` varchar(50) DEFAULT NULL,
  309. `picture` varchar(100) DEFAULT NULL,
  310. `sort` int(11) DEFAULT '0',
  311. `update_time` int(11) DEFAULT NULL,
  312. `create_time` int(11) DEFAULT NULL,
  313. PRIMARY KEY (`id`),
  314. UNIQUE KEY `ID` (`id`) USING BTREE
  315. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品目录';
  316. -- ----------------------------
  317. -- Table structure for ai_popupshop_sales_house
  318. -- ----------------------------
  319. CREATE TABLE `ai_popupshop_sales_house` (
  320. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  321. `member_miniapp_id` int(11) DEFAULT NULL,
  322. `category_id` bigint(20) DEFAULT NULL,
  323. `is_sale` tinyint(1) DEFAULT '0' COMMENT '0:下架、1:删除,、2:上架,',
  324. `is_del` tinyint(1) DEFAULT '0',
  325. `title` varchar(255) DEFAULT NULL,
  326. `name` varchar(255) DEFAULT NULL,
  327. `note` varchar(255) DEFAULT NULL,
  328. `sell_price` decimal(10,2) NOT NULL DEFAULT '0.00',
  329. `cost_price` decimal(10,2) DEFAULT '0.00',
  330. `imgs` text,
  331. `img` varchar(255) DEFAULT NULL,
  332. `content` mediumtext,
  333. `sort` int(11) DEFAULT NULL,
  334. `update_time` int(11) DEFAULT NULL,
  335. PRIMARY KEY (`id`),
  336. UNIQUE KEY `ID` (`id`) USING BTREE,
  337. KEY `IS_SALE` (`is_sale`) USING BTREE
  338. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品主表';
  339. -- ----------------------------
  340. -- Table structure for ai_popupshop_sales_order
  341. -- ----------------------------
  342. CREATE TABLE `ai_popupshop_sales_order` (
  343. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  344. `member_miniapp_id` int(11) DEFAULT NULL,
  345. `user_id` int(11) DEFAULT NULL,
  346. `sale_id` int(11) DEFAULT NULL,
  347. `order_no` varchar(40) DEFAULT NULL,
  348. `status` tinyint(1) DEFAULT '0',
  349. `is_entrust` tinyint(1) DEFAULT '0',
  350. `is_del` tinyint(1) DEFAULT '0',
  351. `is_out` tinyint(1) DEFAULT '0' COMMENT '退货',
  352. `is_settle` tinyint(1) DEFAULT '0' COMMENT '是否结算了',
  353. `payment_id` int(11) DEFAULT NULL,
  354. `real_amount` float(10,2) DEFAULT '0.00' COMMENT '单商品价格总额',
  355. `real_freight` float(10,2) DEFAULT '0.00' COMMENT '物流价钱',
  356. `order_amount` float(10,2) DEFAULT '0.00',
  357. `order_starttime` int(11) DEFAULT NULL,
  358. `order_endtime` int(11) DEFAULT NULL,
  359. `paid_at` tinyint(1) DEFAULT '0',
  360. `paid_time` int(11) DEFAULT NULL,
  361. `paid_no` varchar(255) DEFAULT NULL,
  362. `express_name` varchar(50) DEFAULT NULL,
  363. `express_phone` varchar(20) DEFAULT NULL,
  364. `express_address` varchar(255) DEFAULT NULL,
  365. `express_status` tinyint(1) DEFAULT '0',
  366. `express_starttime` int(11) DEFAULT NULL,
  367. `express_company` varchar(100) DEFAULT NULL COMMENT '快递公司',
  368. `express_no` varchar(50) DEFAULT NULL COMMENT '快递单号',
  369. PRIMARY KEY (`id`),
  370. UNIQUE KEY `ORDER_NO` (`order_no`) USING BTREE,
  371. KEY `IS_DEL` (`is_del`) USING BTREE,
  372. KEY `STATUS` (`status`) USING BTREE,
  373. KEY `IS_ENTRUST` (`is_entrust`),
  374. KEY `ORDER_STARTTIME` (`order_starttime`),
  375. KEY `EXPRESS_STATUS` (`express_status`)
  376. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  377. -- ----------------------------
  378. -- Table structure for ai_popupshop_sales_order_cache
  379. -- ----------------------------
  380. CREATE TABLE `ai_popupshop_sales_order_cache` (
  381. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  382. `is_sales` tinyint(1) DEFAULT '0' COMMENT '是否主商品',
  383. `is_entrust` tinyint(1) DEFAULT '0' COMMENT '是否委托',
  384. `is_out` tinyint(1) DEFAULT '0',
  385. `order_no` varchar(40) DEFAULT NULL,
  386. `sale_order_id` int(11) DEFAULT NULL,
  387. `house_id` int(20) DEFAULT NULL,
  388. `sale_price` decimal(10,2) DEFAULT NULL COMMENT '商品销售价',
  389. `name` varchar(255) DEFAULT NULL,
  390. `img` varchar(255) DEFAULT NULL,
  391. PRIMARY KEY (`id`),
  392. KEY `ORDER_NO` (`order_no`)
  393. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  394. -- ----------------------------
  395. -- Table structure for ai_popupshop_sales_user
  396. -- ----------------------------
  397. CREATE TABLE `ai_popupshop_sales_user` (
  398. `id` int(11) NOT NULL AUTO_INCREMENT,
  399. `member_miniapp_id` int(11) DEFAULT NULL,
  400. `user_id` int(11) DEFAULT NULL,
  401. `house_id` int(11) DEFAULT NULL,
  402. `order_no` varchar(50) DEFAULT NULL,
  403. `user_price` decimal(10,2) DEFAULT '0.00',
  404. `rebate` decimal(10,2) DEFAULT '0.00' COMMENT '成交价',
  405. `is_lock_rebate` tinyint(1) DEFAULT '0' COMMENT '是否结算利润',
  406. `is_rebate` tinyint(1) DEFAULT '0' COMMENT '是否成交',
  407. `is_sale` tinyint(1) DEFAULT '0' COMMENT '是否上架',
  408. `is_out` tinyint(1) DEFAULT '0',
  409. `create_time` int(11) DEFAULT NULL,
  410. `update_time` int(11) DEFAULT NULL,
  411. PRIMARY KEY (`id`)
  412. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='客户商品';
  413. -- ----------------------------
  414. -- Table structure for ai_popupshop_store
  415. -- ----------------------------
  416. CREATE TABLE `ai_popupshop_store` (
  417. `id` int(11) NOT NULL AUTO_INCREMENT,
  418. `uid` int(11) DEFAULT NULL,
  419. `name` varchar(255) DEFAULT NULL,
  420. `update_time` int(11) DEFAULT NULL,
  421. PRIMARY KEY (`id`)
  422. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  423. SET FOREIGN_KEY_CHECKS=1;