2006-04-03 04:33:30 +00:00
|
|
|
drop table hosts;
|
|
|
|
|
|
|
|
create table hosts (
|
2006-09-17 07:17:27 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2006-04-03 04:33:30 +00:00
|
|
|
address VARCHAR(16) UNIQUE,
|
|
|
|
comm VARCHAR(255),
|
|
|
|
name VARCHAR(255),
|
|
|
|
state VARCHAR(255),
|
|
|
|
info VARCHAR(1024)
|
|
|
|
);
|
|
|
|
|
|
|
|
drop table services;
|
|
|
|
|
|
|
|
create table services (
|
2006-09-17 07:17:27 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2006-04-03 04:33:30 +00:00
|
|
|
host_id INTEGER,
|
|
|
|
port INTEGER NOT NULL,
|
|
|
|
proto VARCHAR(16) NOT NULL,
|
|
|
|
state VARCHAR(255),
|
|
|
|
name VARCHAR(255),
|
|
|
|
info VARCHAR(1024)
|
|
|
|
);
|
|
|
|
|
|
|
|
drop table vulns;
|
|
|
|
|
|
|
|
create table vulns (
|
2006-09-17 07:17:27 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2006-04-03 04:33:30 +00:00
|
|
|
service_id INTEGER,
|
|
|
|
name VARCHAR(255),
|
|
|
|
data TEXT
|
|
|
|
);
|
|
|
|
|
2006-09-17 07:17:27 +00:00
|
|
|
drop table refs;
|
|
|
|
|
|
|
|
create table refs (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
ref_id INTEGER,
|
|
|
|
name VARCHAR(512)
|
|
|
|
);
|
|
|
|
|
|
|
|
drop table vulns_refs;
|
|
|
|
|
|
|
|
create table vulns_refs (
|
|
|
|
ref_id INTEGER,
|
|
|
|
vuln_id INTEGER
|
|
|
|
);
|