Merge branch 'james' of git.kingsome.cn:server/game2006api into james

This commit is contained in:
hujiabin 2022-11-02 19:35:12 +08:00
commit 7f10dfc5a8

View File

@ -181,6 +181,31 @@ CREATE TABLE `t_nft` (
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_nft1155`
--
DROP TABLE IF EXISTS `t_nft1155`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_nft1155` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`owner_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'owner_address',
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT '3:芯片 4:碎片',
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`balance` bigint NOT NULL DEFAULT '0' COMMENT '余额',
`item_uniid` bigint NOT NULL DEFAULT '0' COMMENT 'item_uniid',
`confirm_count` int(11) NOT NULL DEFAULT '0' COMMENT 'confirm_count',
`confirm_block_number` bigint NOT NULL DEFAULT '0' COMMENT 'confirm_block_number',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `owner_address_token_id` (`owner_address`, `token_id`),
KEY `owner_address` (`owner_address`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_lucky_box`
--
@ -321,6 +346,35 @@ CREATE TABLE `t_nft_transfer` (
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_nft1155_transfer`
--
DROP TABLE IF EXISTS `t_nft1155_transfer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_nft1155_transfer` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'txhash',
`block_number` bigint NOT NULL DEFAULT '0' COMMENT 'block_number',
`log_index` bigint NOT NULL DEFAULT '0' COMMENT 'log_index',
`_from` varchar(60) NOT NULL DEFAULT '' COMMENT '_from',
`_to` varchar(60) NOT NULL DEFAULT '' COMMENT '_to',
`raw_data` mediumblob COMMENT 'raw_data',
`owner_confirmed` int(11) NOT NULL DEFAULT '0' COMMENT 'owner_confirmed',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `txhash_log_index` (`txhash`, `log_index`),
KEY `token_id` (`token_id`),
KEY `_from` (`_from`),
KEY `_to` (`_to`),
KEY `txhash` (`txhash`),
KEY `block_number` (`block_number`)
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_buy_record`
--
@ -427,28 +481,49 @@ CREATE TABLE `t_user_wallet_offline_temp` (
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `t_order721`
-- Table structure for table `t_transaction`
--
DROP TABLE IF EXISTS `t_order721`;
DROP TABLE IF EXISTS `t_transaction`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_order721` (
CREATE TABLE `t_transaction` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`account` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id(channel + "_" + gameid + "_" + openid)',
`trans_id` varchar(255) COMMENT '事务id',
`data` mediumblob COMMENT 'data',
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`idx`),
UNIQUE KEY `trans_id` (`trans_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_activate721nft`
--
DROP TABLE IF EXISTS `t_activate721nft`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t_activate721nft` (
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`item_uniid` varchar(60) NOT NULL DEFAULT '' COMMENT 'item_uniid',
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
`buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'buyer_address',
`nft_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft_address',
`payment_token_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'payment_token_address',
`seller_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'seller_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',
`activate_time` int(11) NOT NULL DEFAULT '0' COMMENT 'activate_time',
`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:芯片',
`txhash` varchar(255) NOT NULL DEFAULT '' COMMENT 'txhash',
`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`),