Update schema.sql

pull/1654/head
SVXTECH 2022-11-08 12:06:19 +08:00 committed by GitHub
parent 55e78b5383
commit 48a6a42cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ CREATE TABLE event
website_id UUID,
session_id UUID,
event_id Nullable(UUID),
rev_id UInt32,
--session
hostname LowCardinality(String),
browser LowCardinality(String),
@ -30,6 +31,7 @@ CREATE TABLE event_queue (
website_id UUID,
session_id UUID,
event_id Nullable(UUID),
rev_id UInt32,
url String,
referrer String,
hostname LowCardinality(String),
@ -55,6 +57,7 @@ CREATE MATERIALIZED VIEW event_queue_mv TO event AS
SELECT website_id,
session_id,
event_id,
rev_id,
url,
referrer,
hostname,
@ -67,4 +70,4 @@ SELECT website_id,
event_name,
event_data,
created_at
FROM event_queue;
FROM event_queue;