GoScrobble/migrations/8_oauth.up.sql

12 lines
393 B
MySQL
Raw Normal View History

2021-12-25 09:24:47 +00:00
CREATE TABLE IF NOT EXISTS oauth_tokens (
"user" uuid,
service VARCHAR(64) NOT NULL,
access_token VARCHAR(255) NULL DEFAULT '',
refresh_token VARCHAR(255) NULL DEFAULT '',
url VARCHAR(255) NULL DEFAULT '',
expiry timestamptz NOT NULL,
username VARCHAR(100) NULL DEFAULT '',
last_synced timestamptz NOT NULL DEFAULT NOW(),
PRIMARY KEY ("user", "service")
);