This commit is contained in:
aozhiwei 2022-10-31 15:59:59 +08:00
commit 1d37e75de8
3 changed files with 133 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class Season {
async alreadySorted(conn, seasonId) {
const {err, rows} = await conn.execQuery(
'SELECT idx from t_season_history where season=? LIMIT 1',
'SELECT idx from t_season_ranking where season=? LIMIT 1',
[
seasonId
]
@ -156,7 +156,7 @@ class Season {
sorted,
async (element, index) => {
await conn.insert(
't_season_history',
't_season_ranking',
[
['account_id', element['account_id']],
['channel', element['channel']],

View File

@ -166,6 +166,8 @@ CREATE TABLE `t_hero` (
`skill_common` varchar(255) NOT NULL DEFAULT '100100|100120|100140|100160|100180|100200|100220|100240|100260|100280' COMMENT '通用技能',
`skill_points` int(11) NOT NULL DEFAULT '0' COMMENT '技能点',
`labour` int(11) NOT NULL DEFAULT '0' COMMENT '劳力值',
`active_token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'active_token_id',
`active_count` int(11) NOT NULL DEFAULT '0' COMMENT 'active_count',
PRIMARY KEY (`idx`),
UNIQUE KEY `token_id` (`token_id`),
KEY `account_id` (`account_id`)
@ -306,6 +308,8 @@ CREATE TABLE `t_gun` (
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
`chip_ids` varchar(100) NOT NULL DEFAULT '' COMMENT '已镶嵌的芯片idx组',
`labour` int(11) NOT NULL DEFAULT '0' COMMENT '劳力值',
`active_token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'active_token_id',
`active_count` int(11) NOT NULL DEFAULT '0' COMMENT 'active_count',
PRIMARY KEY (`idx`),
UNIQUE KEY `token_id` (`token_id`),
KEY `account_id` (`account_id`)

View File

@ -425,6 +425,133 @@ CREATE TABLE `t_user_wallet_offline_temp` (
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_order721`
--
DROP TABLE IF EXISTS `t_order721`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_order721` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id',
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`item_uniid` varchar(60) NOT NULL DEFAULT '' COMMENT 'item_uniid',
`buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'buyer_address',
`price` varchar(255) NOT NULL DEFAULT '' COMMENT 'price',
`nonce` varchar(255) NOT NULL DEFAULT '' COMMENT 'nonce',
`timestamp` bigint NOT NULL DEFAULT '0' COMMENT 'timestamp',
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'bc_mint_txhash',
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成成功块id',
`confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT 'nft生成被确认时间',
`done` int(11) NOT NULL DEFAULT '0' COMMENT '是否已完成',
`ignore` 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 `order_id` (`order_id`),
KEY `token_id` (`token_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_order1155`
--
DROP TABLE IF EXISTS `t_order1155`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_order1155` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id',
`buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'buyer_address',
`price` varchar(255) NOT NULL DEFAULT '' COMMENT 'price',
`nonce` varchar(255) NOT NULL DEFAULT '' COMMENT 'nonce',
`timestamp` bigint NOT NULL DEFAULT '0' COMMENT 'timestamp',
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'bc_mint_txhash',
`itemid` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`tokenid` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成成功块id',
`confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT 'nft生成被确认时间',
`done` int(11) NOT NULL DEFAULT '0' COMMENT '是否已完成',
`ignore` 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 `order_id` (`order_id`),
UNIQUE KEY `tokenid` (`tokenid`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_nft_evolve`
--
DROP TABLE IF EXISTS `t_nft_evolve`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_nft_evolve` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id',
`buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'buyer_address',
`price` varchar(255) NOT NULL DEFAULT '' COMMENT 'price',
`nonce` varchar(255) NOT NULL DEFAULT '' COMMENT 'nonce',
`timestamp` bigint NOT NULL DEFAULT '0' COMMENT 'timestamp',
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'bc_mint_txhash',
`itemid` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`tokenid` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`tags` varchar(60) NOT NULL DEFAULT '' COMMENT 'tags',
`block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成成功块id',
`confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT 'nft生成被确认时间',
`done` int(11) NOT NULL DEFAULT '0' COMMENT '是否已完成',
`ignore` 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 `order_id` (`order_id`),
UNIQUE KEY `tokenid` (`tokenid`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_chip_evolve`
--
DROP TABLE IF EXISTS `t_chip_evolve`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_chip_evolve` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id',
`buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'buyer_address',
`price` varchar(255) NOT NULL DEFAULT '' COMMENT 'price',
`nonce` varchar(255) NOT NULL DEFAULT '' COMMENT 'nonce',
`timestamp` bigint NOT NULL DEFAULT '0' COMMENT 'timestamp',
`signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'bc_mint_txhash',
`itemid` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`tokenid` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`tags` varchar(60) NOT NULL DEFAULT '' COMMENT 'tags',
`block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成成功块id',
`confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT 'nft生成被确认时间',
`done` int(11) NOT NULL DEFAULT '0' COMMENT '是否已完成',
`ignore` 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 `order_id` (`order_id`),
UNIQUE KEY `tokenid` (`tokenid`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_log`
--