Path: blob/1.0-develop/database/schema/mysql-schema.sql
7460 views
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;1/*!40103 SET TIME_ZONE='+00:00' */;2/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;3/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;4/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;5/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;6DROP TABLE IF EXISTS `activity_log_subjects`;7/*!40101 SET @saved_cs_client = @@character_set_client */;8/*!40101 SET character_set_client = utf8 */;9CREATE TABLE `activity_log_subjects` (10`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,11`activity_log_id` bigint(20) unsigned NOT NULL,12`subject_type` varchar(191) NOT NULL,13`subject_id` bigint(20) unsigned NOT NULL,14PRIMARY KEY (`id`),15KEY `activity_log_subjects_activity_log_id_foreign` (`activity_log_id`),16KEY `activity_log_subjects_subject_type_subject_id_index` (`subject_type`,`subject_id`),17CONSTRAINT `activity_log_subjects_activity_log_id_foreign` FOREIGN KEY (`activity_log_id`) REFERENCES `activity_logs` (`id`) ON DELETE CASCADE18) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;19/*!40101 SET character_set_client = @saved_cs_client */;20DROP TABLE IF EXISTS `activity_logs`;21/*!40101 SET @saved_cs_client = @@character_set_client */;22/*!40101 SET character_set_client = utf8 */;23CREATE TABLE `activity_logs` (24`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,25`batch` char(36) DEFAULT NULL,26`event` varchar(191) NOT NULL,27`ip` varchar(191) NOT NULL,28`description` text DEFAULT NULL,29`actor_type` varchar(191) DEFAULT NULL,30`actor_id` bigint(20) unsigned DEFAULT NULL,31`api_key_id` int(10) unsigned DEFAULT NULL,32`properties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`properties`)),33`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),34PRIMARY KEY (`id`),35KEY `activity_logs_actor_type_actor_id_index` (`actor_type`,`actor_id`),36KEY `activity_logs_event_index` (`event`)37) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;38/*!40101 SET character_set_client = @saved_cs_client */;39DROP TABLE IF EXISTS `allocations`;40/*!40101 SET @saved_cs_client = @@character_set_client */;41/*!40101 SET character_set_client = utf8 */;42CREATE TABLE `allocations` (43`id` int(10) unsigned NOT NULL AUTO_INCREMENT,44`node_id` int(10) unsigned NOT NULL,45`ip` varchar(191) NOT NULL,46`ip_alias` text DEFAULT NULL,47`port` mediumint(8) unsigned NOT NULL,48`server_id` int(10) unsigned DEFAULT NULL,49`notes` varchar(191) DEFAULT NULL,50`created_at` timestamp NULL DEFAULT NULL,51`updated_at` timestamp NULL DEFAULT NULL,52PRIMARY KEY (`id`),53UNIQUE KEY `allocations_node_id_ip_port_unique` (`node_id`,`ip`,`port`),54KEY `allocations_server_id_foreign` (`server_id`),55CONSTRAINT `allocations_node_id_foreign` FOREIGN KEY (`node_id`) REFERENCES `nodes` (`id`) ON DELETE CASCADE,56CONSTRAINT `allocations_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE SET NULL57) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;58/*!40101 SET character_set_client = @saved_cs_client */;59DROP TABLE IF EXISTS `api_keys`;60/*!40101 SET @saved_cs_client = @@character_set_client */;61/*!40101 SET character_set_client = utf8 */;62CREATE TABLE `api_keys` (63`id` int(10) unsigned NOT NULL AUTO_INCREMENT,64`user_id` int(10) unsigned NOT NULL,65`key_type` tinyint(3) unsigned NOT NULL DEFAULT 0,66`identifier` char(16) DEFAULT NULL,67`token` text NOT NULL,68`allowed_ips` text DEFAULT NULL,69`memo` text DEFAULT NULL,70`last_used_at` timestamp NULL DEFAULT NULL,71`expires_at` timestamp NULL DEFAULT NULL,72`created_at` timestamp NULL DEFAULT NULL,73`updated_at` timestamp NULL DEFAULT NULL,74`r_servers` tinyint(3) unsigned NOT NULL DEFAULT 0,75`r_nodes` tinyint(3) unsigned NOT NULL DEFAULT 0,76`r_allocations` tinyint(3) unsigned NOT NULL DEFAULT 0,77`r_users` tinyint(3) unsigned NOT NULL DEFAULT 0,78`r_locations` tinyint(3) unsigned NOT NULL DEFAULT 0,79`r_nests` tinyint(3) unsigned NOT NULL DEFAULT 0,80`r_eggs` tinyint(3) unsigned NOT NULL DEFAULT 0,81`r_database_hosts` tinyint(3) unsigned NOT NULL DEFAULT 0,82`r_server_databases` tinyint(3) unsigned NOT NULL DEFAULT 0,83PRIMARY KEY (`id`),84UNIQUE KEY `api_keys_identifier_unique` (`identifier`),85KEY `api_keys_user_id_foreign` (`user_id`),86CONSTRAINT `api_keys_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE87) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;88/*!40101 SET character_set_client = @saved_cs_client */;89DROP TABLE IF EXISTS `api_logs`;90/*!40101 SET @saved_cs_client = @@character_set_client */;91/*!40101 SET character_set_client = utf8 */;92CREATE TABLE `api_logs` (93`id` int(10) unsigned NOT NULL AUTO_INCREMENT,94`authorized` tinyint(1) NOT NULL,95`error` text DEFAULT NULL,96`key` char(16) DEFAULT NULL,97`method` char(6) NOT NULL,98`route` text NOT NULL,99`content` text DEFAULT NULL,100`user_agent` text NOT NULL,101`request_ip` varchar(45) NOT NULL,102`created_at` timestamp NULL DEFAULT NULL,103`updated_at` timestamp NULL DEFAULT NULL,104PRIMARY KEY (`id`)105) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;106/*!40101 SET character_set_client = @saved_cs_client */;107DROP TABLE IF EXISTS `audit_logs`;108/*!40101 SET @saved_cs_client = @@character_set_client */;109/*!40101 SET character_set_client = utf8 */;110CREATE TABLE `audit_logs` (111`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,112`uuid` char(36) NOT NULL,113`is_system` tinyint(1) NOT NULL DEFAULT 0,114`user_id` int(10) unsigned DEFAULT NULL,115`server_id` int(10) unsigned DEFAULT NULL,116`action` varchar(191) NOT NULL,117`subaction` varchar(191) DEFAULT NULL,118`device` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`device`)),119`metadata` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`metadata`)),120`created_at` timestamp NOT NULL,121PRIMARY KEY (`id`),122KEY `audit_logs_user_id_foreign` (`user_id`),123KEY `audit_logs_server_id_foreign` (`server_id`),124KEY `audit_logs_action_server_id_index` (`action`,`server_id`),125CONSTRAINT `audit_logs_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE,126CONSTRAINT `audit_logs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL127) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;128/*!40101 SET character_set_client = @saved_cs_client */;129DROP TABLE IF EXISTS `backups`;130/*!40101 SET @saved_cs_client = @@character_set_client */;131/*!40101 SET character_set_client = utf8 */;132CREATE TABLE `backups` (133`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,134`server_id` int(10) unsigned NOT NULL,135`uuid` char(36) NOT NULL,136`upload_id` text DEFAULT NULL,137`is_successful` tinyint(1) NOT NULL DEFAULT 0,138`is_locked` tinyint(3) unsigned NOT NULL DEFAULT 0,139`name` varchar(191) NOT NULL,140`ignored_files` text NOT NULL,141`disk` varchar(191) NOT NULL,142`checksum` varchar(191) DEFAULT NULL,143`bytes` bigint(20) unsigned NOT NULL DEFAULT 0,144`completed_at` timestamp NULL DEFAULT NULL,145`created_at` timestamp NULL DEFAULT NULL,146`updated_at` timestamp NULL DEFAULT NULL,147`deleted_at` timestamp NULL DEFAULT NULL,148PRIMARY KEY (`id`),149UNIQUE KEY `backups_uuid_unique` (`uuid`),150KEY `backups_server_id_foreign` (`server_id`),151CONSTRAINT `backups_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE152) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;153/*!40101 SET character_set_client = @saved_cs_client */;154DROP TABLE IF EXISTS `database_hosts`;155/*!40101 SET @saved_cs_client = @@character_set_client */;156/*!40101 SET character_set_client = utf8 */;157CREATE TABLE `database_hosts` (158`id` int(10) unsigned NOT NULL AUTO_INCREMENT,159`name` varchar(191) NOT NULL,160`host` varchar(191) NOT NULL,161`port` int(10) unsigned NOT NULL,162`username` varchar(191) NOT NULL,163`password` text NOT NULL,164`max_databases` int(10) unsigned DEFAULT NULL,165`node_id` int(10) unsigned DEFAULT NULL,166`created_at` timestamp NULL DEFAULT NULL,167`updated_at` timestamp NULL DEFAULT NULL,168PRIMARY KEY (`id`),169KEY `database_hosts_node_id_foreign` (`node_id`),170CONSTRAINT `database_hosts_node_id_foreign` FOREIGN KEY (`node_id`) REFERENCES `nodes` (`id`) ON DELETE SET NULL171) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;172/*!40101 SET character_set_client = @saved_cs_client */;173DROP TABLE IF EXISTS `databases`;174/*!40101 SET @saved_cs_client = @@character_set_client */;175/*!40101 SET character_set_client = utf8 */;176CREATE TABLE `databases` (177`id` int(10) unsigned NOT NULL AUTO_INCREMENT,178`server_id` int(10) unsigned NOT NULL,179`database_host_id` int(10) unsigned NOT NULL,180`database` varchar(191) NOT NULL,181`username` varchar(191) NOT NULL,182`remote` varchar(191) NOT NULL DEFAULT '%',183`password` text NOT NULL,184`max_connections` int(11) DEFAULT 0,185`created_at` timestamp NULL DEFAULT NULL,186`updated_at` timestamp NULL DEFAULT NULL,187PRIMARY KEY (`id`),188UNIQUE KEY `databases_database_host_id_username_unique` (`database_host_id`,`username`),189UNIQUE KEY `databases_database_host_id_server_id_database_unique` (`database_host_id`,`server_id`,`database`),190KEY `databases_server_id_foreign` (`server_id`),191CONSTRAINT `databases_database_host_id_foreign` FOREIGN KEY (`database_host_id`) REFERENCES `database_hosts` (`id`),192CONSTRAINT `databases_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`)193) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;194/*!40101 SET character_set_client = @saved_cs_client */;195DROP TABLE IF EXISTS `egg_mount`;196/*!40101 SET @saved_cs_client = @@character_set_client */;197/*!40101 SET character_set_client = utf8 */;198CREATE TABLE `egg_mount` (199`egg_id` int(10) unsigned NOT NULL,200`mount_id` int(10) unsigned NOT NULL,201UNIQUE KEY `egg_mount_egg_id_mount_id_unique` (`egg_id`,`mount_id`),202KEY `egg_mount_mount_id_foreign` (`mount_id`),203CONSTRAINT `egg_mount_egg_id_foreign` FOREIGN KEY (`egg_id`) REFERENCES `eggs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,204CONSTRAINT `egg_mount_mount_id_foreign` FOREIGN KEY (`mount_id`) REFERENCES `mounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE205) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;206/*!40101 SET character_set_client = @saved_cs_client */;207DROP TABLE IF EXISTS `egg_variables`;208/*!40101 SET @saved_cs_client = @@character_set_client */;209/*!40101 SET character_set_client = utf8 */;210CREATE TABLE `egg_variables` (211`id` int(10) unsigned NOT NULL AUTO_INCREMENT,212`egg_id` int(10) unsigned NOT NULL,213`name` varchar(191) NOT NULL,214`description` text NOT NULL,215`env_variable` varchar(191) NOT NULL,216`default_value` text NOT NULL,217`user_viewable` tinyint(3) unsigned NOT NULL,218`user_editable` tinyint(3) unsigned NOT NULL,219`rules` text DEFAULT NULL,220`created_at` timestamp NULL DEFAULT NULL,221`updated_at` timestamp NULL DEFAULT NULL,222PRIMARY KEY (`id`),223KEY `service_variables_egg_id_foreign` (`egg_id`),224CONSTRAINT `service_variables_egg_id_foreign` FOREIGN KEY (`egg_id`) REFERENCES `eggs` (`id`) ON DELETE CASCADE225) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;226/*!40101 SET character_set_client = @saved_cs_client */;227DROP TABLE IF EXISTS `eggs`;228/*!40101 SET @saved_cs_client = @@character_set_client */;229/*!40101 SET character_set_client = utf8 */;230CREATE TABLE `eggs` (231`id` int(10) unsigned NOT NULL AUTO_INCREMENT,232`uuid` char(36) NOT NULL,233`nest_id` int(10) unsigned NOT NULL,234`author` varchar(191) NOT NULL,235`name` varchar(191) NOT NULL,236`description` text DEFAULT NULL,237`features` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`features`)),238`docker_images` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`docker_images`)),239`file_denylist` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`file_denylist`)),240`update_url` text DEFAULT NULL,241`config_files` text DEFAULT NULL,242`config_startup` text DEFAULT NULL,243`config_logs` text DEFAULT NULL,244`config_stop` varchar(191) DEFAULT NULL,245`config_from` int(10) unsigned DEFAULT NULL,246`startup` text DEFAULT NULL,247`script_container` varchar(191) NOT NULL DEFAULT 'alpine:3.4',248`copy_script_from` int(10) unsigned DEFAULT NULL,249`script_entry` varchar(191) NOT NULL DEFAULT 'ash',250`script_is_privileged` tinyint(1) NOT NULL DEFAULT 1,251`script_install` text DEFAULT NULL,252`created_at` timestamp NULL DEFAULT NULL,253`updated_at` timestamp NULL DEFAULT NULL,254`force_outgoing_ip` tinyint(1) NOT NULL DEFAULT 0,255PRIMARY KEY (`id`),256UNIQUE KEY `service_options_uuid_unique` (`uuid`),257KEY `service_options_nest_id_foreign` (`nest_id`),258KEY `eggs_config_from_foreign` (`config_from`),259KEY `eggs_copy_script_from_foreign` (`copy_script_from`),260CONSTRAINT `eggs_config_from_foreign` FOREIGN KEY (`config_from`) REFERENCES `eggs` (`id`) ON DELETE SET NULL,261CONSTRAINT `eggs_copy_script_from_foreign` FOREIGN KEY (`copy_script_from`) REFERENCES `eggs` (`id`) ON DELETE SET NULL,262CONSTRAINT `service_options_nest_id_foreign` FOREIGN KEY (`nest_id`) REFERENCES `nests` (`id`) ON DELETE CASCADE263) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;264/*!40101 SET character_set_client = @saved_cs_client */;265DROP TABLE IF EXISTS `failed_jobs`;266/*!40101 SET @saved_cs_client = @@character_set_client */;267/*!40101 SET character_set_client = utf8 */;268CREATE TABLE `failed_jobs` (269`id` int(10) unsigned NOT NULL AUTO_INCREMENT,270`uuid` varchar(191) DEFAULT NULL,271`connection` text NOT NULL,272`queue` text NOT NULL,273`payload` longtext NOT NULL,274`failed_at` timestamp NOT NULL,275`exception` text NOT NULL,276PRIMARY KEY (`id`),277UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)278) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;279/*!40101 SET character_set_client = @saved_cs_client */;280DROP TABLE IF EXISTS `jobs`;281/*!40101 SET @saved_cs_client = @@character_set_client */;282/*!40101 SET character_set_client = utf8 */;283CREATE TABLE `jobs` (284`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,285`queue` varchar(191) NOT NULL,286`payload` longtext NOT NULL,287`attempts` tinyint(3) unsigned NOT NULL,288`reserved_at` int(10) unsigned DEFAULT NULL,289`available_at` int(10) unsigned NOT NULL,290`created_at` int(10) unsigned NOT NULL,291PRIMARY KEY (`id`),292KEY `jobs_queue_reserved_at_index` (`queue`,`reserved_at`)293) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;294/*!40101 SET character_set_client = @saved_cs_client */;295DROP TABLE IF EXISTS `locations`;296/*!40101 SET @saved_cs_client = @@character_set_client */;297/*!40101 SET character_set_client = utf8 */;298CREATE TABLE `locations` (299`id` int(10) unsigned NOT NULL AUTO_INCREMENT,300`short` varchar(191) NOT NULL,301`long` text DEFAULT NULL,302`created_at` timestamp NULL DEFAULT NULL,303`updated_at` timestamp NULL DEFAULT NULL,304PRIMARY KEY (`id`),305UNIQUE KEY `locations_short_unique` (`short`)306) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;307/*!40101 SET character_set_client = @saved_cs_client */;308DROP TABLE IF EXISTS `migrations`;309/*!40101 SET @saved_cs_client = @@character_set_client */;310/*!40101 SET character_set_client = utf8 */;311CREATE TABLE `migrations` (312`id` int(10) unsigned NOT NULL AUTO_INCREMENT,313`migration` varchar(191) NOT NULL,314`batch` int(11) NOT NULL,315PRIMARY KEY (`id`)316) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;317/*!40101 SET character_set_client = @saved_cs_client */;318DROP TABLE IF EXISTS `mount_node`;319/*!40101 SET @saved_cs_client = @@character_set_client */;320/*!40101 SET character_set_client = utf8 */;321CREATE TABLE `mount_node` (322`node_id` int(10) unsigned NOT NULL,323`mount_id` int(10) unsigned NOT NULL,324UNIQUE KEY `mount_node_node_id_mount_id_unique` (`node_id`,`mount_id`),325KEY `mount_node_mount_id_foreign` (`mount_id`),326CONSTRAINT `mount_node_mount_id_foreign` FOREIGN KEY (`mount_id`) REFERENCES `mounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,327CONSTRAINT `mount_node_node_id_foreign` FOREIGN KEY (`node_id`) REFERENCES `nodes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE328) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;329/*!40101 SET character_set_client = @saved_cs_client */;330DROP TABLE IF EXISTS `mount_server`;331/*!40101 SET @saved_cs_client = @@character_set_client */;332/*!40101 SET character_set_client = utf8 */;333CREATE TABLE `mount_server` (334`server_id` int(10) unsigned NOT NULL,335`mount_id` int(10) unsigned NOT NULL,336UNIQUE KEY `mount_server_server_id_mount_id_unique` (`server_id`,`mount_id`),337KEY `mount_server_mount_id_foreign` (`mount_id`),338CONSTRAINT `mount_server_mount_id_foreign` FOREIGN KEY (`mount_id`) REFERENCES `mounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,339CONSTRAINT `mount_server_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE340) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;341/*!40101 SET character_set_client = @saved_cs_client */;342DROP TABLE IF EXISTS `mounts`;343/*!40101 SET @saved_cs_client = @@character_set_client */;344/*!40101 SET character_set_client = utf8 */;345CREATE TABLE `mounts` (346`id` int(10) unsigned NOT NULL AUTO_INCREMENT,347`uuid` char(36) NOT NULL,348`name` varchar(191) NOT NULL,349`description` text DEFAULT NULL,350`source` varchar(191) NOT NULL,351`target` varchar(191) NOT NULL,352`read_only` tinyint(3) unsigned NOT NULL,353`user_mountable` tinyint(3) unsigned NOT NULL,354PRIMARY KEY (`id`),355UNIQUE KEY `mounts_id_unique` (`id`),356UNIQUE KEY `mounts_uuid_unique` (`uuid`),357UNIQUE KEY `mounts_name_unique` (`name`)358) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;359/*!40101 SET character_set_client = @saved_cs_client */;360DROP TABLE IF EXISTS `nests`;361/*!40101 SET @saved_cs_client = @@character_set_client */;362/*!40101 SET character_set_client = utf8 */;363CREATE TABLE `nests` (364`id` int(10) unsigned NOT NULL AUTO_INCREMENT,365`uuid` char(36) NOT NULL,366`author` char(191) NOT NULL,367`name` varchar(191) NOT NULL,368`description` text DEFAULT NULL,369`created_at` timestamp NULL DEFAULT NULL,370`updated_at` timestamp NULL DEFAULT NULL,371PRIMARY KEY (`id`),372UNIQUE KEY `services_uuid_unique` (`uuid`)373) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;374/*!40101 SET character_set_client = @saved_cs_client */;375DROP TABLE IF EXISTS `nodes`;376/*!40101 SET @saved_cs_client = @@character_set_client */;377/*!40101 SET character_set_client = utf8 */;378CREATE TABLE `nodes` (379`id` int(10) unsigned NOT NULL AUTO_INCREMENT,380`uuid` char(36) NOT NULL,381`public` smallint(5) unsigned NOT NULL,382`name` varchar(191) NOT NULL,383`description` text DEFAULT NULL,384`location_id` int(10) unsigned NOT NULL,385`fqdn` varchar(191) NOT NULL,386`scheme` varchar(191) NOT NULL DEFAULT 'https',387`behind_proxy` tinyint(1) NOT NULL DEFAULT 0,388`maintenance_mode` tinyint(1) NOT NULL DEFAULT 0,389`memory` int(10) unsigned NOT NULL,390`memory_overallocate` int(11) NOT NULL DEFAULT 0,391`disk` int(10) unsigned NOT NULL,392`disk_overallocate` int(11) NOT NULL DEFAULT 0,393`upload_size` int(10) unsigned NOT NULL DEFAULT 100,394`daemon_token_id` char(16) NOT NULL,395`daemon_token` text NOT NULL,396`daemonListen` smallint(5) unsigned NOT NULL DEFAULT 8080,397`daemonSFTP` smallint(5) unsigned NOT NULL DEFAULT 2022,398`daemonBase` varchar(191) NOT NULL DEFAULT '/home/daemon-files',399`created_at` timestamp NULL DEFAULT NULL,400`updated_at` timestamp NULL DEFAULT NULL,401PRIMARY KEY (`id`),402UNIQUE KEY `nodes_uuid_unique` (`uuid`),403UNIQUE KEY `nodes_daemon_token_id_unique` (`daemon_token_id`),404KEY `nodes_location_id_foreign` (`location_id`),405CONSTRAINT `nodes_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `locations` (`id`)406) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;407/*!40101 SET character_set_client = @saved_cs_client */;408DROP TABLE IF EXISTS `notifications`;409/*!40101 SET @saved_cs_client = @@character_set_client */;410/*!40101 SET character_set_client = utf8 */;411CREATE TABLE `notifications` (412`id` varchar(191) NOT NULL,413`type` varchar(191) NOT NULL,414`notifiable_type` varchar(191) NOT NULL,415`notifiable_id` bigint(20) unsigned NOT NULL,416`data` text NOT NULL,417`read_at` timestamp NULL DEFAULT NULL,418`created_at` timestamp NULL DEFAULT NULL,419`updated_at` timestamp NULL DEFAULT NULL,420PRIMARY KEY (`id`),421KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`)422) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;423/*!40101 SET character_set_client = @saved_cs_client */;424DROP TABLE IF EXISTS `password_resets`;425/*!40101 SET @saved_cs_client = @@character_set_client */;426/*!40101 SET character_set_client = utf8 */;427CREATE TABLE `password_resets` (428`email` varchar(191) NOT NULL,429`token` varchar(191) NOT NULL,430`created_at` timestamp NOT NULL,431KEY `password_resets_email_index` (`email`),432KEY `password_resets_token_index` (`token`)433) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;434/*!40101 SET character_set_client = @saved_cs_client */;435DROP TABLE IF EXISTS `recovery_tokens`;436/*!40101 SET @saved_cs_client = @@character_set_client */;437/*!40101 SET character_set_client = utf8 */;438CREATE TABLE `recovery_tokens` (439`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,440`user_id` int(10) unsigned NOT NULL,441`token` varchar(191) NOT NULL,442`created_at` timestamp NULL DEFAULT NULL,443PRIMARY KEY (`id`),444KEY `recovery_tokens_user_id_foreign` (`user_id`),445CONSTRAINT `recovery_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE446) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;447/*!40101 SET character_set_client = @saved_cs_client */;448DROP TABLE IF EXISTS `schedules`;449/*!40101 SET @saved_cs_client = @@character_set_client */;450/*!40101 SET character_set_client = utf8 */;451CREATE TABLE `schedules` (452`id` int(10) unsigned NOT NULL AUTO_INCREMENT,453`server_id` int(10) unsigned NOT NULL,454`name` varchar(191) NOT NULL,455`cron_day_of_week` varchar(191) NOT NULL,456`cron_month` varchar(191) NOT NULL,457`cron_day_of_month` varchar(191) NOT NULL,458`cron_hour` varchar(191) NOT NULL,459`cron_minute` varchar(191) NOT NULL,460`is_active` tinyint(1) NOT NULL,461`is_processing` tinyint(1) NOT NULL,462`only_when_online` tinyint(3) unsigned NOT NULL DEFAULT 0,463`last_run_at` timestamp NULL DEFAULT NULL,464`next_run_at` timestamp NULL DEFAULT NULL,465`created_at` timestamp NULL DEFAULT NULL,466`updated_at` timestamp NULL DEFAULT NULL,467PRIMARY KEY (`id`),468KEY `schedules_server_id_foreign` (`server_id`),469CONSTRAINT `schedules_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE470) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;471/*!40101 SET character_set_client = @saved_cs_client */;472DROP TABLE IF EXISTS `server_transfers`;473/*!40101 SET @saved_cs_client = @@character_set_client */;474/*!40101 SET character_set_client = utf8 */;475CREATE TABLE `server_transfers` (476`id` int(10) unsigned NOT NULL AUTO_INCREMENT,477`server_id` int(10) unsigned NOT NULL,478`successful` tinyint(1) DEFAULT NULL,479`old_node` int(10) unsigned NOT NULL,480`new_node` int(10) unsigned NOT NULL,481`old_allocation` int(10) unsigned NOT NULL,482`new_allocation` int(10) unsigned NOT NULL,483`old_additional_allocations` longtext DEFAULT NULL COMMENT '(DC2Type:json)',484`new_additional_allocations` longtext DEFAULT NULL COMMENT '(DC2Type:json)',485`archived` tinyint(1) NOT NULL DEFAULT 0,486`created_at` timestamp NULL DEFAULT NULL,487`updated_at` timestamp NULL DEFAULT NULL,488PRIMARY KEY (`id`),489KEY `server_transfers_server_id_foreign` (`server_id`),490CONSTRAINT `server_transfers_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE491) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;492/*!40101 SET character_set_client = @saved_cs_client */;493DROP TABLE IF EXISTS `server_variables`;494/*!40101 SET @saved_cs_client = @@character_set_client */;495/*!40101 SET character_set_client = utf8 */;496CREATE TABLE `server_variables` (497`id` int(10) unsigned NOT NULL AUTO_INCREMENT,498`server_id` int(10) unsigned DEFAULT NULL,499`variable_id` int(10) unsigned NOT NULL,500`variable_value` text NOT NULL,501`created_at` timestamp NULL DEFAULT NULL,502`updated_at` timestamp NULL DEFAULT NULL,503PRIMARY KEY (`id`),504KEY `server_variables_server_id_foreign` (`server_id`),505KEY `server_variables_variable_id_foreign` (`variable_id`),506CONSTRAINT `server_variables_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE,507CONSTRAINT `server_variables_variable_id_foreign` FOREIGN KEY (`variable_id`) REFERENCES `egg_variables` (`id`) ON DELETE CASCADE508) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;509/*!40101 SET character_set_client = @saved_cs_client */;510DROP TABLE IF EXISTS `servers`;511/*!40101 SET @saved_cs_client = @@character_set_client */;512/*!40101 SET character_set_client = utf8 */;513CREATE TABLE `servers` (514`id` int(10) unsigned NOT NULL AUTO_INCREMENT,515`external_id` varchar(191) DEFAULT NULL,516`uuid` char(36) NOT NULL,517`uuidShort` char(8) NOT NULL,518`node_id` int(10) unsigned NOT NULL,519`name` varchar(191) NOT NULL,520`description` text NOT NULL,521`status` varchar(191) DEFAULT NULL,522`skip_scripts` tinyint(1) NOT NULL DEFAULT 0,523`owner_id` int(10) unsigned NOT NULL,524`memory` int(10) unsigned NOT NULL,525`swap` int(11) NOT NULL,526`disk` int(10) unsigned NOT NULL,527`io` int(10) unsigned NOT NULL,528`cpu` int(10) unsigned NOT NULL,529`threads` varchar(191) DEFAULT NULL,530`oom_disabled` tinyint(3) unsigned NOT NULL DEFAULT 0,531`allocation_id` int(10) unsigned NOT NULL,532`nest_id` int(10) unsigned NOT NULL,533`egg_id` int(10) unsigned NOT NULL,534`startup` text NOT NULL,535`image` varchar(191) NOT NULL,536`allocation_limit` int(10) unsigned DEFAULT NULL,537`database_limit` int(10) unsigned DEFAULT 0,538`backup_limit` int(10) unsigned NOT NULL DEFAULT 0,539`created_at` timestamp NULL DEFAULT NULL,540`updated_at` timestamp NULL DEFAULT NULL,541`installed_at` timestamp NULL DEFAULT NULL,542PRIMARY KEY (`id`),543UNIQUE KEY `servers_uuid_unique` (`uuid`),544UNIQUE KEY `servers_uuidshort_unique` (`uuidShort`),545UNIQUE KEY `servers_allocation_id_unique` (`allocation_id`),546UNIQUE KEY `servers_external_id_unique` (`external_id`),547KEY `servers_node_id_foreign` (`node_id`),548KEY `servers_owner_id_foreign` (`owner_id`),549KEY `servers_nest_id_foreign` (`nest_id`),550KEY `servers_egg_id_foreign` (`egg_id`),551CONSTRAINT `servers_allocation_id_foreign` FOREIGN KEY (`allocation_id`) REFERENCES `allocations` (`id`),552CONSTRAINT `servers_egg_id_foreign` FOREIGN KEY (`egg_id`) REFERENCES `eggs` (`id`),553CONSTRAINT `servers_nest_id_foreign` FOREIGN KEY (`nest_id`) REFERENCES `nests` (`id`),554CONSTRAINT `servers_node_id_foreign` FOREIGN KEY (`node_id`) REFERENCES `nodes` (`id`),555CONSTRAINT `servers_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`)556) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;557/*!40101 SET character_set_client = @saved_cs_client */;558DROP TABLE IF EXISTS `sessions`;559/*!40101 SET @saved_cs_client = @@character_set_client */;560/*!40101 SET character_set_client = utf8 */;561CREATE TABLE `sessions` (562`id` varchar(191) NOT NULL,563`user_id` int(11) DEFAULT NULL,564`ip_address` varchar(45) DEFAULT NULL,565`user_agent` text DEFAULT NULL,566`payload` text NOT NULL,567`last_activity` int(11) NOT NULL,568UNIQUE KEY `sessions_id_unique` (`id`)569) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;570/*!40101 SET character_set_client = @saved_cs_client */;571DROP TABLE IF EXISTS `settings`;572/*!40101 SET @saved_cs_client = @@character_set_client */;573/*!40101 SET character_set_client = utf8 */;574CREATE TABLE `settings` (575`id` int(10) unsigned NOT NULL AUTO_INCREMENT,576`key` varchar(191) NOT NULL,577`value` text NOT NULL,578PRIMARY KEY (`id`),579UNIQUE KEY `settings_key_unique` (`key`)580) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;581/*!40101 SET character_set_client = @saved_cs_client */;582DROP TABLE IF EXISTS `subusers`;583/*!40101 SET @saved_cs_client = @@character_set_client */;584/*!40101 SET character_set_client = utf8 */;585CREATE TABLE `subusers` (586`id` int(10) unsigned NOT NULL AUTO_INCREMENT,587`user_id` int(10) unsigned NOT NULL,588`server_id` int(10) unsigned NOT NULL,589`permissions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`permissions`)),590`created_at` timestamp NULL DEFAULT NULL,591`updated_at` timestamp NULL DEFAULT NULL,592PRIMARY KEY (`id`),593KEY `subusers_user_id_foreign` (`user_id`),594KEY `subusers_server_id_foreign` (`server_id`),595CONSTRAINT `subusers_server_id_foreign` FOREIGN KEY (`server_id`) REFERENCES `servers` (`id`) ON DELETE CASCADE,596CONSTRAINT `subusers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE597) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;598/*!40101 SET character_set_client = @saved_cs_client */;599DROP TABLE IF EXISTS `tasks`;600/*!40101 SET @saved_cs_client = @@character_set_client */;601/*!40101 SET character_set_client = utf8 */;602CREATE TABLE `tasks` (603`id` int(10) unsigned NOT NULL AUTO_INCREMENT,604`schedule_id` int(10) unsigned NOT NULL,605`sequence_id` int(10) unsigned NOT NULL,606`action` varchar(191) NOT NULL,607`payload` text NOT NULL,608`time_offset` int(10) unsigned NOT NULL,609`is_queued` tinyint(1) NOT NULL,610`continue_on_failure` tinyint(3) unsigned NOT NULL DEFAULT 0,611`created_at` timestamp NULL DEFAULT NULL,612`updated_at` timestamp NULL DEFAULT NULL,613PRIMARY KEY (`id`),614KEY `tasks_schedule_id_sequence_id_index` (`schedule_id`,`sequence_id`),615CONSTRAINT `tasks_schedule_id_foreign` FOREIGN KEY (`schedule_id`) REFERENCES `schedules` (`id`) ON DELETE CASCADE616) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;617/*!40101 SET character_set_client = @saved_cs_client */;618DROP TABLE IF EXISTS `tasks_log`;619/*!40101 SET @saved_cs_client = @@character_set_client */;620/*!40101 SET character_set_client = utf8 */;621CREATE TABLE `tasks_log` (622`id` int(10) unsigned NOT NULL AUTO_INCREMENT,623`task_id` int(10) unsigned NOT NULL,624`run_time` timestamp NOT NULL,625`run_status` int(10) unsigned NOT NULL,626`response` text NOT NULL,627`created_at` timestamp NULL DEFAULT NULL,628`updated_at` timestamp NULL DEFAULT NULL,629PRIMARY KEY (`id`)630) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;631/*!40101 SET character_set_client = @saved_cs_client */;632DROP TABLE IF EXISTS `user_ssh_keys`;633/*!40101 SET @saved_cs_client = @@character_set_client */;634/*!40101 SET character_set_client = utf8 */;635CREATE TABLE `user_ssh_keys` (636`id` int(10) unsigned NOT NULL AUTO_INCREMENT,637`user_id` int(10) unsigned NOT NULL,638`name` varchar(191) NOT NULL,639`fingerprint` varchar(191) NOT NULL,640`public_key` text NOT NULL,641`created_at` timestamp NULL DEFAULT NULL,642`updated_at` timestamp NULL DEFAULT NULL,643`deleted_at` timestamp NULL DEFAULT NULL,644PRIMARY KEY (`id`),645KEY `user_ssh_keys_user_id_foreign` (`user_id`),646CONSTRAINT `user_ssh_keys_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE647) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;648/*!40101 SET character_set_client = @saved_cs_client */;649DROP TABLE IF EXISTS `users`;650/*!40101 SET @saved_cs_client = @@character_set_client */;651/*!40101 SET character_set_client = utf8 */;652CREATE TABLE `users` (653`id` int(10) unsigned NOT NULL AUTO_INCREMENT,654`external_id` varchar(191) DEFAULT NULL,655`uuid` char(36) NOT NULL,656`username` varchar(191) NOT NULL,657`email` varchar(191) NOT NULL,658`name_first` varchar(191) DEFAULT NULL,659`name_last` varchar(191) DEFAULT NULL,660`password` text NOT NULL,661`remember_token` varchar(191) DEFAULT NULL,662`language` char(5) NOT NULL DEFAULT 'en',663`root_admin` tinyint(3) unsigned NOT NULL DEFAULT 0,664`use_totp` tinyint(3) unsigned NOT NULL,665`totp_secret` text DEFAULT NULL,666`totp_authenticated_at` timestamp NULL DEFAULT NULL,667`gravatar` tinyint(1) NOT NULL DEFAULT 1,668`created_at` timestamp NULL DEFAULT NULL,669`updated_at` timestamp NULL DEFAULT NULL,670PRIMARY KEY (`id`),671UNIQUE KEY `users_uuid_unique` (`uuid`),672UNIQUE KEY `users_email_unique` (`email`),673UNIQUE KEY `users_username_unique` (`username`),674KEY `users_external_id_index` (`external_id`)675) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;676/*!40101 SET character_set_client = @saved_cs_client */;677/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;678679/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;680/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;681/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;682/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;683684INSERT INTO `migrations` VALUES (1,'2016_01_23_195641_add_allocations_table',1);685INSERT INTO `migrations` VALUES (2,'2016_01_23_195851_add_api_keys',1);686INSERT INTO `migrations` VALUES (3,'2016_01_23_200044_add_api_permissions',1);687INSERT INTO `migrations` VALUES (4,'2016_01_23_200159_add_downloads',1);688INSERT INTO `migrations` VALUES (5,'2016_01_23_200421_create_failed_jobs_table',1);689INSERT INTO `migrations` VALUES (6,'2016_01_23_200440_create_jobs_table',1);690INSERT INTO `migrations` VALUES (7,'2016_01_23_200528_add_locations',1);691INSERT INTO `migrations` VALUES (8,'2016_01_23_200648_add_nodes',1);692INSERT INTO `migrations` VALUES (9,'2016_01_23_201433_add_password_resets',1);693INSERT INTO `migrations` VALUES (10,'2016_01_23_201531_add_permissions',1);694INSERT INTO `migrations` VALUES (11,'2016_01_23_201649_add_server_variables',1);695INSERT INTO `migrations` VALUES (12,'2016_01_23_201748_add_servers',1);696INSERT INTO `migrations` VALUES (13,'2016_01_23_202544_add_service_options',1);697INSERT INTO `migrations` VALUES (14,'2016_01_23_202731_add_service_varibles',1);698INSERT INTO `migrations` VALUES (15,'2016_01_23_202943_add_services',1);699INSERT INTO `migrations` VALUES (16,'2016_01_23_203119_create_settings_table',1);700INSERT INTO `migrations` VALUES (17,'2016_01_23_203150_add_subusers',1);701INSERT INTO `migrations` VALUES (18,'2016_01_23_203159_add_users',1);702INSERT INTO `migrations` VALUES (19,'2016_01_23_203947_create_sessions_table',1);703INSERT INTO `migrations` VALUES (20,'2016_01_25_234418_rename_permissions_column',1);704INSERT INTO `migrations` VALUES (21,'2016_02_07_172148_add_databases_tables',1);705INSERT INTO `migrations` VALUES (22,'2016_02_07_181319_add_database_servers_table',1);706INSERT INTO `migrations` VALUES (23,'2016_02_13_154306_add_service_option_default_startup',1);707INSERT INTO `migrations` VALUES (24,'2016_02_20_155318_add_unique_service_field',1);708INSERT INTO `migrations` VALUES (25,'2016_02_27_163411_add_tasks_table',1);709INSERT INTO `migrations` VALUES (26,'2016_02_27_163447_add_tasks_log_table',1);710INSERT INTO `migrations` VALUES (27,'2016_03_18_155649_add_nullable_field_lastrun',1);711INSERT INTO `migrations` VALUES (28,'2016_08_30_212718_add_ip_alias',1);712INSERT INTO `migrations` VALUES (29,'2016_08_30_213301_modify_ip_storage_method',1);713INSERT INTO `migrations` VALUES (30,'2016_09_01_193520_add_suspension_for_servers',1);714INSERT INTO `migrations` VALUES (31,'2016_09_01_211924_remove_active_column',1);715INSERT INTO `migrations` VALUES (32,'2016_09_02_190647_add_sftp_password_storage',1);716INSERT INTO `migrations` VALUES (33,'2016_09_04_171338_update_jobs_tables',1);717INSERT INTO `migrations` VALUES (34,'2016_09_04_172028_update_failed_jobs_table',1);718INSERT INTO `migrations` VALUES (35,'2016_09_04_182835_create_notifications_table',1);719INSERT INTO `migrations` VALUES (36,'2016_09_07_163017_add_unique_identifier',1);720INSERT INTO `migrations` VALUES (37,'2016_09_14_145945_allow_longer_regex_field',1);721INSERT INTO `migrations` VALUES (38,'2016_09_17_194246_add_docker_image_column',1);722INSERT INTO `migrations` VALUES (39,'2016_09_21_165554_update_servers_column_name',1);723INSERT INTO `migrations` VALUES (40,'2016_09_29_213518_rename_double_insurgency',1);724INSERT INTO `migrations` VALUES (41,'2016_10_07_152117_build_api_log_table',1);725INSERT INTO `migrations` VALUES (42,'2016_10_14_164802_update_api_keys',1);726INSERT INTO `migrations` VALUES (43,'2016_10_23_181719_update_misnamed_bungee',1);727INSERT INTO `migrations` VALUES (44,'2016_10_23_193810_add_foreign_keys_servers',1);728INSERT INTO `migrations` VALUES (45,'2016_10_23_201624_add_foreign_allocations',1);729INSERT INTO `migrations` VALUES (46,'2016_10_23_202222_add_foreign_api_keys',1);730INSERT INTO `migrations` VALUES (47,'2016_10_23_202703_add_foreign_api_permissions',1);731INSERT INTO `migrations` VALUES (48,'2016_10_23_202953_add_foreign_database_servers',1);732INSERT INTO `migrations` VALUES (49,'2016_10_23_203105_add_foreign_databases',1);733INSERT INTO `migrations` VALUES (50,'2016_10_23_203335_add_foreign_nodes',1);734INSERT INTO `migrations` VALUES (51,'2016_10_23_203522_add_foreign_permissions',1);735INSERT INTO `migrations` VALUES (52,'2016_10_23_203857_add_foreign_server_variables',1);736INSERT INTO `migrations` VALUES (53,'2016_10_23_204157_add_foreign_service_options',1);737INSERT INTO `migrations` VALUES (54,'2016_10_23_204321_add_foreign_service_variables',1);738INSERT INTO `migrations` VALUES (55,'2016_10_23_204454_add_foreign_subusers',1);739INSERT INTO `migrations` VALUES (56,'2016_10_23_204610_add_foreign_tasks',1);740INSERT INTO `migrations` VALUES (57,'2016_11_04_000949_add_ark_service_option_fixed',1);741INSERT INTO `migrations` VALUES (58,'2016_11_11_220649_add_pack_support',1);742INSERT INTO `migrations` VALUES (59,'2016_11_11_231731_set_service_name_unique',1);743INSERT INTO `migrations` VALUES (60,'2016_11_27_142519_add_pack_column',1);744INSERT INTO `migrations` VALUES (61,'2016_12_01_173018_add_configurable_upload_limit',1);745INSERT INTO `migrations` VALUES (62,'2016_12_02_185206_correct_service_variables',1);746INSERT INTO `migrations` VALUES (63,'2017_01_03_150436_fix_misnamed_option_tag',1);747INSERT INTO `migrations` VALUES (64,'2017_01_07_154228_create_node_configuration_tokens_table',1);748INSERT INTO `migrations` VALUES (65,'2017_01_12_135449_add_more_user_data',1);749INSERT INTO `migrations` VALUES (66,'2017_02_02_175548_UpdateColumnNames',1);750INSERT INTO `migrations` VALUES (67,'2017_02_03_140948_UpdateNodesTable',1);751INSERT INTO `migrations` VALUES (68,'2017_02_03_155554_RenameColumns',1);752INSERT INTO `migrations` VALUES (69,'2017_02_05_164123_AdjustColumnNames',1);753INSERT INTO `migrations` VALUES (70,'2017_02_05_164516_AdjustColumnNamesForServicePacks',1);754INSERT INTO `migrations` VALUES (71,'2017_02_09_174834_SetupPermissionsPivotTable',1);755INSERT INTO `migrations` VALUES (72,'2017_02_10_171858_UpdateAPIKeyColumnNames',1);756INSERT INTO `migrations` VALUES (73,'2017_03_03_224254_UpdateNodeConfigTokensColumns',1);757INSERT INTO `migrations` VALUES (74,'2017_03_05_212803_DeleteServiceExecutableOption',1);758INSERT INTO `migrations` VALUES (75,'2017_03_10_162934_AddNewServiceOptionsColumns',1);759INSERT INTO `migrations` VALUES (76,'2017_03_10_173607_MigrateToNewServiceSystem',1);760INSERT INTO `migrations` VALUES (77,'2017_03_11_215455_ChangeServiceVariablesValidationRules',1);761INSERT INTO `migrations` VALUES (78,'2017_03_12_150648_MoveFunctionsFromFileToDatabase',1);762INSERT INTO `migrations` VALUES (79,'2017_03_14_175631_RenameServicePacksToSingluarPacks',1);763INSERT INTO `migrations` VALUES (80,'2017_03_14_200326_AddLockedStatusToTable',1);764INSERT INTO `migrations` VALUES (81,'2017_03_16_181109_ReOrganizeDatabaseServersToDatabaseHost',1);765INSERT INTO `migrations` VALUES (82,'2017_03_16_181515_CleanupDatabasesDatabase',1);766INSERT INTO `migrations` VALUES (83,'2017_03_18_204953_AddForeignKeyToPacks',1);767INSERT INTO `migrations` VALUES (84,'2017_03_31_221948_AddServerDescriptionColumn',1);768INSERT INTO `migrations` VALUES (85,'2017_04_02_163232_DropDeletedAtColumnFromServers',1);769INSERT INTO `migrations` VALUES (86,'2017_04_15_125021_UpgradeTaskSystem',1);770INSERT INTO `migrations` VALUES (87,'2017_04_20_171943_AddScriptsToServiceOptions',1);771INSERT INTO `migrations` VALUES (88,'2017_04_21_151432_AddServiceScriptTrackingToServers',1);772INSERT INTO `migrations` VALUES (89,'2017_04_27_145300_AddCopyScriptFromColumn',1);773INSERT INTO `migrations` VALUES (90,'2017_04_27_223629_AddAbilityToDefineConnectionOverSSLWithDaemonBehindProxy',1);774INSERT INTO `migrations` VALUES (91,'2017_05_01_141528_DeleteDownloadTable',1);775INSERT INTO `migrations` VALUES (92,'2017_05_01_141559_DeleteNodeConfigurationTable',1);776INSERT INTO `migrations` VALUES (93,'2017_06_10_152951_add_external_id_to_users',1);777INSERT INTO `migrations` VALUES (94,'2017_06_25_133923_ChangeForeignKeyToBeOnCascadeDelete',1);778INSERT INTO `migrations` VALUES (95,'2017_07_08_152806_ChangeUserPermissionsToDeleteOnUserDeletion',1);779INSERT INTO `migrations` VALUES (96,'2017_07_08_154416_SetAllocationToReferenceNullOnServerDelete',1);780INSERT INTO `migrations` VALUES (97,'2017_07_08_154650_CascadeDeletionWhenAServerOrVariableIsDeleted',1);781INSERT INTO `migrations` VALUES (98,'2017_07_24_194433_DeleteTaskWhenParentServerIsDeleted',1);782INSERT INTO `migrations` VALUES (99,'2017_08_05_115800_CascadeNullValuesForDatabaseHostWhenNodeIsDeleted',1);783INSERT INTO `migrations` VALUES (100,'2017_08_05_144104_AllowNegativeValuesForOverallocation',1);784INSERT INTO `migrations` VALUES (101,'2017_08_05_174811_SetAllocationUnqiueUsingMultipleFields',1);785INSERT INTO `migrations` VALUES (102,'2017_08_15_214555_CascadeDeletionWhenAParentServiceIsDeleted',1);786INSERT INTO `migrations` VALUES (103,'2017_08_18_215428_RemovePackWhenParentServiceOptionIsDeleted',1);787INSERT INTO `migrations` VALUES (104,'2017_09_10_225749_RenameTasksTableForStructureRefactor',1);788INSERT INTO `migrations` VALUES (105,'2017_09_10_225941_CreateSchedulesTable',1);789INSERT INTO `migrations` VALUES (106,'2017_09_10_230309_CreateNewTasksTableForSchedules',1);790INSERT INTO `migrations` VALUES (107,'2017_09_11_002938_TransferOldTasksToNewScheduler',1);791INSERT INTO `migrations` VALUES (108,'2017_09_13_211810_UpdateOldPermissionsToPointToNewScheduleSystem',1);792INSERT INTO `migrations` VALUES (109,'2017_09_23_170933_CreateDaemonKeysTable',1);793INSERT INTO `migrations` VALUES (110,'2017_09_23_173628_RemoveDaemonSecretFromServersTable',1);794INSERT INTO `migrations` VALUES (111,'2017_09_23_185022_RemoveDaemonSecretFromSubusersTable',1);795INSERT INTO `migrations` VALUES (112,'2017_10_02_202000_ChangeServicesToUseAMoreUniqueIdentifier',1);796INSERT INTO `migrations` VALUES (113,'2017_10_02_202007_ChangeToABetterUniqueServiceConfiguration',1);797INSERT INTO `migrations` VALUES (114,'2017_10_03_233202_CascadeDeletionWhenServiceOptionIsDeleted',1);798INSERT INTO `migrations` VALUES (115,'2017_10_06_214026_ServicesToNestsConversion',1);799INSERT INTO `migrations` VALUES (116,'2017_10_06_214053_ServiceOptionsToEggsConversion',1);800INSERT INTO `migrations` VALUES (117,'2017_10_06_215741_ServiceVariablesToEggVariablesConversion',1);801INSERT INTO `migrations` VALUES (118,'2017_10_24_222238_RemoveLegacySFTPInformation',1);802INSERT INTO `migrations` VALUES (119,'2017_11_11_161922_Add2FaLastAuthorizationTimeColumn',1);803INSERT INTO `migrations` VALUES (120,'2017_11_19_122708_MigratePubPrivFormatToSingleKey',1);804INSERT INTO `migrations` VALUES (121,'2017_12_04_184012_DropAllocationsWhenNodeIsDeleted',1);805INSERT INTO `migrations` VALUES (122,'2017_12_12_220426_MigrateSettingsTableToNewFormat',1);806INSERT INTO `migrations` VALUES (123,'2018_01_01_122821_AllowNegativeValuesForServerSwap',1);807INSERT INTO `migrations` VALUES (124,'2018_01_11_213943_AddApiKeyPermissionColumns',1);808INSERT INTO `migrations` VALUES (125,'2018_01_13_142012_SetupTableForKeyEncryption',1);809INSERT INTO `migrations` VALUES (126,'2018_01_13_145209_AddLastUsedAtColumn',1);810INSERT INTO `migrations` VALUES (127,'2018_02_04_145617_AllowTextInUserExternalId',1);811INSERT INTO `migrations` VALUES (128,'2018_02_10_151150_remove_unique_index_on_external_id_column',1);812INSERT INTO `migrations` VALUES (129,'2018_02_17_134254_ensure_unique_allocation_id_on_servers_table',1);813INSERT INTO `migrations` VALUES (130,'2018_02_24_112356_add_external_id_column_to_servers_table',1);814INSERT INTO `migrations` VALUES (131,'2018_02_25_160152_remove_default_null_value_on_table',1);815INSERT INTO `migrations` VALUES (132,'2018_02_25_160604_define_unique_index_on_users_external_id',1);816INSERT INTO `migrations` VALUES (133,'2018_03_01_192831_add_database_and_port_limit_columns_to_servers_table',1);817INSERT INTO `migrations` VALUES (134,'2018_03_15_124536_add_description_to_nodes',1);818INSERT INTO `migrations` VALUES (135,'2018_05_04_123826_add_maintenance_to_nodes',1);819INSERT INTO `migrations` VALUES (136,'2018_09_03_143756_allow_egg_variables_to_have_longer_values',1);820INSERT INTO `migrations` VALUES (137,'2018_09_03_144005_allow_server_variables_to_have_longer_values',1);821INSERT INTO `migrations` VALUES (138,'2019_03_02_142328_set_allocation_limit_default_null',1);822INSERT INTO `migrations` VALUES (139,'2019_03_02_151321_fix_unique_index_to_account_for_host',1);823INSERT INTO `migrations` VALUES (140,'2020_03_22_163911_merge_permissions_table_into_subusers',1);824INSERT INTO `migrations` VALUES (141,'2020_03_22_164814_drop_permissions_table',1);825INSERT INTO `migrations` VALUES (142,'2020_04_03_203624_add_threads_column_to_servers_table',1);826INSERT INTO `migrations` VALUES (143,'2020_04_03_230614_create_backups_table',1);827INSERT INTO `migrations` VALUES (144,'2020_04_04_131016_add_table_server_transfers',1);828INSERT INTO `migrations` VALUES (145,'2020_04_10_141024_store_node_tokens_as_encrypted_value',1);829INSERT INTO `migrations` VALUES (146,'2020_04_17_203438_allow_nullable_descriptions',1);830INSERT INTO `migrations` VALUES (147,'2020_04_22_055500_add_max_connections_column',1);831INSERT INTO `migrations` VALUES (148,'2020_04_26_111208_add_backup_limit_to_servers',1);832INSERT INTO `migrations` VALUES (149,'2020_05_20_234655_add_mounts_table',1);833INSERT INTO `migrations` VALUES (150,'2020_05_21_192756_add_mount_server_table',1);834INSERT INTO `migrations` VALUES (151,'2020_07_02_213612_create_user_recovery_tokens_table',1);835INSERT INTO `migrations` VALUES (152,'2020_07_09_201845_add_notes_column_for_allocations',1);836INSERT INTO `migrations` VALUES (153,'2020_08_20_205533_add_backup_state_column_to_backups',1);837INSERT INTO `migrations` VALUES (154,'2020_08_22_132500_update_bytes_to_unsigned_bigint',1);838INSERT INTO `migrations` VALUES (155,'2020_08_23_175331_modify_checksums_column_for_backups',1);839INSERT INTO `migrations` VALUES (156,'2020_09_13_110007_drop_packs_from_servers',1);840INSERT INTO `migrations` VALUES (157,'2020_09_13_110021_drop_packs_from_api_key_permissions',1);841INSERT INTO `migrations` VALUES (158,'2020_09_13_110047_drop_packs_table',1);842INSERT INTO `migrations` VALUES (159,'2020_09_13_113503_drop_daemon_key_table',1);843INSERT INTO `migrations` VALUES (160,'2020_10_10_165437_change_unique_database_name_to_account_for_server',1);844INSERT INTO `migrations` VALUES (161,'2020_10_26_194904_remove_nullable_from_schedule_name_field',1);845INSERT INTO `migrations` VALUES (162,'2020_11_02_201014_add_features_column_to_eggs',1);846INSERT INTO `migrations` VALUES (163,'2020_12_12_102435_support_multiple_docker_images_and_updates',1);847INSERT INTO `migrations` VALUES (164,'2020_12_14_013707_make_successful_nullable_in_server_transfers',1);848INSERT INTO `migrations` VALUES (165,'2020_12_17_014330_add_archived_field_to_server_transfers_table',1);849INSERT INTO `migrations` VALUES (166,'2020_12_24_092449_make_allocation_fields_json',1);850INSERT INTO `migrations` VALUES (167,'2020_12_26_184914_add_upload_id_column_to_backups_table',1);851INSERT INTO `migrations` VALUES (168,'2021_01_10_153937_add_file_denylist_to_egg_configs',1);852INSERT INTO `migrations` VALUES (169,'2021_01_13_013420_add_cron_month',1);853INSERT INTO `migrations` VALUES (170,'2021_01_17_102401_create_audit_logs_table',1);854INSERT INTO `migrations` VALUES (171,'2021_01_17_152623_add_generic_server_status_column',1);855INSERT INTO `migrations` VALUES (172,'2021_01_26_210502_update_file_denylist_to_json',1);856INSERT INTO `migrations` VALUES (173,'2021_02_23_205021_add_index_for_server_and_action',1);857INSERT INTO `migrations` VALUES (174,'2021_02_23_212657_make_sftp_port_unsigned_int',1);858INSERT INTO `migrations` VALUES (175,'2021_03_21_104718_force_cron_month_field_to_have_value_if_missing',1);859INSERT INTO `migrations` VALUES (176,'2021_05_01_092457_add_continue_on_failure_option_to_tasks',1);860INSERT INTO `migrations` VALUES (177,'2021_05_01_092523_add_only_run_when_server_online_option_to_schedules',1);861INSERT INTO `migrations` VALUES (178,'2021_05_03_201016_add_support_for_locking_a_backup',1);862INSERT INTO `migrations` VALUES (179,'2021_07_12_013420_remove_userinteraction',1);863INSERT INTO `migrations` VALUES (180,'2021_07_17_211512_create_user_ssh_keys_table',1);864INSERT INTO `migrations` VALUES (181,'2021_08_03_210600_change_successful_field_to_default_to_false_on_backups_table',1);865INSERT INTO `migrations` VALUES (182,'2021_08_21_175111_add_foreign_keys_to_mount_node_table',1);866INSERT INTO `migrations` VALUES (183,'2021_08_21_175118_add_foreign_keys_to_mount_server_table',1);867INSERT INTO `migrations` VALUES (184,'2021_08_21_180921_add_foreign_keys_to_egg_mount_table',1);868INSERT INTO `migrations` VALUES (185,'2022_01_25_030847_drop_google_analytics',1);869INSERT INTO `migrations` VALUES (186,'2022_05_07_165334_migrate_egg_images_array_to_new_format',1);870INSERT INTO `migrations` VALUES (187,'2022_05_28_135717_create_activity_logs_table',1);871INSERT INTO `migrations` VALUES (188,'2022_05_29_140349_create_activity_log_actors_table',1);872INSERT INTO `migrations` VALUES (189,'2022_06_18_112822_track_api_key_usage_for_activity_events',1);873INSERT INTO `migrations` VALUES (190,'2022_08_16_214400_add_force_outgoing_ip_column_to_eggs_table',1);874INSERT INTO `migrations` VALUES (191,'2022_08_16_230204_add_installed_at_column_to_servers_table',1);875INSERT INTO `migrations` VALUES (192,'2022_12_12_213937_update_mail_settings_to_new_format',1);876INSERT INTO `migrations` VALUES (193,'2023_01_24_210051_add_uuid_column_to_failed_jobs_table',1);877INSERT INTO `migrations` VALUES (194,'2023_02_23_191004_add_expires_at_column_to_api_keys_table',1);878879880