game2006api/sql/gamedb2006_migrate_241001_01.sql
2024-10-09 16:52:06 +08:00

20 lines
852 B
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;
insert into version (version) values(2024092401);
commit;