CREATE TABLE isys_netp_port
(
isys_netp_port__id
int(10) unsigned NOT NULL auto_increment,
isys_netp_port__isys_obj__id
int(10) unsigned NOT NULL,
isys_netp_port__isys_port_negotiation__id
int(10) unsigned default NULL,
isys_netp_port__isys_port_standard__id
int(10) unsigned default NULL,
isys_netp_port__isys_port_duplex__id
int(10) unsigned default NULL,
isys_netp_port__isys_plug_type__id
int(10) unsigned default NULL,
isys_netp_port__cable_name
varchar(255) collate utf8_unicode_ci default NULL,
isys_netp_port__isys_port_type__id
int(10) unsigned default NULL,
isys_netp_port__isys_port_speed__id
int(10) unsigned default NULL,
isys_netp_port__isys_catg_netp_list__id
int(10) unsigned default NULL,
isys_netp_port__port_speed_value
bigint(32) default NULL,
isys_netp_port__title
varchar(255) collate utf8_unicode_ci default NULL,
isys_netp_port__description
text collate utf8_unicode_ci,
isys_netp_port__mac
varchar(255) collate utf8_unicode_ci default NULL,
isys_netp_port__state_enabled
int(10) unsigned default '1',
isys_netp_port__number
int(10) unsigned default '0',
isys_netp_port__status
int(10) unsigned default NULL,
isys_netp_port__property
int(10) unsigned default NULL,
PRIMARY KEY (isys_netp_port__id
),
KEY isys_netp_port_FKIndex1
(isys_netp_port__isys_port_type__id
),
KEY isys_netp_port_FKIndex2
(isys_netp_port__isys_catg_netp_list__id
),
KEY isys_netp_port_FKIndex3
(isys_netp_port__isys_port_speed__id
),
KEY isys_netp_port_FKIndex5
(isys_netp_port__isys_port_duplex__id
),
KEY isys_netp_port_FKIndex6
(isys_netp_port__isys_port_negotiation__id
),
KEY isys_netp_port_FKIndex7
(isys_netp_port__isys_port_standard__id
),
KEY isys_netp_port__isys_plug_type__id
(isys_netp_port__isys_plug_type__id
),
KEY isys_netp_port__isys_obj__id
(isys_netp_port__isys_obj__id
),
CONSTRAINT isys_netp_port_ibfk_10
FOREIGN KEY (isys_netp_port__isys_port_type__id
) REFERENCES isys_port_type
(isys_port_type__id
) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT isys_netp_port_ibfk_11
FOREIGN KEY (isys_netp_port__isys_plug_type__id
) REFERENCES isys_plug_type
(isys_plug_type__id
) ON DELETE SET NULL ON UPDATE CASCADE,
CONSTRAINT isys_netp_port_ibfk_3
FOREIGN KEY (isys_netp_port__isys_port_speed__id
) REFERENCES isys_port_speed
(isys_port_speed__id
) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT isys_netp_port_ibfk_5
FOREIGN KEY (isys_netp_port__isys_port_duplex__id
) REFERENCES isys_port_duplex
(isys_port_duplex__id
) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT isys_netp_port_ibfk_6
FOREIGN KEY (isys_netp_port__isys_port_negotiation__id
) REFERENCES isys_port_negotiation
(isys_port_negotiation__id
) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT isys_netp_port_ibfk_7
FOREIGN KEY (isys_netp_port__isys_port_standard__id
) REFERENCES isys_port_standard
(isys_port_standard__id
) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT isys_netp_port_ibfk_8
FOREIGN KEY (isys_netp_port__isys_obj__id
) REFERENCES isys_obj
(isys_obj__id
) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT isys_netp_port_ibfk_9
FOREIGN KEY (isys_netp_port__isys_catg_netp_list__id
) REFERENCES isys_catg_netp_list
(isys_catg_netp_list__id
) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci