feat: Implemented create wish method for wish list service

This commit is contained in:
2025-09-01 18:46:08 +03:00
parent 3198612e16
commit 14bad8e7ef
5 changed files with 186 additions and 2 deletions

View File

@@ -393,6 +393,13 @@ WHERE wl.guid = (@guid::text)::uuid;
SELECT * FROM wish_lists wl
WHERE wl.guid = (@guid::text)::uuid;
;-- name: GetWishListOwnerByGuid :one
SELECT u.*
FROM wish_lists wl
JOIN profiles p ON wl.profile_id = p.id
JOIN users u ON p.user_id = u.id
WHERE wl.guid = (@guid::text)::uuid;
;-- name: GetWishlistsByUsername :many
SELECT * FROM wish_lists wl
JOIN profiles p ON p.id = wl.profile_id