drop table if exists raw; create table raw ( mac_src CHAR(17) DEFAULT NULL, mac_dst CHAR(17) DEFAULT NULL, ip_src CHAR(45) NOT NULL, ip_dst CHAR(45) NOT NULL, src_port INT(2) UNSIGNED NOT NULL, dst_port INT(2) UNSIGNED NOT NULL, ip_proto CHAR(6) NOT NULL, packets INT UNSIGNED NOT NULL, bytes BIGINT UNSIGNED NOT NULL, stamp_inserted DATETIME NOT NULL, stamp_updated DATETIME, PRIMARY KEY (ip_src, ip_dst, src_port, dst_port, ip_proto, stamp_inserted) );