|
|
|
@ -97,7 +97,9 @@ CREATE TABLE node ( |
|
|
|
|
zone_id int(10) DEFAULT NULL, |
|
|
|
|
node_info text DEFAULT NULL, |
|
|
|
|
node_type enum('v4','v6') NOT NULL DEFAULT 'v4', |
|
|
|
|
PRIMARY KEY (node_id) |
|
|
|
|
PRIMARY KEY (node_id), |
|
|
|
|
INDEX ix_ip (node_ip), |
|
|
|
|
INDEX ix_mac (node_mac) |
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
|
|
|
|
|
|
|
|
CREATE TABLE subnet ( |
|
|
|
@ -109,7 +111,8 @@ CREATE TABLE subnet ( |
|
|
|
|
subnet_info text DEFAULT NULL, |
|
|
|
|
protocol_version tinyint(1) NOT NULL DEFAULT 4, |
|
|
|
|
ntp_server varchar(45) DEFAULT NULL, |
|
|
|
|
PRIMARY KEY (subnet_id) |
|
|
|
|
PRIMARY KEY (subnet_id), |
|
|
|
|
UNIQUE INDEX ix_subnet (subnet_address, subnet_mask) |
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
|
|
|
|
|
|
|
|
CREATE TABLE subnetlocation ( |
|
|
|
@ -162,20 +165,21 @@ CREATE TABLE vlan ( |
|
|
|
|
|
|
|
|
|
CREATE TABLE zone ( |
|
|
|
|
zone_id int(10) NOT NULL AUTO_INCREMENT, |
|
|
|
|
zone_soa varchar(40) CHARACTER SET utf8 NOT NULL, |
|
|
|
|
zone_hostmaster varchar(40) CHARACTER SET utf8 NOT NULL, |
|
|
|
|
zone_origin varchar(40) CHARACTER SET utf8 NOT NULL, |
|
|
|
|
zone_ttl_default varchar(10) CHARACTER SET utf8 NOT NULL DEFAULT '3D', |
|
|
|
|
zone_refresh varchar(10) CHARACTER SET utf8 NOT NULL DEFAULT '8H', |
|
|
|
|
zone_retry varchar(10) CHARACTER SET utf8 NOT NULL DEFAULT '2H', |
|
|
|
|
zone_expire varchar(10) CHARACTER SET utf8 NOT NULL DEFAULT '4W', |
|
|
|
|
zone_ttl varchar(10) CHARACTER SET utf8 NOT NULL DEFAULT '1D', |
|
|
|
|
zone_soa varchar(40) NOT NULL, |
|
|
|
|
zone_hostmaster varchar(40) NOT NULL, |
|
|
|
|
zone_origin varchar(40) NOT NULL, |
|
|
|
|
zone_ttl_default varchar(10) NOT NULL DEFAULT '3D', |
|
|
|
|
zone_refresh varchar(10) NOT NULL DEFAULT '8H', |
|
|
|
|
zone_retry varchar(10) NOT NULL DEFAULT '2H', |
|
|
|
|
zone_expire varchar(10) NOT NULL DEFAULT '4W', |
|
|
|
|
zone_ttl varchar(10) NOT NULL DEFAULT '1D', |
|
|
|
|
zone_serial int(10) unsigned NOT NULL, |
|
|
|
|
zone_ns1 varchar(20) CHARACTER SET utf8 NOT NULL, |
|
|
|
|
zone_ns2 varchar(20) CHARACTER SET utf8 DEFAULT NULL, |
|
|
|
|
zone_ns3 varchar(20) CHARACTER SET utf8 DEFAULT NULL, |
|
|
|
|
zone_mx1 varchar(20) CHARACTER SET utf8 DEFAULT NULL, |
|
|
|
|
zone_mx2 varchar(20) CHARACTER SET utf8 DEFAULT NULL, |
|
|
|
|
zone_info text CHARACTER SET utf8 DEFAULT NULL, |
|
|
|
|
PRIMARY KEY (zone_id) |
|
|
|
|
zone_ns1 varchar(20) NOT NULL, |
|
|
|
|
zone_ns2 varchar(20) DEFAULT NULL, |
|
|
|
|
zone_ns3 varchar(20) DEFAULT NULL, |
|
|
|
|
zone_mx1 varchar(20) DEFAULT NULL, |
|
|
|
|
zone_mx2 varchar(20) DEFAULT NULL, |
|
|
|
|
zone_info text DEFAULT NULL, |
|
|
|
|
PRIMARY KEY (zone_id), |
|
|
|
|
UNIQUE INDEX ix_zone_origin (zone_origin) |
|
|
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
|
|
|
|