From d351070ea47015c0f9d581943d74b9a4789e6cd6 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sat, 3 Oct 2020 15:05:32 -0700 Subject: [PATCH] Updated Photos version 5 database (markdown) --- Photos-version-5-database.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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