Updated Photos version 5 database (markdown)

Rhet Turnbull
2020-10-03 15:05:32 -07:00
parent ff7ad62b0c
commit d351070ea4

@@ -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