

CREATE TABLE IF NOT EXISTS oauth_accounts (
    provider          TEXT    NOT NULL,
    provider_user_id  TEXT    NOT NULL,
    user_id           INTEGER NOT NULL,
    PRIMARY KEY (provider, provider_user_id),
    FOREIGN KEY (user_id) REFERENCES users(id)
);
