diff --git a/sql/marketdb.sql b/sql/marketdb.sql index a26dfa17..460bef2e 100644 --- a/sql/marketdb.sql +++ b/sql/marketdb.sql @@ -60,10 +60,12 @@ CREATE TABLE `t_box_order` ( `order_id` varchar(60) NOT NULL DEFAULT '' COMMENT '订单id', `box_id` varchar(60) NOT NULL DEFAULT '' COMMENT '箱子唯一id', `state` int(11) NOT NULL DEFAULT '0' COMMENT 'state 0:待支付 1:支付成功', - `self_node_confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点上链时间', - `self_node_sync_count` int(11) NOT NULL DEFAULT '0' COMMENT '本节点同步次数', - `self_node_sync_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次同步时间', - `other_node_confirm_time` int(11) NOT NULL DEFAULT '0' COMMENT '其他节点上链时间', + `bc_synced` int(11) NOT NULL DEFAULT '0' COMMENT '0:未上链 1:已上链', + `bc_sync_count` int(11) NOT NULL DEFAULT '0' COMMENT '本节点同步次数', + `bc_sync_time` int(11) NOT NULL DEFAULT '0' COMMENT '本节点最后一次同步时间', + `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 '原因', `buyer_address` varchar(60) NOT NULL DEFAULT '' COMMENT '购买者', `price` bigint NOT NULL DEFAULT '0' COMMENT '价格', `payment_token_address` varchar(60) NOT NULL DEFAULT '' COMMENT '货币地址',