aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/query.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-17 19:35:56 +0900
committernsfisis <nsfisis@gmail.com>2024-08-17 21:10:18 +0900
commit95dd5f0c346d10c9a9497daf88cd199ce71c8122 (patch)
tree6d3621b22cc44d7e93bc6a46b300479619d240d2 /backend/query.sql
parent48a70e06f54d81cdc6b0c22c2dcce8426b86decf (diff)
downloadiosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.gz
iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.tar.zst
iosdc-japan-2024-albatross-95dd5f0c346d10c9a9497daf88cd199ce71c8122.zip
feat(backend): fetch user icon from fortee
Diffstat (limited to 'backend/query.sql')
-rw-r--r--backend/query.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/query.sql b/backend/query.sql
index 6b0ecdd..dc5f384 100644
--- a/backend/query.sql
+++ b/backend/query.sql
@@ -13,6 +13,11 @@ INSERT INTO users (username, display_name, is_admin)
VALUES ($1, $1, false)
RETURNING user_id;
+-- name: UpdateUserIconPath :exec
+UPDATE users
+SET icon_path = $2
+WHERE user_id = $1;
+
-- name: ListUsers :many
SELECT * FROM users
ORDER BY users.user_id;