create extension if not exists citext; create table account ( provider_id text not null, provider_user_id text not null, email citext not null, ap_id text not null references profile(ap_id) on delete cascade, primary key (provider_id, provider_user_id) )