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);
