mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
110 lines
3.8 KiB
SQL
110 lines
3.8 KiB
SQL
CREATE TABLE hits
|
|
(
|
|
WatchID BIGINT NOT NULL,
|
|
JavaEnable SMALLINT NOT NULL,
|
|
Title VARCHAR(MAX) NOT NULL,
|
|
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,
|
|
URL VARCHAR(MAX) NOT NULL,
|
|
Referer VARCHAR(MAX) NOT NULL,
|
|
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,
|
|
FlashMinor2 VARCHAR(MAX) NOT NULL,
|
|
NetMajor SMALLINT NOT NULL,
|
|
NetMinor SMALLINT NOT NULL,
|
|
UserAgentMajor SMALLINT NOT NULL,
|
|
UserAgentMinor VARCHAR(MAX) NOT NULL,
|
|
CookieEnable SMALLINT NOT NULL,
|
|
JavascriptEnable SMALLINT NOT NULL,
|
|
IsMobile SMALLINT NOT NULL,
|
|
MobilePhone SMALLINT NOT NULL,
|
|
MobilePhoneModel VARCHAR(MAX) NOT NULL,
|
|
Params VARCHAR(MAX) NOT NULL,
|
|
IPNetworkID INTEGER NOT NULL,
|
|
TraficSourceID SMALLINT NOT NULL,
|
|
SearchEngineID SMALLINT NOT NULL,
|
|
SearchPhrase VARCHAR(MAX) NOT NULL,
|
|
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,
|
|
PageCharset VARCHAR(MAX) NOT NULL,
|
|
CodeVersion INTEGER NOT NULL,
|
|
IsLink SMALLINT NOT NULL,
|
|
IsDownload SMALLINT NOT NULL,
|
|
IsNotBounce SMALLINT NOT NULL,
|
|
FUniqID BIGINT NOT NULL,
|
|
OriginalURL VARCHAR(MAX) NOT NULL,
|
|
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 VARCHAR(MAX) 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,
|
|
BrowserLanguage VARCHAR(MAX) NOT NULL,
|
|
BrowserCountry VARCHAR(MAX) NOT NULL,
|
|
SocialNetwork VARCHAR(MAX) NOT NULL,
|
|
SocialAction VARCHAR(MAX) NOT NULL,
|
|
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,
|
|
SocialSourcePage VARCHAR(MAX) NOT NULL,
|
|
ParamPrice BIGINT NOT NULL,
|
|
ParamOrderID VARCHAR(MAX) NOT NULL,
|
|
ParamCurrency VARCHAR(MAX) NOT NULL,
|
|
ParamCurrencyID SMALLINT NOT NULL,
|
|
OpenstatServiceName VARCHAR(MAX) NOT NULL,
|
|
OpenstatCampaignID VARCHAR(MAX) NOT NULL,
|
|
OpenstatAdID VARCHAR(MAX) NOT NULL,
|
|
OpenstatSourceID VARCHAR(MAX) NOT NULL,
|
|
UTMSource VARCHAR(MAX) NOT NULL,
|
|
UTMMedium VARCHAR(MAX) NOT NULL,
|
|
UTMCampaign VARCHAR(MAX) NOT NULL,
|
|
UTMContent VARCHAR(MAX) NOT NULL,
|
|
UTMTerm VARCHAR(MAX) NOT NULL,
|
|
FromTag VARCHAR(MAX) NOT NULL,
|
|
HasGCLID SMALLINT NOT NULL,
|
|
RefererHash BIGINT NOT NULL,
|
|
URLHash BIGINT NOT NULL,
|
|
CLID INTEGER NOT NULL,
|
|
PRIMARY KEY (CounterID, EventDate, UserID, EventTime, WatchID)
|
|
);
|