2022-06-26 04:00:07 +00:00
|
|
|
CREATE TABLE hits
|
|
|
|
(
|
|
|
|
WatchID BIGINT NOT NULL,
|
|
|
|
JavaEnable SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
Title TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
GoodEvent SMALLINT NOT NULL,
|
|
|
|
EventTime TIMESTAMP NOT NULL,
|
|
|
|
EventDate Date NOT NULL,
|
|
|
|
CounterID INTEGER NOT NULL,
|
|
|
|
ClientIP INTEGER NOT NULL,
|
|
|
|
RegionID INTEGER NOT NULL,
|
|
|
|
UserID BIGINT NOT NULL,
|
|
|
|
CounterClass SMALLINT NOT NULL,
|
|
|
|
OS SMALLINT NOT NULL,
|
|
|
|
UserAgent SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
URL TEXT,
|
|
|
|
Referer TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
IsRefresh SMALLINT NOT NULL,
|
|
|
|
RefererCategoryID SMALLINT NOT NULL,
|
|
|
|
RefererRegionID INTEGER NOT NULL,
|
|
|
|
URLCategoryID SMALLINT NOT NULL,
|
|
|
|
URLRegionID INTEGER NOT NULL,
|
|
|
|
ResolutionWidth SMALLINT NOT NULL,
|
|
|
|
ResolutionHeight SMALLINT NOT NULL,
|
|
|
|
ResolutionDepth SMALLINT NOT NULL,
|
|
|
|
FlashMajor SMALLINT NOT NULL,
|
|
|
|
FlashMinor SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
FlashMinor2 TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
NetMajor SMALLINT NOT NULL,
|
|
|
|
NetMinor SMALLINT NOT NULL,
|
|
|
|
UserAgentMajor SMALLINT NOT NULL,
|
|
|
|
UserAgentMinor VARCHAR(255) NOT NULL,
|
|
|
|
CookieEnable SMALLINT NOT NULL,
|
|
|
|
JavascriptEnable SMALLINT NOT NULL,
|
|
|
|
IsMobile SMALLINT NOT NULL,
|
|
|
|
MobilePhone SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
MobilePhoneModel TEXT,
|
|
|
|
Params TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
IPNetworkID INTEGER NOT NULL,
|
|
|
|
TraficSourceID SMALLINT NOT NULL,
|
|
|
|
SearchEngineID SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
SearchPhrase TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
AdvEngineID SMALLINT NOT NULL,
|
|
|
|
IsArtifical SMALLINT NOT NULL,
|
|
|
|
WindowClientWidth SMALLINT NOT NULL,
|
|
|
|
WindowClientHeight SMALLINT NOT NULL,
|
|
|
|
ClientTimeZone SMALLINT NOT NULL,
|
|
|
|
ClientEventTime TIMESTAMP NOT NULL,
|
|
|
|
SilverlightVersion1 SMALLINT NOT NULL,
|
|
|
|
SilverlightVersion2 SMALLINT NOT NULL,
|
|
|
|
SilverlightVersion3 INTEGER NOT NULL,
|
|
|
|
SilverlightVersion4 SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
PageCharset TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
CodeVersion INTEGER NOT NULL,
|
|
|
|
IsLink SMALLINT NOT NULL,
|
|
|
|
IsDownload SMALLINT NOT NULL,
|
|
|
|
IsNotBounce SMALLINT NOT NULL,
|
|
|
|
FUniqID BIGINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
OriginalURL TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
HID INTEGER NOT NULL,
|
|
|
|
IsOldCounter SMALLINT NOT NULL,
|
|
|
|
IsEvent SMALLINT NOT NULL,
|
|
|
|
IsParameter SMALLINT NOT NULL,
|
|
|
|
DontCountHits SMALLINT NOT NULL,
|
|
|
|
WithHash SMALLINT NOT NULL,
|
|
|
|
HitColor CHAR NOT NULL,
|
|
|
|
LocalEventTime TIMESTAMP NOT NULL,
|
|
|
|
Age SMALLINT NOT NULL,
|
|
|
|
Sex SMALLINT NOT NULL,
|
|
|
|
Income SMALLINT NOT NULL,
|
|
|
|
Interests SMALLINT NOT NULL,
|
|
|
|
Robotness SMALLINT NOT NULL,
|
|
|
|
RemoteIP INTEGER NOT NULL,
|
|
|
|
WindowName INTEGER NOT NULL,
|
|
|
|
OpenerName INTEGER NOT NULL,
|
|
|
|
HistoryLength SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
BrowserLanguage TEXT,
|
|
|
|
BrowserCountry TEXT,
|
|
|
|
SocialNetwork TEXT,
|
|
|
|
SocialAction TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
HTTPError SMALLINT NOT NULL,
|
|
|
|
SendTiming INTEGER NOT NULL,
|
|
|
|
DNSTiming INTEGER NOT NULL,
|
|
|
|
ConnectTiming INTEGER NOT NULL,
|
|
|
|
ResponseStartTiming INTEGER NOT NULL,
|
|
|
|
ResponseEndTiming INTEGER NOT NULL,
|
|
|
|
FetchTiming INTEGER NOT NULL,
|
|
|
|
SocialSourceNetworkID SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
SocialSourcePage TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
ParamPrice BIGINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
ParamOrderID TEXT,
|
|
|
|
ParamCurrency TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
ParamCurrencyID SMALLINT NOT NULL,
|
2022-06-26 21:04:19 +00:00
|
|
|
OpenstatServiceName TEXT,
|
|
|
|
OpenstatCampaignID TEXT,
|
|
|
|
OpenstatAdID TEXT,
|
|
|
|
OpenstatSourceID TEXT,
|
|
|
|
UTMSource TEXT,
|
|
|
|
UTMMedium TEXT,
|
|
|
|
UTMCampaign TEXT,
|
|
|
|
UTMContent TEXT,
|
|
|
|
UTMTerm TEXT,
|
|
|
|
FromTag TEXT,
|
2022-06-26 04:00:07 +00:00
|
|
|
HasGCLID SMALLINT NOT NULL,
|
|
|
|
RefererHash BIGINT NOT NULL,
|
|
|
|
URLHash BIGINT NOT NULL,
|
|
|
|
CLID INTEGER NOT NULL,
|
|
|
|
PRIMARY KEY (CounterID, EventDate, UserID, EventTime, WatchID)
|
|
|
|
);
|