We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474f2e5 commit 6aa1260Copy full SHA for 6aa1260
scripts/getUserStatuses.sql
@@ -0,0 +1,9 @@
1
+SELECT
2
+ u.id AS user_id,
3
+ u.name AS user_name,
4
+ u.email AS user_email,
5
+ CASE
6
+ WHEN t.id IS NOT NULL THEN concat('https://my.ichack.org/register?token=', t.id)
7
+ END AS user_url
8
+FROM public.users u
9
+LEFT JOIN public.token t ON u.id = t.user_id AND t.type = 'registration_link';
0 commit comments