-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreateTable.sql
49 lines (45 loc) · 1.54 KB
/
createTable.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
CREATE TABLE Analyses (
AID INTEGER PRIMARY KEY,
UID INTEGER,
lossScenario VARCHAR(15),
runDate DATE,
overallRiskInherent INTEGER,
overallRiskResidual INTEGER,
primaryRiskInherent INTEGER,
primaryRiskResidual INTEGER,
primaryLossEventFrequencyInherent INTEGER,
primaryLossEventFrequencyResidual INTEGER,
secondaryRiskInherent INTEGER,
secondaryRiskResidual INTEGER,
secondaryLossEventFrequencyInherent INTEGER,
secondaryLossEventFrequencyResidual INTEGER,
vulnerabilityInherent INTEGER,
vulnerabilityResidual INTEGER,
threatEventFrequencyInherent INTEGER,
threatEventFrequencyResidual INTEGER,
potentialLossMagnitude INTEGER,
resistanceStrengthVulnerabilityInherent INTEGER,
resistanceStrengthVulnerabilityControls INTEGER,
resistanceStrengthVulnerabilityResidual INTEGER,
probabilityOfActionDeterrenceInherent INTEGER,
probabilityOfActionDeterrenceControls INTEGER,
probabilityOfActionDeterrenceResidual INTEGER,
contactFrequencyAvoidanceInherent INTEGER,
contactFrequencyAvoidanceControls INTEGER,
contactFrequencyAvoidanceResidual INTEGER,
threatCapability INTEGER,
secondaryLossProbability INTEGER,
primaryLossMagnitudeResponsiveInherent INTEGER,
primaryLossMagnitudeResponsiveControls INTEGER,
primaryLossMagnitudeResponsiveResidual INTEGER,
secondaryLossMagnitudeResponsiveInherent INTEGER,
secondaryLossMagnitudeResponsiveControls INTEGER,
secondaryLossMagnitudeResponsiveResidual INTEGER,
notes VARCHAR(1000)
);
CREATE TABLE Users (
UID INTEGER PRIMARY KEY,
username VARCHAR(20),
password VARCHAR(20),
role CHAR(1)
);