| | |
| | | `bank_account_swift` varchar(255) DEFAULT NULL, |
| | | `paypal_email` varchar(255) DEFAULT NULL, |
| | | `default_mailserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `mail_servers` blob, |
| | | `mail_servers` text, |
| | | `limit_maildomain` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_mailbox` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_mailalias` int(11) NOT NULL DEFAULT '-1', |
| | |
| | | `limit_spamfilter_wblist` int(11) NOT NULL DEFAULT '0', |
| | | `limit_spamfilter_user` int(11) NOT NULL DEFAULT '0', |
| | | `limit_spamfilter_policy` int(11) NOT NULL DEFAULT '0', |
| | | `default_xmppserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `xmpp_servers` text, |
| | | `limit_xmpp_domain` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_xmpp_user` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_xmpp_muc` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | |
| | | `limit_xmpp_pastebin` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_httparchive` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `default_webserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `web_servers` blob, |
| | | `web_servers` text, |
| | | `limit_web_ip` text, |
| | | `limit_web_domain` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_web_quota` int(11) NOT NULL DEFAULT '-1', |
| | | `web_php_options` varchar(255) NOT NULL DEFAULT 'no,fast-cgi,cgi,mod,suphp,php-fpm', |
| | | `web_php_options` varchar(255) NOT NULL DEFAULT 'no,fast-cgi,cgi,mod,suphp,php-fpm,hhvm', |
| | | `limit_cgi` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_ssi` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_perl` enum('n','y') NOT NULL DEFAULT 'n', |
| | |
| | | `limit_hterror` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_wildcard` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_ssl` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_web_subdomain` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_web_aliasdomain` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_ftp_user` int(11) NOT NULL DEFAULT '-1', |
| | |
| | | `ssh_chroot` varchar(255) NOT NULL DEFAULT 'no,jailkit,ssh-chroot', |
| | | `limit_webdav_user` int(11) NOT NULL DEFAULT '0', |
| | | `limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'y', |
| | | `limit_directive_snippets` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n', |
| | | `limit_aps` int(11) NOT NULL DEFAULT '-1', |
| | | `default_dnsserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `db_servers` blob, |
| | | `db_servers` text, |
| | | `limit_dns_zone` int(11) NOT NULL DEFAULT '-1', |
| | | `default_slave_dnsserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `limit_dns_slave_zone` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_dns_record` int(11) NOT NULL DEFAULT '-1', |
| | | `default_dbserver` int(11) NOT NULL DEFAULT '1', |
| | | `dns_servers` blob, |
| | | `dns_servers` text, |
| | | `limit_database` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_database_user` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_database_quota` int(11) NOT NULL default '-1', |
| | | `limit_cron` int(11) NOT NULL DEFAULT '0', |
| | | `limit_cron_type` enum('url','chrooted','full') NOT NULL DEFAULT 'url', |
| | |
| | | `tmp_data` mediumblob, |
| | | `id_rsa` varchar(2000) NOT NULL DEFAULT '', |
| | | `ssh_rsa` varchar(600) NOT NULL DEFAULT '', |
| | | `customer_no_template` varchar(255) DEFAULT 'C[CUSTOMER_NO]', |
| | | `customer_no_template` varchar(255) DEFAULT 'R[CLIENTID]C[CUSTOMER_NO]', |
| | | `customer_no_start` int(11) NOT NULL DEFAULT '1', |
| | | `customer_no_counter` int(11) NOT NULL DEFAULT '0', |
| | | `added_date` date NOT NULL DEFAULT '0000-00-00', |
| | | `added_date` date NULL DEFAULT NULL, |
| | | `added_by` varchar(255) DEFAULT NULL, |
| | | `validation_status` enum('accept','review','reject') NOT NULL DEFAULT 'accept', |
| | | `risk_score` int(10) unsigned NOT NULL DEFAULT '0', |
| | | `activation_code` varchar(10) NOT NULL DEFAULT '', |
| | | PRIMARY KEY (`client_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | |
| | | `sys_perm_other` varchar(5) default NULL, |
| | | `template_name` varchar(64) NOT NULL DEFAULT '', |
| | | `template_type` varchar(1) NOT NULL default 'm', |
| | | `mail_servers` text, |
| | | `limit_maildomain` int(11) NOT NULL default '-1', |
| | | `limit_mailbox` int(11) NOT NULL default '-1', |
| | | `limit_mailalias` int(11) NOT NULL default '-1', |
| | |
| | | `limit_spamfilter_wblist` int(11) NOT NULL default '0', |
| | | `limit_spamfilter_user` int(11) NOT NULL default '0', |
| | | `limit_spamfilter_policy` int(11) NOT NULL default '0', |
| | | `default_xmppserver` int(11) unsigned NOT NULL DEFAULT '1', |
| | | `xmpp_servers` text, |
| | | `limit_xmpp_domain` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_xmpp_user` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_xmpp_muc` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_anon` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_vjud` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_proxy` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_status` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_pastebin` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `limit_xmpp_httparchive` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `web_servers` text, |
| | | `limit_web_ip` text, |
| | | `limit_web_domain` int(11) NOT NULL default '-1', |
| | | `limit_web_quota` int(11) NOT NULL default '-1', |
| | |
| | | `limit_hterror` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_wildcard` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_ssl` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `limit_web_subdomain` int(11) NOT NULL default '-1', |
| | | `limit_web_aliasdomain` int(11) NOT NULL default '-1', |
| | | `limit_ftp_user` int(11) NOT NULL default '-1', |
| | |
| | | `ssh_chroot` varchar(255) NOT NULL DEFAULT 'no', |
| | | `limit_webdav_user` int(11) NOT NULL default '0', |
| | | `limit_backup` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'y', |
| | | `limit_directive_snippets` ENUM( 'n', 'y' ) NOT NULL DEFAULT 'n', |
| | | `limit_aps` int(11) NOT NULL DEFAULT '-1', |
| | | `dns_servers` text, |
| | | `limit_dns_zone` int(11) NOT NULL default '-1', |
| | | `default_slave_dnsserver` int(11) NOT NULL DEFAULT '0', |
| | | `limit_dns_slave_zone` int(11) NOT NULL default '-1', |
| | | `limit_dns_record` int(11) NOT NULL default '-1', |
| | | `db_servers` text, |
| | | `limit_database` int(11) NOT NULL default '-1', |
| | | `limit_database_user` int(11) NOT NULL DEFAULT '-1', |
| | | `limit_database_quota` int(11) NOT NULL default '-1', |
| | | `limit_cron` int(11) NOT NULL default '0', |
| | | `limit_cron_type` enum('url','chrooted','full') NOT NULL default 'url', |
| | |
| | | `type` varchar(255) DEFAULT NULL, |
| | | `snippet` mediumtext, |
| | | `customer_viewable` ENUM('n','y') NOT NULL DEFAULT 'n', |
| | | `required_php_snippets` varchar(255) NOT NULL DEFAULT '', |
| | | `active` enum('n','y') NOT NULL DEFAULT 'y', |
| | | `master_directive_snippets_id` int(11) unsigned NOT NULL DEFAULT '0', |
| | | PRIMARY KEY (`directive_snippets_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | |
| | | `server_id` int(11) NOT NULL default '1', |
| | | `zone` int(11) unsigned NOT NULL DEFAULT '0', |
| | | `name` varchar(255) NOT NULL DEFAULT '', |
| | | `type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL, |
| | | `type` enum('A','AAAA','ALIAS','CNAME','DS','HINFO','LOC','MX','NAPTR','NS','PTR','RP','SRV','TXT','TLSA','DNSKEY') default NULL, |
| | | `data` TEXT NOT NULL DEFAULT '', |
| | | `aux` int(11) unsigned NOT NULL default '0', |
| | | `ttl` int(11) unsigned NOT NULL default '86400', |
| | | `ttl` int(11) unsigned NOT NULL default '3600', |
| | | `active` enum('N','Y') NOT NULL default 'Y', |
| | | `stamp` timestamp NOT NULL default CURRENT_TIMESTAMP, |
| | | `serial` int(10) unsigned default NULL, |
| | |
| | | `refresh` int(11) unsigned NOT NULL default '28800', |
| | | `retry` int(11) unsigned NOT NULL default '7200', |
| | | `expire` int(11) unsigned NOT NULL default '604800', |
| | | `minimum` int(11) unsigned NOT NULL default '86400', |
| | | `ttl` int(11) unsigned NOT NULL default '86400', |
| | | `minimum` int(11) unsigned NOT NULL default '3600', |
| | | `ttl` int(11) unsigned NOT NULL default '3600', |
| | | `active` enum('N','Y') NOT NULL DEFAULT 'N', |
| | | `xfer` varchar(255) NOT NULL DEFAULT '', |
| | | `also_notify` varchar(255) default NULL, |
| | | `update_acl` varchar(255) default NULL, |
| | | `dnssec_initialized` ENUM('Y','N') NOT NULL DEFAULT 'N', |
| | | `dnssec_wanted` ENUM('Y','N') NOT NULL DEFAULT 'N', |
| | | `dnssec_last_signed` BIGINT NOT NULL DEFAULT '0', |
| | | `dnssec_info` TEXT NULL, |
| | | PRIMARY KEY (`id`), |
| | | UNIQUE KEY `origin` (`origin`), |
| | | KEY `active` (`active`) |
| | |
| | | `dl_ratio` int(11) NOT NULL default '-1', |
| | | `ul_bandwidth` int(11) NOT NULL default '-1', |
| | | `dl_bandwidth` int(11) NOT NULL default '-1', |
| | | `expires` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
| | | `expires` datetime NULL DEFAULT NULL, |
| | | PRIMARY KEY (`ftp_user_id`), |
| | | KEY `active` (`active`), |
| | | KEY `server_id` (`server_id`), |
| | | KEY `username` (`username`), |
| | | KEY `quota_files` (`quota_files`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | | -- -------------------------------------------------------- |
| | | |
| | | -- |
| | | -- Table structure for table `ftp_traffic` |
| | | -- |
| | | |
| | | CREATE TABLE `ftp_traffic` ( |
| | | `hostname` varchar(255) NOT NULL, |
| | | `traffic_date` date NOT NULL, |
| | | `in_bytes` bigint(32) unsigned NOT NULL, |
| | | `out_bytes` bigint(32) unsigned NOT NULL, |
| | | UNIQUE KEY (`hostname`,`traffic_date`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | | -- -------------------------------------------------------- |
| | |
| | | `destination` text, |
| | | `type` enum('alias','aliasdomain','forward','catchall') NOT NULL default 'alias', |
| | | `active` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `allow_send_as` ENUM('n','y') NOT NULL DEFAULT 'n', |
| | | `greylisting` enum('n','y' ) NOT NULL DEFAULT 'n', |
| | | PRIMARY KEY (`forwarding_id`), |
| | | KEY `server_id` (`server_id`,`source`), |
| | | KEY `type` (`type`) |
| | |
| | | `uid` int(11) NOT NULL default '5000', |
| | | `gid` int(11) NOT NULL default '5000', |
| | | `maildir` varchar(255) NOT NULL default '', |
| | | `maildir_format` varchar(255) NOT NULL default 'maildir', |
| | | `quota` bigint(20) NOT NULL default '-1', |
| | | `cc` varchar(255) NOT NULL default '', |
| | | `sender_cc` varchar(255) NOT NULL default '', |
| | | `homedir` varchar(255) NOT NULL default '', |
| | | `autoresponder` enum('n','y') NOT NULL default 'n', |
| | | `autoresponder_start_date` datetime NOT NULL default '0000-00-00 00:00:00', |
| | | `autoresponder_end_date` datetime NOT NULL default '0000-00-00 00:00:00', |
| | | `autoresponder_start_date` datetime NULL default NULL, |
| | | `autoresponder_end_date` datetime NULL default NULL, |
| | | `autoresponder_subject` varchar(255) NOT NULL default 'Out of office reply', |
| | | `autoresponder_text` mediumtext NULL, |
| | | `move_junk` enum('n','y') NOT NULL default 'n', |
| | | `custom_mailfilter` mediumtext, |
| | | `postfix` enum('n','y') NOT NULL default 'y', |
| | | `greylisting` enum('n','y' ) NOT NULL DEFAULT 'n', |
| | | `access` enum('n','y') NOT NULL default 'y', |
| | | `disableimap` enum('n','y') NOT NULL default 'n', |
| | | `disablepop3` enum('n','y') NOT NULL default 'n', |
| | |
| | | `sys_perm_group` varchar(5) DEFAULT NULL, |
| | | `sys_perm_other` varchar(5) DEFAULT NULL, |
| | | `server_id` int(11) NOT NULL DEFAULT '0', |
| | | `ip_address` varchar(15) DEFAULT NULL, |
| | | `ip_address` varchar(39) DEFAULT NULL, |
| | | `vm_id` int(11) NOT NULL DEFAULT '0', |
| | | `reserved` varchar(255) NOT NULL DEFAULT 'n', |
| | | `additional` varchar(255) NOT NULL DEFAULT 'n', |
| | | PRIMARY KEY (`ip_address_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; |
| | | |
| | |
| | | `nameserver` varchar(255) DEFAULT NULL, |
| | | `create_dns` varchar(1) NOT NULL DEFAULT 'n', |
| | | `capability` varchar(255) DEFAULT NULL, |
| | | `features` varchar(255) DEFAULT NULL, |
| | | `iptables` varchar(255) DEFAULT NULL, |
| | | `custom` text, |
| | | PRIMARY KEY (`template_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; |
| | | |
| | |
| | | -- Dumping data for table `openvz_template` |
| | | -- |
| | | |
| | | INSERT INTO `openvz_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `template_name`, `diskspace`, `traffic`, `bandwidth`, `ram`, `ram_burst`, `cpu_units`, `cpu_num`, `cpu_limit`, `io_priority`, `active`, `description`, `numproc`, `numtcpsock`, `numothersock`, `vmguarpages`, `kmemsize`, `tcpsndbuf`, `tcprcvbuf`, `othersockbuf`, `dgramrcvbuf`, `oomguarpages`, `privvmpages`, `lockedpages`, `shmpages`, `physpages`, `numfile`, `avnumproc`, `numflock`, `numpty`, `numsiginfo`, `dcachesize`, `numiptent`, `swappages`, `hostname`, `nameserver`, `create_dns`, `capability`) VALUES(1, 1, 1, 'riud', 'riud', '', 'small', 10, -1, -1, 256, 512, 1000, 4, 400, 4, 'y', '', '999999:999999', '7999992:7999992', '7999992:7999992', '65536:65536', '2147483646:2147483646', '214748160:396774400', '214748160:396774400', '214748160:396774400', '214748160:396774400', '65536:65536', '131072:131072', '999999:999999', '65536:65536', '0:2147483647', '23999976:23999976', '180:180', '999999:999999', '500000:500000', '999999:999999', '2147483646:2147483646', '999999:999999', '256000:256000', 'v{VEID}.test.tld', '8.8.8.8 8.8.4.4', 'n', ''); |
| | | INSERT INTO `openvz_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `template_name`, `diskspace`, `traffic`, `bandwidth`, `ram`, `ram_burst`, `cpu_units`, `cpu_num`, `cpu_limit`, `io_priority`, `active`, `description`, `numproc`, `numtcpsock`, `numothersock`, `vmguarpages`, `kmemsize`, `tcpsndbuf`, `tcprcvbuf`, `othersockbuf`, `dgramrcvbuf`, `oomguarpages`, `privvmpages`, `lockedpages`, `shmpages`, `physpages`, `numfile`, `avnumproc`, `numflock`, `numpty`, `numsiginfo`, `dcachesize`, `numiptent`, `swappages`, `hostname`, `nameserver`, `create_dns`, `capability`, `features`, `iptables`, `custom`) VALUES(1, 1, 1, 'riud', 'riud', '', 'small', 10, -1, -1, 256, 512, 1000, 4, 400, 4, 'y', '', '999999:999999', '7999992:7999992', '7999992:7999992', '65536:unlimited', '2147483646:2147483646', '214748160:396774400', '214748160:396774400', '214748160:396774400', '214748160:396774400', '65536:65536', '131072:139264', '999999:999999', '65536:65536', '0:2147483647', '23999976:23999976', '180:180', '999999:999999', '500000:500000', '999999:999999', '2147483646:2147483646', '999999:999999', '256000:256000', 'v{VEID}.test.tld', '8.8.8.8 8.8.4.4', 'n', '', '', '', ''); |
| | | |
| | | -- -------------------------------------------------------- |
| | | |
| | |
| | | |
| | | CREATE TABLE IF NOT EXISTS `openvz_traffic` ( |
| | | `veid` int(11) NOT NULL DEFAULT '0', |
| | | `traffic_date` date NOT NULL DEFAULT '0000-00-00', |
| | | `traffic_date` date NULL DEFAULT NULL, |
| | | `traffic_bytes` bigint(32) unsigned NOT NULL DEFAULT '0', |
| | | PRIMARY KEY (`veid`,`traffic_date`) |
| | | UNIQUE KEY (`veid`,`traffic_date`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
| | | |
| | | -- |
| | |
| | | `hostname` varchar(255) DEFAULT NULL, |
| | | `vm_password` varchar(255) DEFAULT NULL, |
| | | `start_boot` varchar(255) NOT NULL DEFAULT 'y', |
| | | `bootorder` int(11) NOT NULL DEFAULT '1', |
| | | `active` varchar(255) NOT NULL DEFAULT 'y', |
| | | `active_until_date` date NOT NULL DEFAULT '0000-00-00', |
| | | `active_until_date` date NULL DEFAULT NULL, |
| | | `description` text, |
| | | `diskspace` int(11) NOT NULL DEFAULT '0', |
| | | `traffic` int(11) NOT NULL DEFAULT '-1', |
| | |
| | | `nameserver` varchar(255) NOT NULL DEFAULT '8.8.8.8 8.8.4.4', |
| | | `create_dns` varchar(1) NOT NULL DEFAULT 'n', |
| | | `capability` text, |
| | | `features` text, |
| | | `iptabless` text, |
| | | `config` mediumtext, |
| | | `custom` text, |
| | | PRIMARY KEY (`vm_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; |
| | | |
| | |
| | | |
| | | -- -------------------------------------------------------- |
| | | |
| | | -- |
| | | -- Table structure for table `server_ip_map` |
| | | -- |
| | | |
| | | CREATE TABLE `server_ip_map` ( |
| | | `server_ip_map_id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
| | | `sys_userid` int(11) unsigned NOT NULL DEFAULT '0', |
| | | `sys_groupid` int(11) unsigned NOT NULL DEFAULT '0', |
| | | `sys_perm_user` varchar(5) DEFAULT NULL, |
| | | `sys_perm_group` varchar(5) DEFAULT NULL, |
| | | `sys_perm_other` varchar(5) DEFAULT NULL, |
| | | `server_id` int(11) unsigned NOT NULL DEFAULT '0', |
| | | `source_ip` varchar(15) DEFAULT NULL, |
| | | `destination_ip` varchar(35) DEFAULT '', |
| | | `active` enum('n','y') NOT NULL DEFAULT 'y', |
| | | PRIMARY KEY (`server_ip_map_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | | -- -------------------------------------------------------- |
| | | |
| | | -- |
| | | -- Table structure for table `server_php` |
| | |
| | | CREATE TABLE `sys_ini` ( |
| | | `sysini_id` int(11) unsigned NOT NULL auto_increment, |
| | | `config` longtext, |
| | | `default_logo` text NOT NULL, |
| | | `custom_logo` text NOT NULL, |
| | | PRIMARY KEY (`sysini_id`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | |
| | | |
| | | CREATE TABLE `sys_session` ( |
| | | `session_id` varchar(64) NOT NULL DEFAULT '', |
| | | `date_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
| | | `last_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', |
| | | `date_created` datetime NULL DEFAULT NULL, |
| | | `last_updated` datetime NULL DEFAULT NULL, |
| | | `permanent` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `session_data` longtext, |
| | | PRIMARY KEY (`session_id`), |
| | |
| | | `client_id` int(11) unsigned NOT NULL default '0', |
| | | `id_rsa` VARCHAR( 2000 ) NOT NULL default '', |
| | | `ssh_rsa` VARCHAR( 600 ) NOT NULL default '', |
| | | `lost_password_function` tinyint(1) NOT NULL default '1', |
| | | `lost_password_hash` VARCHAR(50) NOT NULL default '', |
| | | `lost_password_reqtime` DATETIME NULL default NULL, |
| | | PRIMARY KEY (`userid`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | | |
| | |
| | | `database_name` varchar(64) DEFAULT NULL, |
| | | `database_name_prefix` varchar(50) NOT NULL default '', |
| | | `database_quota` int(11) unsigned DEFAULT NULL, |
| | | `quota_exceeded` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `last_quota_notification` date NULL default NULL, |
| | | `database_user_id` int(11) unsigned DEFAULT NULL, |
| | | `database_ro_user_id` int(11) unsigned DEFAULT NULL, |
| | |
| | | `redirect_type` varchar(255) default NULL, |
| | | `redirect_path` varchar(255) default NULL, |
| | | `seo_redirect` varchar(255) default NULL, |
| | | `rewrite_to_https` ENUM('y','n') NOT NULL DEFAULT 'n', |
| | | `ssl` enum('n','y') NOT NULL default 'n', |
| | | `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n', |
| | | `ssl_state` varchar(255) NULL, |
| | | `ssl_locality` varchar(255) NULL, |
| | | `ssl_organisation` varchar(255) NULL, |
| | |
| | | `enable_spdy` ENUM('y','n') NULL DEFAULT 'n', |
| | | `last_quota_notification` date NULL default NULL, |
| | | `rewrite_rules` mediumtext, |
| | | `added_date` date NOT NULL DEFAULT '0000-00-00', |
| | | `added_date` date NULL DEFAULT NULL, |
| | | `added_by` varchar(255) DEFAULT NULL, |
| | | `directive_snippets_id` int(11) unsigned NOT NULL default '0', |
| | | `enable_pagespeed` ENUM('y','n') NOT NULL DEFAULT 'n', |
| | | `http_port` int(11) unsigned NOT NULL DEFAULT '80', |
| | | `https_port` int(11) unsigned NOT NULL DEFAULT '443', |
| | | `folder_directive_snippets` text NOT NULL, |
| | | PRIMARY KEY (`domain_id`), |
| | | UNIQUE KEY `serverdomain` ( `server_id` , `ip_address`, `domain` ) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; |
| | |
| | | |
| | | CREATE TABLE `web_traffic` ( |
| | | `hostname` varchar(255) NOT NULL DEFAULT '', |
| | | `traffic_date` date NOT NULL DEFAULT '0000-00-00', |
| | | `traffic_date` date NULL DEFAULT NULL, |
| | | `traffic_bytes` bigint(32) unsigned NOT NULL default '0', |
| | | PRIMARY KEY (`hostname`,`traffic_date`) |
| | | UNIQUE KEY (`hostname`,`traffic_date`) |
| | | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; |
| | | |
| | | -- -------------------------------------------------------- |
| | |
| | | `server_id` int(11) unsigned NOT NULL default '0', |
| | | `domain` varchar(255) NOT NULL default '', |
| | | |
| | | `auth_method` ENUM( 'isp', 'plain', 'hashed' ) NOT NULL default 'hashed', |
| | | `management_method` ENUM( 'normal', 'maildomain' ) NOT NULL default 'normal', |
| | | `public_registration` ENUM( 'n', 'y' ) NOT NULL default 'n', |
| | | `registration_url` varchar(255) NOT NULL DEFAULT '', |
| | | `registration_message` varchar(255) NOT NULL DEFAULT '', |
| | |
| | | `http_archive_show_status` enum('n', 'y') NOT NULL DEFAULT 'n', |
| | | `use_status_host` enum('n','y') NOT NULL DEFAULT 'n', |
| | | |
| | | `ssl_state` varchar(255) NULL, |
| | | `ssl_locality` varchar(255) NULL, |
| | | `ssl_organisation` varchar(255) NULL, |
| | | `ssl_organisation_unit` varchar(255) NULL, |
| | | `ssl_country` varchar(255) NULL, |
| | | `ssl_email` varchar(255) NULL, |
| | | `ssl_request` mediumtext NULL, |
| | | `ssl_cert` mediumtext NULL, |
| | | `ssl_bundle` mediumtext NULL, |
| | | `ssl_key` mediumtext NULL, |
| | | `ssl_action` varchar(16) NULL, |
| | | |
| | | `active` enum('n','y') NOT NULL DEFAULT 'n', |
| | | PRIMARY KEY (`domain_id`), |
| | | KEY `server_id` (`server_id`,`domain`), |
| | |
| | | `sys_perm_group` varchar(5) NOT NULL default '', |
| | | `sys_perm_other` varchar(5) NOT NULL default '', |
| | | `server_id` int(11) unsigned NOT NULL default '0', |
| | | `xmpp_domain_id` int(11) unsigned NOT NULL default '0', |
| | | `login` varchar(255) NOT NULL default '', |
| | | `jid` varchar(255) NOT NULL default '', |
| | | `password` varchar(255) NOT NULL default '', |
| | | `is_domain_admin` enum('n','y') NOT NULL default 'n', |
| | | `is_muc_admin` enum('n','y') NOT NULL default 'n', |
| | | `active` enum('n','y') NOT NULL DEFAULT 'n', |
| | | PRIMARY KEY (`xmppuser_id`), |
| | | KEY `server_id` (`server_id`,`jid`), |
| | |
| | | -- Dumping data for table `dns_template` |
| | | -- |
| | | |
| | | INSERT INTO `dns_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `name`, `fields`, `template`, `visible`) VALUES (1, 1, 1, 'riud', 'riud', '', 'Default', 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM', '[ZONE]\norigin={DOMAIN}.\nns={NS1}.\nmbox={EMAIL}.\nrefresh=7200\nretry=540\nexpire=604800\nminimum=86400\nttl=3600\n\n[DNS_RECORDS]\nA|{DOMAIN}.|{IP}|0|3600\nA|www|{IP}|0|3600\nA|mail|{IP}|0|3600\nNS|{DOMAIN}.|{NS1}.|0|3600\nNS|{DOMAIN}.|{NS2}.|0|3600\nMX|{DOMAIN}.|mail.{DOMAIN}.|10|3600\nTXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600', 'y'); |
| | | INSERT INTO `dns_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `name`, `fields`, `template`, `visible`) VALUES (1, 1, 1, 'riud', 'riud', '', 'Default', 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM,DNSSEC', '[ZONE]\norigin={DOMAIN}.\nns={NS1}.\nmbox={EMAIL}.\nrefresh=7200\nretry=540\nexpire=604800\nminimum=3600\nttl=3600\n\n[DNS_RECORDS]\nA|{DOMAIN}.|{IP}|0|3600\nA|www|{IP}|0|3600\nA|mail|{IP}|0|3600\nNS|{DOMAIN}.|{NS1}.|0|3600\nNS|{DOMAIN}.|{NS2}.|0|3600\nMX|{DOMAIN}.|mail.{DOMAIN}.|10|3600\nTXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600', 'y'); |
| | | |
| | | |
| | | -- -------------------------------------------------------- |
| | |
| | | -- Dumping data for table `sys_ini` |
| | | -- |
| | | |
| | | INSERT INTO `sys_ini` (`sysini_id`, `config`) VALUES (1, ''); |
| | | INSERT INTO `sys_ini` (`sysini_id`, `config`, `default_logo`, `custom_logo`) VALUES (1, '', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABBCAYAAACU5+uOAAAItUlEQVR42u1dCWwVVRStUJZCK6HsFNAgWpaCJkKICZKApKUFhURQpEnZF4EEUJZYEEpBIamgkQpUQBZRW7YCBqQsggsQEAgKLbIGCYsSCNqyQ8D76h18Hd/MvJk/n/bXc5KT+TNz79vPzNv+/2FhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAe++s0akTsRZxMnE6cGkKcxkwhPofaBPwWRzxxB/EO8UGI8xhxEGoV8EscY8qBKFRcgdoFAhXHC+VUHAbHo5aBQASyrZwL5DoxEjUNeBXI9XIuEMEE1DTgVSA3FA3qIDEtBLnTQiBDUNOAV4EUKhpURojmZQQEAjwKgSwK0bykWQgEU74ABAKBABAIBOIJffoNrkRsS0whDiMO5uNw4gBiSxvfGOJrbDtMOgr2JNa18HmZmETsopnGp4h9xdF0TcQRb8NEPkawTzv2qaWIoybnZYRUBoJD+difGAuBlCy0qsRM4mfERcTFfGygsBUF/xFxE/EQ8RixwIbi/j7il8R3iE8qwuxAXMJxuuFiTvNMYleb/E0gXiI+cOBaISTJrzLxcw2/+8Q5pjjfNNkM0RDIL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utkq/4pfpN/E9TDVCjQGkJqQExho+CjYlRPseRiQE3EIriaMZTw4K3mOJv23J8jme23RsEAMqqQJrb9PnnEbPEVpUAuJD4Mf/PoCqeONQCUJYFElGKf7ojpnqjUQtAWRdJaf1t2w8ofSAUBNKulATSEaUPhIpIRj9icbyFUgdCTSRTeR0i2HwfpQ0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQBnG392D9QU+JXhxAAAAAElFTkSuQmCC', ''); |
| | | |
| | | -- -------------------------------------------------------- |
| | | |