-- SPDX-FileCopyrightText: 2020 Luke Granger-Brown -- -- SPDX-License-Identifier: Apache-2.0 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 );