1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-21 18:16:55 +02:00

docs: get asset owner by ID from database (#14174)

asset owner
This commit is contained in:
Matthew Momjian 2024-11-16 14:43:32 -05:00 committed by GitHub
parent f5c4af73aa
commit 4b5657c21e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,6 +98,10 @@ SELECT * FROM "move_history";
SELECT * FROM "users";
```
```sql title="Get owner info from asset ID"
SELECT "users".* FROM "users" JOIN "assets" ON "users"."id" = "assets"."ownerId" WHERE "assets"."id" = 'fa310b01-2f26-4b7a-9042-d578226e021f';
```
## System Config
```sql title="Custom settings"