depot/go/twitterchiver/archiver/schema.sql

17 lines
387 B
SQL

-- SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
--
-- 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
);