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
bc3631f0
Commit
bc3631f0
authored
Aug 15, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员功能新增sql脚本整理
parent
0ccd65ec
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
413 additions
and
0 deletions
+413
-0
member_user_address.sql
sql/member/member_user_address.sql
+40
-0
member_user_level_config.sql
sql/member/member_user_level_config.sql
+38
-0
member_user_score.sql
sql/member/member_user_score.sql
+38
-0
member_user_score_detail.sql
sql/member/member_user_score_detail.sql
+40
-0
member_user_score_detail_releation.sql
sql/member/member_user_score_detail_releation.sql
+39
-0
member_user_score_log.sql
sql/member/member_user_score_log.sql
+42
-0
member_user_update_20240815.sql
sql/member/member_user_update_20240815.sql
+15
-0
score_rule.sql
sql/member/score_rule.sql
+51
-0
ecw_reward.sql
sql/reward/ecw_reward.sql
+54
-0
ecw_reward_redeem.sql
sql/reward/ecw_reward_redeem.sql
+56
-0
system_dict_update_20240815.sql
sql/数据字典备份脚本/system_dict_update_20240815.sql
+0
-0
No files found.
sql/member/member_user_address.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:03:15
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for member_user_address
-- ----------------------------
DROP
TABLE
IF
EXISTS
`member_user_address`
;
CREATE
TABLE
`member_user_address`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`is_default`
tinyint
NULL
DEFAULT
NULL
COMMENT
'是否默认地址'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'收货人姓名'
,
`area_code`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'区号'
,
`phone`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'收货人手机'
,
`address`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'详细地址'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`creator`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`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
=
16
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员收货地址表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_level_config.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:03:24
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for member_user_level_config
-- ----------------------------
DROP
TABLE
IF
EXISTS
`member_user_level_config`
;
CREATE
TABLE
`member_user_level_config`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NOT
NULL
COMMENT
'名称'
,
`lower_count`
int
NOT
NULL
COMMENT
'起始分数'
,
`upper_count`
int
NOT
NULL
COMMENT
'截止分数'
,
`icon`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NOT
NULL
COMMENT
'图标'
,
`creator`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`create_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updater`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`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
=
10
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员等级配置表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:03:34
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for member_user_score
-- ----------------------------
DROP
TABLE
IF
EXISTS
`member_user_score`
;
CREATE
TABLE
`member_user_score`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`hold_score`
int
NOT
NULL
DEFAULT
0
COMMENT
'持有积分'
,
`used_score`
int
NOT
NULL
DEFAULT
0
COMMENT
'已使用积分'
,
`expired_score`
int
NOT
NULL
DEFAULT
0
COMMENT
'过期积分'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`creator`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`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
=
19
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员积分表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score_detail.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:03:47
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for member_user_score_detail
-- ----------------------------
DROP
TABLE
IF
EXISTS
`member_user_score_detail`
;
CREATE
TABLE
`member_user_score_detail`
(
`id`
bigint
NOT
NULL
COMMENT
'主键'
,
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`score_count`
int
NOT
NULL
DEFAULT
0
COMMENT
'积分数量'
,
`status`
int
NOT
NULL
COMMENT
'积分状态 '
,
`remain_count`
int
NOT
NULL
COMMENT
'剩余积分'
,
`expire_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'积分过期时间'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`update_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`creator`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`updater`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted`
tinyint
(
1
)
NULL
DEFAULT
0
COMMENT
'是否删除'
,
`ext_param`
json
NULL
COMMENT
'扩展字段'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员积分详情表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score_detail_releation.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:03:55
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for member_user_score_detail_releation
-- ----------------------------
DROP
TABLE
IF
EXISTS
`member_user_score_detail_releation`
;
CREATE
TABLE
`member_user_score_detail_releation`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
COMMENT
'主键'
,
`releation_id`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'关联id'
,
`source_type`
int
NOT
NULL
COMMENT
'积分来源'
,
`detail_id`
bigint
NOT
NULL
COMMENT
'积分明细id'
,
`score_count`
int
NOT
NULL
COMMENT
'积分数量'
,
`status`
int
NOT
NULL
COMMENT
'关系状态 1有效2无效'
,
`creator`
varchar
(
255
)
CHARACTER
SET
tis620
COLLATE
tis620_thai_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`create_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`updater`
varchar
(
255
)
CHARACTER
SET
tis620
COLLATE
tis620_thai_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`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
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_score_log.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:04:03
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for member_user_score_log
-- ----------------------------
DROP
TABLE
IF
EXISTS
`member_user_score_log`
;
CREATE
TABLE
`member_user_score_log`
(
`id`
bigint
NOT
NULL
COMMENT
'主键'
,
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`score_count`
int
UNSIGNED
NOT
NULL
COMMENT
'积分数量'
,
`operate_type`
int
NOT
NULL
COMMENT
'操作类型 1增加2减少'
,
`source_type`
int
NOT
NULL
COMMENT
'积分来源'
,
`rule_id`
int
NULL
DEFAULT
NULL
COMMENT
'积分规则id'
,
`create_time`
datetime
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`ext_param`
json
NULL
COMMENT
'扩展参数'
,
`creator`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`updater`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted`
tinyint
(
1
)
NULL
DEFAULT
0
COMMENT
'是否删除'
,
`update_time`
datetime
NULL
DEFAULT
NULL
,
`unique_id`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'唯一键幂等'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
,
UNIQUE
INDEX
`unique_id`
(
`unique_id`
ASC
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
COMMENT
=
'会员积分日志表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/member/member_user_update_20240815.sql
0 → 100644
View file @
bc3631f0
SET
FOREIGN_KEY_CHECKS
=
0
;
ALTER
TABLE
`jiedao`
.
`member_user`
ADD
COLUMN
`code`
varchar
(
20
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'会员编号'
AFTER
`id`
;
ALTER
TABLE
`jiedao`
.
`member_user`
ADD
COLUMN
`country`
int
NULL
DEFAULT
NULL
COMMENT
'国家'
AFTER
`control_password`
;
ALTER
TABLE
`jiedao`
.
`member_user`
ADD
COLUMN
`city`
int
NULL
DEFAULT
NULL
COMMENT
'城市'
AFTER
`country`
;
ALTER
TABLE
`jiedao`
.
`member_user`
ADD
COLUMN
`referral_code`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'推荐码'
AFTER
`open_id`
;
ALTER
TABLE
`jiedao`
.
`member_user`
ADD
COLUMN
`register_platform`
int
NULL
DEFAULT
0
COMMENT
'注册平台'
AFTER
`referral_code`
;
ALTER
TABLE
`jiedao`
.
`member_user`
ADD
UNIQUE
INDEX
`code`
(
`code`
ASC
)
USING
BTREE
;
SET
FOREIGN_KEY_CHECKS
=
1
;
\ No newline at end of file
sql/member/score_rule.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:04:17
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for score_rule
-- ----------------------------
DROP
TABLE
IF
EXISTS
`score_rule`
;
CREATE
TABLE
`score_rule`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
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
'规则说明中文'
,
`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
'封面图英文'
,
`get_score_once`
int
NOT
NULL
DEFAULT
0
COMMENT
'单次获取积分数'
,
`max_score_total`
int
NOT
NULL
DEFAULT
0
COMMENT
'累积最高积分'
,
`start_time`
datetime
NOT
NULL
COMMENT
'活动开始时间'
,
`end_time`
datetime
NOT
NULL
COMMENT
'活动结束时间'
,
`score_period`
int
NOT
NULL
COMMENT
'积分有效期'
,
`order_num`
int
NOT
NULL
COMMENT
'排序值'
,
`push_activity`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'是否推送'
,
`show_platform`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
COMMENT
'展示平台'
,
`status`
int
NOT
NULL
COMMENT
'活动状态'
,
`extra`
json
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
=
42
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/reward/ecw_reward.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:04:36
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for ecw_reward
-- ----------------------------
DROP
TABLE
IF
EXISTS
`ecw_reward`
;
CREATE
TABLE
`ecw_reward`
(
`id`
bigint
NOT
NULL
AUTO_INCREMENT
,
`code`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NOT
NULL
COMMENT
'礼品ID'
,
`title_zh`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'中文名称'
,
`title_en`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'英文名称'
,
`title_fr`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'法文名称'
,
`img_zh`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'中文礼品图片'
,
`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
'兑换网点'
,
`exchange_count`
int
NULL
DEFAULT
0
COMMENT
'已兑换次数'
,
`quantity_remain`
int
NOT
NULL
COMMENT
'剩余数量'
,
`start_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'活动开始时间'
,
`end_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'活动结束时间'
,
`pick_method`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NOT
NULL
COMMENT
'领取方式(1上门领取,2包邮到家,3邮寄到付)'
,
`allow_count`
int
NOT
NULL
COMMENT
'允许兑换次数'
,
`remark_zh`
varchar
(
500
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'中文备注'
,
`remark_en`
varchar
(
500
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'英文备注'
,
`remark_fr`
varchar
(
500
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'法文备注'
,
`status`
int
NOT
NULL
DEFAULT
0
COMMENT
'礼品状态(1已启用,2未启用,3已关闭,4已过期)'
,
`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
''
COMMENT
'更新者'
,
`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
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/reward/ecw_reward_redeem.sql
0 → 100644
View file @
bc3631f0
/*
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: 15/08/2024 11:17:08
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for ecw_reward_redeem
-- ----------------------------
DROP
TABLE
IF
EXISTS
`ecw_reward_redeem`
;
CREATE
TABLE
`ecw_reward_redeem`
(
`id`
bigint
NOT
NULL
COMMENT
'主键'
,
`member_id`
bigint
NOT
NULL
COMMENT
'会员id'
,
`reward_id`
bigint
NOT
NULL
COMMENT
'礼品id'
,
`status`
int
NULL
DEFAULT
NULL
COMMENT
'兑换状态'
,
`score_count`
int
NOT
NULL
COMMENT
'积分数量'
,
`reward_count`
int
NOT
NULL
COMMENT
'兑换数量'
,
`redeem_type`
int
NOT
NULL
COMMENT
'兑换方式'
,
`entrance`
int
NOT
NULL
COMMENT
'兑换入口'
,
`expenses`
decimal
(
10
,
2
)
NULL
DEFAULT
NULL
COMMENT
'费用'
,
`currency`
int
NULL
DEFAULT
NULL
COMMENT
'费用币种'
,
`recipient_name`
varchar
(
50
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NOT
NULL
DEFAULT
''
COMMENT
'收件人姓名'
,
`recipient_phone_num`
varchar
(
20
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NOT
NULL
DEFAULT
''
COMMENT
'收件人电话'
,
`recipient_address`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NOT
NULL
DEFAULT
''
COMMENT
'收件人地址'
,
`redeemer`
varchar
(
20
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'兑换人'
,
`redemption_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'兑换时间'
,
`courier_company`
int
NULL
DEFAULT
NULL
COMMENT
'快递公司'
,
`express_no`
varchar
(
100
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'快递单号'
,
`express_date`
datetime
NULL
DEFAULT
NULL
COMMENT
'快递日期'
,
`express_sender`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'快递寄出人'
,
`annex`
varchar
(
1000
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'上传附件'
,
`remark`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_0900_ai_ci
NULL
DEFAULT
NULL
COMMENT
'备注'
,
`create_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`update_time`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`creator`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'创建人'
,
`updater`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'更新人'
,
`deleted`
tinyint
(
1
)
NULL
DEFAULT
0
COMMENT
'是否删除'
,
`verify_user`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
NULL
DEFAULT
NULL
COMMENT
'核销人'
,
`verify_time`
datetime
NULL
DEFAULT
NULL
COMMENT
'核销时间'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
sql/数据字典备份脚本/system_dict_update_20240815.sql
0 → 100644
View file @
bc3631f0
This diff is collapsed.
Click to expand it.
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