insert into auth.email ( address ) values ( $1 ) on conflict (address) do nothing returning email_id; -- select email_id from auth.email where address = $1; -- insert into auth.identity_email (identity_id, email_id, created_at) values ($1, $2, $3); --