refactor(server): migrate album-user repo to kysely (#15351)

This commit is contained in:
Mert 2025-01-14 19:27:16 -05:00 committed by GitHub
parent c5476a99b1
commit 2903ad8156
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 78 additions and 36 deletions

View file

@ -0,0 +1,25 @@
-- NOTE: This file is auto generated by ./sql-generator
-- AlbumUserRepository.create
insert into
"albums_shared_users_users" ("usersId", "albumsId")
values
($1, $2)
returning
*
-- AlbumUserRepository.update
update "albums_shared_users_users"
set
"role" = $1
where
"usersId" = $2
and "albumsId" = $3
returning
*
-- AlbumUserRepository.delete
delete from "albums_shared_users_users"
where
"usersId" = $1
and "albumsId" = $2