parent
feeb3c713c
commit
70d6bb2fe8
@ -1,36 +0,0 @@
|
||||
create table tb_membership_code
|
||||
(
|
||||
id varchar(20) not null comment 'id'
|
||||
primary key,
|
||||
code varchar(50) null comment '会员码',
|
||||
status tinyint null comment '状态 1-已生成 2-已绑定 3-已退款 4-已废弃',
|
||||
duration int null comment '会员时长(天)',
|
||||
user_id varchar(20) null comment '使用用户',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_time datetime null comment '修改时间',
|
||||
create_user varchar(20) null comment '创建人',
|
||||
update_user varchar(20) null comment '修改人'
|
||||
)
|
||||
comment '会员码';
|
||||
|
||||
|
||||
create table tb_user_point_log
|
||||
(
|
||||
id varchar(20) not null comment 'id'
|
||||
primary key,
|
||||
score int null comment '分数',
|
||||
type tinyint null comment '1- 增加 2-减少',
|
||||
user_id varchar(20) null comment '所属用户',
|
||||
description varchar(255) null comment '事件描述',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_time datetime null comment '修改时间',
|
||||
create_user varchar(20) null comment '创建人',
|
||||
update_user varchar(20) null comment '修改人'
|
||||
)
|
||||
comment '积分记录表';
|
||||
|
||||
alter table tb_user_info
|
||||
add vip_status tinyint default 0 not null comment '会员状态 0-未开通 1-生效中 2-已过期';
|
||||
|
||||
alter table tb_user_info
|
||||
add vip_expire_time date null comment '会员到期时间';
|
@ -0,0 +1,114 @@
|
||||
create table tb_membership_code
|
||||
(
|
||||
id varchar(20) not null comment 'id'
|
||||
primary key,
|
||||
code varchar(50) null comment '会员码',
|
||||
status tinyint null comment '状态 1-已生成 2-已绑定 3-已退款 4-已废弃',
|
||||
duration int null comment '会员时长(天)',
|
||||
user_id varchar(20) null comment '使用用户',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_time datetime null comment '修改时间',
|
||||
create_user varchar(20) null comment '创建人',
|
||||
update_user varchar(20) null comment '修改人'
|
||||
) comment '会员码';
|
||||
|
||||
|
||||
create table tb_user_point_log
|
||||
(
|
||||
id varchar(20) not null comment 'id'
|
||||
primary key,
|
||||
score int null comment '分数',
|
||||
type tinyint null comment '1- 增加 2-减少',
|
||||
user_id varchar(20) null comment '所属用户',
|
||||
description varchar(255) null comment '事件描述',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_time datetime null comment '修改时间',
|
||||
create_user varchar(20) null comment '创建人',
|
||||
update_user varchar(20) null comment '修改人'
|
||||
) comment '积分记录表';
|
||||
|
||||
alter table tb_user_info
|
||||
add vip_status tinyint default 0 not null comment '会员状态 0-未开通 1-生效中 2-已过期';
|
||||
|
||||
alter table tb_user_info
|
||||
add vip_expire_time date null comment '会员到期时间';
|
||||
|
||||
create table tb_task_point
|
||||
(
|
||||
id varchar(20) not null comment 'id'
|
||||
primary key,
|
||||
score int null comment '分数',
|
||||
type tinyint null comment '任务类型 1-新手任务(只触发一次) 2-日常任务(每次触发)',
|
||||
description varchar(255) null comment '事件描述',
|
||||
create_time datetime null comment '创建时间',
|
||||
update_time datetime null comment '修改时间',
|
||||
create_user varchar(20) null comment '创建人',
|
||||
update_user varchar(20) null comment '修改人',
|
||||
valid tinyint 1 comment '是否生效 1-生效 2-不生效'
|
||||
) comment '任务积分配置表';
|
||||
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('1', 1, 1, '新手欢迎奖励', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('10', 10, 1, '开通会员', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('11', 11, 2, '每日登录', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('12', 12, 2, '每日签到', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('13', 13, 2, '分享期刊', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('14', 14, 2, '邀请好友', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('15', 15, 2, '好友首次下单成功', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('16', 16, 2, '购买天数达标', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('2', 2, 1, '修改头像', '2024-07-24 08:57:28', '2024-07-24 08:57:28', '1796003413067173888',
|
||||
'1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('3', 3, 1, '修改昵称', '2024-07-24 08:57:28', '2024-07-24 08:57:28', '1796003413067173888',
|
||||
'1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('4', 4, 1, '完善个人信息', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('5', 5, 1, '成功关注1位用户', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('6', 6, 1, '首次分享期刊', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('7', 7, 1, '首次收藏期刊', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('8', 8, 1, '首次购物成功', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`,
|
||||
`create_user`, `update_user`)
|
||||
VALUES ('9', 9, 1, '首次完成评价', '2024-07-24 08:57:28', '2024-07-24 08:57:28',
|
||||
'1796003413067173888', '1796003413067173888');
|
||||
|
Loading…
Reference in new issue