-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathtwitter_pull.sql
More file actions
64 lines (56 loc) · 1.55 KB
/
twitter_pull.sql
File metadata and controls
64 lines (56 loc) · 1.55 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
-- Tables that keep the data pulled from Twitter using the twitter.oauth.py script
-- Table: tweets
-- DROP TABLE tweets;
CREATE TABLE tweets
(
id bigint NOT NULL,
created_at timestamp without time zone,
"text" text,
in_reply_to_user_id bigint,
in_reply_to_screen_name character varying(25),
in_reply_to_status_id bigint,
screen_name character varying(25),
user_id bigint,
CONSTRAINT tweets_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE tweets OWNER TO jmsc;
-- Table: twitter_users
-- DROP TABLE twitter_users;
CREATE TABLE twitter_users
(
id integer NOT NULL DEFAULT nextval('twitter_users_myid_seq'::regclass),
retrieved timestamp without time zone,
user_id bigint NOT NULL,
"name" character varying(32),
screen_name character varying(32) NOT NULL,
description character varying(512),
profile_image_url character varying(256),
url character varying(256),
protected boolean,
followers_count integer,
friends_count integer,
created_at timestamp without time zone,
favourites_count integer,
utc_offset integer,
time_zone character varying(128),
profile_background_image_url character varying(256),
profile_use_background_image boolean,
notifications boolean,
geo_enabled boolean,
verified boolean,
following integer,
statuses_count integer,
lang character varying(8),
contributors_enabled boolean,
follow_request_sent boolean,
listed_count integer,
show_all_inline_media boolean,
CONSTRAINT twitter_users_pkey PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE twitter_users OWNER TO jmsc;