This commit is contained in:
songliang 2023-07-05 12:45:22 +08:00
parent e56f3cb208
commit 364f37e851
2 changed files with 6 additions and 8 deletions

View File

@ -578,10 +578,10 @@ CREATE TABLE `t_log` (
DROP TABLE IF EXISTS `t_market_store`;
CREATE TABLE `t_market_store` (
`idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`o_link` varchar(64) NOT NULL COMMENT '关联的链上上架单号',
`o_link` varchar(64) DEFAULT NULL COMMENT '关联的链上上架单号',
`status` int(11) NOT NULL COMMENT '订单状态 0:出售中 1:已下架 2:已售出',
`owner_address` varchar(60) NOT NULL COMMENT '当前拥有者',
`token_id` varchar(80) NOT NULL COMMENT 'token_id',
`token_id` varchar(80) DEFAULT NULL COMMENT 'token_id',
`nft_token` varchar(64) DEFAULT NULL COMMENT 'nftToken',
`token_type` int(11) NOT NULL COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`item_id` int(11) DEFAULT NULL COMMENT '特殊字段,用于标记中心化道具,用于交易金币',
@ -597,8 +597,7 @@ CREATE TABLE `t_market_store` (
`c_quality` int(11) NOT NULL COMMENT '缓存-品阶',
`c_durability` float NOT NULL COMMENT '缓存-能量',
`c_id` int(11) NOT NULL COMMENT '缓存-id',
PRIMARY KEY (`idx`,`o_link`) USING BTREE,
UNIQUE KEY `o_link` (`o_link`) USING HASH COMMENT '链上合约上架订单号',
PRIMARY KEY (`idx`) USING BTREE,
UNIQUE KEY `idx` (`idx`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8;

View File

@ -1,9 +1,9 @@
CREATE TABLE `t_market_store` (
`idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`o_link` varchar(64) NOT NULL COMMENT '关联的链上上架单号',
`o_link` varchar(64) DEFAULT NULL COMMENT '关联的链上上架单号',
`status` int(11) NOT NULL COMMENT '订单状态 0:出售中 1:已下架 2:已售出',
`owner_address` varchar(60) NOT NULL COMMENT '当前拥有者',
`token_id` varchar(80) NOT NULL COMMENT 'token_id',
`token_id` varchar(80) DEFAULT NULL COMMENT 'token_id',
`nft_token` varchar(64) DEFAULT NULL COMMENT 'nftToken',
`token_type` int(11) NOT NULL COMMENT 'nft类型 1:英雄 2:枪支 3:芯片',
`item_id` int(11) DEFAULT NULL COMMENT '特殊字段,用于标记中心化道具,用于交易金币',
@ -19,8 +19,7 @@ CREATE TABLE `t_market_store` (
`c_quality` int(11) NOT NULL COMMENT '缓存-品阶',
`c_durability` float NOT NULL COMMENT '缓存-能量',
`c_id` int(11) NOT NULL COMMENT '缓存-id',
PRIMARY KEY (`idx`,`o_link`) USING BTREE,
UNIQUE KEY `o_link` (`o_link`) USING HASH COMMENT '链上合约上架订单号',
PRIMARY KEY (`idx`) USING BTREE,
UNIQUE KEY `idx` (`idx`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8;