feat: 拉取积分质押操作记录的接口
This commit is contained in:
@@ -121,4 +121,18 @@ CREATE TABLE `nh_stake_points`
|
||||
`status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '状态:1=质押中,2=已升级,3=已续约,4=已过期',
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX (`uid`, `role_id`, `level_id`, `status`)
|
||||
) COMMENT ='积分质押表';
|
||||
|
||||
CREATE TABLE `nh_stake_points_log`
|
||||
(
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`uid` int unsigned NOT NULL COMMENT '用户id',
|
||||
`role_id` bigint unsigned NOT NULL COMMENT '角色id',
|
||||
`level_id` int(11) unsigned NOT NULL COMMENT '档位id',
|
||||
`level` int unsigned NOT NULL COMMENT '档位',
|
||||
`points` int(11) NOT NULL DEFAULT 0 COMMENT '积分数量',
|
||||
`action` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '操作类型:1=质押,2=升级,3=续约,4=解除',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX (`uid`, `role_id`)
|
||||
) COMMENT ='积分质押表';
|
||||
Reference in New Issue
Block a user