virtual_mall.sql 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. -- MySQL dump 10.13 Distrib 5.7.43, for Win64 (x86_64)
  2. --
  3. -- Host: 127.0.0.1 Database: virtual_mall
  4. -- ------------------------------------------------------
  5. -- Server version 5.7.43-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 `article`
  18. --
  19. DROP TABLE IF EXISTS `article`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `article` (
  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 `article`
  42. --
  43. LOCK TABLES `article` WRITE;
  44. /*!40000 ALTER TABLE `article` DISABLE KEYS */;
  45. /*!40000 ALTER TABLE `article` ENABLE KEYS */;
  46. UNLOCK TABLES;
  47. --
  48. -- Table structure for table `article_tag`
  49. --
  50. DROP TABLE IF EXISTS `article_tag`;
  51. /*!40101 SET @saved_cs_client = @@character_set_client */;
  52. /*!40101 SET character_set_client = utf8 */;
  53. CREATE TABLE `article_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 `article_tag`
  62. --
  63. LOCK TABLES `article_tag` WRITE;
  64. /*!40000 ALTER TABLE `article_tag` DISABLE KEYS */;
  65. /*!40000 ALTER TABLE `article_tag` ENABLE KEYS */;
  66. UNLOCK TABLES;
  67. --
  68. -- Table structure for table `article_topic`
  69. --
  70. DROP TABLE IF EXISTS `article_topic`;
  71. /*!40101 SET @saved_cs_client = @@character_set_client */;
  72. /*!40101 SET character_set_client = utf8 */;
  73. CREATE TABLE `article_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 `article_topic`
  83. --
  84. LOCK TABLES `article_topic` WRITE;
  85. /*!40000 ALTER TABLE `article_topic` DISABLE KEYS */;
  86. /*!40000 ALTER TABLE `article_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` int(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,2) DEFAULT NULL COMMENT '满x',
  167. `cash_back_price` decimal(11,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. `grant_count` varchar(255) DEFAULT NULL COMMENT '发放数量',
  172. `count` int(255) DEFAULT NULL COMMENT '优惠券余量',
  173. `receive_type` varchar(255) DEFAULT NULL COMMENT '领取条件',
  174. `validity` varchar(255) DEFAULT NULL COMMENT '有效性,领取开始计时(ClaimTiming),固定时间(FixedTime)',
  175. `validity_period` datetime DEFAULT NULL COMMENT '有效期',
  176. PRIMARY KEY (`id`)
  177. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='优惠券';
  178. /*!40101 SET character_set_client = @saved_cs_client */;
  179. --
  180. -- Dumping data for table `goods_coupon`
  181. --
  182. LOCK TABLES `goods_coupon` WRITE;
  183. /*!40000 ALTER TABLE `goods_coupon` DISABLE KEYS */;
  184. INSERT INTO `goods_coupon` VALUES (1,'全场优惠','满10减1',10.00,1.00,NULL,NULL,NULL,NULL,50,NULL,'ClaimTiming','2024-05-05 17:09:19');
  185. /*!40000 ALTER TABLE `goods_coupon` ENABLE KEYS */;
  186. UNLOCK TABLES;
  187. --
  188. -- Table structure for table `goods_coupon_user`
  189. --
  190. DROP TABLE IF EXISTS `goods_coupon_user`;
  191. /*!40101 SET @saved_cs_client = @@character_set_client */;
  192. /*!40101 SET character_set_client = utf8 */;
  193. CREATE TABLE `goods_coupon_user` (
  194. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  195. `user_id` int(11) DEFAULT NULL COMMENT '用户id',
  196. `coupon_id` int(11) DEFAULT NULL COMMENT '优惠券id',
  197. `collection_time` datetime DEFAULT NULL COMMENT '领取时间',
  198. `state` varchar(255) DEFAULT '1' COMMENT '状态,已使用2,未使用1,已过期0',
  199. PRIMARY KEY (`id`)
  200. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='优惠券领取';
  201. /*!40101 SET character_set_client = @saved_cs_client */;
  202. --
  203. -- Dumping data for table `goods_coupon_user`
  204. --
  205. LOCK TABLES `goods_coupon_user` WRITE;
  206. /*!40000 ALTER TABLE `goods_coupon_user` DISABLE KEYS */;
  207. INSERT INTO `goods_coupon_user` VALUES (1,1,1,'2024-05-05 16:30:25','1');
  208. /*!40000 ALTER TABLE `goods_coupon_user` ENABLE KEYS */;
  209. UNLOCK TABLES;
  210. --
  211. -- Table structure for table `goods_introduction`
  212. --
  213. DROP TABLE IF EXISTS `goods_introduction`;
  214. /*!40101 SET @saved_cs_client = @@character_set_client */;
  215. /*!40101 SET character_set_client = utf8 */;
  216. CREATE TABLE `goods_introduction` (
  217. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '文章id',
  218. `goods_article_name` varchar(255) DEFAULT NULL COMMENT '商品文章名',
  219. `goods_article` longblob COMMENT '商品文章',
  220. `create_by` varchar(0) DEFAULT NULL COMMENT '创建人',
  221. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  222. `update_by` varchar(255) DEFAULT NULL COMMENT '更新人',
  223. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  224. PRIMARY KEY (`id`)
  225. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='商品介绍';
  226. /*!40101 SET character_set_client = @saved_cs_client */;
  227. --
  228. -- Dumping data for table `goods_introduction`
  229. --
  230. LOCK TABLES `goods_introduction` WRITE;
  231. /*!40000 ALTER TABLE `goods_introduction` DISABLE KEYS */;
  232. 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);
  233. /*!40000 ALTER TABLE `goods_introduction` ENABLE KEYS */;
  234. UNLOCK TABLES;
  235. --
  236. -- Table structure for table `goods_order`
  237. --
  238. DROP TABLE IF EXISTS `goods_order`;
  239. /*!40101 SET @saved_cs_client = @@character_set_client */;
  240. /*!40101 SET character_set_client = utf8 */;
  241. CREATE TABLE `goods_order` (
  242. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  243. `order_name` varchar(255) DEFAULT NULL COMMENT '订单名',
  244. `sku_id` int(11) DEFAULT NULL COMMENT 'skuid',
  245. `count` int(11) DEFAULT NULL COMMENT '购买数量',
  246. `price` decimal(10,2) DEFAULT NULL COMMENT '单价',
  247. `total_price` decimal(10,2) DEFAULT NULL COMMENT '总价',
  248. `contact_information` varchar(255) DEFAULT NULL COMMENT '联系方式',
  249. `coupon_user_id` int(11) DEFAULT NULL COMMENT '使用的优惠券',
  250. `state` varchar(10) DEFAULT '0' COMMENT '支付状态,0待支付,1待发货,2已发货,3订单完成,4订单异常',
  251. `create_by` int(255) DEFAULT NULL COMMENT '用户id',
  252. `create_time` datetime DEFAULT NULL COMMENT '订单创建时间',
  253. PRIMARY KEY (`id`)
  254. ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
  255. /*!40101 SET character_set_client = @saved_cs_client */;
  256. --
  257. -- Dumping data for table `goods_order`
  258. --
  259. LOCK TABLES `goods_order` WRITE;
  260. /*!40000 ALTER TABLE `goods_order` DISABLE KEYS */;
  261. INSERT INTO `goods_order` VALUES (1,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 14:08:31'),(2,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'1',1,'2024-05-04 22:01:55'),(3,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'2',1,'2024-05-04 22:01:55'),(4,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'3',1,'2024-05-04 22:01:55'),(5,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(6,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'1',1,'2024-05-04 22:01:55'),(7,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(8,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(9,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'4',1,'2024-05-04 22:01:55'),(10,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'1',1,'2024-05-04 22:01:55'),(11,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(12,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'2',1,'2024-05-04 22:01:55'),(13,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(14,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(15,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(16,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'2',1,'2024-05-04 22:01:55'),(17,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55'),(18,'特惠包1【苹果礼品卡3美金+精品账号】【x1】',1,1,36.00,36.00,'',0,'0',1,'2024-05-04 22:01:55');
  262. /*!40000 ALTER TABLE `goods_order` ENABLE KEYS */;
  263. UNLOCK TABLES;
  264. --
  265. -- Table structure for table `goods_sku`
  266. --
  267. DROP TABLE IF EXISTS `goods_sku`;
  268. /*!40101 SET @saved_cs_client = @@character_set_client */;
  269. /*!40101 SET character_set_client = utf8 */;
  270. CREATE TABLE `goods_sku` (
  271. `id` int(11) NOT NULL AUTO_INCREMENT,
  272. `sku_image` varchar(255) DEFAULT NULL COMMENT 'sku图片',
  273. `sku_name` varchar(255) NOT NULL COMMENT '商品sku名字',
  274. `price` decimal(10,2) NOT NULL COMMENT '现在价格',
  275. `historical_prices` decimal(10,2) NOT NULL COMMENT '历史价格',
  276. `inventory_number` int(11) NOT NULL COMMENT '库存',
  277. `commodity_area_id` int(11) NOT NULL COMMENT '属地id',
  278. `goods_id` int(11) NOT NULL COMMENT '商品id',
  279. `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
  280. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  281. PRIMARY KEY (`id`) USING BTREE
  282. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  283. /*!40101 SET character_set_client = @saved_cs_client */;
  284. --
  285. -- Dumping data for table `goods_sku`
  286. --
  287. LOCK TABLES `goods_sku` WRITE;
  288. /*!40000 ALTER TABLE `goods_sku` DISABLE KEYS */;
  289. 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);
  290. /*!40000 ALTER TABLE `goods_sku` ENABLE KEYS */;
  291. UNLOCK TABLES;
  292. --
  293. -- Table structure for table `goods_sku_card`
  294. --
  295. DROP TABLE IF EXISTS `goods_sku_card`;
  296. /*!40101 SET @saved_cs_client = @@character_set_client */;
  297. /*!40101 SET character_set_client = utf8 */;
  298. CREATE TABLE `goods_sku_card` (
  299. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  300. `card_name` varchar(255) DEFAULT NULL COMMENT '卡种名称',
  301. `state` varchar(255) DEFAULT NULL COMMENT '状态,0未使用,1已用,2过期',
  302. `count` int(11) DEFAULT NULL COMMENT '库存',
  303. `total_count` varchar(255) DEFAULT NULL COMMENT '总数',
  304. `card_key` varchar(255) DEFAULT NULL COMMENT '卡密',
  305. `use` varchar(5) DEFAULT NULL COMMENT '是否已用',
  306. `upload_time` datetime DEFAULT NULL COMMENT '入库时间',
  307. `sku_id` int(11) DEFAULT NULL COMMENT '商品规格绑定',
  308. `sort` varchar(255) DEFAULT NULL COMMENT '排序,出售优先级',
  309. PRIMARY KEY (`id`)
  310. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  311. /*!40101 SET character_set_client = @saved_cs_client */;
  312. --
  313. -- Dumping data for table `goods_sku_card`
  314. --
  315. LOCK TABLES `goods_sku_card` WRITE;
  316. /*!40000 ALTER TABLE `goods_sku_card` DISABLE KEYS */;
  317. /*!40000 ALTER TABLE `goods_sku_card` ENABLE KEYS */;
  318. UNLOCK TABLES;
  319. --
  320. -- Table structure for table `goods_tag`
  321. --
  322. DROP TABLE IF EXISTS `goods_tag`;
  323. /*!40101 SET @saved_cs_client = @@character_set_client */;
  324. /*!40101 SET character_set_client = utf8 */;
  325. CREATE TABLE `goods_tag` (
  326. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  327. `name` varchar(255) DEFAULT NULL COMMENT '名字',
  328. `icon_url` varchar(255) DEFAULT NULL COMMENT '图标路径',
  329. `tag` varchar(255) DEFAULT NULL COMMENT '标签',
  330. PRIMARY KEY (`id`)
  331. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  332. /*!40101 SET character_set_client = @saved_cs_client */;
  333. --
  334. -- Dumping data for table `goods_tag`
  335. --
  336. LOCK TABLES `goods_tag` WRITE;
  337. /*!40000 ALTER TABLE `goods_tag` DISABLE KEYS */;
  338. INSERT INTO `goods_tag` VALUES (1,'支持中文','/api/static/20240423094145微信图片_20240416170543.jpg','语言支持'),(2,'支持','','独立密码');
  339. /*!40000 ALTER TABLE `goods_tag` ENABLE KEYS */;
  340. UNLOCK TABLES;
  341. --
  342. -- Table structure for table `goods_topic`
  343. --
  344. DROP TABLE IF EXISTS `goods_topic`;
  345. /*!40101 SET @saved_cs_client = @@character_set_client */;
  346. /*!40101 SET character_set_client = utf8 */;
  347. CREATE TABLE `goods_topic` (
  348. `id` int(11) NOT NULL AUTO_INCREMENT,
  349. `topic_page_image` varchar(255) DEFAULT NULL COMMENT '主题首页图片',
  350. `topic_name` varchar(255) DEFAULT NULL COMMENT '主题名称',
  351. `topic_desc` varchar(255) DEFAULT NULL COMMENT '主题描述',
  352. `type_ids` varchar(255) DEFAULT NULL COMMENT '商品类型id',
  353. PRIMARY KEY (`id`)
  354. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  355. /*!40101 SET character_set_client = @saved_cs_client */;
  356. --
  357. -- Dumping data for table `goods_topic`
  358. --
  359. LOCK TABLES `goods_topic` WRITE;
  360. /*!40000 ALTER TABLE `goods_topic` DISABLE KEYS */;
  361. INSERT INTO `goods_topic` VALUES (1,NULL,'软件直充','软件在线充值,快速秒到账','1'),(2,NULL,'游戏充值','游戏在线充值,热门游戏尽在其中','2');
  362. /*!40000 ALTER TABLE `goods_topic` ENABLE KEYS */;
  363. UNLOCK TABLES;
  364. --
  365. -- Table structure for table `goods_type`
  366. --
  367. DROP TABLE IF EXISTS `goods_type`;
  368. /*!40101 SET @saved_cs_client = @@character_set_client */;
  369. /*!40101 SET character_set_client = utf8 */;
  370. CREATE TABLE `goods_type` (
  371. `id` int(11) NOT NULL AUTO_INCREMENT,
  372. `sort` int(11) DEFAULT NULL COMMENT '排序',
  373. `type_image` varchar(50) DEFAULT NULL COMMENT '类型图片',
  374. `type_name` varchar(255) NOT NULL COMMENT '商品类别名称',
  375. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  376. PRIMARY KEY (`id`) USING BTREE
  377. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品分类';
  378. /*!40101 SET character_set_client = @saved_cs_client */;
  379. --
  380. -- Dumping data for table `goods_type`
  381. --
  382. LOCK TABLES `goods_type` WRITE;
  383. /*!40000 ALTER TABLE `goods_type` DISABLE KEYS */;
  384. INSERT INTO `goods_type` VALUES (1,NULL,NULL,'礼品卡',NULL),(2,NULL,NULL,'海外直冲',NULL);
  385. /*!40000 ALTER TABLE `goods_type` ENABLE KEYS */;
  386. UNLOCK TABLES;
  387. --
  388. -- Table structure for table `manage_user`
  389. --
  390. DROP TABLE IF EXISTS `manage_user`;
  391. /*!40101 SET @saved_cs_client = @@character_set_client */;
  392. /*!40101 SET character_set_client = utf8 */;
  393. CREATE TABLE `manage_user` (
  394. `id` int(11) NOT NULL AUTO_INCREMENT,
  395. `name` varchar(255) DEFAULT NULL COMMENT '名称',
  396. `username` varchar(255) DEFAULT NULL COMMENT '账号',
  397. `password` varchar(255) DEFAULT NULL COMMENT '密码',
  398. `creation_time` int(11) DEFAULT NULL COMMENT '账号创建时间',
  399. `login_time` int(11) DEFAULT NULL COMMENT '登录时间',
  400. `status` varchar(255) DEFAULT NULL COMMENT '账号状态',
  401. `role_id` int(11) DEFAULT NULL COMMENT '角色id',
  402. `phone` varchar(255) DEFAULT NULL COMMENT '手机',
  403. `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  404. `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  405. PRIMARY KEY (`id`) USING BTREE,
  406. KEY `usernames` (`username`) USING BTREE COMMENT '用户名'
  407. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  408. /*!40101 SET character_set_client = @saved_cs_client */;
  409. --
  410. -- Dumping data for table `manage_user`
  411. --
  412. LOCK TABLES `manage_user` WRITE;
  413. /*!40000 ALTER TABLE `manage_user` DISABLE KEYS */;
  414. INSERT INTO `manage_user` VALUES (1,'大名鼎鼎','admin','4fef88243e8e49e90007fdfe2df0e53f',NULL,0,'1',1,'13123456789','516702882@qq.com',NULL);
  415. /*!40000 ALTER TABLE `manage_user` ENABLE KEYS */;
  416. UNLOCK TABLES;
  417. --
  418. -- Table structure for table `role`
  419. --
  420. DROP TABLE IF EXISTS `role`;
  421. /*!40101 SET @saved_cs_client = @@character_set_client */;
  422. /*!40101 SET character_set_client = utf8 */;
  423. CREATE TABLE `role` (
  424. `id` int(11) NOT NULL AUTO_INCREMENT,
  425. `role_name` varchar(255) DEFAULT NULL,
  426. PRIMARY KEY (`id`) USING BTREE
  427. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  428. /*!40101 SET character_set_client = @saved_cs_client */;
  429. --
  430. -- Dumping data for table `role`
  431. --
  432. LOCK TABLES `role` WRITE;
  433. /*!40000 ALTER TABLE `role` DISABLE KEYS */;
  434. INSERT INTO `role` VALUES (1,'超级管理员'),(2,'普通用户');
  435. /*!40000 ALTER TABLE `role` ENABLE KEYS */;
  436. UNLOCK TABLES;
  437. --
  438. -- Table structure for table `role_authority`
  439. --
  440. DROP TABLE IF EXISTS `role_authority`;
  441. /*!40101 SET @saved_cs_client = @@character_set_client */;
  442. /*!40101 SET character_set_client = utf8 */;
  443. CREATE TABLE `role_authority` (
  444. `authority_id` int(11) NOT NULL,
  445. `role_id` int(11) NOT NULL,
  446. PRIMARY KEY (`authority_id`) USING BTREE
  447. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  448. /*!40101 SET character_set_client = @saved_cs_client */;
  449. --
  450. -- Dumping data for table `role_authority`
  451. --
  452. LOCK TABLES `role_authority` WRITE;
  453. /*!40000 ALTER TABLE `role_authority` DISABLE KEYS */;
  454. INSERT INTO `role_authority` VALUES (1,1);
  455. /*!40000 ALTER TABLE `role_authority` ENABLE KEYS */;
  456. UNLOCK TABLES;
  457. --
  458. -- Table structure for table `user`
  459. --
  460. DROP TABLE IF EXISTS `user`;
  461. /*!40101 SET @saved_cs_client = @@character_set_client */;
  462. /*!40101 SET character_set_client = utf8 */;
  463. CREATE TABLE `user` (
  464. `id` int(11) NOT NULL AUTO_INCREMENT,
  465. `username` varchar(255) DEFAULT NULL COMMENT '账号',
  466. `password` varchar(255) DEFAULT NULL COMMENT '密码',
  467. `creation_time` int(11) DEFAULT NULL COMMENT '账号创建时间',
  468. `login_time` int(11) DEFAULT NULL COMMENT '登录时间',
  469. `status` varchar(255) DEFAULT NULL COMMENT '账号状态',
  470. `role_id` int(11) DEFAULT NULL COMMENT '角色id',
  471. `phone` varchar(255) DEFAULT NULL COMMENT '手机',
  472. `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  473. `name` varchar(255) DEFAULT NULL COMMENT '用户名',
  474. `avatar` varchar(255) DEFAULT NULL COMMENT '头像',
  475. `recommend_code` varchar(255) DEFAULT NULL COMMENT '推荐码',
  476. PRIMARY KEY (`id`) USING BTREE,
  477. KEY `usernames` (`username`) USING BTREE COMMENT '用户名'
  478. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  479. /*!40101 SET character_set_client = @saved_cs_client */;
  480. --
  481. -- Dumping data for table `user`
  482. --
  483. LOCK TABLES `user` WRITE;
  484. /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  485. INSERT INTO `user` VALUES (1,'516702882@qq.com','37bcf5e351f329952fb347edc09f31a1',1711168151,NULL,'0',1,'15537351020','516702882@qq.com','666119',NULL,'20231'),(2,'875182750@qq.com','37bcf5e351f329952fb347edc09f31a1',1711168151,NULL,'0',2,'13233826561','875182750@qq.com',NULL,NULL,'91966'),(7,'123@qq.com','123123',1714287720,0,'0',2,'13642531323','123@qq.com','123@qq.com','','662df46810151761019911310251106102818984');
  486. /*!40000 ALTER TABLE `user` ENABLE KEYS */;
  487. UNLOCK TABLES;
  488. --
  489. -- Table structure for table `user_wallet`
  490. --
  491. DROP TABLE IF EXISTS `user_wallet`;
  492. /*!40101 SET @saved_cs_client = @@character_set_client */;
  493. /*!40101 SET character_set_client = utf8 */;
  494. CREATE TABLE `user_wallet` (
  495. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  496. `user_id` int(11) DEFAULT NULL COMMENT '用户id',
  497. `balance` decimal(65,0) DEFAULT '0' COMMENT '余额',
  498. `promotion_amount` decimal(20,2) DEFAULT '0.00' COMMENT '推广获取总金额',
  499. `recharge_amount` decimal(20,2) DEFAULT '0.00' COMMENT '充值金额',
  500. PRIMARY KEY (`id`),
  501. KEY `user` (`user_id`),
  502. CONSTRAINT `user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
  503. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  504. /*!40101 SET character_set_client = @saved_cs_client */;
  505. --
  506. -- Dumping data for table `user_wallet`
  507. --
  508. LOCK TABLES `user_wallet` WRITE;
  509. /*!40000 ALTER TABLE `user_wallet` DISABLE KEYS */;
  510. INSERT INTO `user_wallet` VALUES (1,1,0,0.00,0.00);
  511. /*!40000 ALTER TABLE `user_wallet` ENABLE KEYS */;
  512. UNLOCK TABLES;
  513. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  514. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  515. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  516. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  517. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  518. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  519. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  520. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  521. -- Dump completed on 2024-05-06 7:06:19