forked from ssllabs/ssllabs-scan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObservatory.sql
72 lines (65 loc) · 2.33 KB
/
Observatory.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
CREATE TABLE [ObservatoryV10](
[ScanID] [int] NOT NULL,
[DomainID] [int] NOT NULL,
[TestWithSSL] [bit] NOT NULL,
[DomainReachable] [tinyint] NOT NULL,
[ScanStatus] [tinyint] NOT NULL,
[Grade] [nchar](2) NULL,
[Score] [tinyint] NULL,
[TestsFailed] [tinyint] NULL,
[TestsPassed] [tinyint] NULL,
[TestsQuantity] [tinyint] NULL,
[CSPPassed] [bit] NULL,
[CSPEval] [smallint] NULL,
[CSPResult] [nvarchar](100) NULL,
[CSPDesc] [nvarchar](250) NULL,
[CookiesPassed] [bit] NULL,
[CookiesResult] [nvarchar](100) NULL,
[CookiesDesc] [nvarchar](250) NULL,
[CORSPassed] [bit] NULL,
[CORSResult] [nvarchar](100) NULL,
[CORSDesc] [nvarchar](250) NULL,
[HPKPPassed] [bit] NULL,
[HPKPResult] [nvarchar](100) NULL,
[HPKPDesc] [nvarchar](250) NULL,
[RedirectionPassed] [bit] NULL,
[RedirectionResult] [nvarchar](100) NULL,
[RedirectionDesc] [nvarchar](250) NULL,
[HSTSPassed] [bit] NULL,
[HSTSResult] [nvarchar](100) NULL,
[HSTSDesc] [nvarchar](250) NULL,
[SRIPassed] [bit] NULL,
[SRIResult] [nvarchar](100) NULL,
[SRIDesc] [nvarchar](250) NULL,
[XContentTypePassed] [bit] NULL,
[XContentTypeResult] [nvarchar](100) NULL,
[XContentTypeDesc] [nvarchar](250) NULL,
[XXSSProtectionPassed] [bit] NULL,
[XXSSProtectionResult] [nvarchar](100) NULL,
[XXSSProtectionDesc] [nvarchar](250) NULL,
[XFrameOptionsPassed] [bit] NULL,
[XFrameOptionsResult] [nvarchar](100) NULL,
[XFrameOptionsDesc] [nvarchar](250) NULL,
[ReferrerPolicyPassed] [bit] NULL,
[ReferrerPolicyDesc] [nvarchar](100) NULL,
[ReferrerPolicyResult] [nvarchar](250) NULL,
CONSTRAINT [PK_ObservatoryV10] PRIMARY KEY CLUSTERED
(
[ScanID] ASC,
[DomainID] ASC,
[TestWithSSL] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [ObservatoryV10] ADD CONSTRAINT [DF_ObservatoryV10_TestWithSSL] DEFAULT ((0)) FOR [TestWithSSL]
GO
ALTER TABLE [ObservatoryV10] WITH CHECK ADD CONSTRAINT [FK_ObservatoryV10_Domains] FOREIGN KEY([DomainID])
REFERENCES [Domains] ([DomainID])
GO
ALTER TABLE [ObservatoryV10] CHECK CONSTRAINT [FK_ObservatoryV10_Domains]
GO
ALTER TABLE [ObservatoryV10] WITH CHECK ADD CONSTRAINT [FK_ObservatoryV10_Scans] FOREIGN KEY([ScanID])
REFERENCES [Scans] ([ScanID])
GO
ALTER TABLE [ObservatoryV10] CHECK CONSTRAINT [FK_ObservatoryV10_Scans]
GO