13 lines
274 B
SQL
13 lines
274 B
SQL
CREATE TABLE tweets (
|
|
id BIGINT NOT NULL,
|
|
text TEXT NOT NULL,
|
|
object JSONB NOT NULL
|
|
);
|
|
|
|
CREATE TABLE user_accounts (
|
|
username TEXT NOT NULL PRIMARY KEY,
|
|
userid BIGINT NOT NULL,
|
|
access_token TEXT NOT NULL,
|
|
access_secret TEXT NOT NULL,
|
|
latest_tweet BIGINT NOT NULL
|
|
);
|