mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
parent
f32d4f15b6
commit
493d85b021
34 changed files with 689 additions and 257 deletions
|
|
@ -168,6 +168,30 @@ from
|
|||
where
|
||||
"livePhotoVideoId" = $1::uuid
|
||||
|
||||
-- AssetRepository.getFileSamples
|
||||
select
|
||||
"asset"."id",
|
||||
"asset"."originalPath",
|
||||
"asset"."sidecarPath",
|
||||
"asset"."encodedVideoPath",
|
||||
(
|
||||
select
|
||||
coalesce(json_agg(agg), '[]')
|
||||
from
|
||||
(
|
||||
select
|
||||
"path"
|
||||
from
|
||||
"asset_file"
|
||||
where
|
||||
"asset"."id" = "asset_file"."assetId"
|
||||
) as agg
|
||||
) as "files"
|
||||
from
|
||||
"asset"
|
||||
limit
|
||||
3
|
||||
|
||||
-- AssetRepository.getById
|
||||
select
|
||||
"asset".*
|
||||
|
|
|
|||
|
|
@ -12,6 +12,17 @@ delete from "person"
|
|||
where
|
||||
"person"."id" in ($1)
|
||||
|
||||
-- PersonRepository.getFileSamples
|
||||
select
|
||||
"id",
|
||||
"thumbnailPath"
|
||||
from
|
||||
"person"
|
||||
where
|
||||
"thumbnailPath" != ''
|
||||
limit
|
||||
3
|
||||
|
||||
-- PersonRepository.getAllForUser
|
||||
select
|
||||
"person".*
|
||||
|
|
|
|||
|
|
@ -78,6 +78,17 @@ where
|
|||
"user"."isAdmin" = $1
|
||||
and "user"."deletedAt" is null
|
||||
|
||||
-- UserRepository.getFileSamples
|
||||
select
|
||||
"id",
|
||||
"profileImagePath"
|
||||
from
|
||||
"user"
|
||||
where
|
||||
"profileImagePath" != ''
|
||||
limit
|
||||
3
|
||||
|
||||
-- UserRepository.hasAdmin
|
||||
select
|
||||
"user"."id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue