SET UNIQUE_CHECKS=0;
SET FOREIGN_KEY_CHECKS=0;

CREATE TABLE `attachments` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `campaign` int(11) unsigned NOT NULL,
  `filename` varchar(255) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
  `content_type` varchar(100) CHARACTER SET ascii NOT NULL DEFAULT '',
  `content` longblob,
  `size` int(11) NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `campaign` (`campaign`),
  CONSTRAINT `attachments_ibfk_1` FOREIGN KEY (`campaign`) REFERENCES `campaigns` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `blacklist` (
  `email` varchar(191) NOT NULL,
  PRIMARY KEY (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `campaign` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `list` int(11) unsigned NOT NULL,
  `segment` int(11) unsigned NOT NULL,
  `subscription` int(11) unsigned NOT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `response` varchar(255) DEFAULT NULL,
  `response_id` varchar(255) CHARACTER SET ascii DEFAULT NULL,
  `updated` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `list` (`list`,`segment`,`subscription`),
  KEY `created` (`created`),
  KEY `response_id` (`response_id`),
  KEY `status_index` (`status`),
  KEY `subscription_index` (`subscription`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `campaign_tracker` (
  `list` int(11) unsigned NOT NULL,
  `subscriber` int(11) unsigned NOT NULL,
  `link` int(11) NOT NULL,
  `ip` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `device_type` varchar(50) DEFAULT NULL,
  `country` varchar(2) CHARACTER SET ascii DEFAULT NULL,
  `count` int(11) unsigned NOT NULL DEFAULT '1',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`list`,`subscriber`,`link`),
  KEY `created_index` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `campaigns` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `type` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `parent` int(11) unsigned DEFAULT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text,
  `list` int(11) unsigned NOT NULL,
  `segment` int(11) unsigned DEFAULT NULL,
  `template` int(11) unsigned NOT NULL,
  `source_url` varchar(255) CHARACTER SET ascii DEFAULT NULL,
  `editor_name` varchar(50) DEFAULT '',
  `editor_data` longtext,
  `last_check` timestamp NULL DEFAULT NULL,
  `check_status` varchar(255) DEFAULT NULL,
  `from` varchar(255) DEFAULT '',
  `address` varchar(255) DEFAULT '',
  `reply_to` varchar(255) DEFAULT '',
  `subject` varchar(255) DEFAULT '',
  `html` longtext,
  `html_prepared` longtext,
  `text` longtext,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `scheduled` timestamp NULL DEFAULT NULL,
  `status_change` timestamp NULL DEFAULT NULL,
  `delivered` int(11) unsigned NOT NULL DEFAULT '0',
  `blacklisted` int(11) unsigned NOT NULL DEFAULT '0',
  `opened` int(11) unsigned NOT NULL DEFAULT '0',
  `clicks` int(11) unsigned NOT NULL DEFAULT '0',
  `unsubscribed` int(11) unsigned NOT NULL DEFAULT '0',
  `bounced` int(1) unsigned NOT NULL DEFAULT '0',
  `complained` int(1) unsigned NOT NULL DEFAULT '0',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `open_tracking_disabled` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `click_tracking_disabled` tinyint(4) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `cid` (`cid`),
  KEY `name` (`name`(191)),
  KEY `status` (`status`),
  KEY `schedule_index` (`scheduled`),
  KEY `type_index` (`type`),
  KEY `parent_index` (`parent`),
  KEY `check_index` (`last_check`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `confirmations` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `list` int(11) unsigned NOT NULL,
  `action` varchar(100) NOT NULL,
  `ip` varchar(100) DEFAULT NULL,
  `data` text NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `cid` (`cid`),
  KEY `list` (`list`),
  CONSTRAINT `confirmations_ibfk_1` FOREIGN KEY (`list`) REFERENCES `lists` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `custom_fields` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `list` int(11) unsigned NOT NULL,
  `name` varchar(255) DEFAULT '',
  `key` varchar(100) CHARACTER SET ascii NOT NULL,
  `default_value` varchar(255) DEFAULT NULL,
  `type` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT '',
  `group` int(11) unsigned DEFAULT NULL,
  `group_template` text,
  `column` varchar(255) CHARACTER SET ascii DEFAULT NULL,
  `visible` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `list` (`list`,`column`),
  KEY `list_2` (`list`),
  CONSTRAINT `custom_fields_ibfk_1` FOREIGN KEY (`list`) REFERENCES `lists` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `custom_forms` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `list` int(11) unsigned NOT NULL,
  `name` varchar(255) DEFAULT '',
  `description` text,
  `fields_shown_on_subscribe` varchar(255) DEFAULT '',
  `fields_shown_on_manage` varchar(255) DEFAULT '',
  `layout` longtext,
  `form_input_style` longtext,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `list` (`list`),
  CONSTRAINT `custom_forms_ibfk_1` FOREIGN KEY (`list`) REFERENCES `lists` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `custom_forms_data` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `form` int(11) unsigned NOT NULL,
  `data_key` varchar(255) DEFAULT '',
  `data_value` longtext,
  PRIMARY KEY (`id`),
  KEY `form` (`form`),
  CONSTRAINT `custom_forms_data_ibfk_1` FOREIGN KEY (`form`) REFERENCES `custom_forms` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `import_failed` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `import` int(11) unsigned NOT NULL,
  `email` varchar(255) NOT NULL DEFAULT '',
  `reason` varchar(255) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `import` (`import`),
  CONSTRAINT `import_failed_ibfk_1` FOREIGN KEY (`import`) REFERENCES `importer` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `importer` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `list` int(11) unsigned NOT NULL,
  `type` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `path` varchar(255) NOT NULL DEFAULT '',
  `size` int(11) unsigned NOT NULL DEFAULT '0',
  `delimiter` varchar(1) CHARACTER SET ascii NOT NULL DEFAULT ',',
  `emailcheck` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `status` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `error` varchar(255) DEFAULT NULL,
  `processed` int(11) unsigned NOT NULL DEFAULT '0',
  `new` int(11) unsigned NOT NULL DEFAULT '0',
  `failed` int(11) unsigned NOT NULL DEFAULT '0',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `mapping` text NOT NULL,
  `finished` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `list` (`list`),
  CONSTRAINT `importer_ibfk_1` FOREIGN KEY (`list`) REFERENCES `lists` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `links` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT '',
  `campaign` int(11) unsigned NOT NULL,
  `url` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT '',
  `clicks` int(11) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `cid` (`cid`),
  UNIQUE KEY `campaign_2` (`campaign`,`url`),
  KEY `campaign` (`campaign`),
  CONSTRAINT `links_ibfk_1` FOREIGN KEY (`campaign`) REFERENCES `campaigns` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `lists` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `default_form` int(11) unsigned DEFAULT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text,
  `subscribers` int(11) unsigned DEFAULT '0',
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `public_subscribe` tinyint(1) unsigned NOT NULL DEFAULT '1',
  `unsubscription_mode` int(11) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`id`),
  UNIQUE KEY `cid` (`cid`),
  KEY `name` (`name`(191))
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
INSERT INTO `lists` (`id`, `cid`, `default_form`, `name`, `description`, `subscribers`, `created`, `public_subscribe`, `unsubscription_mode`) VALUES (1,'Hkj1vCoJb',0,'#1 (one-step, no form)','',0,NOW(),1,0);
INSERT INTO `lists` (`id`, `cid`, `default_form`, `name`, `description`, `subscribers`, `created`, `public_subscribe`, `unsubscription_mode`) VALUES (2,'SktV4HDZ-',NULL,'#2 (one-step, with form)','',0,NOW(),1,1);
INSERT INTO `lists` (`id`, `cid`, `default_form`, `name`, `description`, `subscribers`, `created`, `public_subscribe`, `unsubscription_mode`) VALUES (3,'BkdvNBw-W',NULL,'#3 (two-step, no form)','',0,NOW(),1,2);
INSERT INTO `lists` (`id`, `cid`, `default_form`, `name`, `description`, `subscribers`, `created`, `public_subscribe`, `unsubscription_mode`) VALUES (4,'rJMKVrDZ-',NULL,'#4 (two-step, with form)','',0,NOW(),1,3);
INSERT INTO `lists` (`id`, `cid`, `default_form`, `name`, `description`, `subscribers`, `created`, `public_subscribe`, `unsubscription_mode`) VALUES (5,'SJgoNSw-W',NULL,'#5 (manual unsubscribe)','',0,NOW(),1,4);
INSERT INTO `lists` (`id`, `cid`, `default_form`, `name`, `description`, `subscribers`, `created`, `public_subscribe`, `unsubscription_mode`) VALUES (6,'HyveEPvWW',NULL,'#6 non-public','',0,NOW(),0,0);
CREATE TABLE `queued` (
  `campaign` int(11) unsigned NOT NULL,
  `list` int(11) unsigned NOT NULL,
  `subscriber` int(11) unsigned NOT NULL,
  `source` varchar(255) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`campaign`,`list`,`subscriber`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `report_templates` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT '',
  `mime_type` varchar(255) NOT NULL DEFAULT 'text/html',
  `description` text,
  `user_fields` longtext,
  `js` longtext,
  `hbs` longtext,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `reports` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT '',
  `description` text,
  `report_template` int(11) unsigned NOT NULL,
  `params` longtext,
  `state` int(11) unsigned NOT NULL DEFAULT '0',
  `last_run` datetime DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `report_template` (`report_template`),
  CONSTRAINT `report_template_ibfk_1` FOREIGN KEY (`report_template`) REFERENCES `report_templates` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `rss` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `parent` int(11) unsigned NOT NULL,
  `guid` varchar(255) NOT NULL DEFAULT '',
  `pubdate` timestamp NULL DEFAULT NULL,
  `campaign` int(11) unsigned DEFAULT NULL,
  `found` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `parent_2` (`parent`,`guid`),
  KEY `parent` (`parent`),
  CONSTRAINT `rss_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `campaigns` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `segment_rules` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `segment` int(11) unsigned NOT NULL,
  `column` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT '',
  `value` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `segment` (`segment`),
  CONSTRAINT `segment_rules_ibfk_1` FOREIGN KEY (`segment`) REFERENCES `segments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `segments` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `list` int(11) unsigned NOT NULL,
  `name` varchar(255) NOT NULL DEFAULT '',
  `type` tinyint(4) unsigned NOT NULL,
  `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `list` (`list`),
  KEY `name` (`name`(191)),
  CONSTRAINT `segments_ibfk_1` FOREIGN KEY (`list`) REFERENCES `lists` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `settings` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `key` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT '',
  `value` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `key` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=114 DEFAULT CHARSET=utf8mb4;
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (1,'smtp_hostname','localhost');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (2,'smtp_port','5587');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (3,'smtp_encryption','NONE');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (4,'smtp_user','testuser');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (5,'smtp_pass','testpass');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (6,'service_url','http://localhost:3000/');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (7,'admin_email','admin@example.com');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (8,'smtp_max_connections','5');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (9,'smtp_max_messages','100');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (10,'smtp_log','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (11,'default_sender','My Awesome Company');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (12,'default_postaddress','1234 Main Street');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (13,'default_from','My Awesome Company');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (14,'default_address','admin@example.com');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (15,'default_subject','Test message');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (16,'default_homepage','https://mailtrain.org');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (17,'db_schema_version','29');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (46,'ua_code','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (47,'shoutout','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (54,'mail_transport','smtp');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (60,'ses_key','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (61,'ses_secret','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (62,'ses_region','us-east-1');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (65,'smtp_throttling','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (66,'pgp_passphrase','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (67,'pgp_private_key','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (68,'dkim_api_key','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (69,'dkim_domain','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (70,'dkim_selector','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (71,'dkim_private_key','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (73,'smtp_self_signed','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (74,'smtp_disable_auth','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (75,'verp_use','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (76,'disable_wysiwyg','');
INSERT INTO `settings` (`id`, `key`, `value`) VALUES (77,'disable_confirmations','');
CREATE TABLE `subscription` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscription__1` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscription__2` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscription__3` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscription__4` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscription__5` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `subscription__6` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `cid` varchar(255) CHARACTER SET ascii NOT NULL,
  `email` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
  `opt_in_ip` varchar(100) DEFAULT NULL,
  `opt_in_country` varchar(2) DEFAULT NULL,
  `tz` varchar(100) CHARACTER SET ascii DEFAULT NULL,
  `imported` int(11) unsigned DEFAULT NULL,
  `status` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `is_test` tinyint(4) unsigned NOT NULL DEFAULT '0',
  `status_change` timestamp NULL DEFAULT NULL,
  `latest_open` timestamp NULL DEFAULT NULL,
  `latest_click` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `first_name` varchar(255) DEFAULT NULL,
  `last_name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `cid` (`cid`),
  KEY `status` (`status`),
  KEY `first_name` (`first_name`(191)),
  KEY `last_name` (`last_name`(191)),
  KEY `subscriber_tz` (`tz`),
  KEY `is_test` (`is_test`),
  KEY `latest_open` (`latest_open`),
  KEY `latest_click` (`latest_click`),
  KEY `created` (`created`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `templates` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text,
  `editor_name` varchar(50) DEFAULT '',
  `editor_data` longtext,
  `html` longtext,
  `text` longtext,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `name` (`name`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `trigger` (
  `list` int(11) unsigned NOT NULL,
  `subscription` int(11) unsigned NOT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`list`,`subscription`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `triggers` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '',
  `description` text,
  `enabled` tinyint(4) unsigned NOT NULL DEFAULT '1',
  `list` int(11) unsigned NOT NULL,
  `source_campaign` int(11) unsigned DEFAULT NULL,
  `rule` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT 'column',
  `column` varchar(255) CHARACTER SET ascii DEFAULT NULL,
  `seconds` int(11) NOT NULL DEFAULT '0',
  `dest_campaign` int(11) unsigned DEFAULT NULL,
  `count` int(11) unsigned NOT NULL DEFAULT '0',
  `last_check` timestamp NULL DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `name` (`name`(191)),
  KEY `source_campaign` (`source_campaign`),
  KEY `dest_campaign` (`dest_campaign`),
  KEY `list` (`list`),
  KEY `column` (`column`),
  KEY `active` (`enabled`),
  KEY `last_check` (`last_check`),
  CONSTRAINT `triggers_ibfk_1` FOREIGN KEY (`list`) REFERENCES `lists` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `tzoffset` (
  `tz` varchar(100) NOT NULL DEFAULT '',
  `offset` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`tz`)
) ENGINE=InnoDB DEFAULT CHARSET=ascii;
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/abidjan',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/accra',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/addis_ababa',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/algiers',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/asmara',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/asmera',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/bamako',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/bangui',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/banjul',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/bissau',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/blantyre',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/brazzaville',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/bujumbura',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/cairo',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/casablanca',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/ceuta',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/conakry',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/dakar',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/dar_es_salaam',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/djibouti',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/douala',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/el_aaiun',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/freetown',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/gaborone',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/harare',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/johannesburg',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/juba',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/kampala',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/khartoum',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/kigali',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/kinshasa',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/lagos',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/libreville',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/lome',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/luanda',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/lubumbashi',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/lusaka',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/malabo',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/maputo',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/maseru',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/mbabane',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/mogadishu',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/monrovia',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/nairobi',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/ndjamena',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/niamey',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/nouakchott',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/ouagadougou',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/porto-novo',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/sao_tome',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/timbuktu',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/tripoli',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/tunis',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('africa/windhoek',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/adak',-540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/anchorage',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/anguilla',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/antigua',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/araguaina',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/buenos_aires',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/catamarca',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/comodrivadavia',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/cordoba',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/jujuy',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/la_rioja',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/mendoza',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/rio_gallegos',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/salta',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/san_juan',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/san_luis',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/tucuman',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/argentina/ushuaia',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/aruba',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/asuncion',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/atikokan',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/atka',-540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/bahia',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/bahia_banderas',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/barbados',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/belem',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/belize',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/blanc-sablon',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/boa_vista',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/bogota',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/boise',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/buenos_aires',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/cambridge_bay',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/campo_grande',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/cancun',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/caracas',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/catamarca',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/cayenne',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/cayman',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/chicago',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/chihuahua',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/coral_harbour',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/cordoba',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/costa_rica',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/creston',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/cuiaba',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/curacao',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/danmarkshavn',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/dawson',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/dawson_creek',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/denver',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/detroit',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/dominica',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/edmonton',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/eirunepe',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/el_salvador',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/ensenada',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/fortaleza',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/fort_nelson',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/fort_wayne',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/glace_bay',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/godthab',-120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/goose_bay',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/grand_turk',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/grenada',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/guadeloupe',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/guatemala',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/guayaquil',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/guyana',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/halifax',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/havana',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/hermosillo',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/indianapolis',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/knox',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/marengo',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/petersburg',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/tell_city',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/vevay',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/vincennes',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indiana/winamac',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/indianapolis',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/inuvik',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/iqaluit',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/jamaica',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/jujuy',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/juneau',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/kentucky/louisville',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/kentucky/monticello',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/knox_in',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/kralendijk',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/la_paz',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/lima',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/los_angeles',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/louisville',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/lower_princes',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/maceio',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/managua',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/manaus',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/marigot',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/martinique',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/matamoros',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/mazatlan',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/mendoza',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/menominee',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/merida',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/metlakatla',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/mexico_city',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/miquelon',-120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/moncton',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/monterrey',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/montevideo',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/montreal',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/montserrat',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/nassau',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/new_york',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/nipigon',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/nome',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/noronha',-120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/north_dakota/beulah',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/north_dakota/center',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/north_dakota/new_salem',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/ojinaga',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/panama',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/pangnirtung',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/paramaribo',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/phoenix',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/port-au-prince',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/porto_acre',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/porto_velho',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/port_of_spain',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/puerto_rico',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/punta_arenas',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/rainy_river',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/rankin_inlet',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/recife',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/regina',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/resolute',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/rio_branco',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/rosario',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/santarem',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/santa_isabel',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/santiago',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/santo_domingo',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/sao_paulo',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/scoresbysund',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/shiprock',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/sitka',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/st_barthelemy',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/st_johns',-150);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/st_kitts',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/st_lucia',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/st_thomas',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/st_vincent',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/swift_current',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/tegucigalpa',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/thule',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/thunder_bay',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/tijuana',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/toronto',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/tortola',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/vancouver',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/virgin',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/whitehorse',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/winnipeg',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/yakutat',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('america/yellowknife',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/casey',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/davis',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/dumontdurville',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/macquarie',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/mawson',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/mcmurdo',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/palmer',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/rothera',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/south_pole',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/syowa',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/troll',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('antarctica/vostok',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('arctic/longyearbyen',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/aden',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/almaty',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/amman',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/anadyr',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/aqtau',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/aqtobe',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ashgabat',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ashkhabad',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/atyrau',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/baghdad',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/bahrain',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/baku',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/bangkok',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/barnaul',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/beirut',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/bishkek',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/brunei',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/calcutta',330);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/chita',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/choibalsan',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/chongqing',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/chungking',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/colombo',330);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/dacca',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/damascus',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/dhaka',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/dili',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/dubai',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/dushanbe',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/famagusta',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/gaza',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/harbin',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/hebron',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/hong_kong',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/hovd',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ho_chi_minh',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/irkutsk',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/istanbul',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/jakarta',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/jayapura',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/jerusalem',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kabul',270);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kamchatka',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/karachi',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kashgar',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kathmandu',345);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/katmandu',345);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/khandyga',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kolkata',330);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/krasnoyarsk',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kuala_lumpur',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kuching',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/kuwait',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/macao',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/macau',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/magadan',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/makassar',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/manila',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/muscat',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/nicosia',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/novokuznetsk',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/novosibirsk',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/omsk',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/oral',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/phnom_penh',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/pontianak',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/pyongyang',510);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/qatar',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/qyzylorda',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/rangoon',390);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/riyadh',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/saigon',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/sakhalin',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/samarkand',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/seoul',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/shanghai',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/singapore',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/srednekolymsk',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/taipei',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/tashkent',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/tbilisi',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/tehran',270);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/tel_aviv',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/thimbu',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/thimphu',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/tokyo',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/tomsk',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ujung_pandang',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ulaanbaatar',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ulan_bator',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/urumqi',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/ust-nera',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/vientiane',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/vladivostok',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/yakutsk',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/yangon',390);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/yekaterinburg',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('asia/yerevan',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/azores',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/bermuda',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/canary',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/cape_verde',-60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/faeroe',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/faroe',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/jan_mayen',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/madeira',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/reykjavik',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/south_georgia',-120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/stanley',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('atlantic/st_helena',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/act',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/adelaide',570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/brisbane',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/broken_hill',570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/canberra',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/currie',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/darwin',570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/eucla',525);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/hobart',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/lhi',630);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/lindeman',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/lord_howe',630);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/melbourne',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/north',570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/nsw',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/perth',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/queensland',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/south',570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/sydney',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/tasmania',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/victoria',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/west',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('australia/yancowinna',570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('brazil/acre',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('brazil/denoronha',-120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('brazil/east',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('brazil/west',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/atlantic',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/central',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/east-saskatchewan',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/eastern',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/mountain',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/newfoundland',-150);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/pacific',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/saskatchewan',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('canada/yukon',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('cet',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('chile/continental',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('chile/easterisland',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('cst6cdt',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('cuba',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('eet',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('egypt',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('eire',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('est',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('est5edt',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+0',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+1',-60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+10',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+11',-660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+12',-720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+2',-120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+3',-180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+4',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+5',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+6',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+7',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+8',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt+9',-540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-0',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-1',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-10',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-11',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-12',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-13',780);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-14',840);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-2',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-3',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-4',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-5',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-6',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-7',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-8',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt-9',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/gmt0',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/greenwich',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/uct',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/universal',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/utc',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('etc/zulu',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/amsterdam',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/andorra',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/astrakhan',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/athens',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/belfast',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/belgrade',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/berlin',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/bratislava',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/brussels',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/bucharest',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/budapest',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/busingen',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/chisinau',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/copenhagen',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/dublin',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/gibraltar',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/guernsey',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/helsinki',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/isle_of_man',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/istanbul',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/jersey',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/kaliningrad',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/kiev',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/kirov',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/lisbon',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/ljubljana',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/london',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/luxembourg',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/madrid',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/malta',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/mariehamn',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/minsk',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/monaco',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/moscow',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/nicosia',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/oslo',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/paris',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/podgorica',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/prague',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/riga',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/rome',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/samara',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/san_marino',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/sarajevo',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/saratov',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/simferopol',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/skopje',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/sofia',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/stockholm',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/tallinn',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/tirane',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/tiraspol',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/ulyanovsk',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/uzhgorod',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/vaduz',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/vatican',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/vienna',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/vilnius',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/volgograd',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/warsaw',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/zagreb',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/zaporozhye',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('europe/zurich',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('gb',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('gb-eire',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('gmt',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('gmt+0',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('gmt-0',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('gmt0',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('greenwich',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('hongkong',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('hst',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('iceland',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/antananarivo',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/chagos',360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/christmas',420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/cocos',390);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/comoro',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/kerguelen',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/mahe',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/maldives',300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/mauritius',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/mayotte',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('indian/reunion',240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('iran',270);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('israel',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('jamaica',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('japan',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('kwajalein',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('libya',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('met',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('mexico/bajanorte',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('mexico/bajasur',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('mexico/general',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('mst',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('mst7mdt',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('navajo',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('nz',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('nz-chat',765);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/apia',780);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/auckland',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/bougainville',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/chatham',765);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/chuuk',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/easter',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/efate',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/enderbury',780);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/fakaofo',780);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/fiji',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/funafuti',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/galapagos',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/gambier',-540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/guadalcanal',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/guam',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/honolulu',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/johnston',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/kiritimati',840);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/kosrae',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/kwajalein',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/majuro',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/marquesas',-570);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/midway',-660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/nauru',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/niue',-660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/norfolk',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/noumea',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/pago_pago',-660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/palau',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/pitcairn',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/pohnpei',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/ponape',660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/port_moresby',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/rarotonga',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/saipan',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/samoa',-660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/tahiti',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/tarawa',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/tongatapu',780);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/truk',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/wake',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/wallis',720);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pacific/yap',600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('poland',120);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('portugal',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('prc',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('pst8pdt',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('roc',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('rok',540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('singapore',480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('turkey',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('uct',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('universal',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/alaska',-480);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/aleutian',-540);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/arizona',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/central',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/east-indiana',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/eastern',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/hawaii',-600);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/indiana-starke',-300);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/michigan',-240);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/mountain',-360);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/pacific',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/pacific-new',-420);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('us/samoa',-660);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('utc',0);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('w-su',180);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('wet',60);
INSERT INTO `tzoffset` (`tz`, `offset`) VALUES ('zulu',0);
CREATE TABLE `users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `username` varchar(255) NOT NULL DEFAULT '',
  `password` varchar(255) NOT NULL DEFAULT '',
  `email` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
  `access_token` varchar(40) DEFAULT NULL,
  `reset_token` varchar(255) CHARACTER SET ascii DEFAULT NULL,
  `reset_expire` timestamp NULL DEFAULT NULL,
  `created` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  KEY `username` (`username`(191)),
  KEY `reset` (`reset_token`),
  KEY `check_reset` (`username`(191),`reset_token`,`reset_expire`),
  KEY `token_index` (`access_token`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
INSERT INTO `users` (`id`, `username`, `password`, `email`, `access_token`, `reset_token`, `reset_expire`, `created`) VALUES (1,'admin','$2a$10$mzKU71G62evnGB2PvQA4k..Wf9jASk.c7a8zRMHh6qQVjYJ2r/g/K','admin@example.com',NULL,NULL,NULL,NOW());

SET UNIQUE_CHECKS=1;
SET FOREIGN_KEY_CHECKS=1;
