-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBerf.sql.orig
81 lines (80 loc) · 4.53 KB
/
Berf.sql.orig
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
71
72
73
74
75
76
77
78
79
80
81
USE Berf
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME= 'MVC')
BEGIN
DROP TABLE MVC
END
GO
CREATE TABLE dbo.MVC
(
MVCID uniqueidentifier primary key nonclustered NOT NULL default NEWID(),
[Action] nvarchar(max) NOT NULL,
Controller nvarchar(max) NOT NULL,
Area nvarchar(max) NOT NULL,
ActionStart datetime NOT NULL,
ActionEnd datetime NOT NULL,
ResultStart datetime NOT NULL,
ResultEnd datetime NOT NULL,
ActionDuration float NOT NULL,
ResultDuration float NOT NULL,
BerfSessionID uniqueidentifier NOT NULL,
Created datetime NOT NULL,
ClientIPAddress nvarchar(39) NOT NULL,
UserName nvarchar(max) NOT NULL,
UserAgent nvarchar(MAX) NOT NULL,
Browser nvarchar(max) NULL,
BrowserVersion nvarchar(max) NULL,
HostMachineName nvarchar(MAX) NOT NULL,
Headers nvarchar(max) NULL
)
GO
USE Berf
IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME= 'Client')
BEGIN
DROP TABLE Client
END
GO
CREATE TABLE dbo.Client
(
ClientID uniqueidentifier primary key nonclustered NOT NULL default NEWID(),
BerfSessionID uniqueidentifier NOT NULL,
unloadEventStart float NULL,
unloadEventEnd float NULL,
linkNegotiationStart float NULL,
linkNegotiationEnd float NULL,
redirectStart float NULL,
redirectEnd float NULL,
fetchStart float NULL,
domainLookupStart float NULL,
domainLookupEnd float NULL,
connectStart float NULL,
connectEnd float NULL,
secureConnectionStart float NULL,
requestStart float NULL,
responseStart float NULL,
responseEnd float NULL,
domLoading float NULL,
domInteractive float NULL,
domContentLoadedEventStart float NULL,
domContentLoadedEventEnd float NULL,
domComplete float NULL,
loadEventStart float NULL,
loadEventEnd float NULL,
prerenderSwitch float NULL,
redirectCount int null,
initiatorType nvarchar(max) NULL,
name nvarchar(MAX) NULL,
entryType nvarchar(MAX) NULL,
startTime float NULL,
duration float NULL,
navigationStart float NULL,
Url nvarchar(max),
Source nvarchar(MAX) NULL,
Created datetime NOT NULL,
UserName nvarchar(max) NOT NULL,
ClientIPAddress nvarchar(39) NOT NULL,
UserAgent nvarchar(MAX) NOT NULL,
Browser nvarchar(max) NULL,
BrowserVersion nvarchar(max) NULL,
HostMachineName nvarchar(MAX) NOT NULL
)
GO