113 lines
5.9 KiB
PL/PgSQL
113 lines
5.9 KiB
PL/PgSQL
begin;
|
|
|
|
alter table t_hero add column `gold_times` int(11) NOT NULL DEFAULT '0' COMMENT '打金次数';
|
|
alter table t_hero add column `gold_modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '打金时间';
|
|
|
|
|
|
CREATE TABLE `t_user_bind_gold_record` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
|
`way` int(11) NOT NULL DEFAULT '0' COMMENT '1:draw 2:open',
|
|
`amount` int(11) NOT NULL DEFAULT '0' COMMENT '绑币数量',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
CREATE TABLE `t_user_rookie_task_bind` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `account_id` (`account_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
CREATE TABLE `t_rookie_task` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
|
`task_id` int(11) NOT NULL DEFAULT '0' COMMENT '任务id',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `account_id_task` (`account_id`, `task_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
CREATE TABLE `t_rookie_task_value` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
|
`task_type` int(11) NOT NULL DEFAULT '0' COMMENT '任务id',
|
|
`value` int(11) NOT NULL DEFAULT '0' COMMENT '任务进度',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `account_id_task` (`account_id`, `task_type`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
CREATE TABLE `t_hashrate_shop_buy_record` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
|
|
`goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
|
|
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
|
|
`this_day_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '今日购买次数',
|
|
`this_week_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '本周购买次数',
|
|
`this_month_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '本月购买次数',
|
|
`total_buy_times` int(11) NOT NULL DEFAULT '0' COMMENT '总购买次数',
|
|
`last_buy_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次购买时间',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
KEY `account_id` (`account_id`),
|
|
UNIQUE KEY `account_id_goods_id` (`account_id`, `goods_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
|
|
CREATE TABLE `t_circuit_task_value` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
|
`circuit_season` int(11) NOT NULL DEFAULT '0' COMMENT '期',
|
|
`task_type` int(11) NOT NULL DEFAULT '0' COMMENT '任务id',
|
|
`value` int(11) NOT NULL DEFAULT '0' COMMENT '任务进度',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `account_id_task` (`account_id`, `task_type`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
CREATE TABLE `t_lucky_symbol` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
|
|
`in_use_num` int(11) NOT NULL DEFAULT '0' COMMENT '使用中数量',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `account_id` (`account_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
CREATE TABLE `t_lucky_symbol_record` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`room_uuid` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT 'room_uuid',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `uk_room_uuid_account_id` (`room_uuid`, `account_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
CREATE TABLE `t_circuit_battle_phase` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
|
|
`season` int(11) NOT NULL DEFAULT '0' COMMENT '赛季',
|
|
`phase` int(11) NOT NULL DEFAULT '0' COMMENT '阶段',
|
|
`cumulative_score` int(11) NOT NULL DEFAULT '0' COMMENT '积分',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
KEY `idx_account_season_phase` (`account_id`, `season`, `phase`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10000 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
|
|
insert into version (version) values(2024092401);
|
|
|
|
commit;
|