diff --git a/sql/gamedb.sql b/sql/gamedb.sql index 70d0d6e7..44bda27f 100644 --- a/sql/gamedb.sql +++ b/sql/gamedb.sql @@ -1385,21 +1385,19 @@ DROP TABLE IF EXISTS `t_mall`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `t_mall` ( `idx` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '自增id', + `order_id` varchar(255) NOT NULL DEFAULT '' COMMENT '订单id', + `goods_uuid` varchar(255) NOT NULL DEFAULT '' COMMENT '商品uuid', `account_id` varchar(60) NOT NULL DEFAULT '' COMMENT '账号id', `item_id` int(11) NOT NULL DEFAULT '0' COMMENT '物品id', `item_num` bigint NOT NULL DEFAULT '0' COMMENT '物品数量', `price` varchar(60) NOT NULL DEFAULT '' COMMENT '价格', `status` int(11) NOT NULL DEFAULT '0' COMMENT 'status', - `c_name` varchar(32) NOT NULL COMMENT '缓存-名称', - `c_job` int(11) NOT NULL COMMENT '缓存-职业', - `c_type` int(11) NOT NULL COMMENT '缓存-碎片类型', - `c_lv` int(11) NOT NULL COMMENT '缓存-级别', - `c_quality` int(11) NOT NULL COMMENT '缓存-品阶', - `c_durability` double NOT NULL COMMENT '缓存-能量', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), - KEY `account_id` (`account_id`) + KEY `account_id` (`account_id`), + UNIQUE KEY `order_id` (`order_id`), + UNIQUE KEY `goods_uuid` (`goods_uuid`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */; @@ -1429,7 +1427,7 @@ CREATE TABLE `t_market` ( `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', PRIMARY KEY (`idx`), UNIQUE KEY `order_id` (`order_id`), - KEY `owner_activated` (`owner`, `activated`), + KEY `seller_activated` (`seller`, `activated`), KEY `activated` (`activated`) ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin; /*!40101 SET character_set_client = @saved_cs_client */;