-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
32 lines (28 loc) · 1023 Bytes
/
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 jvelo_at.twitter_like
(
id varchar(20) primary key,
created_at timestamp not null,
text text,
truncated bool default FALSE,
entities jsonb,
extended_entities jsonb,
is_quote_status bool,
quoted_status json,
quoted_status_id bigint,
source text,
in_reply_to_status_id bigint,
in_reply_to_user_id bigint,
in_reply_to_screen_name text,
user_data json,
retweet_count int,
favorite_count int,
favorited bool,
retweeted bool,
possibly_sensitive bool,
lang varchar(10)
);
comment on table jvelo_at.twitter_like is 'likes from my twitter account';
create index twitter_like_created_at_index
on jvelo_at.twitter_like (created_at);
create index twitter_like_lang_index
on jvelo_at.twitter_like (lang);