Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
eff4862d
Commit
eff4862d
authored
Dec 08, 2019
by
Junling Bu
Browse files
feat[litemall-db]: 团购litemall_groupn和litemall_groupon_rules表调整
parent
147b20b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-db/sql/litemall_data.sql
View file @
eff4862d
...
...
@@ -126,6 +126,7 @@ UNLOCK TABLES;
LOCK TABLES `litemall_footprint` WRITE;
/*!40000 ALTER TABLE `litemall_footprint` DISABLE KEYS */;
INSERT INTO `litemall_footprint` VALUES (1,4,1109008,'2019-12-08 19:12:05','2019-12-08 19:12:05',0),(2,4,1110016,'2019-12-08 19:13:42','2019-12-08 19:13:42',0);
/*!40000 ALTER TABLE `litemall_footprint` ENABLE KEYS */;
UNLOCK TABLES;
...
...
@@ -185,7 +186,7 @@ UNLOCK TABLES;
LOCK TABLES `litemall_groupon_rules` WRITE;
/*!40000 ALTER TABLE `litemall_groupon_rules` DISABLE KEYS */;
INSERT INTO `litemall_groupon_rules` VALUES (1,1039051,'多功能午睡枕','http://yanxuan.nosdn.127.net/c8ca0600fa7ba11ca8be6a3173dd38c9.png',20,20,'2018-11-08 13:41:44','2018-11-08 13:41:44',
'2019-12-31 00:00:00',
0),(2,1109008,'云端沙发组合','http://yanxuan.nosdn.127.net/c5be2604c0e4186a4e7079feeb742cee.png',50,5,'2018-11-08 13:42:44','2018-11-08 13:42:44',
'2019-12-31 00:00:00
',0);
INSERT INTO `litemall_groupon_rules` VALUES (1,1039051,'多功能午睡枕','http://yanxuan.nosdn.127.net/c8ca0600fa7ba11ca8be6a3173dd38c9.png',20,20,'
2019-12-31 00:00:00',0,'
2018-11-08 13:41:44','2018-11-08 13:41:44',0),(2,1109008,'云端沙发组合','http://yanxuan.nosdn.127.net/c5be2604c0e4186a4e7079feeb742cee.png',50,5,'
2019-12-31 00:00:00',0,'
2018-11-08 13:42:44','2018-11-08 13:42:44',
0),(3,1110016,'天然硅胶宠物除毛按摩刷','http://yanxuan.nosdn.127.net/3bd73b7279a83d1cbb50c0e45778e6d6.png',39,2,'2020-12-31 00:00:00',0,'2019-12-08 19:13:25','2019-12-08 19:13:25
',0);
/*!40000 ALTER TABLE `litemall_groupon_rules` ENABLE KEYS */;
UNLOCK TABLES;
...
...
@@ -215,6 +216,7 @@ UNLOCK TABLES;
LOCK TABLES `litemall_log` WRITE;
/*!40000 ALTER TABLE `litemall_log` DISABLE KEYS */;
INSERT INTO `litemall_log` VALUES (1,'admin123','0:0:0:0:0:0:0:1',1,'登录',1,'','','2019-12-08 19:12:40','2019-12-08 19:12:40',0);
/*!40000 ALTER TABLE `litemall_log` ENABLE KEYS */;
UNLOCK TABLES;
...
...
@@ -290,6 +292,7 @@ UNLOCK TABLES;
LOCK TABLES `litemall_system` WRITE;
/*!40000 ALTER TABLE `litemall_system` DISABLE KEYS */;
INSERT INTO `litemall_system` VALUES (1,'litemall_order_unpaid','30','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(2,'litemall_wx_index_new','6','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(3,'litemall_mall_latitude','31.201900','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(4,'litemall_order_unconfirm','7','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(5,'litemall_wx_share','false','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(6,'litemall_express_freight_min','88','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(7,'litemall_mall_name','litemall','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(8,'litemall_express_freight_value','8','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(9,'litemall_mall_qq','705144434','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(10,'litemall_wx_index_hot','6','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(11,'litemall_order_comment','7','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(12,'litemall_wx_catlog_goods','4','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(13,'litemall_mall_longitude','121.587839','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(14,'litemall_mall_phone','021-xxxx-xxxx','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(15,'litemall_wx_catlog_list','4','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(16,'litemall_mall_address','上海','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(17,'litemall_wx_index_brand','4','2019-12-08 19:11:18','2019-12-08 19:11:18',0),(18,'litemall_wx_index_topic','4','2019-12-08 19:11:18','2019-12-08 19:11:18',0);
/*!40000 ALTER TABLE `litemall_system` ENABLE KEYS */;
UNLOCK TABLES;
litemall-db/sql/litemall_table.sql
View file @
eff4862d
...
...
@@ -413,17 +413,18 @@ DROP TABLE IF EXISTS `litemall_groupon`;
CREATE
TABLE
`litemall_groupon`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`order_id`
int
(
11
)
NOT
NULL
COMMENT
'关联的订单ID'
,
`groupon_id`
int
(
11
)
DEFAULT
'0'
COMMENT
'
参与的团购ID,仅当user_type不是1
'
,
`groupon_id`
int
(
11
)
DEFAULT
'0'
COMMENT
'
如果是开团用户,则groupon_id是0;如果是参团用户,则groupon_id是团购活动ID
'
,
`rules_id`
int
(
11
)
NOT
NULL
COMMENT
'团购规则ID,关联litemall_groupon_rules表ID字段'
,
`user_id`
int
(
11
)
NOT
NULL
COMMENT
'用户ID'
,
`creator_user_id`
int
(
11
)
NOT
NULL
COMMENT
'创建者ID'
,
`share_url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'团购分享图片地址'
,
`creator_user_id`
int
(
11
)
NOT
NULL
COMMENT
'开团用户ID'
,
`creator_user_time`
datetime
DEFAULT
NULL
COMMENT
'开团时间'
,
`status`
smallint
(
6
)
DEFAULT
'0'
COMMENT
'团购活动状态,开团未支付则0,开团中则1,开团失败则2'
,
`add_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`share_url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'团购分享图片地址'
,
`payed`
tinyint
(
1
)
NOT
NULL
COMMENT
'是否已经支付'
,
`deleted`
tinyint
(
1
)
DEFAULT
'0'
COMMENT
'逻辑删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'团购活动表'
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
@@ -440,12 +441,13 @@ CREATE TABLE `litemall_groupon_rules` (
`pic_url`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'商品图片或者商品货品图片'
,
`discount`
decimal
(
63
,
0
)
NOT
NULL
COMMENT
'优惠金额'
,
`discount_member`
int
(
11
)
NOT
NULL
COMMENT
'达到优惠条件的人数'
,
`expire_time`
datetime
DEFAULT
NULL
COMMENT
'团购过期时间'
,
`status`
smallint
(
6
)
DEFAULT
'0'
COMMENT
'团购规则状态,正常上线则0,到期自动下线则1,管理手动下线则2'
,
`add_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`expire_time`
datetime
DEFAULT
NULL
COMMENT
'团购过期时间'
,
`deleted`
tinyint
(
1
)
DEFAULT
'0'
COMMENT
'逻辑删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
3
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
4
DEFAULT
CHARSET
=
utf8mb4
ROW_FORMAT
=
DYNAMIC
COMMENT
=
'团购规则表'
;
/*!40101 SET character_set_client = @saved_cs_client */
;
--
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment