diff --git a/sql/marketdb.sql b/sql/marketdb.sql index 3c80e3bb..ec75a0c7 100644 --- a/sql/marketdb.sql +++ b/sql/marketdb.sql @@ -28,31 +28,29 @@ DROP TABLE IF EXISTS `t_box_order`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_box_order` ( `idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id', - `order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id', `game_id` int(11) NOT NULL DEFAULT '0' COMMENT 'game id', `batch_idx` int(11) NOT NULL DEFAULT '0' COMMENT '批次号idx', - `type` varchar(60) NOT NULL DEFAULT '' COMMENT 'type', - `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', - `state` int(11) NOT NULL DEFAULT '0' COMMENT 'state 0:待支付 1:支付成功', - `bc_synced` int(11) NOT NULL DEFAULT '0' COMMENT '0:未上链 1:已上链', - `bc_minted` int(11) NOT NULL DEFAULT '0' COMMENT '0:还未生成token 1:已经生成token', - `bc_sync_count` int(11) NOT NULL DEFAULT '0' COMMENT '本节点同步次数', - `bc_sync_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次同步时间', - `bc_sync_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '同步时的块id', - `bc_mint_count` int(11) NOT NULL DEFAULT '0' COMMENT '尝试生成token次数', - `bc_mint_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次生成token时间', - `bc_mint_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft块id', - `bc_result` int(11) NOT NULL DEFAULT '0' COMMENT '区块链执行结果 0:失败 1:成功', - `bc_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '块id', - `bc_fail_reason` varchar(255) NOT NULL DEFAULT '' COMMENT '原因', - `suspend` int(11) NOT NULL DEFAULT '0' COMMENT '挂起', - `suspend_reason` mediumblob COMMENT '挂起原因', - `buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT '购买者', `token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id', + `order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id', + `type` varchar(60) NOT NULL DEFAULT '' COMMENT 'type', + `buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT '购买者', `price` varchar(60) NOT NULL DEFAULT '' COMMENT 'price', `payment_token_address` varchar(60) NOT NULL DEFAULT '' COMMENT '货币地址', `nonce` varchar(60) NOT NULL DEFAULT '' COMMENT 'nonce', `signature` varchar(255) NOT NULL DEFAULT '' COMMENT '签名', + `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id', + `bc_paid` int(11) NOT NULL DEFAULT '0' COMMENT '是否已支付', + `bc_pay_count` int(11) NOT NULL DEFAULT '0' COMMENT '支付次数', + `bc_pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次支付时间', + `bc_pay_prepare_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '支付准备前块id', + `bc_pay_success_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT '支付成功块id', + `bc_minted` int(11) NOT NULL DEFAULT '0' COMMENT 'nft是否已创建', + `bc_mint_count` int(11) NOT NULL DEFAULT '0' COMMENT '生成nft次数', + `bc_mint_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后一次生成nft时间', + `bc_mint_prepare_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成准备前块id', + `bc_mint_success_block_number` varchar(60) NOT NULL DEFAULT '' COMMENT 'nft生成成功块id', + `suspend` int(11) NOT NULL DEFAULT '0' COMMENT '挂起', + `suspend_reason` mediumblob COMMENT '挂起原因', `done` int(11) NOT NULL DEFAULT '0' COMMENT '是否已完成', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',