2020-10-04 00:07:59 +00:00
|
|
|
-- SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
--
|
|
|
|
-- SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2020-10-03 23:17:35 +00:00
|
|
|
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
|
|
|
|
);
|