增加提取castile到游戏的数据库表,定义API接口等;

This commit is contained in:
yuming88
2025-04-28 14:12:44 +08:00
parent 109d76cd2e
commit e50137a90e
14 changed files with 692 additions and 3 deletions

View File

@@ -135,4 +135,38 @@ CREATE TABLE `nh_stake_points_log`
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
INDEX (`uid`, `role_id`)
) COMMENT ='积分质押表';
) COMMENT ='积分质押表';
CREATE TABLE `nh_castile_token`
(
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uid` int unsigned NOT NULL default 0 COMMENT '用户id',
`email` varchar(80) NOT NULL default '' COMMENT '账号',
`amount1` int(11) unsigned NOT NULL default 0 COMMENT '一测奖励',
`amount2` int(11) unsigned NOT NULL default 0 COMMENT '二测奖励',
`amount3` int(11) unsigned NOT NULL default 0 COMMENT '三测奖励',
`total` int(11) unsigned NOT NULL default 0 COMMENT '总奖励',
`transfer` int(11) unsigned NOT NULL default 0 COMMENT '已提取到游戏内',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uid` (`uid`) USING BTREE,
UNIQUE KEY `email` (`email`) USING BTREE
) COMMENT ='CASTILE代币表';
CREATE TABLE `nh_castile_token_log`
(
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uid` int unsigned NOT NULL COMMENT '用户id',
`role_id` bigint unsigned NOT NULL COMMENT '角色id',
`amount` int(11) unsigned NOT NULL COMMENT '提取的数量',
`callback_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '下发通知状态:0未通知,1已通知,2通知异常',
`action` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '操作类型1=提取到游戏',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`),
KEY `uid` (`uid`) USING BTREE,
KEY `role_id` (`role_id`) USING BTREE
) COMMENT ='CASTILE代币提取记录表';