game2006api/sql/archived/game2006db_migrate_230823_01.sql
hujiabin 1acd332f8a 1
2023-08-28 12:04:56 +08:00

22 lines
897 B
PL/PgSQL

begin;
CREATE TABLE `t_ranking_settlement_record` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id',
`state` int(11) NOT NULL DEFAULT '0' COMMENT '是否重置',
`last_rank` int(11) NOT NULL DEFAULT '0' COMMENT '上赛季段位',
`current_rank` int(11) NOT NULL DEFAULT '0' COMMENT '新段位',
`last_score` int(11) NOT NULL DEFAULT '0' COMMENT '上赛季段位分',
`current_score` int(11) NOT NULL DEFAULT '0' COMMENT '新段位分',
`awards` mediumblob 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`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
insert into version (version) values(2023081501);
commit;