Move pk to int autogen and uuid as handle

This commit is contained in:
Zoe Roux
2024-10-19 18:06:31 +02:00
parent 200087f2f6
commit a2df0ae305
4 changed files with 23 additions and 16 deletions
+5 -2
View File
@@ -21,10 +21,13 @@ limit $1;
-- name: GetUser :many
select
sqlc.embed(u),
sqlc.embed(h)
h.provider,
h.id,
h.username,
h.profile_url
from
users as u
left join oidc_handle as h on u.id = h.user_id
left join oidc_handle as h on u.pk = h.user_pk
where
u.id = $1;