aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20260210194218_oauth_account.sql
blob: 3431f853d978ead63f8fe3775479feaa81722ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
create extension if not exists citext;

create table account (
    provider_id text not null,
    provider_user_id text not null,
    email citext not null,
    user_id text not null references profile(id) on delete cascade,
    primary key (provider_id, provider_user_id)
);

create index account_email_idx on account (email);