virtual_mall.sql 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  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 `authority`
  18. --
  19. DROP TABLE IF EXISTS `authority`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `authority` (
  23. `id` int(11) NOT NULL AUTO_INCREMENT,
  24. `authority_name` varchar(255) DEFAULT NULL,
  25. `authority_path` varchar(255) DEFAULT NULL,
  26. PRIMARY KEY (`id`) USING BTREE
  27. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  28. /*!40101 SET character_set_client = @saved_cs_client */;
  29. --
  30. -- Dumping data for table `authority`
  31. --
  32. LOCK TABLES `authority` WRITE;
  33. /*!40000 ALTER TABLE `authority` DISABLE KEYS */;
  34. INSERT INTO `authority` VALUES (1,'登录','/api/ping');
  35. /*!40000 ALTER TABLE `authority` ENABLE KEYS */;
  36. UNLOCK TABLES;
  37. --
  38. -- Table structure for table `goods`
  39. --
  40. DROP TABLE IF EXISTS `goods`;
  41. /*!40101 SET @saved_cs_client = @@character_set_client */;
  42. /*!40101 SET character_set_client = utf8 */;
  43. CREATE TABLE `goods` (
  44. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  45. `type_id` int(11) NOT NULL COMMENT '分类id',
  46. `goods_name` varchar(255) NOT NULL COMMENT '商品名字',
  47. `introduction_id` int(11) DEFAULT NULL COMMENT '商品介绍id',
  48. `sales_volume` varchar(255) DEFAULT NULL COMMENT '近30天销量',
  49. `tag_ids` varchar(255) DEFAULT NULL COMMENT '商品标签',
  50. PRIMARY KEY (`id`) USING BTREE
  51. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  52. /*!40101 SET character_set_client = @saved_cs_client */;
  53. --
  54. -- Dumping data for table `goods`
  55. --
  56. LOCK TABLES `goods` WRITE;
  57. /*!40000 ALTER TABLE `goods` DISABLE KEYS */;
  58. INSERT INTO `goods` VALUES (1,1,'苹果礼品卡特惠包',NULL,NULL,'1,2'),(2,2,'PUBG国际服直充',NULL,NULL,NULL);
  59. /*!40000 ALTER TABLE `goods` ENABLE KEYS */;
  60. UNLOCK TABLES;
  61. --
  62. -- Table structure for table `goods_commodity_area`
  63. --
  64. DROP TABLE IF EXISTS `goods_commodity_area`;
  65. /*!40101 SET @saved_cs_client = @@character_set_client */;
  66. /*!40101 SET character_set_client = utf8 */;
  67. CREATE TABLE `goods_commodity_area` (
  68. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  69. `goods_id` int(11) DEFAULT NULL COMMENT '商品id',
  70. `commodity_area_name` varchar(255) NOT NULL COMMENT '商品属地名称',
  71. `detail_image` varchar(255) DEFAULT NULL COMMENT '详情图片',
  72. `detail_introduction_id` int(11) DEFAULT NULL COMMENT '相关文本详情id',
  73. PRIMARY KEY (`id`) USING BTREE
  74. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  75. /*!40101 SET character_set_client = @saved_cs_client */;
  76. --
  77. -- Dumping data for table `goods_commodity_area`
  78. --
  79. LOCK TABLES `goods_commodity_area` WRITE;
  80. /*!40000 ALTER TABLE `goods_commodity_area` DISABLE KEYS */;
  81. INSERT INTO `goods_commodity_area` VALUES (1,1,'美国',NULL,1),(2,1,'日本',NULL,2),(3,1,'香港',NULL,1),(4,1,'台湾',NULL,1);
  82. /*!40000 ALTER TABLE `goods_commodity_area` ENABLE KEYS */;
  83. UNLOCK TABLES;
  84. --
  85. -- Table structure for table `goods_introduction`
  86. --
  87. DROP TABLE IF EXISTS `goods_introduction`;
  88. /*!40101 SET @saved_cs_client = @@character_set_client */;
  89. /*!40101 SET character_set_client = utf8 */;
  90. CREATE TABLE `goods_introduction` (
  91. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id',
  92. `goods_article_name` varchar(255) DEFAULT NULL COMMENT '商品文章名',
  93. `goods_article` longblob COMMENT '商品文章',
  94. `create_by` varchar(0) DEFAULT NULL COMMENT '创建人',
  95. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  96. `update_by` varchar(255) DEFAULT NULL COMMENT '更新人',
  97. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  98. PRIMARY KEY (`id`)
  99. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='商品介绍';
  100. /*!40101 SET character_set_client = @saved_cs_client */;
  101. --
  102. -- Dumping data for table `goods_introduction`
  103. --
  104. LOCK TABLES `goods_introduction` WRITE;
  105. /*!40000 ALTER TABLE `goods_introduction` DISABLE KEYS */;
  106. 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);
  107. /*!40000 ALTER TABLE `goods_introduction` ENABLE KEYS */;
  108. UNLOCK TABLES;
  109. --
  110. -- Table structure for table `goods_sku`
  111. --
  112. DROP TABLE IF EXISTS `goods_sku`;
  113. /*!40101 SET @saved_cs_client = @@character_set_client */;
  114. /*!40101 SET character_set_client = utf8 */;
  115. CREATE TABLE `goods_sku` (
  116. `id` int(11) NOT NULL AUTO_INCREMENT,
  117. `sku_image` varchar(255) DEFAULT NULL COMMENT 'sku图片',
  118. `sku_name` varchar(255) NOT NULL COMMENT '商品sku名字',
  119. `price` decimal(10,2) NOT NULL COMMENT '现在价格',
  120. `historical_prices` decimal(10,2) NOT NULL COMMENT '历史价格',
  121. `inventory_number` int(11) NOT NULL COMMENT '库存',
  122. `commodity_area_id` int(11) NOT NULL COMMENT '属地id',
  123. `goods_id` int(11) NOT NULL COMMENT '商品id',
  124. `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  125. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  126. PRIMARY KEY (`id`) USING BTREE
  127. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  128. /*!40101 SET character_set_client = @saved_cs_client */;
  129. --
  130. -- Dumping data for table `goods_sku`
  131. --
  132. LOCK TABLES `goods_sku` WRITE;
  133. /*!40000 ALTER TABLE `goods_sku` DISABLE KEYS */;
  134. 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);
  135. /*!40000 ALTER TABLE `goods_sku` ENABLE KEYS */;
  136. UNLOCK TABLES;
  137. --
  138. -- Table structure for table `goods_tag`
  139. --
  140. DROP TABLE IF EXISTS `goods_tag`;
  141. /*!40101 SET @saved_cs_client = @@character_set_client */;
  142. /*!40101 SET character_set_client = utf8 */;
  143. CREATE TABLE `goods_tag` (
  144. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  145. `name` varchar(255) DEFAULT NULL COMMENT '名字',
  146. `icon_url` varchar(255) DEFAULT NULL COMMENT '图标路径',
  147. `tag` varchar(255) DEFAULT NULL COMMENT '标签',
  148. PRIMARY KEY (`id`)
  149. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  150. /*!40101 SET character_set_client = @saved_cs_client */;
  151. --
  152. -- Dumping data for table `goods_tag`
  153. --
  154. LOCK TABLES `goods_tag` WRITE;
  155. /*!40000 ALTER TABLE `goods_tag` DISABLE KEYS */;
  156. INSERT INTO `goods_tag` VALUES (1,'支持中文','/api/static/20240423094145微信图片_20240416170543.jpg','语言支持'),(2,'支持','','独立密码');
  157. /*!40000 ALTER TABLE `goods_tag` ENABLE KEYS */;
  158. UNLOCK TABLES;
  159. --
  160. -- Table structure for table `goods_topic`
  161. --
  162. DROP TABLE IF EXISTS `goods_topic`;
  163. /*!40101 SET @saved_cs_client = @@character_set_client */;
  164. /*!40101 SET character_set_client = utf8 */;
  165. CREATE TABLE `goods_topic` (
  166. `id` int(11) NOT NULL AUTO_INCREMENT,
  167. `topic_page_image` varchar(255) DEFAULT NULL COMMENT '主题首页图片',
  168. `topic_name` varchar(255) DEFAULT NULL COMMENT '主题名称',
  169. `topic_desc` varchar(255) DEFAULT NULL COMMENT '主题描述',
  170. `type_ids` varchar(255) DEFAULT NULL COMMENT '商品类型id',
  171. PRIMARY KEY (`id`)
  172. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  173. /*!40101 SET character_set_client = @saved_cs_client */;
  174. --
  175. -- Dumping data for table `goods_topic`
  176. --
  177. LOCK TABLES `goods_topic` WRITE;
  178. /*!40000 ALTER TABLE `goods_topic` DISABLE KEYS */;
  179. INSERT INTO `goods_topic` VALUES (1,NULL,'软件直充','软件在线充值,快速秒到账','1'),(2,NULL,'游戏充值','游戏在线充值,热门游戏尽在其中','2');
  180. /*!40000 ALTER TABLE `goods_topic` ENABLE KEYS */;
  181. UNLOCK TABLES;
  182. --
  183. -- Table structure for table `goods_type`
  184. --
  185. DROP TABLE IF EXISTS `goods_type`;
  186. /*!40101 SET @saved_cs_client = @@character_set_client */;
  187. /*!40101 SET character_set_client = utf8 */;
  188. CREATE TABLE `goods_type` (
  189. `id` int(11) NOT NULL AUTO_INCREMENT,
  190. `sort` int(11) DEFAULT NULL COMMENT '排序',
  191. `type_image` varchar(50) DEFAULT NULL COMMENT '类型图片',
  192. `type_name` varchar(255) NOT NULL COMMENT '商品类别名称',
  193. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  194. PRIMARY KEY (`id`) USING BTREE
  195. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品分类';
  196. /*!40101 SET character_set_client = @saved_cs_client */;
  197. --
  198. -- Dumping data for table `goods_type`
  199. --
  200. LOCK TABLES `goods_type` WRITE;
  201. /*!40000 ALTER TABLE `goods_type` DISABLE KEYS */;
  202. INSERT INTO `goods_type` VALUES (1,NULL,NULL,'礼品卡',NULL),(2,NULL,NULL,'海外直冲',NULL);
  203. /*!40000 ALTER TABLE `goods_type` ENABLE KEYS */;
  204. UNLOCK TABLES;
  205. --
  206. -- Table structure for table `role`
  207. --
  208. DROP TABLE IF EXISTS `role`;
  209. /*!40101 SET @saved_cs_client = @@character_set_client */;
  210. /*!40101 SET character_set_client = utf8 */;
  211. CREATE TABLE `role` (
  212. `id` int(11) NOT NULL AUTO_INCREMENT,
  213. `role_name` varchar(255) DEFAULT NULL,
  214. PRIMARY KEY (`id`) USING BTREE
  215. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  216. /*!40101 SET character_set_client = @saved_cs_client */;
  217. --
  218. -- Dumping data for table `role`
  219. --
  220. LOCK TABLES `role` WRITE;
  221. /*!40000 ALTER TABLE `role` DISABLE KEYS */;
  222. INSERT INTO `role` VALUES (1,'超级管理员'),(2,'普通用户');
  223. /*!40000 ALTER TABLE `role` ENABLE KEYS */;
  224. UNLOCK TABLES;
  225. --
  226. -- Table structure for table `role_authority`
  227. --
  228. DROP TABLE IF EXISTS `role_authority`;
  229. /*!40101 SET @saved_cs_client = @@character_set_client */;
  230. /*!40101 SET character_set_client = utf8 */;
  231. CREATE TABLE `role_authority` (
  232. `authority_id` int(11) NOT NULL,
  233. `role_id` int(11) NOT NULL,
  234. PRIMARY KEY (`authority_id`) USING BTREE
  235. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  236. /*!40101 SET character_set_client = @saved_cs_client */;
  237. --
  238. -- Dumping data for table `role_authority`
  239. --
  240. LOCK TABLES `role_authority` WRITE;
  241. /*!40000 ALTER TABLE `role_authority` DISABLE KEYS */;
  242. INSERT INTO `role_authority` VALUES (1,1);
  243. /*!40000 ALTER TABLE `role_authority` ENABLE KEYS */;
  244. UNLOCK TABLES;
  245. --
  246. -- Table structure for table `user`
  247. --
  248. DROP TABLE IF EXISTS `user`;
  249. /*!40101 SET @saved_cs_client = @@character_set_client */;
  250. /*!40101 SET character_set_client = utf8 */;
  251. CREATE TABLE `user` (
  252. `id` int(11) NOT NULL AUTO_INCREMENT,
  253. `username` varchar(255) DEFAULT NULL COMMENT '账号',
  254. `password` varchar(255) DEFAULT NULL COMMENT '密码',
  255. `creation_time` int(11) DEFAULT NULL COMMENT '账号创建时间',
  256. `login_time` int(11) DEFAULT NULL COMMENT '登录时间',
  257. `status` varchar(255) DEFAULT NULL COMMENT '账号状态',
  258. `role_id` int(11) DEFAULT NULL COMMENT '角色id',
  259. `phone` varchar(255) DEFAULT NULL COMMENT '手机',
  260. `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  261. `name` varchar(255) DEFAULT NULL COMMENT '用户名',
  262. `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  263. `recommend_code` varchar(255) DEFAULT NULL COMMENT '推荐码',
  264. PRIMARY KEY (`id`) USING BTREE,
  265. KEY `usernames` (`username`) USING BTREE COMMENT '用户名'
  266. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  267. /*!40101 SET character_set_client = @saved_cs_client */;
  268. --
  269. -- Dumping data for table `user`
  270. --
  271. LOCK TABLES `user` WRITE;
  272. /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  273. 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);
  274. /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  275. UNLOCK TABLES;
  276. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  277. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  278. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  279. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  280. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  281. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  282. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  283. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  284. -- Dump completed on 2024-04-26 17:16:41