1
This commit is contained in:
parent
25ce486b6f
commit
e108913c14
140
sql/migrate/bcnftdb.sql
Normal file
140
sql/migrate/bcnftdb.sql
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
-- MySQL dump 10.14 Distrib 5.5.41-MariaDB, for Linux (x86_64)
|
||||||
|
--
|
||||||
|
-- Host: localhost Database: bcnft
|
||||||
|
-- ------------------------------------------------------
|
||||||
|
-- Server version 5.5.41-MariaDB
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `version`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `version`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `version` (
|
||||||
|
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
UNIQUE KEY `version` (`version`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Table structure for table `t_nft`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `t_nft`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `t_nft` (
|
||||||
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`owner_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'owner_address',
|
||||||
|
`creator_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'creator_address',
|
||||||
|
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
|
||||||
|
`token_type` int(11) NOT NULL DEFAULT '0' COMMENT 'nft类型 1:英雄 2:枪支 3:芯片 6:荣誉 7:徽章',
|
||||||
|
`token_state` int(11) NOT NULL DEFAULT '0' COMMENT '0:正常状态 1:出售中 2:出租中',
|
||||||
|
`item_id` int(11) NOT NULL DEFAULT '0' COMMENT '道具id',
|
||||||
|
`deleted` int(11) NOT NULL DEFAULT '0' COMMENT 'deleted',
|
||||||
|
`confirm_count` int(11) NOT NULL DEFAULT '0' COMMENT 'confirm_count',
|
||||||
|
`confirm_block_number` bigint NOT NULL DEFAULT '0' COMMENT 'confirm_block_number',
|
||||||
|
`tags` varchar(60) NOT NULL DEFAULT '' COMMENT 'tags',
|
||||||
|
`net_id` bigint NOT NULL DEFAULT '0' COMMENT 'net_id',
|
||||||
|
`contract_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'contract_address',
|
||||||
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
UNIQUE KEY `unikey` (`net_id`, `contract_address`, `token_id`),
|
||||||
|
KEY `owner_address_token_type` (`owner_address`, `token_type`),
|
||||||
|
KEY `owner_address_contract_address` (`owner_address`, `contract_address`),
|
||||||
|
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_log`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `t_log`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `t_log` (
|
||||||
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`type` varchar(255) NOT NULL DEFAULT '' COMMENT '日志类型',
|
||||||
|
`subtype` varchar(255) NOT NULL DEFAULT '' COMMENT '日志子类型',
|
||||||
|
`param1` mediumblob COMMENT 'param1',
|
||||||
|
`param2` mediumblob COMMENT 'param2',
|
||||||
|
`param3` mediumblob COMMENT 'param3',
|
||||||
|
`param4` mediumblob COMMENT 'param4',
|
||||||
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`idx`)
|
||||||
|
) 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`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `t_buy_record`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `t_buy_record` (
|
||||||
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`blobdata` mediumblob COMMENT 'blobdata',
|
||||||
|
`buyer_address` mediumblob COMMENT 'buyer_address',
|
||||||
|
`order_id` varchar(60) COMMENT '订单id',
|
||||||
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
KEY `order_id` (`order_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_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',
|
||||||
|
`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',
|
||||||
|
`net_id` bigint NOT NULL DEFAULT '0' COMMENT 'net_id',
|
||||||
|
`contract_address` varchar(60) NOT NULL DEFAULT '' COMMENT 'contract_address',
|
||||||
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
UNIQUE KEY `unikey` (`owner_address`, `contract_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_callback`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `t_callback`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `t_callback` (
|
||||||
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
||||||
|
`cb_uuid` varchar(60) COMMENT '年月日时分秒_进程id_自增id',
|
||||||
|
`params` mediumblob COMMENT '需要签名的字段(json不含签名)',
|
||||||
|
`signature` varchar(60) COMMENT 'signature',
|
||||||
|
`secret_key` varchar(60) COMMENT 'secret_key',
|
||||||
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
||||||
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
||||||
|
PRIMARY KEY (`idx`),
|
||||||
|
UNIQUE KEY `cb_uuid` (`cb_uuid`),
|
||||||
|
KEY `signature` (`signature`)
|
||||||
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
|
-- Dump completed on 2015-08-19 18:51:22
|
1696
sql/migrate/gamedb.sql
Normal file
1696
sql/migrate/gamedb.sql
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user