Administrator 2 жил өмнө
parent
commit
462407d77c
1 өөрчлөгдсөн 120 нэмэгдсэн , 1 устгасан
  1. 120 1
      file/virtual_mall.sql

+ 120 - 1
file/virtual_mall.sql

@@ -15,6 +15,37 @@
 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
 
+--
+-- Table structure for table `artice`
+--
+
+DROP TABLE IF EXISTS `artice`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `artice` (
+  `id` int(11) NOT NULL COMMENT 'id',
+  `article_title` varchar(255) DEFAULT NULL COMMENT '文章名称',
+  `artice_content` longblob COMMENT '文章内容',
+  `state` varchar(255) DEFAULT NULL COMMENT '状态',
+  `image` varchar(255) DEFAULT NULL COMMENT '图片',
+  `publish_time` datetime DEFAULT NULL COMMENT '发表时间',
+  `create_by` varchar(255) DEFAULT NULL COMMENT '创建人',
+  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
+  `update_by` varchar(255) DEFAULT NULL COMMENT '更新人',
+  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `artice`
+--
+
+LOCK TABLES `artice` WRITE;
+/*!40000 ALTER TABLE `artice` DISABLE KEYS */;
+/*!40000 ALTER TABLE `artice` ENABLE KEYS */;
+UNLOCK TABLES;
+
 --
 -- Table structure for table `authority`
 --
@@ -95,6 +126,65 @@ INSERT INTO `goods_commodity_area` VALUES (1,1,'美国',NULL,1),(2,1,'日本',NU
 /*!40000 ALTER TABLE `goods_commodity_area` ENABLE KEYS */;
 UNLOCK TABLES;
 
+--
+-- Table structure for table `goods_coupon`
+--
+
+DROP TABLE IF EXISTS `goods_coupon`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `goods_coupon` (
+  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
+  `coupon_name` varchar(255) DEFAULT NULL COMMENT '优惠券名称',
+  `coupon_desc` varchar(255) DEFAULT NULL COMMENT '优惠券描述',
+  `cash_back_point` decimal(11,0) DEFAULT NULL COMMENT '满x',
+  `cash_back_price` decimal(10,2) DEFAULT NULL COMMENT '减x',
+  `condition_by_topic` varchar(255) DEFAULT NULL COMMENT '主题可用,id',
+  `condition_by_type` varchar(255) DEFAULT NULL COMMENT '类型可用,id',
+  `condition_by_goods` varchar(255) DEFAULT NULL COMMENT '商品可用,id',
+  `count` int(255) DEFAULT NULL COMMENT '优惠券数量',
+  `receive_type` varchar(255) DEFAULT NULL COMMENT '领取条件',
+  `validity` varchar(255) DEFAULT NULL COMMENT '有效性,领取开始计时(ClaimTiming),固定时间(FixedTime)',
+  `validity_period` datetime DEFAULT NULL COMMENT '有效期',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='优惠券';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `goods_coupon`
+--
+
+LOCK TABLES `goods_coupon` WRITE;
+/*!40000 ALTER TABLE `goods_coupon` DISABLE KEYS */;
+/*!40000 ALTER TABLE `goods_coupon` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
+-- Table structure for table `goods_coupon_user`
+--
+
+DROP TABLE IF EXISTS `goods_coupon_user`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `goods_coupon_user` (
+  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
+  `user_id` int(11) DEFAULT NULL COMMENT '用户id',
+  `coupon_id` int(11) DEFAULT NULL COMMENT '优惠券id',
+  `collection_time` datetime DEFAULT NULL COMMENT '领取时间',
+  `state` varchar(255) DEFAULT NULL COMMENT '状态,已使用2,未使用1,已过期0',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='优惠券领取';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `goods_coupon_user`
+--
+
+LOCK TABLES `goods_coupon_user` WRITE;
+/*!40000 ALTER TABLE `goods_coupon_user` DISABLE KEYS */;
+/*!40000 ALTER TABLE `goods_coupon_user` ENABLE KEYS */;
+UNLOCK TABLES;
+
 --
 -- Table structure for table `goods_introduction`
 --
@@ -124,6 +214,35 @@ INSERT INTO `goods_introduction` VALUES (1,'商品介绍',_binary '<div class=\"
 /*!40000 ALTER TABLE `goods_introduction` ENABLE KEYS */;
 UNLOCK TABLES;
 
+--
+-- Table structure for table `goods_order`
+--
+
+DROP TABLE IF EXISTS `goods_order`;
+/*!40101 SET @saved_cs_client     = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `goods_order` (
+  `id` int(11) NOT NULL COMMENT 'id',
+  `create_by` int(255) DEFAULT NULL COMMENT '用户id',
+  `order_name` varchar(255) DEFAULT NULL COMMENT '订单名',
+  `sku_id` int(11) DEFAULT NULL COMMENT 'skuid',
+  `count` int(11) DEFAULT NULL COMMENT '购买数量',
+  `price` decimal(10,2) DEFAULT NULL COMMENT '单价',
+  `total_price` decimal(10,2) DEFAULT NULL COMMENT '总价',
+  `coupon_user_id` int(11) DEFAULT NULL COMMENT '使用的优惠券',
+  PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `goods_order`
+--
+
+LOCK TABLES `goods_order` WRITE;
+/*!40000 ALTER TABLE `goods_order` DISABLE KEYS */;
+/*!40000 ALTER TABLE `goods_order` ENABLE KEYS */;
+UNLOCK TABLES;
+
 --
 -- Table structure for table `goods_sku`
 --
@@ -356,4 +475,4 @@ UNLOCK TABLES;
 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
 
--- Dump completed on 2024-04-28 17:11:27
+-- Dump completed on 2024-04-29 17:15:57