103 lines
4.0 KiB
SQL
103 lines
4.0 KiB
SQL
-- MySQL dump 10.14 Distrib 5.5.41-MariaDB, for Linux (x86_64)
|
|
--
|
|
-- Host: localhost Database: marketdb
|
|
-- ------------------------------------------------------
|
|
-- 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` bigint 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_parameter`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `t_parameter`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `t_parameter` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`name` varchar(255) NOT NULL DEFAULT '' COMMENT 'name',
|
|
`value` mediumblob COMMENT 'value',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `name` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `t_transaction`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `t_transaction`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `t_transaction` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account` varchar(60) NOT NULL DEFAULT '' COMMENT '钱包地址',
|
|
`trans_id` varchar(255) COMMENT '事务id',
|
|
`net_id` bigint NOT NULL DEFAULT '0' COMMENT '网络id',
|
|
`data` mediumblob COMMENT 'data',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `trans_id` (`trans_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_used_token_id`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `t_used_token_id`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `t_used_token_id` (
|
|
`idx` bigint NOT NULL AUTO_INCREMENT COMMENT '自增id',
|
|
`account` varchar(60) NOT NULL DEFAULT '' COMMENT '钱包地址',
|
|
`token_id` varchar(60) NOT NULL DEFAULT '' COMMENT 'token_id',
|
|
`trans_id` varchar(255) COMMENT '事务id',
|
|
`net_id` bigint NOT NULL DEFAULT '0' COMMENT '网络id',
|
|
`confirmed` int(11) NOT NULL DEFAULT '0' COMMENT '是否被确认',
|
|
`createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
`modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
PRIMARY KEY (`idx`),
|
|
UNIQUE KEY `token_id` (`token_id`),
|
|
UNIQUE KEY `trans_id` (`trans_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_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 '日志子类型',
|
|
`net_id` bigint NOT NULL DEFAULT '0' COMMENT '网络id',
|
|
`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 */;
|
|
|
|
-- Dump completed on 2015-08-19 18:51:22
|