diff --git a/Photos-version-5-database.md b/Photos-version-5-database.md index 2014afd..50c2001 100644 --- a/Photos-version-5-database.md +++ b/Photos-version-5-database.md @@ -53,6 +53,17 @@ Import sessions are stored in `ZGENERICALBUM` with 'ZKIND = 1506`. When a photo In Photos 5, the import order is stored in a similar manner as the discussion above on album sort order. The value in `ZGENERICASSET.Z_FOK_IMPORTSESSION` defines the sort order for an import session. In Photos 6, `ZGENERICASSET` is renamed `ZASSET` and it no longer contains the the `Z_FOK_IMPORTSESSION` column. I've not yet determined how Photos 6 stores the import order. +## ZINTERNALRESOURCE + +Appears to contain additional information on every resource (e.g. original, edited, thumbnail) in the database. + +- `ZDATASTORESUBTYPE`: type of the resource + - 1: original + - 2: edited + - 3: cloud resource + - 17: raw + + **TODO** Document the following * [ ] Joining assets