Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
93d8690c
Commit
93d8690c
authored
Oct 18, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(member): sql文件更新
parent
924dddb4
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
90 additions
and
18 deletions
+90
-18
member_user_address.sql
sql/member/member_user_address.sql
+2
-2
member_user_level_config.sql
sql/member/member_user_level_config.sql
+2
-2
member_user_score.sql
sql/member/member_user_score.sql
+2
-2
member_user_score_detail.sql
sql/member/member_user_score_detail.sql
+1
-1
member_user_score_detail_releation.sql
sql/member/member_user_score_detail_releation.sql
+2
-2
member_user_score_log.sql
sql/member/member_user_score_log.sql
+1
-1
score_rule.sql
sql/member/score_rule.sql
+4
-4
score_rule_share_fail_trigger.sql
sql/member/score_rule_share_fail_trigger.sql
+32
-0
score_rule_share_record.sql
sql/member/score_rule_share_record.sql
+39
-0
ecw_reward.sql
sql/reward/ecw_reward.sql
+3
-3
ecw_reward_redeem.sql
sql/reward/ecw_reward_redeem.sql
+2
-1
No files found.
sql/member/member_user_address.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:03:15
Date: 1
8/10/2024 09:26:20
*/
SET
NAMES
utf8mb4
;
...
...
@@ -35,6 +35,6 @@ CREATE TABLE `member_user_address` (
`updater`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted`
tinyint
(
1
)
NOT
NULL
DEFAULT
0
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
6
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员收货地址表'
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员收货地址表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_level_config.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:03:24
Date: 1
8/10/2024 09:26:20
*/
SET
NAMES
utf8mb4
;
...
...
@@ -33,6 +33,6 @@ CREATE TABLE `member_user_level_config` (
`update_time`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`deleted`
tinyint
(
1
)
NULL
DEFAULT
0
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
0
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员等级配置表'
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员等级配置表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:03:34
Date: 1
8/10/2024 09:26:20
*/
SET
NAMES
utf8mb4
;
...
...
@@ -33,6 +33,6 @@ CREATE TABLE `member_user_score` (
`updater`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted`
tinyint
(
1
)
NOT
NULL
DEFAULT
0
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
9
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员积分表'
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员积分表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score_detail.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:03:47
Date: 1
8/10/2024 09:26:54
*/
SET
NAMES
utf8mb4
;
...
...
sql/member/member_user_score_detail_releation.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:03:5
5
Date: 1
8/10/2024 09:27:0
5
*/
SET
NAMES
utf8mb4
;
...
...
@@ -34,6 +34,6 @@ CREATE TABLE `member_user_score_detail_releation` (
`update_time`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`deleted`
tinyint
(
1
)
NULL
DEFAULT
0
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
23
CHARACTER
SET
=
tis620
COLLATE
=
tis620_thai_ci
COMMENT
=
'会员积分详情关联表'
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
tis620
COLLATE
=
tis620_thai_ci
COMMENT
=
'会员积分详情关联表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score_log.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:04:03
Date: 1
8/10/2024 09:27:20
*/
SET
NAMES
utf8mb4
;
...
...
sql/member/score_rule.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date:
06/09/2024 11:23:57
Date:
18/10/2024 09:27:30
*/
SET
NAMES
utf8mb4
;
...
...
@@ -26,8 +26,8 @@ CREATE TABLE `score_rule` (
`code`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'规则编号'
,
`type`
int
NOT
NULL
COMMENT
'指标类型'
,
`title_zh`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'规则标题中文'
,
`title_en`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
0900_ai
_ci
NOT
NULL
COMMENT
'规则标题英文'
,
`desc_zh`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
0900_ai
_ci
NOT
NULL
COMMENT
'规则说明中文'
,
`title_en`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general
_ci
NOT
NULL
COMMENT
'规则标题英文'
,
`desc_zh`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_
general
_ci
NOT
NULL
COMMENT
'规则说明中文'
,
`desc_en`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'规则说明英文'
,
`cover_image_zh`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'封面图中文'
,
`cover_image_en`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'封面图英文'
,
...
...
@@ -47,6 +47,6 @@ CREATE TABLE `score_rule` (
`updater`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新者'
,
`deleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'积分规则表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/score_rule_share_fail_trigger.sql
0 → 100644
View file @
93d8690c
/*
Navicat Premium Data Transfer
Source Server : jiedao-uat
Source Server Type : MySQL
Source Server Version : 80031 (8.0.31)
Source Host : 159.75.224.138:2297
Source Schema : jiedao
Target Server Type : MySQL
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 18/10/2024 09:27:40
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for score_rule_share_fail_trigger
-- ----------------------------
DROP
TABLE
IF
EXISTS
`score_rule_share_fail_trigger`
;
CREATE
TABLE
`score_rule_share_fail_trigger`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`share_record_id`
bigint
NOT
NULL
COMMENT
'分享记录id'
,
`trigger_time`
datetime
NOT
NULL
COMMENT
'点击时间'
,
`ip_address`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'点击ip'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
23
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/score_rule_share_record.sql
0 → 100644
View file @
93d8690c
/*
Navicat Premium Data Transfer
Source Server : jiedao-uat
Source Server Type : MySQL
Source Server Version : 80031 (8.0.31)
Source Host : 159.75.224.138:2297
Source Schema : jiedao
Target Server Type : MySQL
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 18/10/2024 09:27:47
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for score_rule_share_record
-- ----------------------------
DROP
TABLE
IF
EXISTS
`score_rule_share_record`
;
CREATE
TABLE
`score_rule_share_record`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`code`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'分享编号'
,
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`rule_id`
bigint
NOT
NULL
COMMENT
'积分规则id'
,
`total_score`
int
NULL
DEFAULT
0
COMMENT
'总积分'
,
`last_trigger_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'最后触发时间'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`creator`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
''
COMMENT
'创建者'
,
`update_time`
datetime
NOT
NULL
COMMENT
'更新时间'
,
`updater`
varchar
(
64
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新者'
,
`deleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
64
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'分享记录表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/reward/ecw_reward.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date: 1
5/08/2024 11:04:36
Date: 1
8/10/2024 09:28:59
*/
SET
NAMES
utf8mb4
;
...
...
@@ -31,7 +31,7 @@ CREATE TABLE `ecw_reward` (
`img_en`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'英文礼品图片'
,
`img_fr`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'法文礼品图片'
,
`points_require`
int
NOT
NULL
COMMENT
'兑换所需积分'
,
`node_id`
int
NOT
NULL
COMMENT
'
兑换网点
'
,
`node_id`
int
NOT
NULL
COMMENT
'
提货点id(对应仓库warehouse_id)
'
,
`exchange_count`
int
NULL
DEFAULT
0
COMMENT
'已兑换次数'
,
`quantity_remain`
int
NOT
NULL
COMMENT
'剩余数量'
,
`start_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'活动开始时间'
,
...
...
@@ -49,6 +49,6 @@ CREATE TABLE `ecw_reward` (
`deleted`
bit
(
1
)
NOT
NULL
DEFAULT
b
'0'
COMMENT
'是否删除'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
INDEX
`unique_code`
(
`code`
ASC
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
38
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
COMMENT
=
'礼品'
ROW_FORMAT
=
DYNAMIC
;
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
1
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_0900_ai_ci
COMMENT
=
'礼品'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/reward/ecw_reward_redeem.sql
View file @
93d8690c
...
...
@@ -11,7 +11,7 @@
Target Server Version : 80031 (8.0.31)
File Encoding : 65001
Date:
06/09/2024 11:26:34
Date:
18/10/2024 09:29:09
*/
SET
NAMES
utf8mb4
;
...
...
@@ -27,6 +27,7 @@ CREATE TABLE `ecw_reward_redeem` (
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`reward_id`
bigint
NOT
NULL
COMMENT
'礼品id'
,
`status`
int
NULL
DEFAULT
NULL
COMMENT
'兑换状态'
,
`hold_score_before_redeem`
int
NULL
DEFAULT
0
COMMENT
'兑换前持有的积分'
,
`score_count`
int
NOT
NULL
COMMENT
'积分数量'
,
`reward_count`
int
NOT
NULL
COMMENT
'兑换数量'
,
`redeem_type`
int
NOT
NULL
COMMENT
'兑换方式'
,
...
...
Write
Preview
Markdown
is supported
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