1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00: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"; 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 ## System Config
```sql title="Custom settings" ```sql title="Custom settings"