text: SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  SET time_zone = "+00:00";
  
  
  /*!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 */;
  
  --
  -- Database: `pushdb`
  --
  
  -- --------------------------------------------------------
  
  
  CREATE TABLE IF NOT EXISTS `device_token` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `user_id` mediumint(8) unsigned DEFAULT NULL,
    `osType` varchar(20) NOT NULL,
    `osVersion` varchar(50) NOT NULL,
    `device` varchar(50) NOT NULL,
    `deviceId` varchar(100) NOT NULL,
    `token` text NOT NULL,
    `token_type` varchar(50) NOT NULL,
    `amazon_arn` text,
    `app_version` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
    `state` enum('active','passive') NOT NULL DEFAULT 'active',
    PRIMARY KEY (`id`),
    KEY `user_id` (`user_id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
  
  -- --------------------------------------------------------
  
  
  CREATE TABLE IF NOT EXISTS `keys` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `key` varchar(40) NOT NULL,
    `level` int(2) NOT NULL,
    `ignore_limits` tinyint(1) NOT NULL DEFAULT '0',
    `is_private_key` tinyint(1) NOT NULL DEFAULT '0',
    `ip_addresses` text,
    `date_created` int(11) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
  
  -- --------------------------------------------------------
  
  
  CREATE TABLE IF NOT EXISTS `logs` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `uri` varchar(255) NOT NULL,
    `method` varchar(6) NOT NULL,
    `params` text,
    `api_key` varchar(40) NOT NULL,
    `ip_address` varchar(45) NOT NULL,
    `time` int(11) NOT NULL,
    `authorized` tinyint(1) NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
  
  
  /*!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 */;
  