apollo-backend/migrations/000001_create_accounts.up.sql

15 lines
694 B
MySQL
Raw Permalink Normal View History

-- Table Definition ----------------------------------------------
CREATE TABLE accounts (
id SERIAL PRIMARY KEY,
2022-05-21 17:08:30 +00:00
reddit_account_id character varying(32) DEFAULT ''::character varying,
username character varying(20) DEFAULT ''::character varying UNIQUE,
access_token character varying(64) DEFAULT ''::character varying,
refresh_token character varying(64) DEFAULT ''::character varying,
2022-05-21 17:08:30 +00:00
token_expires_at timestamp without time zone,
last_message_id character varying(32) DEFAULT ''::character varying,
2022-05-21 17:08:30 +00:00
next_notification_check_at timestamp without time zone,
next_stuck_notification_check_at timestamp without time zone,
check_count integer DEFAULT 0
);