aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/store/pg/sql/write_email.sql
blob: 75fc4948fd227379de7b780f680d26c748832da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
--