home *** CD-ROM | disk | FTP | other *** search
- %% ============================================================
- %% Database name: MODEL_3
- %% DBMS name: Sybase SQL Anywhere 5.5
- %% Created on: 12/01/2001 19:11
- %% ============================================================
-
- %% ============================================================
- %% Table: INTERNAL_INDEX
- %% ============================================================
- create table dba.INTERNAL_INDEX
- (
- sessnu integer not null,
- pernu integer ,
- polnu integer ,
- jobnu integer ,
- hostnu integer ,
- probnu integer ,
- wksnu integer ,
- resnu integer ,
- version integer ,
- primary key (sessnu)
- );
-
- %% ============================================================
- %% Table: GLOSSARY
- %% ============================================================
- create table dba.GLOSSARY
- (
- Glo_id integer not null
- default autoincrement,
- GlossaryName char(100) ,
- GlossaryDescription char(32767) ,
- Glo_sta integer
- default 0,
- Flag integer
- default 0,
- primary key (Glo_id)
- );
-
- %% ============================================================
- %% Index: glo
- %% ============================================================
- create unique index glo on dba.GLOSSARY (Glo_id asc);
-
- %% ============================================================
- %% Table: PERIMETER
- %% ============================================================
- create table dba.PERIMETER
- (
- Per_id integer not null,
- PerimeterName varchar(50) not null,
- PerimeterDescription char(32767) not null,
- Predefined smallint not null,
- primary key (Per_id)
- );
-
- %% ============================================================
- %% Table: POLICY
- %% ============================================================
- create table dba.POLICY
- (
- Pol_id integer not null,
- PolicyName varchar(50) not null,
- PolicyDescription long varchar not null,
- Predefined smallint not null,
- primary key (Pol_id)
- );
-
- %% ============================================================
- %% Table: WKS
- %% ============================================================
- create table dba.WKS
- (
- Wks_id integer not null,
- Wks varchar(50) not null,
- Service varchar(50) not null,
- primary key (Wks_id)
- );
-
- %% ============================================================
- %% Table: REALIMPACT
- %% ============================================================
- create table dba.REALIMPACT
- (
- RealImpact_id integer not null,
- RealImpact char(255) ,
- primary key (RealImpact_id)
- );
-
- %% ============================================================
- %% Table: PARAMETER
- %% ============================================================
- create table dba.PARAMETER
- (
- Obj_id integer not null,
- Par_id integer not null,
- ClsType_id integer not null,
- ClsType char(50) ,
- ParameterName char(50) ,
- ParameterDescription char(32767) ,
- Info char(100) ,
- Type_id integer ,
- Type char(255) ,
- DfltValue char(32767) ,
- MinVal integer ,
- MaxVal integer ,
- Value char(32767) ,
- primary key (Obj_id, Par_id, ClsType_id)
- );
-
- %% ============================================================
- %% Table: TCRESULT_INFO
- %% ============================================================
- create table dba.TCRESULT_INFO
- (
- Tcr_id integer not null,
- Ordre integer not null,
- Type integer ,
- Value integer ,
- Field char (255) ,
- Text char(32767) ,
- primary key (Tcr_id, Ordre)
- );
-
- %% ============================================================
- %% Table: SOLUTION
- %% ============================================================
- create table dba.SOLUTION
- (
- Acc_id integer not null,
- Solution char(32767) ,
- Type_id integer not null,
- Type char(100) not null,
- primary key (Acc_id, Type_id)
- );
-
-
- %% ============================================================
- %% Table: TC_GLOSSARY
- %% ============================================================
- create table dba.TC_GLOSSARY
- (
- Acc_id integer not null,
- Glo_id integer not null,
- primary key (Acc_id, Glo_id)
- );
-
- %% ============================================================
- %% Table: RANGE
- %% ============================================================
- create table dba.RANGE
- (
- Range_id integer not null,
- Per_id integer not null,
- LowIpAddr integer ,
- HighIpAddr integer ,
- Include integer ,
- primary key (Range_id, Per_id)
- );
-
- %% ============================================================
- %% Table: SESSION
- %% ============================================================
- create table dba.SESSION
- (
- Ses_id integer not null,
- Pol_id integer not null,
- Per_id integer not null,
- Session char(32767) not null,
- Type integer not null,
- CrDate timestamp not null,
- LastDate timestamp not null,
- LastJob_id integer not null,
- ScActive smallint not null,
- ScJobTime timestamp not null,
- ScDaySom integer not null,
- ScDaySow integer not null,
- ScFlags integer not null,
- ScArgs char(32767) not null,
- Predefined smallint not null,
- primary key (Ses_id)
- );
- %% ============================================================
- %% Table: PROP_VALUE
- %% ============================================================
- create table dba.PROP_VALUE
- (
- Pro_id integer not null,
- ClsType_id integer not null,
- ClsType char(50) ,
- Obj_id integer not null,
- Value char(254) ,
- DfltValue char(254) ,
- primary key (Pro_id, ClsType_id,Obj_id)
- );
-
- %% ============================================================
- %% Table: JOB
- %% ============================================================
- create table dba.JOB
- (
- Job_id integer not null,
- Ses_id integer not null,
- CrDate timestamp not null,
- primary key (Job_id)
- );
-
- %% ============================================================
- %% Table: TC_REALIMPACT
- %% ============================================================
- create table dba.TC_REALIMPACT
- (
- Acc_id integer not null,
- RealImpact_id integer not null,
- primary key (Acc_id, RealImpact_id)
- );
-
- %% ============================================================
- %% Table: HOST
- %% ============================================================
- create table dba.HOST
- (
- Host_id integer not null,
- IpAddr integer not null,
- LastDate timestamp not null,
- DnsName varchar(50) not null,
- NtbName varchar(50) not null,
- Type integer not null,
- primary key (Host_id)
- );
-
- %% ============================================================
- %% Table: JOB_HOST
- %% ============================================================
- create table dba.JOB_HOST
- (
- Job_id integer not null,
- Host_id integer not null,
- Type integer ,
- Probe integer ,
- HostStatus_id integer ,
- HostStatus char(50) ,
- primary key (Job_id, Host_id)
- );
-
- %% ============================================================
- %% Table: SERVICE
- %% ============================================================
- create table dba.SERVICE
- (
- Service_id integer not null,
- Host_id integer ,
- Wks_id integer ,
- RealPort integer ,
- Job_id integer not null,
- primary key (Service_id, Job_id)
- );
-
- %% ============================================================
- %% Table: TCRESULT
- %% ============================================================
- create table dba.TCRESULT
- (
- Tcr_id integer not null
- default autoincrement,
- Acc_id integer not null,
- Service_id integer not null,
- ResultCode_id integer ,
- ResultCode varchar(50) ,
- DtBegin timestamp ,
- DtEnd timestamp ,
- Host_id integer ,
- Job_id integer ,
- primary key (Tcr_id)
- );
-
- %% ============================================================
- %% Table: PROPERTY
- %% ============================================================
- create table dba.PROPERTY
- (
- Pro_id integer not null,
- ClsType_id integer not null,
- ClsType char(50) ,
- PropertyName char(50) ,
- Type integer ,
- Flags integer ,
- PropertyDescription char(32767) ,
- DfltValue char(50) ,
- MinVal integer ,
- MaxVal integer ,
- primary key (Pro_id,ClsType_id)
- );
-
- %% ============================================================
- %% Table: TESTCASE
- %% ============================================================
- create table dba.TESTCASE
- (
- Acc_id integer not null
- default autoincrement,
- Tca_id integer not null
- default autoincrement,
- Wks_id integer ,
- WksDflt_id integer ,
- TestcaseName char(255) ,
- VulnerabilityDescription char(32767) ,
- Copyright char(255) ,
- DtPub char(255) ,
- TestMethod char(32767) ,
- TestMethodSoft char(32767) ,
- LastPublication date ,
- FollowupUrgency char(255) ,
- FollowupUrgency_id integer ,
- HighLevelDesc char(32767) ,
- NatFollowUp char(255) ,
- RiskDescription char(32767) ,
- Level_id integer ,
- Level char(255) ,
- Ref char(32767) ,
- Impact_id integer ,
- Impact char(255) ,
- Active integer ,
- Flags integer ,
- Product smallint
- default 0,
- Keywords char(255) ,
- Cve char(255) ,
- Chain char(32767) ,
- Timeout integer ,
- Mod_id integer
- default autoincrement,
- primary key (Acc_id)
- );
-
- %% ============================================================
- %% Table: JOB_RANGE
- %% ============================================================
- create table dba.JOB_RANGE
- (
- Range_id integer not null,
- Per_id integer not null,
- Job_id integer not null,
- Host_id integer not null,
- primary key (Range_id, Job_id, Host_id)
- );
-
- %% ============================================================
- %% Table: POLICYDESC
- %% ============================================================
- create table dba.POLICYDESC
- (
- Pol_id integer not null,
- Type integer not null,
- Value integer not null,
- Include smallint not null,
- primary key (Pol_id, Type, Value)
- );
-