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