This commit is contained in:
aozhiwei 2023-06-07 16:07:19 +08:00
parent 7a00d8755c
commit 3293255b3c
3 changed files with 7 additions and 2 deletions

View File

@ -847,6 +847,7 @@ DROP TABLE IF EXISTS `t_transaction`;
CREATE TABLE `t_transaction` ( CREATE TABLE `t_transaction` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
`address` varchar(60) NOT NULL DEFAULT '' COMMENT 'address',
`trans_id` varchar(255) NOT NULL DEFAULT '' COMMENT '事务id', `trans_id` varchar(255) NOT NULL DEFAULT '' COMMENT '事务id',
`action` int(11) NOT NULL DEFAULT '0' COMMENT 'action', `action` int(11) NOT NULL DEFAULT '0' COMMENT 'action',
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id', `token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
@ -861,7 +862,8 @@ CREATE TABLE `t_transaction` (
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`), PRIMARY KEY (`idx`),
UNIQUE KEY `trans_id` (`trans_id`), UNIQUE KEY `trans_id` (`trans_id`),
KEY `account_id` (`account_id`) KEY `account_id` (`account_id`),
KEY `address` (`address`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;

View File

@ -1,7 +1,7 @@
begin; begin;
alter table t_user add column `address` varchar(60) COMMENT 'address'; alter table t_user add column `address` varchar(60) COMMENT 'address';
alter table t_user add KEY `address` (`address`); alter table t_user add UNIQUE KEY `address` (`address`);
insert into version (version) values(2023060501); insert into version (version) values(2023060501);

View File

@ -3,6 +3,9 @@ begin;
alter table t_chip add column `active_token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'active_token_id'; alter table t_chip add column `active_token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'active_token_id';
alter table t_chip add column `active_count` int(11) NOT NULL DEFAULT '0' COMMENT 'active_count'; alter table t_chip add column `active_count` int(11) NOT NULL DEFAULT '0' COMMENT 'active_count';
alter table t_transaction add column `address` varchar(60) NOT NULL DEFAULT '' COMMENT 'address';
alter table t_transaction add KEY `address` (`address`);
insert into version (version) values(2023060701); insert into version (version) values(2023060701);
commit; commit;