# ************************************************************
# Sequel Pro SQL dump
# Version 4096
#
# http://www.sequelpro.com/
# http://code.google.com/p/sequel-pro/
#
# Host: 127.0.0.1 (MySQL 5.5.37-0ubuntu0.12.04.1)
# Database: minecap
# Generation Time: 2014-07-21 13:15:49 +0000
# ************************************************************


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


# Dump of table mcap_entity_events
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_entity_events`;

CREATE TABLE `mcap_entity_events` (
  `event_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `event_type` varchar(45) NOT NULL,
  `entity_uid` char(36) NOT NULL,
  `note` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_entity_frames
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_entity_frames`;

CREATE TABLE `mcap_entity_frames` (
  `frame_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `entity_uid` char(36) NOT NULL,
  `entity_type` varchar(45) DEFAULT NULL,
  `health` double DEFAULT NULL,
  PRIMARY KEY (`frame_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_item_events
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_item_events`;

CREATE TABLE `mcap_item_events` (
  `event_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `event_type` varchar(12) NOT NULL,
  `player_uid` varchar(45) NOT NULL,
  `item_type` varchar(45) NOT NULL,
  `item_amount` int(11) NOT NULL,
  PRIMARY KEY (`event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_item_frames
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_item_frames`;

CREATE TABLE `mcap_item_frames` (
  `frame_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `item_uid` char(36) NOT NULL,
  `item_type` varchar(45) NOT NULL,
  `item_amount` int(11) NOT NULL,
  PRIMARY KEY (`frame_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_player_chat
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_player_chat`;

CREATE TABLE `mcap_player_chat` (
  `chat_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `event_type` varchar(45) NOT NULL,
  `player_uid` varchar(45) NOT NULL,
  `text` text,
  PRIMARY KEY (`chat_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_player_events
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_player_events`;

CREATE TABLE `mcap_player_events` (
  `event_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `event_type` varchar(45) NOT NULL,
  `player_uid` varchar(45) NOT NULL,
  `note` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_player_frames
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_player_frames`;

CREATE TABLE `mcap_player_frames` (
  `frame_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` double NOT NULL,
  `y` double NOT NULL,
  `z` double NOT NULL,
  `player_uid` varchar(45) NOT NULL,
  `health` double DEFAULT NULL,
  `food` int(11) DEFAULT NULL,
  `saturation` float DEFAULT NULL,
  `exhaustion` float DEFAULT NULL,
  `air` int(11) DEFAULT NULL,
  `level` int(11) DEFAULT NULL,
  `experience` float DEFAULT NULL,
  `sneaking` bit(1) DEFAULT NULL,
  `sprinting` bit(1) DEFAULT NULL,
  `flying` bit(1) DEFAULT NULL,
  `sleeping` bit(1) DEFAULT NULL,
  `in_vehicle` bit(1) DEFAULT NULL,
  `note` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`frame_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_players
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_players`;

CREATE TABLE `mcap_players` (
  `player_uid` varchar(45) NOT NULL,
  `created` datetime DEFAULT NULL,
  `modified` datetime DEFAULT NULL,
  `player_name` varchar(45) NOT NULL,
  `spawn_x` int(11) DEFAULT NULL,
  `spawn_y` int(11) DEFAULT NULL,
  `spawn_z` int(11) DEFAULT NULL,
  PRIMARY KEY (`player_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_world_events
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_world_events`;

CREATE TABLE `mcap_world_events` (
  `event_id` int(11) NOT NULL AUTO_INCREMENT,
  `time` datetime NOT NULL,
  `abs_time` bigint(20) NOT NULL,
  `rel_time` bigint(20) NOT NULL,
  `world_uid` varchar(45) NOT NULL,
  `x` int(11) DEFAULT NULL,
  `y` int(11) DEFAULT NULL,
  `z` int(11) DEFAULT NULL,
  `event_type` varchar(45) NOT NULL,
  `note` varchar(45) DEFAULT NULL,
  PRIMARY KEY (`event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;



# Dump of table mcap_worlds
# ------------------------------------------------------------

DROP TABLE IF EXISTS `mcap_worlds`;

CREATE TABLE `mcap_worlds` (
  `world_uid` varchar(45) NOT NULL,
  `created` datetime DEFAULT NULL,
  `modified` datetime DEFAULT NULL,
  `world_name` varchar(45) NOT NULL,
  `environment` varchar(45) DEFAULT NULL,
  `world_type` varchar(45) DEFAULT NULL,
  `seed` bigint(20) DEFAULT NULL,
  `difficulty` varchar(45) DEFAULT NULL,
  `pvp` bit(1) DEFAULT NULL,
  `sea_level` int(11) DEFAULT NULL,
  `spawn_x` int(11) DEFAULT NULL,
  `spawn_y` int(11) DEFAULT NULL,
  `spawn_z` int(11) DEFAULT NULL,
  PRIMARY KEY (`world_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;




/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
