aboutsummaryrefslogtreecommitdiffstats
path: root/migrations/20260412121235_account.sql
blob: 583a0c4247982f2b53b9f03fb4c2f931c2617ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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_data jsonb 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);