-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.sql
33 lines (30 loc) · 1.25 KB
/
schema.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
create table events
(
id bigserial
primary key,
time timestamp with time zone default now() not null,
session_id varchar(32),
book_id varchar(255) not null,
domain varchar(255) not null,
url varchar(255) not null,
pathname varchar(255),
referrer varchar(255),
name varchar(40) not null,
utm_medium varchar(255),
utm_source varchar(255),
utm_campaign varchar(255),
utm_content varchar(255),
utm_term varchar(255),
category varchar(40),
value varchar(255),
operating_system varchar(64),
operating_system_version varchar(64),
browser varchar(64),
browser_version varchar(64),
screen_size varchar(32),
client_id varchar(64),
user_id varchar(32),
method varchar(40)
);
alter table events
owner to postgres;