refactor: remove tag entity (#17462)

This commit is contained in:
Jason Rasmussen 2025-04-08 10:52:54 -04:00 committed by GitHub
parent 75bc32b47b
commit b6c5a03533
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 92 additions and 50 deletions

View file

@ -210,6 +210,32 @@ where
limit
$3
-- AssetRepository.getAssetForSidecarWriteJob
select
"id",
"sidecarPath",
"originalPath",
(
select
coalesce(json_agg(agg), '[]')
from
(
select
"tags"."value"
from
"tags"
inner join "tag_asset" on "tags"."id" = "tag_asset"."tagsId"
where
"assets"."id" = "tag_asset"."assetsId"
) as agg
) as "tags"
from
"assets"
where
"assets"."id" = $1::uuid
limit
$2
-- AssetRepository.getById
select
"assets".*