aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/store/pg/sql/write_session.sql
blob: 18dc1f1060dc9a349d43dbcd94fef9be1ecffc68 (plain)
1
2
3
4
5
6
7
8
9
10
insert into secd.session (
       identity_id
       , token_hash
       , created_at
       , expired_at
       , revoked_at
) values (
  (select identity_id from secd.identity where identity_public_id = $1)
  , $2, $3, $4, $5
);