2006-09-17 02:39:23 +02:00
|
|
|
drop table hosts;
|
2006-03-21 05:37:48 +01:00
|
|
|
create table hosts (
|
|
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
|
|
'address' VARCHAR(16) UNIQUE,
|
|
|
|
'comm' VARCHAR(255),
|
|
|
|
'name' VARCHAR(255),
|
|
|
|
'state' VARCHAR(255),
|
|
|
|
'desc' VARCHAR(1024)
|
|
|
|
);
|
|
|
|
|
2006-09-17 02:39:23 +02:00
|
|
|
drop table services;
|
2006-03-21 05:37:48 +01:00
|
|
|
create table services (
|
|
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
|
|
'host_id' INTEGER,
|
|
|
|
'port' INTEGER NOT NULL,
|
|
|
|
'proto' VARCHAR(16) NOT NULL,
|
|
|
|
'state' VARCHAR(255),
|
|
|
|
'name' VARCHAR(255),
|
|
|
|
'desc' VARCHAR(1024)
|
|
|
|
);
|
2006-04-03 00:33:34 +02:00
|
|
|
|
2006-09-17 02:39:23 +02:00
|
|
|
drop table vulns;
|
2006-04-03 00:33:34 +02:00
|
|
|
create table vulns (
|
|
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
|
|
'service_id' INTEGER,
|
2006-09-16 22:08:13 +02:00
|
|
|
'name' VARCHAR(1024),
|
2006-04-03 00:33:34 +02:00
|
|
|
'data' TEXT
|
|
|
|
);
|
2006-09-16 22:08:13 +02:00
|
|
|
|
2006-09-17 02:39:23 +02:00
|
|
|
drop table refs;
|
2006-09-16 22:08:13 +02:00
|
|
|
create table refs (
|
|
|
|
'id' INTEGER PRIMARY KEY NOT NULL,
|
|
|
|
'ref_id' INTEGER,
|
|
|
|
'name' VARCHAR(512)
|
|
|
|
);
|
|
|
|
|
2006-09-17 02:39:23 +02:00
|
|
|
drop table vulns_refs;
|
2006-09-16 22:08:13 +02:00
|
|
|
create table vulns_refs (
|
|
|
|
'ref_id' INTEGER,
|
|
|
|
'vuln_id' INTEGER
|
|
|
|
);
|