virtual_mall.sql 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. -- MySQL dump 10.13 Distrib 5.7.44, for Win64 (x86_64)
  2. --
  3. -- Host: 127.0.0.1 Database: virtual_mall
  4. -- ------------------------------------------------------
  5. -- Server version 5.7.44-log
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `artice`
  18. --
  19. DROP TABLE IF EXISTS `artice`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `artice` (
  23. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  24. `article_title` varchar(255) DEFAULT NULL COMMENT '文章名称',
  25. `artice_content` longblob COMMENT '文章内容',
  26. `state` varchar(255) DEFAULT NULL COMMENT '状态',
  27. `artice_tag_ids` varchar(255) DEFAULT NULL COMMENT '文章标签',
  28. `artice_topic_id` int(11) DEFAULT NULL COMMENT '文章主题id',
  29. `image` varchar(255) DEFAULT NULL COMMENT '图片',
  30. `publish_time` datetime DEFAULT NULL COMMENT '发表时间',
  31. `eye_fill` int(11) DEFAULT NULL COMMENT '浏览量',
  32. `like_count` int(255) DEFAULT NULL COMMENT '点赞量',
  33. `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  34. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  35. `update_by` varchar(255) DEFAULT NULL COMMENT '更新人',
  36. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  37. PRIMARY KEY (`id`)
  38. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  39. /*!40101 SET character_set_client = @saved_cs_client */;
  40. --
  41. -- Dumping data for table `artice`
  42. --
  43. LOCK TABLES `artice` WRITE;
  44. /*!40000 ALTER TABLE `artice` DISABLE KEYS */;
  45. /*!40000 ALTER TABLE `artice` ENABLE KEYS */;
  46. UNLOCK TABLES;
  47. --
  48. -- Table structure for table `artice_tag`
  49. --
  50. DROP TABLE IF EXISTS `artice_tag`;
  51. /*!40101 SET @saved_cs_client = @@character_set_client */;
  52. /*!40101 SET character_set_client = utf8 */;
  53. CREATE TABLE `artice_tag` (
  54. `id` int(11) NOT NULL AUTO_INCREMENT,
  55. `tag_name` varchar(255) DEFAULT NULL COMMENT '标签名',
  56. `tag_desc` varchar(255) DEFAULT NULL COMMENT '标签描述',
  57. PRIMARY KEY (`id`)
  58. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  59. /*!40101 SET character_set_client = @saved_cs_client */;
  60. --
  61. -- Dumping data for table `artice_tag`
  62. --
  63. LOCK TABLES `artice_tag` WRITE;
  64. /*!40000 ALTER TABLE `artice_tag` DISABLE KEYS */;
  65. /*!40000 ALTER TABLE `artice_tag` ENABLE KEYS */;
  66. UNLOCK TABLES;
  67. --
  68. -- Table structure for table `artice_topic`
  69. --
  70. DROP TABLE IF EXISTS `artice_topic`;
  71. /*!40101 SET @saved_cs_client = @@character_set_client */;
  72. /*!40101 SET character_set_client = utf8 */;
  73. CREATE TABLE `artice_topic` (
  74. `id` int(11) NOT NULL,
  75. `image` varchar(255) NOT NULL COMMENT '图片',
  76. `topic_name` varchar(255) DEFAULT NULL COMMENT '主题名称',
  77. `topic_desc` varchar(255) DEFAULT NULL COMMENT '主题描述',
  78. PRIMARY KEY (`id`)
  79. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  80. /*!40101 SET character_set_client = @saved_cs_client */;
  81. --
  82. -- Dumping data for table `artice_topic`
  83. --
  84. LOCK TABLES `artice_topic` WRITE;
  85. /*!40000 ALTER TABLE `artice_topic` DISABLE KEYS */;
  86. /*!40000 ALTER TABLE `artice_topic` ENABLE KEYS */;
  87. UNLOCK TABLES;
  88. --
  89. -- Table structure for table `authority`
  90. --
  91. DROP TABLE IF EXISTS `authority`;
  92. /*!40101 SET @saved_cs_client = @@character_set_client */;
  93. /*!40101 SET character_set_client = utf8 */;
  94. CREATE TABLE `authority` (
  95. `id` int(11) NOT NULL AUTO_INCREMENT,
  96. `authority_name` varchar(255) DEFAULT NULL,
  97. `authority_path` varchar(255) DEFAULT NULL,
  98. PRIMARY KEY (`id`) USING BTREE
  99. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  100. /*!40101 SET character_set_client = @saved_cs_client */;
  101. --
  102. -- Dumping data for table `authority`
  103. --
  104. LOCK TABLES `authority` WRITE;
  105. /*!40000 ALTER TABLE `authority` DISABLE KEYS */;
  106. INSERT INTO `authority` VALUES (1,'登录','/api/ping');
  107. /*!40000 ALTER TABLE `authority` ENABLE KEYS */;
  108. UNLOCK TABLES;
  109. --
  110. -- Table structure for table `goods`
  111. --
  112. DROP TABLE IF EXISTS `goods`;
  113. /*!40101 SET @saved_cs_client = @@character_set_client */;
  114. /*!40101 SET character_set_client = utf8 */;
  115. CREATE TABLE `goods` (
  116. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  117. `type_id` int(11) NOT NULL COMMENT '分类id',
  118. `goods_name` varchar(255) NOT NULL COMMENT '商品名字',
  119. `introduction_id` int(11) DEFAULT NULL COMMENT '商品介绍id',
  120. `sales_volume` varchar(255) DEFAULT NULL COMMENT '近30天销量',
  121. `tag_ids` varchar(255) DEFAULT NULL COMMENT '商品标签',
  122. PRIMARY KEY (`id`) USING BTREE
  123. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  124. /*!40101 SET character_set_client = @saved_cs_client */;
  125. --
  126. -- Dumping data for table `goods`
  127. --
  128. LOCK TABLES `goods` WRITE;
  129. /*!40000 ALTER TABLE `goods` DISABLE KEYS */;
  130. INSERT INTO `goods` VALUES (1,1,'苹果礼品卡特惠包',NULL,NULL,'1,2'),(2,2,'PUBG国际服直充',NULL,NULL,NULL);
  131. /*!40000 ALTER TABLE `goods` ENABLE KEYS */;
  132. UNLOCK TABLES;
  133. --
  134. -- Table structure for table `goods_commodity_area`
  135. --
  136. DROP TABLE IF EXISTS `goods_commodity_area`;
  137. /*!40101 SET @saved_cs_client = @@character_set_client */;
  138. /*!40101 SET character_set_client = utf8 */;
  139. CREATE TABLE `goods_commodity_area` (
  140. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  141. `goods_id` int(11) DEFAULT NULL COMMENT '商品id',
  142. `commodity_area_name` varchar(255) NOT NULL COMMENT '商品属地名称',
  143. `detail_image` varchar(255) DEFAULT NULL COMMENT '详情图片',
  144. `detail_introduction_id` int(11) DEFAULT NULL COMMENT '相关文本详情id',
  145. PRIMARY KEY (`id`) USING BTREE
  146. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  147. /*!40101 SET character_set_client = @saved_cs_client */;
  148. --
  149. -- Dumping data for table `goods_commodity_area`
  150. --
  151. LOCK TABLES `goods_commodity_area` WRITE;
  152. /*!40000 ALTER TABLE `goods_commodity_area` DISABLE KEYS */;
  153. INSERT INTO `goods_commodity_area` VALUES (1,1,'美国',NULL,1),(2,1,'日本',NULL,2),(3,1,'香港',NULL,1),(4,1,'台湾',NULL,1);
  154. /*!40000 ALTER TABLE `goods_commodity_area` ENABLE KEYS */;
  155. UNLOCK TABLES;
  156. --
  157. -- Table structure for table `goods_coupon`
  158. --
  159. DROP TABLE IF EXISTS `goods_coupon`;
  160. /*!40101 SET @saved_cs_client = @@character_set_client */;
  161. /*!40101 SET character_set_client = utf8 */;
  162. CREATE TABLE `goods_coupon` (
  163. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  164. `coupon_name` varchar(255) DEFAULT NULL COMMENT '优惠券名称',
  165. `coupon_desc` varchar(255) DEFAULT NULL COMMENT '优惠券描述',
  166. `cash_back_point` decimal(11,0) DEFAULT NULL COMMENT '满x',
  167. `cash_back_price` decimal(10,2) DEFAULT NULL COMMENT '减x',
  168. `condition_by_topic` varchar(255) DEFAULT NULL COMMENT '主题可用,id',
  169. `condition_by_type` varchar(255) DEFAULT NULL COMMENT '类型可用,id',
  170. `condition_by_goods` varchar(255) DEFAULT NULL COMMENT '商品可用,id',
  171. `count` int(255) DEFAULT NULL COMMENT '优惠券数量',
  172. `receive_type` varchar(255) DEFAULT NULL COMMENT '领取条件',
  173. `validity` varchar(255) DEFAULT NULL COMMENT '有效性,领取开始计时(ClaimTiming),固定时间(FixedTime)',
  174. `validity_period` datetime DEFAULT NULL COMMENT '有效期',
  175. PRIMARY KEY (`id`)
  176. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='优惠券';
  177. /*!40101 SET character_set_client = @saved_cs_client */;
  178. --
  179. -- Dumping data for table `goods_coupon`
  180. --
  181. LOCK TABLES `goods_coupon` WRITE;
  182. /*!40000 ALTER TABLE `goods_coupon` DISABLE KEYS */;
  183. /*!40000 ALTER TABLE `goods_coupon` ENABLE KEYS */;
  184. UNLOCK TABLES;
  185. --
  186. -- Table structure for table `goods_coupon_user`
  187. --
  188. DROP TABLE IF EXISTS `goods_coupon_user`;
  189. /*!40101 SET @saved_cs_client = @@character_set_client */;
  190. /*!40101 SET character_set_client = utf8 */;
  191. CREATE TABLE `goods_coupon_user` (
  192. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  193. `user_id` int(11) DEFAULT NULL COMMENT '用户id',
  194. `coupon_id` int(11) DEFAULT NULL COMMENT '优惠券id',
  195. `collection_time` datetime DEFAULT NULL COMMENT '领取时间',
  196. `state` varchar(255) DEFAULT NULL COMMENT '状态,已使用2,未使用1,已过期0',
  197. PRIMARY KEY (`id`)
  198. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='优惠券领取';
  199. /*!40101 SET character_set_client = @saved_cs_client */;
  200. --
  201. -- Dumping data for table `goods_coupon_user`
  202. --
  203. LOCK TABLES `goods_coupon_user` WRITE;
  204. /*!40000 ALTER TABLE `goods_coupon_user` DISABLE KEYS */;
  205. /*!40000 ALTER TABLE `goods_coupon_user` ENABLE KEYS */;
  206. UNLOCK TABLES;
  207. --
  208. -- Table structure for table `goods_introduction`
  209. --
  210. DROP TABLE IF EXISTS `goods_introduction`;
  211. /*!40101 SET @saved_cs_client = @@character_set_client */;
  212. /*!40101 SET character_set_client = utf8 */;
  213. CREATE TABLE `goods_introduction` (
  214. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id',
  215. `goods_article_name` varchar(255) DEFAULT NULL COMMENT '商品文章名',
  216. `goods_article` longblob COMMENT '商品文章',
  217. `create_by` varchar(0) DEFAULT NULL COMMENT '创建人',
  218. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  219. `update_by` varchar(255) DEFAULT NULL COMMENT '更新人',
  220. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  221. PRIMARY KEY (`id`)
  222. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='商品介绍';
  223. /*!40101 SET character_set_client = @saved_cs_client */;
  224. --
  225. -- Dumping data for table `goods_introduction`
  226. --
  227. LOCK TABLES `goods_introduction` WRITE;
  228. /*!40000 ALTER TABLE `goods_introduction` DISABLE KEYS */;
  229. INSERT INTO `goods_introduction` VALUES (1,'商品介绍',_binary '<div class=\"content\"><p style=\"text-wrap: wrap;\">声明:保护未成年健康,本平台禁止未成年消费</p><p style=\"text-wrap: wrap;\">一、直充说明</p><p style=\"text-wrap: wrap;\">【填写信息】UID直充</p><p style=\"text-wrap: wrap;\">【充值流程】输入UID,选择区服 → 下单支付 → 充值完成</p><p style=\"text-wrap: wrap;\">【充值时长】1~3分钟(高峰期可能晚几分钟)</p><p style=\"text-wrap: wrap;\">二、注意事项</p><p style=\"text-wrap: wrap;\">1.填错充值账号怎么办?能退款吗?</p><p style=\"text-wrap: wrap;\">如果我们按照您填写的信息已完成充值,那么将无法退还,如果因我平台导致充值错误,经核验后,可退还;若不影响二次销售的点卡类商品,联系在线客服可帮忙转卖,但等待时间不定。</p><p style=\"text-wrap: wrap;\">2.支付成功后多久能到账?</p><p style=\"text-wrap: wrap;\">一般情况下,1-2分钟内即可到账。如超过5分钟未到账请及时联系客服咨询</p><p style=\"text-wrap: wrap;\"><img src=\"https://files.kardz.cn/cms/image_$1702884899572057560_$1712557168223077827.png\"></p><div class=\"detail-main__StyledSupplementaryStatement-sc-1971otn-0 hfMgQN\"><span>*</span>本售后政策不叠加【随心换服务】<br>账号类商品:自购买日起售后期3天,商品质量问题免费更换<br>邮箱类商品:自购买日起3天内<br>卡密类商品:因卡密都是正规可囤,无售后期。(如有问题随时联系我们处理)<br>充值类商品:到账后无法售后<br></div><div class=\"desc\">购买说明:原神国际服直充 300+30 Genesis Crystals来自官方渠道,支持极速发货、错误包换,如有需要可关注<a title=\"原神手游(国际服)直充原神国际服直充 300+30 Genesis Crystals充值_原神手游(国际服)直充国际服充值-kardz官网\" href=\"http://kar.kardz.cc/detail/1578289602.html\">http://kar.kardz.cc/detail/1578289602.html</a></div></div>',NULL,NULL,NULL,NULL),(2,'懒得介绍',_binary '<p>666</p>',NULL,NULL,NULL,NULL);
  230. /*!40000 ALTER TABLE `goods_introduction` ENABLE KEYS */;
  231. UNLOCK TABLES;
  232. --
  233. -- Table structure for table `goods_order`
  234. --
  235. DROP TABLE IF EXISTS `goods_order`;
  236. /*!40101 SET @saved_cs_client = @@character_set_client */;
  237. /*!40101 SET character_set_client = utf8 */;
  238. CREATE TABLE `goods_order` (
  239. `id` int(11) NOT NULL COMMENT 'id',
  240. `order_name` varchar(255) DEFAULT NULL COMMENT '订单名',
  241. `sku_id` int(11) DEFAULT NULL COMMENT 'skuid',
  242. `count` int(11) DEFAULT NULL COMMENT '购买数量',
  243. `price` decimal(10,2) DEFAULT NULL COMMENT '单价',
  244. `total_price` decimal(10,2) DEFAULT NULL COMMENT '总价',
  245. `contact_information` varchar(255) DEFAULT NULL COMMENT '联系方式',
  246. `coupon_user_id` int(11) DEFAULT NULL COMMENT '使用的优惠券',
  247. `create_by` int(255) DEFAULT NULL COMMENT '用户id',
  248. `create_time` datetime DEFAULT NULL COMMENT '订单创建时间',
  249. PRIMARY KEY (`id`)
  250. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  251. /*!40101 SET character_set_client = @saved_cs_client */;
  252. --
  253. -- Dumping data for table `goods_order`
  254. --
  255. LOCK TABLES `goods_order` WRITE;
  256. /*!40000 ALTER TABLE `goods_order` DISABLE KEYS */;
  257. /*!40000 ALTER TABLE `goods_order` ENABLE KEYS */;
  258. UNLOCK TABLES;
  259. --
  260. -- Table structure for table `goods_sku`
  261. --
  262. DROP TABLE IF EXISTS `goods_sku`;
  263. /*!40101 SET @saved_cs_client = @@character_set_client */;
  264. /*!40101 SET character_set_client = utf8 */;
  265. CREATE TABLE `goods_sku` (
  266. `id` int(11) NOT NULL AUTO_INCREMENT,
  267. `sku_image` varchar(255) DEFAULT NULL COMMENT 'sku图片',
  268. `sku_name` varchar(255) NOT NULL COMMENT '商品sku名字',
  269. `price` decimal(10,2) NOT NULL COMMENT '现在价格',
  270. `historical_prices` decimal(10,2) NOT NULL COMMENT '历史价格',
  271. `inventory_number` int(11) NOT NULL COMMENT '库存',
  272. `commodity_area_id` int(11) NOT NULL COMMENT '属地id',
  273. `goods_id` int(11) NOT NULL COMMENT '商品id',
  274. `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  275. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  276. PRIMARY KEY (`id`) USING BTREE
  277. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  278. /*!40101 SET character_set_client = @saved_cs_client */;
  279. --
  280. -- Dumping data for table `goods_sku`
  281. --
  282. LOCK TABLES `goods_sku` WRITE;
  283. /*!40000 ALTER TABLE `goods_sku` DISABLE KEYS */;
  284. INSERT INTO `goods_sku` VALUES (1,'/api/static/20240423094145微信图片_20240416170543.jpg','特惠包1【苹果礼品卡3美金+精品账号】',36.00,36.00,50,1,1,NULL,NULL),(2,'/api/static/20240423094145微信图片_20240416170543.jpg','特惠包2【苹果礼品卡5美金+精品账号】',52.00,58.80,50,1,1,NULL,NULL),(3,'/api/static/202404231412462.jpg','特惠包3【苹果礼品卡3美金+5美金】',75.00,67.00,50,1,1,NULL,NULL),(4,'/api/static/20240423094145微信图片_20240416170543.jpg','特惠包2【苹果礼品卡500日元+精美账号】',48.00,55.00,50,2,1,NULL,NULL),(5,'/api/static/20240423094145微信图片_20240416170543.jpg','特惠包1【苹果礼品卡150港元+200港元】',381.00,384.00,50,3,1,NULL,NULL),(6,'/api/static/20240423094145微信图片_20240416170543.jpg','特惠包1【苹果礼品卡100NT+300NT】',135.00,139.00,50,4,1,NULL,NULL),(7,'/api/static/20240423094145微信图片_20240416170543.jpg','PUBG国际服(地铁逃生)直充-300+25UC',37.39,41.00,50,0,2,NULL,NULL);
  285. /*!40000 ALTER TABLE `goods_sku` ENABLE KEYS */;
  286. UNLOCK TABLES;
  287. --
  288. -- Table structure for table `goods_sku_card`
  289. --
  290. DROP TABLE IF EXISTS `goods_sku_card`;
  291. /*!40101 SET @saved_cs_client = @@character_set_client */;
  292. /*!40101 SET character_set_client = utf8 */;
  293. CREATE TABLE `goods_sku_card` (
  294. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  295. `card_name` varchar(255) DEFAULT NULL COMMENT '卡种名称',
  296. `state` varchar(255) DEFAULT NULL COMMENT '状态,0未使用,1已用,2过期',
  297. `count` int(11) DEFAULT NULL COMMENT '库存',
  298. `total_count` varchar(255) DEFAULT NULL COMMENT '总数',
  299. `card_key` varchar(255) DEFAULT NULL COMMENT '卡密',
  300. `use` varchar(5) DEFAULT NULL COMMENT '是否已用',
  301. `upload_time` datetime DEFAULT NULL COMMENT '入库时间',
  302. `sku_id` int(11) DEFAULT NULL COMMENT '商品规格绑定',
  303. `sort` varchar(255) DEFAULT NULL COMMENT '排序,出售优先级',
  304. PRIMARY KEY (`id`)
  305. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  306. /*!40101 SET character_set_client = @saved_cs_client */;
  307. --
  308. -- Dumping data for table `goods_sku_card`
  309. --
  310. LOCK TABLES `goods_sku_card` WRITE;
  311. /*!40000 ALTER TABLE `goods_sku_card` DISABLE KEYS */;
  312. /*!40000 ALTER TABLE `goods_sku_card` ENABLE KEYS */;
  313. UNLOCK TABLES;
  314. --
  315. -- Table structure for table `goods_tag`
  316. --
  317. DROP TABLE IF EXISTS `goods_tag`;
  318. /*!40101 SET @saved_cs_client = @@character_set_client */;
  319. /*!40101 SET character_set_client = utf8 */;
  320. CREATE TABLE `goods_tag` (
  321. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  322. `name` varchar(255) DEFAULT NULL COMMENT '名字',
  323. `icon_url` varchar(255) DEFAULT NULL COMMENT '图标路径',
  324. `tag` varchar(255) DEFAULT NULL COMMENT '标签',
  325. PRIMARY KEY (`id`)
  326. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  327. /*!40101 SET character_set_client = @saved_cs_client */;
  328. --
  329. -- Dumping data for table `goods_tag`
  330. --
  331. LOCK TABLES `goods_tag` WRITE;
  332. /*!40000 ALTER TABLE `goods_tag` DISABLE KEYS */;
  333. INSERT INTO `goods_tag` VALUES (1,'支持中文','/api/static/20240423094145微信图片_20240416170543.jpg','语言支持'),(2,'支持','','独立密码');
  334. /*!40000 ALTER TABLE `goods_tag` ENABLE KEYS */;
  335. UNLOCK TABLES;
  336. --
  337. -- Table structure for table `goods_topic`
  338. --
  339. DROP TABLE IF EXISTS `goods_topic`;
  340. /*!40101 SET @saved_cs_client = @@character_set_client */;
  341. /*!40101 SET character_set_client = utf8 */;
  342. CREATE TABLE `goods_topic` (
  343. `id` int(11) NOT NULL AUTO_INCREMENT,
  344. `topic_page_image` varchar(255) DEFAULT NULL COMMENT '主题首页图片',
  345. `topic_name` varchar(255) DEFAULT NULL COMMENT '主题名称',
  346. `topic_desc` varchar(255) DEFAULT NULL COMMENT '主题描述',
  347. `type_ids` varchar(255) DEFAULT NULL COMMENT '商品类型id',
  348. PRIMARY KEY (`id`)
  349. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  350. /*!40101 SET character_set_client = @saved_cs_client */;
  351. --
  352. -- Dumping data for table `goods_topic`
  353. --
  354. LOCK TABLES `goods_topic` WRITE;
  355. /*!40000 ALTER TABLE `goods_topic` DISABLE KEYS */;
  356. INSERT INTO `goods_topic` VALUES (1,NULL,'软件直充','软件在线充值,快速秒到账','1'),(2,NULL,'游戏充值','游戏在线充值,热门游戏尽在其中','2');
  357. /*!40000 ALTER TABLE `goods_topic` ENABLE KEYS */;
  358. UNLOCK TABLES;
  359. --
  360. -- Table structure for table `goods_type`
  361. --
  362. DROP TABLE IF EXISTS `goods_type`;
  363. /*!40101 SET @saved_cs_client = @@character_set_client */;
  364. /*!40101 SET character_set_client = utf8 */;
  365. CREATE TABLE `goods_type` (
  366. `id` int(11) NOT NULL AUTO_INCREMENT,
  367. `sort` int(11) DEFAULT NULL COMMENT '排序',
  368. `type_image` varchar(50) DEFAULT NULL COMMENT '类型图片',
  369. `type_name` varchar(255) NOT NULL COMMENT '商品类别名称',
  370. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  371. PRIMARY KEY (`id`) USING BTREE
  372. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品分类';
  373. /*!40101 SET character_set_client = @saved_cs_client */;
  374. --
  375. -- Dumping data for table `goods_type`
  376. --
  377. LOCK TABLES `goods_type` WRITE;
  378. /*!40000 ALTER TABLE `goods_type` DISABLE KEYS */;
  379. INSERT INTO `goods_type` VALUES (1,NULL,NULL,'礼品卡',NULL),(2,NULL,NULL,'海外直冲',NULL);
  380. /*!40000 ALTER TABLE `goods_type` ENABLE KEYS */;
  381. UNLOCK TABLES;
  382. --
  383. -- Table structure for table `role`
  384. --
  385. DROP TABLE IF EXISTS `role`;
  386. /*!40101 SET @saved_cs_client = @@character_set_client */;
  387. /*!40101 SET character_set_client = utf8 */;
  388. CREATE TABLE `role` (
  389. `id` int(11) NOT NULL AUTO_INCREMENT,
  390. `role_name` varchar(255) DEFAULT NULL,
  391. PRIMARY KEY (`id`) USING BTREE
  392. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  393. /*!40101 SET character_set_client = @saved_cs_client */;
  394. --
  395. -- Dumping data for table `role`
  396. --
  397. LOCK TABLES `role` WRITE;
  398. /*!40000 ALTER TABLE `role` DISABLE KEYS */;
  399. INSERT INTO `role` VALUES (1,'超级管理员'),(2,'普通用户');
  400. /*!40000 ALTER TABLE `role` ENABLE KEYS */;
  401. UNLOCK TABLES;
  402. --
  403. -- Table structure for table `role_authority`
  404. --
  405. DROP TABLE IF EXISTS `role_authority`;
  406. /*!40101 SET @saved_cs_client = @@character_set_client */;
  407. /*!40101 SET character_set_client = utf8 */;
  408. CREATE TABLE `role_authority` (
  409. `authority_id` int(11) NOT NULL,
  410. `role_id` int(11) NOT NULL,
  411. PRIMARY KEY (`authority_id`) USING BTREE
  412. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  413. /*!40101 SET character_set_client = @saved_cs_client */;
  414. --
  415. -- Dumping data for table `role_authority`
  416. --
  417. LOCK TABLES `role_authority` WRITE;
  418. /*!40000 ALTER TABLE `role_authority` DISABLE KEYS */;
  419. INSERT INTO `role_authority` VALUES (1,1);
  420. /*!40000 ALTER TABLE `role_authority` ENABLE KEYS */;
  421. UNLOCK TABLES;
  422. --
  423. -- Table structure for table `user`
  424. --
  425. DROP TABLE IF EXISTS `user`;
  426. /*!40101 SET @saved_cs_client = @@character_set_client */;
  427. /*!40101 SET character_set_client = utf8 */;
  428. CREATE TABLE `user` (
  429. `id` int(11) NOT NULL AUTO_INCREMENT,
  430. `username` varchar(255) DEFAULT NULL COMMENT '账号',
  431. `password` varchar(255) DEFAULT NULL COMMENT '密码',
  432. `creation_time` int(11) DEFAULT NULL COMMENT '账号创建时间',
  433. `login_time` int(11) DEFAULT NULL COMMENT '登录时间',
  434. `status` varchar(255) DEFAULT NULL COMMENT '账号状态',
  435. `role_id` int(11) DEFAULT NULL COMMENT '角色id',
  436. `phone` varchar(255) DEFAULT NULL COMMENT '手机',
  437. `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  438. `name` varchar(255) DEFAULT NULL COMMENT '用户名',
  439. `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  440. `recommend_code` varchar(255) DEFAULT NULL COMMENT '推荐码',
  441. PRIMARY KEY (`id`) USING BTREE,
  442. KEY `usernames` (`username`) USING BTREE COMMENT '用户名'
  443. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  444. /*!40101 SET character_set_client = @saved_cs_client */;
  445. --
  446. -- Dumping data for table `user`
  447. --
  448. LOCK TABLES `user` WRITE;
  449. /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  450. INSERT INTO `user` VALUES (1,'516702882@qq.com','37bcf5e351f329952fb347edc09f31a1',1711168151,NULL,'0',1,'15537351020','516702882@qq.com','大名鼎鼎',NULL,NULL),(2,'875182750@qq.com','37bcf5e351f329952fb347edc09f31a1',1711168151,NULL,'0',2,'13233826561','875182750@qq.com',NULL,NULL,NULL),(7,'123@qq.com','123123',1714287720,0,'0',2,'13642531323','123@qq.com','123@qq.com','','662df46810151761019911310251106102818984');
  451. /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  452. UNLOCK TABLES;
  453. --
  454. -- Table structure for table `user_wallet`
  455. --
  456. DROP TABLE IF EXISTS `user_wallet`;
  457. /*!40101 SET @saved_cs_client = @@character_set_client */;
  458. /*!40101 SET character_set_client = utf8 */;
  459. CREATE TABLE `user_wallet` (
  460. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  461. `user_id` int(11) DEFAULT NULL COMMENT '用户id',
  462. `balance` decimal(65,0) DEFAULT NULL COMMENT '余额',
  463. `promotion_amount` decimal(20,2) DEFAULT NULL COMMENT '推广获取总金额',
  464. `recharge_amount` decimal(20,2) DEFAULT NULL COMMENT '充值金额',
  465. PRIMARY KEY (`id`),
  466. KEY `user` (`user_id`),
  467. CONSTRAINT `user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
  468. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  469. /*!40101 SET character_set_client = @saved_cs_client */;
  470. --
  471. -- Dumping data for table `user_wallet`
  472. --
  473. LOCK TABLES `user_wallet` WRITE;
  474. /*!40000 ALTER TABLE `user_wallet` DISABLE KEYS */;
  475. /*!40000 ALTER TABLE `user_wallet` ENABLE KEYS */;
  476. UNLOCK TABLES;
  477. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  478. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  479. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  480. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  481. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  482. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  483. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  484. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  485. -- Dump completed on 2024-04-30 16:55:24