photos_11.2.sql 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  1. CREATE TABLE ZADDITIONALASSETATTRIBUTES ( Z_PK INTEGER PRIMARY KEY,
  2. Z_ENT INTEGER,
  3. Z_OPT INTEGER,
  4. ZALLOWEDFORANALYSIS INTEGER,
  5. ZCAMERACAPTUREDEVICE INTEGER,
  6. ZCLOUDAVALANCHEPICKTYPE INTEGER,
  7. ZCLOUDGROUPINGSTATE INTEGER,
  8. ZCLOUDKINDSUBTYPE INTEGER,
  9. ZCLOUDRECOVERYSTATE INTEGER,
  10. ZCLOUDSTATERECOVERYATTEMPTSCOUNT INTEGER,
  11. ZEMBEDDEDTHUMBNAILHEIGHT INTEGER,
  12. ZEMBEDDEDTHUMBNAILLENGTH INTEGER,
  13. ZEMBEDDEDTHUMBNAILOFFSET INTEGER,
  14. ZEMBEDDEDTHUMBNAILWIDTH INTEGER,
  15. ZEXTERNALUSAGEINTENT INTEGER,
  16. ZIMPORTEDBY INTEGER,
  17. ZLOCATIONHASH INTEGER,
  18. ZORIGINALFILESIZE INTEGER,
  19. ZORIGINALHEIGHT INTEGER,
  20. ZORIGINALORIENTATION INTEGER,
  21. ZORIGINALRESOURCECHOICE INTEGER,
  22. ZORIGINALWIDTH INTEGER,
  23. ZPENDINGPLAYCOUNT INTEGER,
  24. ZPENDINGSHARECOUNT INTEGER,
  25. ZPENDINGVIEWCOUNT INTEGER,
  26. ZPLAYCOUNT INTEGER,
  27. ZPTPTRASHEDSTATE INTEGER,
  28. ZREVERSELOCATIONDATAISVALID INTEGER,
  29. ZSCENEANALYSISVERSION INTEGER,
  30. ZSHARECOUNT INTEGER,
  31. ZSHIFTEDLOCATIONISVALID INTEGER,
  32. ZTIMEZONEOFFSET INTEGER,
  33. ZUPLOADATTEMPTS INTEGER,
  34. ZVARIATIONSUGGESTIONSTATES INTEGER,
  35. ZVIDEOCPDISPLAYTIMESCALE INTEGER,
  36. ZVIDEOCPDISPLAYVALUE INTEGER,
  37. ZVIDEOCPDURATIONTIMESCALE INTEGER,
  38. ZVIEWCOUNT INTEGER,
  39. ZASSET INTEGER,
  40. Z27_ASSET INTEGER,
  41. ZASSETDESCRIPTION INTEGER,
  42. ZUNMANAGEDADJUSTMENT INTEGER,
  43. ZLASTUPLOADATTEMPTDATE TIMESTAMP,
  44. ZSCENEANALYSISTIMESTAMP TIMESTAMP,
  45. ZADJUSTEDFINGERPRINT VARCHAR,
  46. ZCREATORBUNDLEID VARCHAR,
  47. ZCUSTOMCOLLECTIONNAME VARCHAR,
  48. ZCUSTOMCOLLECTIONUUID VARCHAR,
  49. ZCUSTOMMOMENTNAME VARCHAR,
  50. ZCUSTOMMOMENTUUID VARCHAR,
  51. ZEDITORBUNDLEID VARCHAR,
  52. ZEXIFTIMESTAMPSTRING VARCHAR,
  53. ZIMPORTSESSIONID VARCHAR,
  54. ZMASTERFINGERPRINT VARCHAR,
  55. ZMONTAGE VARCHAR,
  56. ZORIGINALASSETSUUID VARCHAR,
  57. ZORIGINALFILENAME VARCHAR,
  58. ZORIGINATINGASSETIDENTIFIER VARCHAR,
  59. ZPUBLICGLOBALUUID VARCHAR,
  60. ZTIMEZONENAME VARCHAR,
  61. ZTITLE VARCHAR,
  62. ZDISTANCEIDENTITY BLOB,
  63. ZFACEREGIONS BLOB,
  64. ZORIGINALHASH BLOB,
  65. ZPLACEANNOTATIONDATA BLOB,
  66. ZREVERSELOCATIONDATA BLOB,
  67. ZSHIFTEDLOCATIONDATA BLOB );
  68. CREATE TABLE Z_1KEYWORDS ( Z_1ASSETATTRIBUTES INTEGER,
  69. Z_30KEYWORDS INTEGER,
  70. PRIMARY KEY (Z_1ASSETATTRIBUTES,
  71. Z_30KEYWORDS) );
  72. CREATE TABLE ZADJUSTMENT ( Z_PK INTEGER PRIMARY KEY,
  73. Z_ENT INTEGER,
  74. Z_OPT INTEGER,
  75. ZIDENTIFIER INTEGER,
  76. ZASSET INTEGER,
  77. Z27_ASSET INTEGER,
  78. Z_FOK_ASSET INTEGER,
  79. ZFILTERNAME VARCHAR,
  80. ZFILTERSETTINGS BLOB );
  81. CREATE TABLE ZALBUMLIST ( Z_PK INTEGER PRIMARY KEY,
  82. Z_ENT INTEGER,
  83. Z_OPT INTEGER,
  84. ZIDENTIFIER INTEGER,
  85. ZNEEDSREORDERINGNUMBER INTEGER,
  86. ZUUID VARCHAR );
  87. CREATE TABLE ZASSETANALYSISSTATE ( Z_PK INTEGER PRIMARY KEY,
  88. Z_ENT INTEGER,
  89. Z_OPT INTEGER,
  90. ZANALYSISSTATE INTEGER,
  91. ZWORKERFLAGS INTEGER,
  92. ZWORKERTYPE INTEGER,
  93. ZASSET INTEGER,
  94. Z27_ASSET INTEGER,
  95. ZIGNOREUNTILDATE TIMESTAMP,
  96. ZLASTIGNOREDDATE TIMESTAMP,
  97. ZSORTTOKEN FLOAT,
  98. ZASSETUUID VARCHAR );
  99. CREATE TABLE ZASSETDESCRIPTION ( Z_PK INTEGER PRIMARY KEY,
  100. Z_ENT INTEGER,
  101. Z_OPT INTEGER,
  102. ZASSETATTRIBUTES INTEGER,
  103. ZLONGDESCRIPTION VARCHAR );
  104. CREATE TABLE ZCLOUDFEEDENTRY ( Z_PK INTEGER PRIMARY KEY,
  105. Z_ENT INTEGER,
  106. Z_OPT INTEGER,
  107. ZENTRYPRIORITYNUMBER INTEGER,
  108. ZENTRYTYPENUMBER INTEGER,
  109. ZENTRYDATE TIMESTAMP,
  110. ZENTRYALBUMGUID VARCHAR,
  111. ZENTRYINVITATIONRECORDGUID VARCHAR,
  112. ZENTRYCLOUDASSETGUID VARCHAR );
  113. CREATE TABLE ZCLOUDMASTER ( Z_PK INTEGER PRIMARY KEY,
  114. Z_ENT INTEGER,
  115. Z_OPT INTEGER,
  116. ZCLOUDLOCALSTATE INTEGER,
  117. ZFULLSIZEJPEGSOURCE INTEGER,
  118. ZORIGINALORIENTATION INTEGER,
  119. ZMEDIAMETADATA INTEGER,
  120. ZCREATIONDATE TIMESTAMP,
  121. ZIMPORTDATE TIMESTAMP,
  122. ZCLOUDMASTERGUID VARCHAR,
  123. ZIMPORTSESSIONID VARCHAR,
  124. ZMEDIAMETADATATYPE VARCHAR,
  125. ZORIGINALFILENAME VARCHAR,
  126. ZORIGINATINGASSETIDENTIFIER VARCHAR,
  127. ZUNIFORMTYPEIDENTIFIER VARCHAR );
  128. CREATE TABLE ZCLOUDMASTERMEDIAMETADATA ( Z_PK INTEGER PRIMARY KEY,
  129. Z_ENT INTEGER,
  130. Z_OPT INTEGER,
  131. ZCLOUDMASTER INTEGER,
  132. ZDATA BLOB );
  133. CREATE TABLE ZCLOUDRESOURCE ( Z_PK INTEGER PRIMARY KEY,
  134. Z_ENT INTEGER,
  135. Z_OPT INTEGER,
  136. ZCLOUDLOCALSTATE INTEGER,
  137. ZFILESIZE INTEGER,
  138. ZHEIGHT INTEGER,
  139. ZISAVAILABLE INTEGER,
  140. ZISLOCALLYAVAILABLE INTEGER,
  141. ZPREFETCHCOUNT INTEGER,
  142. ZTYPE INTEGER,
  143. ZWIDTH INTEGER,
  144. ZASSET INTEGER,
  145. Z27_ASSET INTEGER,
  146. ZCLOUDMASTER INTEGER,
  147. ZDATECREATED TIMESTAMP,
  148. ZLASTONDEMANDDOWNLOADDATE TIMESTAMP,
  149. ZLASTPREFETCHDATE TIMESTAMP,
  150. ZPRUNEDAT TIMESTAMP,
  151. ZASSETUUID VARCHAR,
  152. ZFILEPATH VARCHAR,
  153. ZFINGERPRINT VARCHAR,
  154. ZITEMIDENTIFIER VARCHAR,
  155. ZUNIFORMTYPEIDENTIFIER VARCHAR );
  156. CREATE TABLE ZCLOUDSHAREDALBUMINVITATIONRECORD ( Z_PK INTEGER PRIMARY KEY,
  157. Z_ENT INTEGER,
  158. Z_OPT INTEGER,
  159. ZINVITATIONSTATE INTEGER,
  160. ZINVITATIONSTATELOCAL INTEGER,
  161. ZINVITEEEMAILKEY INTEGER,
  162. ZISMINE INTEGER,
  163. ZALBUM INTEGER,
  164. Z_FOK_ALBUM INTEGER,
  165. ZINVITEESUBSCRIPTIONDATE TIMESTAMP,
  166. ZALBUMGUID VARCHAR,
  167. ZCLOUDGUID VARCHAR,
  168. ZINVITEEFIRSTNAME VARCHAR,
  169. ZINVITEEFULLNAME VARCHAR,
  170. ZINVITEEHASHEDPERSONID VARCHAR,
  171. ZINVITEELASTNAME VARCHAR );
  172. CREATE TABLE ZCLOUDSHAREDCOMMENT ( Z_PK INTEGER PRIMARY KEY,
  173. Z_ENT INTEGER,
  174. Z_OPT INTEGER,
  175. ZISBATCHCOMMENT INTEGER,
  176. ZISCAPTION INTEGER,
  177. ZISDELETABLE INTEGER,
  178. ZISLIKE INTEGER,
  179. ZISMYCOMMENT INTEGER,
  180. ZCLOUDFEEDCOMMENTENTRY INTEGER,
  181. ZCLOUDFEEDLIKECOMMENTENTRY INTEGER,
  182. ZCOMMENTEDASSET INTEGER,
  183. Z27_COMMENTEDASSET INTEGER,
  184. ZLIKEDASSET INTEGER,
  185. Z27_LIKEDASSET INTEGER,
  186. Z_FOK_LIKEDASSET INTEGER,
  187. Z_FOK_CLOUDFEEDCOMMENTENTRY INTEGER,
  188. Z_FOK_COMMENTEDASSET INTEGER,
  189. Z_FOK_CLOUDFEEDLIKECOMMENTENTRY INTEGER,
  190. ZCOMMENTCLIENTDATE TIMESTAMP,
  191. ZCOMMENTDATE TIMESTAMP,
  192. ZCLOUDGUID VARCHAR,
  193. ZCOMMENTTEXT VARCHAR,
  194. ZCOMMENTTYPE VARCHAR,
  195. ZCOMMENTERHASHEDPERSONID VARCHAR );
  196. CREATE TABLE ZDEFERREDREBUILDFACE ( Z_PK INTEGER PRIMARY KEY,
  197. Z_ENT INTEGER,
  198. Z_OPT INTEGER,
  199. ZCLOUDNAMESOURCE INTEGER,
  200. ZCLUSTERREJECTED INTEGER,
  201. ZFACEALGORITHMVERSION INTEGER,
  202. ZHIDDEN INTEGER,
  203. ZMANUAL INTEGER,
  204. ZNAMESOURCE INTEGER,
  205. ZREJECTED INTEGER,
  206. ZREPRESENTATIVE INTEGER,
  207. ZCENTERX FLOAT,
  208. ZCENTERY FLOAT,
  209. ZSIZE FLOAT,
  210. ZASSETCLOUDGUID VARCHAR,
  211. ZASSETUUID VARCHAR,
  212. ZPERSONUUID VARCHAR );
  213. CREATE TABLE ZDETECTEDFACE ( Z_PK INTEGER PRIMARY KEY,
  214. Z_ENT INTEGER,
  215. Z_OPT INTEGER,
  216. ZASSETVISIBLE INTEGER,
  217. ZCLOUDLOCALSTATE INTEGER,
  218. ZCLOUDNAMESOURCE INTEGER,
  219. ZCLUSTERSEQUENCENUMBER INTEGER,
  220. ZCONFIRMEDFACECROPGENERATIONSTATE INTEGER,
  221. ZEXPRESSIONTYPE1 INTEGER,
  222. ZEXPRESSIONTYPE2 INTEGER,
  223. ZEXPRESSIONTYPE3 INTEGER,
  224. ZFACEALGORITHMVERSION INTEGER,
  225. ZHASSMILE INTEGER,
  226. ZHIDDEN INTEGER,
  227. ZISINTRASH INTEGER,
  228. ZISLEFTEYECLOSED INTEGER,
  229. ZISRIGHTEYECLOSED INTEGER,
  230. ZMANUAL INTEGER,
  231. ZNAMESOURCE INTEGER,
  232. ZQUALITYMEASURE INTEGER,
  233. ZSOURCEHEIGHT INTEGER,
  234. ZSOURCEWIDTH INTEGER,
  235. ZTRAININGTYPE INTEGER,
  236. ZASSET INTEGER,
  237. Z27_ASSET INTEGER,
  238. ZFACECROP INTEGER,
  239. ZFACEGROUP INTEGER,
  240. ZFACEGROUPBEINGKEYFACE INTEGER,
  241. ZFACEPRINT INTEGER,
  242. ZPERSON INTEGER,
  243. ZPERSONBEINGKEYFACE INTEGER,
  244. ZADJUSTMENTVERSION TIMESTAMP,
  245. ZBLURSCORE FLOAT,
  246. ZCENTERX FLOAT,
  247. ZCENTERY FLOAT,
  248. ZEXPRESSIONCONFIDENCE FLOAT,
  249. ZEXPRESSIONSCORE1 FLOAT,
  250. ZEXPRESSIONSCORE2 FLOAT,
  251. ZEXPRESSIONSCORE3 FLOAT,
  252. ZLEFTEYEX FLOAT,
  253. ZLEFTEYEY FLOAT,
  254. ZMOUTHX FLOAT,
  255. ZMOUTHY FLOAT,
  256. ZPOSEPITCH FLOAT,
  257. ZPOSEROLL FLOAT,
  258. ZPOSEYAW FLOAT,
  259. ZRIGHTEYEX FLOAT,
  260. ZRIGHTEYEY FLOAT,
  261. ZSIZE FLOAT,
  262. ZMASTERIDENTIFIER VARCHAR,
  263. ZUUID VARCHAR );
  264. CREATE TABLE ZDETECTEDFACEGROUP ( Z_PK INTEGER PRIMARY KEY,
  265. Z_ENT INTEGER,
  266. Z_OPT INTEGER,
  267. ZPERSONBUILDERSTATE INTEGER,
  268. ZUNNAMEDFACECOUNT INTEGER,
  269. ZASSOCIATEDPERSON INTEGER,
  270. ZKEYFACE INTEGER,
  271. ZUUID VARCHAR );
  272. CREATE TABLE ZDETECTEDFACEPRINT ( Z_PK INTEGER PRIMARY KEY,
  273. Z_ENT INTEGER,
  274. Z_OPT INTEGER,
  275. ZFACEPRINTVERSION INTEGER,
  276. ZFACE INTEGER,
  277. ZDATA BLOB );
  278. CREATE TABLE ZFACECROP ( Z_PK INTEGER PRIMARY KEY,
  279. Z_ENT INTEGER,
  280. Z_OPT INTEGER,
  281. ZCLOUDLOCALSTATE INTEGER,
  282. ZCLOUDTYPE INTEGER,
  283. ZSTATE INTEGER,
  284. ZTYPE INTEGER,
  285. ZASSET INTEGER,
  286. Z27_ASSET INTEGER,
  287. ZFACE INTEGER,
  288. ZPERSON INTEGER,
  289. ZINVALIDMERGECANDIDATEPERSONUUID VARCHAR,
  290. ZUUID VARCHAR,
  291. ZRESOURCEDATA BLOB );
  292. CREATE TABLE ZGENERICALBUM ( Z_PK INTEGER PRIMARY KEY,
  293. Z_ENT INTEGER,
  294. Z_OPT INTEGER,
  295. ZCACHEDCOUNT INTEGER,
  296. ZCACHEDPHOTOSCOUNT INTEGER,
  297. ZCACHEDVIDEOSCOUNT INTEGER,
  298. ZCLOUDLOCALSTATE INTEGER,
  299. ZCUSTOMSORTASCENDING INTEGER,
  300. ZCUSTOMSORTKEY INTEGER,
  301. ZISPINNED INTEGER,
  302. ZKIND INTEGER,
  303. ZPENDINGITEMSCOUNT INTEGER,
  304. ZPENDINGITEMSTYPE INTEGER,
  305. ZSYNCEVENTORDERKEY INTEGER,
  306. ZTRASHEDSTATE INTEGER,
  307. ZCUSTOMKEYASSET INTEGER,
  308. Z27_CUSTOMKEYASSET INTEGER,
  309. ZKEYASSET INTEGER,
  310. Z27_KEYASSET INTEGER,
  311. ZPARENTFOLDER INTEGER,
  312. ZSECONDARYKEYASSET INTEGER,
  313. Z27_SECONDARYKEYASSET INTEGER,
  314. ZTERTIARYKEYASSET INTEGER,
  315. Z27_TERTIARYKEYASSET INTEGER,
  316. ZCLOUDALBUMSUBTYPE INTEGER,
  317. ZCLOUDMULTIPLECONTRIBUTORSENABLED INTEGER,
  318. ZCLOUDMULTIPLECONTRIBUTORSENABLEDLOCAL INTEGER,
  319. ZCLOUDNOTIFICATIONSENABLED INTEGER,
  320. ZCLOUDOWNEREMAILKEY INTEGER,
  321. ZCLOUDOWNERISWHITELISTED INTEGER,
  322. ZCLOUDPUBLICURLENABLED INTEGER,
  323. ZCLOUDPUBLICURLENABLEDLOCAL INTEGER,
  324. ZCLOUDRELATIONSHIPSTATE INTEGER,
  325. ZCLOUDRELATIONSHIPSTATELOCAL INTEGER,
  326. ZHASUNSEENCONTENT INTEGER,
  327. ZISOWNED INTEGER,
  328. ZUNSEENASSETSCOUNT INTEGER,
  329. ZKEYASSETFACEIDENTIFIER INTEGER,
  330. ZKEYASSETFACETHUMBNAILINDEX INTEGER,
  331. ZWALLPAPERALBUMTYPE INTEGER,
  332. Z_FOK_PARENTFOLDER INTEGER,
  333. ZENDDATE TIMESTAMP,
  334. ZSTARTDATE TIMESTAMP,
  335. ZTRASHEDDATE TIMESTAMP,
  336. ZCLOUDCREATIONDATE TIMESTAMP,
  337. ZCLOUDLASTCONTRIBUTIONDATE TIMESTAMP,
  338. ZCLOUDLASTINTERESTINGCHANGEDATE TIMESTAMP,
  339. ZCLOUDSUBSCRIPTIONDATE TIMESTAMP,
  340. ZCLOUDGUID VARCHAR,
  341. ZIMPORTSESSIONID VARCHAR,
  342. ZTITLE VARCHAR,
  343. ZUUID VARCHAR,
  344. ZCLOUDOWNERFIRSTNAME VARCHAR,
  345. ZCLOUDOWNERFULLNAME VARCHAR,
  346. ZCLOUDOWNERHASHEDPERSONID VARCHAR,
  347. ZCLOUDOWNERLASTNAME VARCHAR,
  348. ZCLOUDPERSONID VARCHAR,
  349. ZPUBLICURL VARCHAR,
  350. ZCUSTOMQUERYTYPE VARCHAR,
  351. ZCLOUDMETADATA BLOB,
  352. ZCUSTOMQUERYPARAMETERS BLOB );
  353. CREATE TABLE Z_19ALBUMLISTS ( Z_19ALBUMS INTEGER,
  354. Z_3ALBUMLISTS INTEGER,
  355. Z_FOK_19ALBUMS INTEGER,
  356. PRIMARY KEY (Z_19ALBUMS,
  357. Z_3ALBUMLISTS) );
  358. CREATE TABLE Z_20ASSETS ( Z_20ALBUMS INTEGER,
  359. Z_27ASSETS INTEGER,
  360. Z_FOK_27ASSETS INTEGER,
  361. PRIMARY KEY (Z_20ALBUMS,
  362. Z_27ASSETS) );
  363. CREATE TABLE Z_27MEMORIESBEINGEXTENDEDCURATEDASSETS ( Z_27EXTENDEDCURATEDASSETS INTEGER,
  364. Z_32MEMORIESBEINGEXTENDEDCURATEDASSETS INTEGER,
  365. PRIMARY KEY (Z_27EXTENDEDCURATEDASSETS,
  366. Z_32MEMORIESBEINGEXTENDEDCURATEDASSETS) );
  367. CREATE TABLE Z_27MEMORIESBEINGREPRESENTATIVEASSETS ( Z_27REPRESENTATIVEASSETS INTEGER,
  368. Z_32MEMORIESBEINGREPRESENTATIVEASSETS INTEGER,
  369. PRIMARY KEY (Z_27REPRESENTATIVEASSETS,
  370. Z_32MEMORIESBEINGREPRESENTATIVEASSETS) );
  371. CREATE TABLE Z_27MEMORIESBEINGCURATEDASSETS ( Z_27CURATEDASSETS INTEGER,
  372. Z_32MEMORIESBEINGCURATEDASSETS INTEGER,
  373. PRIMARY KEY (Z_27CURATEDASSETS,
  374. Z_32MEMORIESBEINGCURATEDASSETS) );
  375. CREATE TABLE Z_27MEMORIESBEINGMOVIECURATEDASSETS ( Z_27MOVIECURATEDASSETS INTEGER,
  376. Z_32MEMORIESBEINGMOVIECURATEDASSETS INTEGER,
  377. PRIMARY KEY (Z_27MOVIECURATEDASSETS,
  378. Z_32MEMORIESBEINGMOVIECURATEDASSETS) );
  379. CREATE TABLE ZKEYWORD ( Z_PK INTEGER PRIMARY KEY,
  380. Z_ENT INTEGER,
  381. Z_OPT INTEGER,
  382. ZTITLE VARCHAR UNIQUE );
  383. CREATE TABLE ZLEGACYFACE ( Z_PK INTEGER PRIMARY KEY,
  384. Z_ENT INTEGER,
  385. Z_OPT INTEGER,
  386. ZIDENTIFIER INTEGER,
  387. ZASSET INTEGER,
  388. Z27_ASSET INTEGER,
  389. ZALBUMUUID VARCHAR,
  390. ZRELATIVERECTVALUE BLOB );
  391. CREATE TABLE ZMEMORY ( Z_PK INTEGER PRIMARY KEY,
  392. Z_ENT INTEGER,
  393. Z_OPT INTEGER,
  394. ZCATEGORY INTEGER,
  395. ZCLOUDLOCALSTATE INTEGER,
  396. ZFAVORITE INTEGER,
  397. ZNOTIFICATIONSTATE INTEGER,
  398. ZPENDING INTEGER,
  399. ZPENDINGPLAYCOUNT INTEGER,
  400. ZPENDINGSHARECOUNT INTEGER,
  401. ZPENDINGVIEWCOUNT INTEGER,
  402. ZPHOTOSGRAPHVERSION INTEGER,
  403. ZPLAYCOUNT INTEGER,
  404. ZREJECTED INTEGER,
  405. ZSHARECOUNT INTEGER,
  406. ZSUBCATEGORY INTEGER,
  407. ZUSERCREATED INTEGER,
  408. ZVIEWCOUNT INTEGER,
  409. ZKEYASSET INTEGER,
  410. Z27_KEYASSET INTEGER,
  411. ZCREATIONDATE TIMESTAMP,
  412. ZLASTMOVIEPLAYEDDATE TIMESTAMP,
  413. ZLASTVIEWEDDATE TIMESTAMP,
  414. ZSCORE FLOAT,
  415. ZSUBTITLE VARCHAR,
  416. ZTITLE VARCHAR,
  417. ZUUID VARCHAR,
  418. ZMOVIEASSETSTATE BLOB,
  419. ZASSETLISTPREDICATE BLOB,
  420. ZBLACKLISTEDFEATURE BLOB,
  421. ZMOVIEDATA BLOB,
  422. ZPHOTOSGRAPHDATA BLOB );
  423. CREATE TABLE ZMOMENTLIST ( Z_PK INTEGER PRIMARY KEY,
  424. Z_ENT INTEGER,
  425. Z_OPT INTEGER,
  426. ZGENERATIONTYPE INTEGER,
  427. ZGRANULARITYLEVEL INTEGER,
  428. ZREVERSELOCATIONDATACONTAINSLOCATION INTEGER,
  429. ZREVERSELOCATIONDATAISVALID INTEGER,
  430. ZSORTINDEX INTEGER,
  431. ZTRASHEDSTATE INTEGER,
  432. ZENDDATE TIMESTAMP,
  433. ZREPRESENTATIVEDATE TIMESTAMP,
  434. ZSTARTDATE TIMESTAMP,
  435. ZTITLE VARCHAR,
  436. ZTITLE2 VARCHAR,
  437. ZTITLE3 VARCHAR,
  438. ZUUID VARCHAR,
  439. ZREVERSELOCATIONDATA BLOB );
  440. CREATE TABLE ZPERSON ( Z_PK INTEGER PRIMARY KEY,
  441. Z_ENT INTEGER,
  442. Z_OPT INTEGER,
  443. ZCLOUDLOCALSTATE INTEGER,
  444. ZCLOUDVERIFIEDTYPE INTEGER,
  445. ZFACECOUNT INTEGER,
  446. ZINPERSONNAMINGMODEL INTEGER,
  447. ZKEYFACEPICKSOURCE INTEGER,
  448. ZMANUALORDER INTEGER,
  449. ZTYPE INTEGER,
  450. ZVERIFIEDTYPE INTEGER,
  451. ZASSOCIATEDFACEGROUP INTEGER,
  452. ZKEYFACE INTEGER,
  453. ZMERGETARGETPERSON INTEGER,
  454. ZDISPLAYNAME VARCHAR,
  455. ZFULLNAME VARCHAR,
  456. ZPERSONUUID VARCHAR,
  457. ZPERSONURI VARCHAR,
  458. ZCONTACTMATCHINGDICTIONARY BLOB );
  459. CREATE TABLE ZPERSONREFERENCE ( Z_PK INTEGER PRIMARY KEY,
  460. Z_ENT INTEGER,
  461. Z_OPT INTEGER,
  462. ZASSETATTRIBUTES INTEGER,
  463. ZPERSON INTEGER,
  464. ZPERSONUUID VARCHAR,
  465. ZPERSONDATA BLOB );
  466. CREATE TABLE ZSCENECLASSIFICATION ( Z_PK INTEGER PRIMARY KEY,
  467. Z_ENT INTEGER,
  468. Z_OPT INTEGER,
  469. ZSCENEIDENTIFIER INTEGER,
  470. ZASSETATTRIBUTES INTEGER,
  471. ZCONFIDENCE FLOAT );
  472. CREATE TABLE ZSEARCHDATA ( Z_PK INTEGER PRIMARY KEY,
  473. Z_ENT INTEGER,
  474. Z_OPT INTEGER,
  475. ZVALID INTEGER,
  476. ZASSET INTEGER,
  477. Z27_ASSET INTEGER,
  478. ZDATA BLOB );
  479. CREATE TABLE ZSIDECARFILE ( Z_PK INTEGER PRIMARY KEY,
  480. Z_ENT INTEGER,
  481. Z_OPT INTEGER,
  482. ZCOMPRESSEDSIZE INTEGER,
  483. ZINDEX INTEGER,
  484. ZPTPTRASHEDSTATE INTEGER,
  485. ZASSET INTEGER,
  486. Z27_ASSET INTEGER,
  487. ZCAPTUREDATE TIMESTAMP,
  488. ZMODIFICATIONDATE TIMESTAMP,
  489. ZFILENAME VARCHAR,
  490. ZORIGINALFILENAME VARCHAR,
  491. ZUNIFORMTYPEIDENTIFIER VARCHAR );
  492. CREATE TABLE ZUNMANAGEDADJUSTMENT ( Z_PK INTEGER PRIMARY KEY,
  493. Z_ENT INTEGER,
  494. Z_OPT INTEGER,
  495. ZADJUSTMENTBASEIMAGEFORMAT INTEGER,
  496. ZADJUSTMENTRENDERTYPES INTEGER,
  497. ZASSETATTRIBUTES INTEGER,
  498. ZADJUSTMENTTIMESTAMP TIMESTAMP,
  499. ZADJUSTMENTFORMATIDENTIFIER VARCHAR,
  500. ZADJUSTMENTFORMATVERSION VARCHAR,
  501. ZEDITORLOCALIZEDNAME VARCHAR,
  502. ZOTHERADJUSTMENTSFINGERPRINT VARCHAR,
  503. ZSIMILARTOORIGINALADJUSTMENTSFINGERPRINT VARCHAR,
  504. ZUUID VARCHAR );
  505. CREATE INDEX ZADDITIONALASSETATTRIBUTES_ZASSET_INDEX ON ZADDITIONALASSETATTRIBUTES (ZASSET);
  506. CREATE INDEX ZADDITIONALASSETATTRIBUTES_ZASSETDESCRIPTION_INDEX ON ZADDITIONALASSETATTRIBUTES (ZASSETDESCRIPTION);
  507. CREATE INDEX ZADDITIONALASSETATTRIBUTES_ZUNMANAGEDADJUSTMENT_INDEX ON ZADDITIONALASSETATTRIBUTES (ZUNMANAGEDADJUSTMENT);
  508. CREATE INDEX Z_1KEYWORDS_Z_30KEYWORDS_INDEX ON Z_1KEYWORDS (Z_30KEYWORDS,
  509. Z_1ASSETATTRIBUTES);
  510. CREATE INDEX ZADJUSTMENT_ZASSET_INDEX ON ZADJUSTMENT (ZASSET);
  511. CREATE INDEX ZASSETANALYSISSTATE_ZASSET_INDEX ON ZASSETANALYSISSTATE (ZASSET);
  512. CREATE INDEX ZASSETDESCRIPTION_ZASSETATTRIBUTES_INDEX ON ZASSETDESCRIPTION (ZASSETATTRIBUTES);
  513. CREATE INDEX ZCLOUDFEEDENTRY_Z_ENT_INDEX ON ZCLOUDFEEDENTRY (Z_ENT);
  514. CREATE INDEX ZCLOUDMASTER_ZMEDIAMETADATA_INDEX ON ZCLOUDMASTER (ZMEDIAMETADATA);
  515. CREATE INDEX ZCLOUDMASTERMEDIAMETADATA_ZCLOUDMASTER_INDEX ON ZCLOUDMASTERMEDIAMETADATA (ZCLOUDMASTER);
  516. CREATE INDEX ZCLOUDRESOURCE_ZASSET_INDEX ON ZCLOUDRESOURCE (ZASSET);
  517. CREATE INDEX ZCLOUDRESOURCE_ZCLOUDMASTER_INDEX ON ZCLOUDRESOURCE (ZCLOUDMASTER);
  518. CREATE INDEX ZCLOUDSHAREDALBUMINVITATIONRECORD_ZALBUM_INDEX ON ZCLOUDSHAREDALBUMINVITATIONRECORD (ZALBUM);
  519. CREATE INDEX ZCLOUDSHAREDCOMMENT_ZCLOUDFEEDCOMMENTENTRY_INDEX ON ZCLOUDSHAREDCOMMENT (ZCLOUDFEEDCOMMENTENTRY);
  520. CREATE INDEX ZCLOUDSHAREDCOMMENT_ZCLOUDFEEDLIKECOMMENTENTRY_INDEX ON ZCLOUDSHAREDCOMMENT (ZCLOUDFEEDLIKECOMMENTENTRY);
  521. CREATE INDEX ZCLOUDSHAREDCOMMENT_ZCOMMENTEDASSET_INDEX ON ZCLOUDSHAREDCOMMENT (ZCOMMENTEDASSET);
  522. CREATE INDEX ZCLOUDSHAREDCOMMENT_ZLIKEDASSET_INDEX ON ZCLOUDSHAREDCOMMENT (ZLIKEDASSET);
  523. CREATE INDEX ZDETECTEDFACE_ZASSET_INDEX ON ZDETECTEDFACE (ZASSET);
  524. CREATE INDEX ZDETECTEDFACE_ZFACECROP_INDEX ON ZDETECTEDFACE (ZFACECROP);
  525. CREATE INDEX ZDETECTEDFACE_ZFACEGROUP_INDEX ON ZDETECTEDFACE (ZFACEGROUP);
  526. CREATE INDEX ZDETECTEDFACE_ZFACEGROUPBEINGKEYFACE_INDEX ON ZDETECTEDFACE (ZFACEGROUPBEINGKEYFACE);
  527. CREATE INDEX ZDETECTEDFACE_ZFACEPRINT_INDEX ON ZDETECTEDFACE (ZFACEPRINT);
  528. CREATE INDEX ZDETECTEDFACE_ZPERSON_INDEX ON ZDETECTEDFACE (ZPERSON);
  529. CREATE INDEX ZDETECTEDFACE_ZPERSONBEINGKEYFACE_INDEX ON ZDETECTEDFACE (ZPERSONBEINGKEYFACE);
  530. CREATE INDEX ZDETECTEDFACEGROUP_ZASSOCIATEDPERSON_INDEX ON ZDETECTEDFACEGROUP (ZASSOCIATEDPERSON);
  531. CREATE INDEX ZDETECTEDFACEGROUP_ZKEYFACE_INDEX ON ZDETECTEDFACEGROUP (ZKEYFACE);
  532. CREATE INDEX ZDETECTEDFACEPRINT_ZFACE_INDEX ON ZDETECTEDFACEPRINT (ZFACE);
  533. CREATE INDEX ZFACECROP_ZASSET_INDEX ON ZFACECROP (ZASSET);
  534. CREATE INDEX ZFACECROP_ZFACE_INDEX ON ZFACECROP (ZFACE);
  535. CREATE INDEX ZFACECROP_ZPERSON_INDEX ON ZFACECROP (ZPERSON);
  536. CREATE INDEX ZGENERICALBUM_ZCUSTOMKEYASSET_INDEX ON ZGENERICALBUM (ZCUSTOMKEYASSET);
  537. CREATE INDEX ZGENERICALBUM_ZKEYASSET_INDEX ON ZGENERICALBUM (ZKEYASSET);
  538. CREATE INDEX ZGENERICALBUM_ZPARENTFOLDER_INDEX ON ZGENERICALBUM (ZPARENTFOLDER);
  539. CREATE INDEX ZGENERICALBUM_ZSECONDARYKEYASSET_INDEX ON ZGENERICALBUM (ZSECONDARYKEYASSET);
  540. CREATE INDEX ZGENERICALBUM_ZTERTIARYKEYASSET_INDEX ON ZGENERICALBUM (ZTERTIARYKEYASSET);
  541. CREATE INDEX Z_19ALBUMLISTS_Z_3ALBUMLISTS_INDEX ON Z_19ALBUMLISTS (Z_3ALBUMLISTS,
  542. Z_19ALBUMS);
  543. CREATE INDEX ZGENERICALBUM_Z_ENT_INDEX ON ZGENERICALBUM (Z_ENT);
  544. CREATE INDEX Z_20ASSETS_Z_27ASSETS_INDEX ON Z_20ASSETS (Z_27ASSETS,
  545. Z_20ALBUMS);
  546. CREATE INDEX Z_27MEMORIESBEINGEXTENDEDCURATEDASSETS_Z_32MEMORIESBEINGEXTENDEDCURATEDASSETS_INDEX ON Z_27MEMORIESBEINGEXTENDEDCURATEDASSETS (Z_32MEMORIESBEINGEXTENDEDCURATEDASSETS,
  547. Z_27EXTENDEDCURATEDASSETS);
  548. CREATE INDEX Z_27MEMORIESBEINGREPRESENTATIVEASSETS_Z_32MEMORIESBEINGREPRESENTATIVEASSETS_INDEX ON Z_27MEMORIESBEINGREPRESENTATIVEASSETS (Z_32MEMORIESBEINGREPRESENTATIVEASSETS,
  549. Z_27REPRESENTATIVEASSETS);
  550. CREATE INDEX Z_27MEMORIESBEINGCURATEDASSETS_Z_32MEMORIESBEINGCURATEDASSETS_INDEX ON Z_27MEMORIESBEINGCURATEDASSETS (Z_32MEMORIESBEINGCURATEDASSETS,
  551. Z_27CURATEDASSETS);
  552. CREATE INDEX Z_27MEMORIESBEINGMOVIECURATEDASSETS_Z_32MEMORIESBEINGMOVIECURATEDASSETS_INDEX ON Z_27MEMORIESBEINGMOVIECURATEDASSETS (Z_32MEMORIESBEINGMOVIECURATEDASSETS,
  553. Z_27MOVIECURATEDASSETS);
  554. CREATE INDEX ZLEGACYFACE_ZASSET_INDEX ON ZLEGACYFACE (ZASSET);
  555. CREATE INDEX ZMEMORY_ZKEYASSET_INDEX ON ZMEMORY (ZKEYASSET);
  556. CREATE INDEX ZPERSON_ZASSOCIATEDFACEGROUP_INDEX ON ZPERSON (ZASSOCIATEDFACEGROUP);
  557. CREATE INDEX ZPERSON_ZKEYFACE_INDEX ON ZPERSON (ZKEYFACE);
  558. CREATE INDEX ZPERSON_ZMERGETARGETPERSON_INDEX ON ZPERSON (ZMERGETARGETPERSON);
  559. CREATE INDEX ZPERSONREFERENCE_ZASSETATTRIBUTES_INDEX ON ZPERSONREFERENCE (ZASSETATTRIBUTES);
  560. CREATE INDEX ZPERSONREFERENCE_ZPERSON_INDEX ON ZPERSONREFERENCE (ZPERSON);
  561. CREATE INDEX ZSCENECLASSIFICATION_ZASSETATTRIBUTES_INDEX ON ZSCENECLASSIFICATION (ZASSETATTRIBUTES);
  562. CREATE INDEX ZSEARCHDATA_ZASSET_INDEX ON ZSEARCHDATA (ZASSET);
  563. CREATE INDEX ZSIDECARFILE_ZASSET_INDEX ON ZSIDECARFILE (ZASSET);
  564. CREATE INDEX ZUNMANAGEDADJUSTMENT_ZASSETATTRIBUTES_INDEX ON ZUNMANAGEDADJUSTMENT (ZASSETATTRIBUTES);
  565. CREATE VIRTUAL TABLE Z_RT_GenericAsset_boundedByRect USING RTREE (Z_PK INTEGER PRIMARY KEY,
  566. ZLATITUDE_MIN FLOAT,
  567. ZLATITUDE_MAX FLOAT,
  568. ZLONGITUDE_MIN FLOAT,
  569. ZLONGITUDE_MAX FLOAT);
  570. CREATE TABLE IF NOT EXISTS "Z_RT_GenericAsset_boundedByRect_node"(nodeno INTEGER PRIMARY KEY,
  571. data BLOB);
  572. CREATE TABLE IF NOT EXISTS "Z_RT_GenericAsset_boundedByRect_rowid"(rowid INTEGER PRIMARY KEY,
  573. nodeno INTEGER);
  574. CREATE TABLE IF NOT EXISTS "Z_RT_GenericAsset_boundedByRect_parent"(nodeno INTEGER PRIMARY KEY,
  575. parentnode INTEGER);
  576. CREATE TABLE Z_METADATA (Z_VERSION INTEGER PRIMARY KEY,
  577. Z_UUID VARCHAR(255),
  578. Z_PLIST BLOB);
  579. CREATE TABLE Z_MODELCACHE (Z_CONTENT BLOB);
  580. CREATE TABLE Z_35MERGECANDIDATES ( Z_35MERGECANDIDATES INTEGER,
  581. REFLEXIVE INTEGER,
  582. PRIMARY KEY (Z_35MERGECANDIDATES,
  583. REFLEXIVE) );
  584. CREATE TABLE Z_35INVALIDMERGECANDIDATES ( Z_35INVALIDMERGECANDIDATES INTEGER,
  585. REFLEXIVE INTEGER,
  586. PRIMARY KEY (Z_35INVALIDMERGECANDIDATES,
  587. REFLEXIVE) );
  588. CREATE TABLE ZMOMENT ( Z_PK INTEGER PRIMARY KEY,
  589. Z_ENT INTEGER,
  590. Z_OPT INTEGER,
  591. ZCACHEDCOUNT INTEGER,
  592. ZCACHEDPHOTOSCOUNT INTEGER,
  593. ZCACHEDVIDEOSCOUNT INTEGER,
  594. ZGENERATIONTYPE INTEGER,
  595. ZREVERSELOCATIONDATACONTAINSLOCATION INTEGER,
  596. ZREVERSELOCATIONDATAISVALID INTEGER,
  597. ZTRASHEDSTATE INTEGER,
  598. ZUSEDLOCATIONSOFINTEREST INTEGER,
  599. ZMEGAMOMENTLIST INTEGER,
  600. ZYEARMOMENTLIST INTEGER,
  601. Z_FOK_MEGAMOMENTLIST INTEGER,
  602. Z_FOK_YEARMOMENTLIST INTEGER,
  603. ZENDDATE TIMESTAMP,
  604. ZMODIFICATIONDATE TIMESTAMP,
  605. ZREPRESENTATIVEDATE TIMESTAMP,
  606. ZSTARTDATE TIMESTAMP,
  607. ZTITLE VARCHAR,
  608. ZTITLE2 VARCHAR,
  609. ZTITLE3 VARCHAR,
  610. ZUUID VARCHAR,
  611. ZAPPROXIMATELOCATIONDATA BLOB,
  612. ZREVERSELOCATIONDATA BLOB );
  613. CREATE TABLE ZGENERICASSET ( Z_PK INTEGER PRIMARY KEY,
  614. Z_ENT INTEGER,
  615. Z_OPT INTEGER,
  616. ZAVALANCHEPICKTYPE INTEGER,
  617. ZCLOUDDOWNLOADREQUESTS INTEGER,
  618. ZCLOUDHASCOMMENTSBYME INTEGER,
  619. ZCLOUDHASCOMMENTSCONVERSATION INTEGER,
  620. ZCLOUDHASUNSEENCOMMENTS INTEGER,
  621. ZCLOUDISDELETABLE INTEGER,
  622. ZCLOUDISMYASSET INTEGER,
  623. ZCLOUDLOCALSTATE INTEGER,
  624. ZCLOUDPLACEHOLDERKIND INTEGER,
  625. ZCOMPLETE INTEGER,
  626. ZCUSTOMRENDEREDVALUE INTEGER,
  627. ZDEPTHSTATES INTEGER,
  628. ZFACEAREAPOINTS INTEGER,
  629. ZFAVORITE INTEGER,
  630. ZGROUPINGSTATE INTEGER,
  631. ZHASADJUSTMENTS INTEGER,
  632. ZHEIGHT INTEGER,
  633. ZHIDDEN INTEGER,
  634. ZKIND INTEGER,
  635. ZKINDSUBTYPE INTEGER,
  636. ZLOCALRESOURCESSTATE INTEGER,
  637. ZORIENTATION INTEGER,
  638. ZPLAYBACKSTYLE INTEGER,
  639. ZPLAYBACKVARIATION INTEGER,
  640. ZSAVEDASSETTYPE INTEGER,
  641. ZTHUMBNAILINDEX INTEGER,
  642. ZTRASHEDSTATE INTEGER,
  643. ZVIDEOCPDURATIONVALUE INTEGER,
  644. ZVIDEOCPVISIBILITYSTATE INTEGER,
  645. ZVISIBILITYSTATE INTEGER,
  646. ZWIDTH INTEGER,
  647. ZADDITIONALATTRIBUTES INTEGER,
  648. ZCLOUDFEEDASSETSENTRY INTEGER,
  649. ZMASTER INTEGER,
  650. ZMOMENT INTEGER,
  651. ZSEARCHDATA INTEGER,
  652. Z_FOK_CLOUDFEEDASSETSENTRY INTEGER,
  653. Z_FOK_MOMENT INTEGER,
  654. ZADDEDDATE TIMESTAMP,
  655. ZADJUSTMENTTIMESTAMP TIMESTAMP,
  656. ZCLOUDBATCHPUBLISHDATE TIMESTAMP,
  657. ZCLOUDLASTVIEWEDCOMMENTDATE TIMESTAMP,
  658. ZCLOUDSERVERPUBLISHDATE TIMESTAMP,
  659. ZCURATIONSCORE FLOAT,
  660. ZDATECREATED TIMESTAMP,
  661. ZDURATION FLOAT,
  662. ZFACEADJUSTMENTVERSION TIMESTAMP,
  663. ZLASTSHAREDDATE TIMESTAMP,
  664. ZLATITUDE FLOAT,
  665. ZLONGITUDE FLOAT,
  666. ZMODIFICATIONDATE TIMESTAMP,
  667. ZSORTTOKEN FLOAT,
  668. ZTRASHEDDATE TIMESTAMP,
  669. ZAVALANCHEUUID VARCHAR,
  670. ZCLOUDASSETGUID VARCHAR,
  671. ZCLOUDBATCHID VARCHAR,
  672. ZCLOUDCOLLECTIONGUID VARCHAR,
  673. ZCLOUDOWNERHASHEDPERSONID VARCHAR,
  674. ZDIRECTORY VARCHAR,
  675. ZFILENAME VARCHAR,
  676. ZGROUPINGUUID VARCHAR,
  677. ZMEDIAGROUPUUID VARCHAR,
  678. ZORIGINALCOLORSPACE VARCHAR,
  679. ZUNIFORMTYPEIDENTIFIER VARCHAR,
  680. ZUUID VARCHAR,
  681. ZLOCATIONDATA BLOB,
  682. ZIMAGEURLDATA BLOB,
  683. ZTHUMBNAILURLDATA BLOB,
  684. ZWALLPAPEROPTIONSDATA BLOB );
  685. CREATE TABLE Z_15CLUSTERREJECTEDPERSONS ( Z_15CLUSTERREJECTEDFACES INTEGER,
  686. Z_35CLUSTERREJECTEDPERSONS INTEGER,
  687. PRIMARY KEY (Z_15CLUSTERREJECTEDFACES,
  688. Z_35CLUSTERREJECTEDPERSONS) );
  689. CREATE TABLE Z_15REJECTEDPERSONS ( Z_15REJECTEDFACES INTEGER,
  690. Z_35REJECTEDPERSONS INTEGER,
  691. PRIMARY KEY (Z_15REJECTEDFACES,
  692. Z_35REJECTEDPERSONS) );
  693. CREATE TABLE Z_15REJECTEDPERSONSNEEDINGFACECROPS ( Z_15REJECTEDFACESNEEDINGFACECROPS INTEGER,
  694. Z_35REJECTEDPERSONSNEEDINGFACECROPS INTEGER,
  695. PRIMARY KEY (Z_15REJECTEDFACESNEEDINGFACECROPS,
  696. Z_35REJECTEDPERSONSNEEDINGFACECROPS) );
  697. CREATE INDEX Z_15CLUSTERREJECTEDPERSONS_Z_35CLUSTERREJECTEDPERSONS_INDEX ON Z_15CLUSTERREJECTEDPERSONS (Z_35CLUSTERREJECTEDPERSONS,
  698. Z_15CLUSTERREJECTEDFACES);
  699. CREATE INDEX Z_15REJECTEDPERSONS_Z_35REJECTEDPERSONS_INDEX ON Z_15REJECTEDPERSONS (Z_35REJECTEDPERSONS,
  700. Z_15REJECTEDFACES);
  701. CREATE INDEX Z_15REJECTEDPERSONSNEEDINGFACECROPS_Z_35REJECTEDPERSONSNEEDINGFACECROPS_INDEX ON Z_15REJECTEDPERSONSNEEDINGFACECROPS (Z_35REJECTEDPERSONSNEEDINGFACECROPS,
  702. Z_15REJECTEDFACESNEEDINGFACECROPS);
  703. CREATE INDEX ZGENERICASSET_ZADDITIONALATTRIBUTES_INDEX ON ZGENERICASSET (ZADDITIONALATTRIBUTES);
  704. CREATE INDEX ZGENERICASSET_ZCLOUDFEEDASSETSENTRY_INDEX ON ZGENERICASSET (ZCLOUDFEEDASSETSENTRY);
  705. CREATE INDEX ZGENERICASSET_ZMASTER_INDEX ON ZGENERICASSET (ZMASTER);
  706. CREATE INDEX ZGENERICASSET_ZMOMENT_INDEX ON ZGENERICASSET (ZMOMENT);
  707. CREATE INDEX ZGENERICASSET_ZSEARCHDATA_INDEX ON ZGENERICASSET (ZSEARCHDATA);
  708. CREATE INDEX ZGENERICASSET_Z_ENT_INDEX ON ZGENERICASSET (Z_ENT);
  709. CREATE INDEX ZMOMENT_ZMEGAMOMENTLIST_INDEX ON ZMOMENT (ZMEGAMOMENTLIST);
  710. CREATE INDEX ZMOMENT_ZYEARMOMENTLIST_INDEX ON ZMOMENT (ZYEARMOMENTLIST);
  711. CREATE INDEX Z_35MERGECANDIDATES_REFLEXIVE_INDEX ON Z_35MERGECANDIDATES (REFLEXIVE,
  712. Z_35MERGECANDIDATES);
  713. CREATE INDEX Z_35INVALIDMERGECANDIDATES_REFLEXIVE_INDEX ON Z_35INVALIDMERGECANDIDATES (REFLEXIVE,
  714. Z_35INVALIDMERGECANDIDATES);
  715. CREATE TABLE Z_PRIMARYKEY (Z_ENT INTEGER PRIMARY KEY,
  716. Z_NAME VARCHAR,
  717. Z_SUPER INTEGER,
  718. Z_MAX INTEGER);
  719. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_INSERT_INCREMENT AFTER INSERT ON ZGENERICASSET FOR EACH ROW WHEN NEW.ZTRASHEDSTATE == 0 AND NEW.ZVISIBILITYSTATE == 0 AND NEW.ZHIDDEN == 0 BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = IFNULL(ZASSETVISIBLE,0) + 1 WHERE NEW.Z_PK = ZASSET; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  720. Z_ENT,
  721. Z_PK,
  722. 'ZASSETVISIBLE',
  723. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE ZASSET = NEW.Z_PK; END;
  724. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_UPDATE_INCREMENT AFTER UPDATE OF ZTRASHEDSTATE,
  725. ZVISIBILITYSTATE,
  726. ZHIDDEN ON ZGENERICASSET FOR EACH ROW WHEN (NEW.ZTRASHEDSTATE == 0 AND NEW.ZVISIBILITYSTATE == 0 AND NEW.ZHIDDEN == 0) AND (NEW.ZTRASHEDSTATE != OLD.ZTRASHEDSTATE OR NEW.ZVISIBILITYSTATE != OLD.ZVISIBILITYSTATE OR NEW.ZHIDDEN != OLD.ZHIDDEN) BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = IFNULL(ZASSETVISIBLE,0) + 1 WHERE NEW.Z_PK = ZASSET; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  727. Z_ENT,
  728. Z_PK,
  729. 'ZASSETVISIBLE',
  730. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE ZASSET = NEW.Z_PK; END;
  731. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_UPDATE_DECREMENT AFTER UPDATE OF ZTRASHEDSTATE,
  732. ZVISIBILITYSTATE,
  733. ZHIDDEN ON ZGENERICASSET FOR EACH ROW WHEN (OLD.ZTRASHEDSTATE == 0 AND OLD.ZVISIBILITYSTATE == 0 AND OLD.ZHIDDEN == 0) AND (NEW.ZTRASHEDSTATE != OLD.ZTRASHEDSTATE OR NEW.ZVISIBILITYSTATE != OLD.ZVISIBILITYSTATE OR NEW.ZHIDDEN != OLD.ZHIDDEN) BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = MAX(0,IFNULL(ZASSETVISIBLE,0) - 1) WHERE OLD.Z_PK = ZASSET; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  734. Z_ENT,
  735. Z_PK,
  736. 'ZASSETVISIBLE',
  737. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE ZASSET = NEW.Z_PK; END;
  738. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_DELETE_DECREMENT AFTER DELETE ON ZGENERICASSET FOR EACH ROW WHEN OLD.ZTRASHEDSTATE == 0 AND OLD.ZVISIBILITYSTATE == 0 AND OLD.ZHIDDEN == 0 BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = MAX(0,IFNULL(ZASSETVISIBLE,0) - 1) WHERE OLD.Z_PK = ZASSET; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  739. Z_ENT,
  740. Z_PK,
  741. 'ZASSETVISIBLE',
  742. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE ZASSET = OLD.Z_PK; END;
  743. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_ZDETECTEDFACE_INSERT_INCREMENT AFTER INSERT ON ZDETECTEDFACE FOR EACH ROW BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = (SELECT COUNT(Z_PK) FROM ZGENERICASSET WHERE (Z_PK = NEW.ZASSET) AND (ZTRASHEDSTATE == 0 AND ZVISIBILITYSTATE == 0 AND ZHIDDEN == 0)) WHERE Z_PK = NEW.Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  744. Z_ENT,
  745. Z_PK,
  746. 'ZASSETVISIBLE',
  747. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE Z_PK = NEW.Z_PK; END;
  748. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_ZASSET_UPDATE_TO_NULL AFTER UPDATE OF ZASSET ON ZDETECTEDFACE WHEN (NEW.ZASSET IS NULL AND OLD.ZASSET IS NOT NULL) BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = 0 WHERE Z_PK = NEW.Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  749. Z_ENT,
  750. Z_PK,
  751. 'ZASSETVISIBLE',
  752. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE Z_PK = NEW.Z_PK; END;
  753. CREATE TRIGGER ZT_ZDETECTEDFACE_ZASSETVISIBLE_ZGENERICASSET_ZASSET_UPDATE_INCREMENT AFTER UPDATE OF ZASSET ON ZDETECTEDFACE WHEN ((NEW.ZASSET IS NOT NULL AND OLD.ZASSET IS NULL) OR (NEW.ZASSET != OLD.ZASSET)) BEGIN UPDATE ZDETECTEDFACE SET ZASSETVISIBLE = (SELECT COUNT(Z_PK) FROM ZGENERICASSET WHERE Z_PK = NEW.ZASSET AND (ZTRASHEDSTATE == 0 AND ZVISIBILITYSTATE == 0 AND ZHIDDEN == 0)) WHERE Z_PK = NEW.Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZDETECTEDFACE',
  754. Z_ENT,
  755. Z_PK,
  756. 'ZASSETVISIBLE',
  757. ZASSETVISIBLE) FROM ZDETECTEDFACE WHERE Z_PK = NEW.Z_PK; END;
  758. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_INSERT_INCREMENT AFTER INSERT ON ZDETECTEDFACE FOR EACH ROW WHEN NEW.ZHIDDEN == 0 AND NEW.ZASSETVISIBLE == 1 BEGIN UPDATE ZPERSON SET ZFACECOUNT = IFNULL(ZFACECOUNT,0) + 1 WHERE NEW.ZPERSON = Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  759. Z_ENT,
  760. Z_PK,
  761. 'ZFACECOUNT',
  762. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = NEW.ZPERSON; END;
  763. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_UPDATE_INCREMENT AFTER UPDATE OF ZHIDDEN,
  764. ZASSETVISIBLE ON ZDETECTEDFACE FOR EACH ROW WHEN (NEW.ZHIDDEN == 0 AND NEW.ZASSETVISIBLE == 1) AND (NEW.ZHIDDEN != OLD.ZHIDDEN OR NEW.ZASSETVISIBLE != OLD.ZASSETVISIBLE) AND (NEW.ZPERSON == OLD.ZPERSON) BEGIN UPDATE ZPERSON SET ZFACECOUNT = IFNULL(ZFACECOUNT,0) + 1 WHERE NEW.ZPERSON = Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  765. Z_ENT,
  766. Z_PK,
  767. 'ZFACECOUNT',
  768. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = NEW.ZPERSON; END;
  769. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_UPDATE_DECREMENT AFTER UPDATE OF ZHIDDEN,
  770. ZASSETVISIBLE ON ZDETECTEDFACE FOR EACH ROW WHEN (OLD.ZHIDDEN == 0 AND OLD.ZASSETVISIBLE == 1) AND (NEW.ZHIDDEN != OLD.ZHIDDEN OR NEW.ZASSETVISIBLE != OLD.ZASSETVISIBLE) AND (OLD.ZPERSON == NEW.ZPERSON) BEGIN UPDATE ZPERSON SET ZFACECOUNT = MAX(0,IFNULL(ZFACECOUNT,0) - 1) WHERE OLD.ZPERSON = Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  771. Z_ENT,
  772. Z_PK,
  773. 'ZFACECOUNT',
  774. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = NEW.ZPERSON; END;
  775. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_DELETE_DECREMENT AFTER DELETE ON ZDETECTEDFACE FOR EACH ROW WHEN OLD.ZHIDDEN == 0 AND OLD.ZASSETVISIBLE == 1 BEGIN UPDATE ZPERSON SET ZFACECOUNT = MAX(0,IFNULL(ZFACECOUNT,0) - 1) WHERE OLD.ZPERSON = Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  776. Z_ENT,
  777. Z_PK,
  778. 'ZFACECOUNT',
  779. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = OLD.ZPERSON; END;
  780. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_ZPERSON_INSERT_INCREMENT AFTER INSERT ON ZPERSON FOR EACH ROW BEGIN UPDATE ZPERSON SET ZFACECOUNT = (SELECT COUNT(Z_PK) FROM ZDETECTEDFACE WHERE (ZPERSON = NEW.Z_PK) AND (ZHIDDEN == 0 AND ZASSETVISIBLE == 1)) WHERE Z_PK = NEW.Z_PK; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  781. Z_ENT,
  782. Z_PK,
  783. 'ZFACECOUNT',
  784. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = NEW.Z_PK; END;
  785. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_ZPERSON_UPDATE_INCREMENT AFTER UPDATE OF ZPERSON ON ZDETECTEDFACE WHEN (NEW.ZHIDDEN == 0 AND NEW.ZASSETVISIBLE == 1) AND ((NEW.ZPERSON IS NOT NULL AND OLD.ZPERSON IS NULL) OR (NEW.ZPERSON != OLD.ZPERSON)) BEGIN UPDATE ZPERSON SET ZFACECOUNT = IFNULL(ZFACECOUNT,0) + 1 WHERE Z_PK = NEW.ZPERSON; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  786. Z_ENT,
  787. Z_PK,
  788. 'ZFACECOUNT',
  789. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = NEW.ZPERSON; END;
  790. CREATE TRIGGER ZT_ZPERSON_ZFACECOUNT_ZDETECTEDFACE_ZPERSON_UPDATE_DECREMENT AFTER UPDATE OF ZPERSON ON ZDETECTEDFACE WHEN (OLD.ZHIDDEN == 0 AND OLD.ZASSETVISIBLE == 1) AND ((OLD.ZPERSON IS NOT NULL AND NEW.ZPERSON IS NULL) OR (NEW.ZPERSON != OLD.ZPERSON)) BEGIN UPDATE ZPERSON SET ZFACECOUNT = MAX(0,IFNULL(ZFACECOUNT,0) - 1) WHERE Z_PK = OLD.ZPERSON; SELECT NSCoreDataTriggerUpdateAffectedObjectValue('ZPERSON',
  791. Z_ENT,
  792. Z_PK,
  793. 'ZFACECOUNT',
  794. ZFACECOUNT) FROM ZPERSON WHERE Z_PK = OLD.ZPERSON; END;
  795. CREATE INDEX Z_AdditionalAssetAttributes_adjustedFingerPrint ON ZADDITIONALASSETATTRIBUTES (ZADJUSTEDFINGERPRINT COLLATE BINARY ASC);
  796. CREATE INDEX Z_AdditionalAssetAttributes_allowedForAnalysis ON ZADDITIONALASSETATTRIBUTES (ZALLOWEDFORANALYSIS COLLATE BINARY ASC);
  797. CREATE INDEX Z_AdditionalAssetAttributes_cameraCaptureDevice ON ZADDITIONALASSETATTRIBUTES (ZCAMERACAPTUREDEVICE COLLATE BINARY ASC);
  798. CREATE INDEX Z_AdditionalAssetAttributes_creatorBundleID ON ZADDITIONALASSETATTRIBUTES (ZCREATORBUNDLEID COLLATE BINARY ASC);
  799. CREATE INDEX Z_AdditionalAssetAttributes_locationHash ON ZADDITIONALASSETATTRIBUTES (ZLOCATIONHASH COLLATE BINARY ASC);
  800. CREATE INDEX Z_AdditionalAssetAttributes_masterFingerPrint ON ZADDITIONALASSETATTRIBUTES (ZMASTERFINGERPRINT COLLATE BINARY ASC);
  801. CREATE INDEX Z_AdditionalAssetAttributes_originalAssetsUUID ON ZADDITIONALASSETATTRIBUTES (ZORIGINALASSETSUUID COLLATE BINARY ASC);
  802. CREATE INDEX Z_AdditionalAssetAttributes_originalHash ON ZADDITIONALASSETATTRIBUTES (ZORIGINALHASH COLLATE BINARY ASC);
  803. CREATE INDEX Z_AdditionalAssetAttributes_publicGlobalUUID ON ZADDITIONALASSETATTRIBUTES (ZPUBLICGLOBALUUID COLLATE BINARY ASC);
  804. CREATE INDEX Z_AdditionalAssetAttributes_reverseLocationDataIsValid ON ZADDITIONALASSETATTRIBUTES (ZREVERSELOCATIONDATAISVALID COLLATE BINARY ASC);
  805. CREATE INDEX Z_AdditionalAssetAttributes_shiftedLocationIsValid ON ZADDITIONALASSETATTRIBUTES (ZSHIFTEDLOCATIONISVALID COLLATE BINARY ASC);
  806. CREATE INDEX Z_AdditionalAssetAttributes_uploadAttempts ON ZADDITIONALASSETATTRIBUTES (ZUPLOADATTEMPTS COLLATE BINARY ASC);
  807. CREATE INDEX Z_AlbumList_identifier ON ZALBUMLIST (ZIDENTIFIER COLLATE BINARY ASC);
  808. CREATE INDEX Z_AlbumList_uuid ON ZALBUMLIST (ZUUID COLLATE BINARY ASC);
  809. CREATE INDEX Z_AssetAnalysisState_analysisState_workerType_asset ON ZASSETANALYSISSTATE (ZANALYSISSTATE COLLATE BINARY ASC,
  810. ZWORKERTYPE COLLATE BINARY ASC,
  811. ZASSET COLLATE BINARY ASC);
  812. CREATE INDEX Z_AssetAnalysisState_sortToken ON ZASSETANALYSISSTATE (ZSORTTOKEN COLLATE BINARY ASC);
  813. CREATE INDEX Z_AssetAnalysisState_workerType ON ZASSETANALYSISSTATE (ZWORKERTYPE COLLATE BINARY ASC);
  814. CREATE INDEX Z_AssetAnalysisState_workerType_sortToken ON ZASSETANALYSISSTATE (ZWORKERTYPE COLLATE BINARY ASC,
  815. ZSORTTOKEN COLLATE BINARY ASC);
  816. CREATE INDEX Z_CloudFeedEntry_entity_entryDate ON ZCLOUDFEEDENTRY (Z_ENT COLLATE BINARY ASC,
  817. ZENTRYDATE COLLATE BINARY ASC);
  818. CREATE INDEX Z_CloudFeedEntry_entryDate ON ZCLOUDFEEDENTRY (ZENTRYDATE COLLATE BINARY ASC);
  819. CREATE INDEX Z_CloudFeedEntry_entryDate_entryPriorityNumber_entryTypeNumber ON ZCLOUDFEEDENTRY (ZENTRYDATE COLLATE BINARY ASC,
  820. ZENTRYPRIORITYNUMBER COLLATE BINARY ASC,
  821. ZENTRYTYPENUMBER COLLATE BINARY ASC);
  822. CREATE INDEX Z_CloudFeedEntry_entryTypeNumber ON ZCLOUDFEEDENTRY (ZENTRYTYPENUMBER COLLATE BINARY ASC);
  823. CREATE INDEX Z_CloudMaster_cloudLocalState ON ZCLOUDMASTER (ZCLOUDLOCALSTATE COLLATE BINARY ASC);
  824. CREATE INDEX Z_CloudMaster_cloudMasterGUID ON ZCLOUDMASTER (ZCLOUDMASTERGUID COLLATE BINARY ASC);
  825. CREATE INDEX Z_CloudResource_assetUuid ON ZCLOUDRESOURCE (ZASSETUUID COLLATE BINARY ASC);
  826. CREATE INDEX Z_CloudResource_dateCreated ON ZCLOUDRESOURCE (ZDATECREATED COLLATE BINARY ASC);
  827. CREATE INDEX Z_CloudResource_isAvailable ON ZCLOUDRESOURCE (ZISAVAILABLE COLLATE BINARY ASC);
  828. CREATE INDEX Z_CloudResource_isLocallyAvailable ON ZCLOUDRESOURCE (ZISLOCALLYAVAILABLE COLLATE BINARY ASC);
  829. CREATE INDEX Z_CloudResource_type ON ZCLOUDRESOURCE (ZTYPE COLLATE BINARY ASC);
  830. CREATE INDEX Z_CloudResource_type_isLocallyAvailable_isAvailable_dateCreated_lastOnDemandDownloadDate_lastPrefetchDate ON ZCLOUDRESOURCE (ZTYPE COLLATE BINARY ASC,
  831. ZISLOCALLYAVAILABLE COLLATE BINARY ASC,
  832. ZISAVAILABLE COLLATE BINARY ASC,
  833. ZDATECREATED COLLATE BINARY ASC,
  834. ZLASTONDEMANDDOWNLOADDATE COLLATE BINARY ASC,
  835. ZLASTPREFETCHDATE COLLATE BINARY ASC);
  836. CREATE INDEX Z_CloudSharedComment_cloudGUID ON ZCLOUDSHAREDCOMMENT (ZCLOUDGUID COLLATE BINARY ASC);
  837. CREATE INDEX Z_DeferredRebuildFace_assetCloudGUID ON ZDEFERREDREBUILDFACE (ZASSETCLOUDGUID COLLATE BINARY ASC);
  838. CREATE INDEX Z_DetectedFace_cloudLocalState ON ZDETECTEDFACE (ZCLOUDLOCALSTATE COLLATE BINARY ASC);
  839. CREATE INDEX Z_DetectedFace_clusterSequenceNumber ON ZDETECTEDFACE (ZCLUSTERSEQUENCENUMBER COLLATE BINARY ASC);
  840. CREATE INDEX Z_DetectedFace_uuid ON ZDETECTEDFACE (ZUUID COLLATE BINARY ASC);
  841. CREATE INDEX Z_DetectedFaceGroup_personBuilderState ON ZDETECTEDFACEGROUP (ZPERSONBUILDERSTATE COLLATE BINARY ASC);
  842. CREATE INDEX Z_FaceCrop_cloudLocalState ON ZFACECROP (ZCLOUDLOCALSTATE COLLATE BINARY ASC);
  843. CREATE INDEX Z_FaceCrop_uuid ON ZFACECROP (ZUUID COLLATE BINARY ASC);
  844. CREATE INDEX Z_GenericAlbum_cloudGUID ON ZGENERICALBUM (ZCLOUDGUID COLLATE BINARY ASC);
  845. CREATE INDEX Z_GenericAlbum_cloudLocalState ON ZGENERICALBUM (ZCLOUDLOCALSTATE COLLATE BINARY ASC);
  846. CREATE INDEX Z_GenericAlbum_kind ON ZGENERICALBUM (ZKIND COLLATE BINARY ASC);
  847. CREATE INDEX Z_GenericAlbum_syncEventOrderKey ON ZGENERICALBUM (ZSYNCEVENTORDERKEY COLLATE BINARY ASC);
  848. CREATE INDEX Z_GenericAlbum_uuid ON ZGENERICALBUM (ZUUID COLLATE BINARY ASC);
  849. CREATE INDEX Z_WallpaperAlbum_wallpaperAlbumType ON ZGENERICALBUM (ZWALLPAPERALBUMTYPE COLLATE BINARY ASC);
  850. CREATE INDEX Z_GenericAsset_addedDate ON ZGENERICASSET (ZADDEDDATE COLLATE BINARY ASC);
  851. CREATE INDEX Z_GenericAsset_addedDate_sortToken ON ZGENERICASSET (ZADDEDDATE COLLATE BINARY ASC,
  852. ZSORTTOKEN COLLATE BINARY ASC);
  853. CREATE INDEX Z_GenericAsset_addedDate_sortToken_kind_savedAssetType_visibilityState_trashedState_hidden_avalanchePickType_complete_entity ON ZGENERICASSET (ZADDEDDATE COLLATE BINARY ASC,
  854. ZSORTTOKEN COLLATE BINARY ASC,
  855. ZKIND COLLATE BINARY ASC,
  856. ZSAVEDASSETTYPE COLLATE BINARY ASC,
  857. ZVISIBILITYSTATE COLLATE BINARY ASC,
  858. ZTRASHEDSTATE COLLATE BINARY ASC,
  859. ZHIDDEN COLLATE BINARY ASC,
  860. ZAVALANCHEPICKTYPE COLLATE BINARY ASC,
  861. ZCOMPLETE COLLATE BINARY ASC,
  862. Z_ENT COLLATE BINARY ASC);
  863. CREATE INDEX Z_GenericAsset_avalanchePickType ON ZGENERICASSET (ZAVALANCHEPICKTYPE COLLATE BINARY ASC);
  864. CREATE INDEX Z_GenericAsset_avalancheUUID ON ZGENERICASSET (ZAVALANCHEUUID COLLATE BINARY ASC);
  865. CREATE INDEX Z_GenericAsset_cloudAssetGUID ON ZGENERICASSET (ZCLOUDASSETGUID COLLATE BINARY ASC);
  866. CREATE INDEX Z_GenericAsset_cloudAssetGUID_savedAssetType ON ZGENERICASSET (ZCLOUDASSETGUID COLLATE BINARY ASC,
  867. ZSAVEDASSETTYPE COLLATE BINARY ASC);
  868. CREATE INDEX Z_GenericAsset_cloudLocalState_dateCreated ON ZGENERICASSET (ZCLOUDLOCALSTATE COLLATE BINARY ASC,
  869. ZDATECREATED COLLATE BINARY ASC);
  870. CREATE INDEX Z_GenericAsset_cloudPlaceholderKind ON ZGENERICASSET (ZCLOUDPLACEHOLDERKIND COLLATE BINARY ASC);
  871. CREATE INDEX Z_GenericAsset_complete ON ZGENERICASSET (ZCOMPLETE COLLATE BINARY ASC);
  872. CREATE INDEX Z_GenericAsset_customRenderedValue ON ZGENERICASSET (ZCUSTOMRENDEREDVALUE COLLATE BINARY ASC);
  873. CREATE INDEX Z_GenericAsset_dateCreated ON ZGENERICASSET (ZDATECREATED COLLATE BINARY ASC);
  874. CREATE INDEX Z_GenericAsset_depthStates ON ZGENERICASSET (ZDEPTHSTATES COLLATE BINARY ASC);
  875. CREATE INDEX Z_GenericAsset_directory_filename ON ZGENERICASSET (ZDIRECTORY COLLATE BINARY ASC,
  876. ZFILENAME COLLATE BINARY ASC);
  877. CREATE INDEX Z_GenericAsset_favorite ON ZGENERICASSET (ZFAVORITE COLLATE BINARY ASC);
  878. CREATE INDEX Z_GenericAsset_favorite_dateCreated_addedDate_filename_visibilityState_complete_trashedState_hidden_savedAssetType_avalanchePickType ON ZGENERICASSET (ZFAVORITE COLLATE BINARY ASC,
  879. ZDATECREATED COLLATE BINARY ASC,
  880. ZADDEDDATE COLLATE BINARY ASC,
  881. ZFILENAME COLLATE BINARY ASC,
  882. ZVISIBILITYSTATE COLLATE BINARY ASC,
  883. ZCOMPLETE COLLATE BINARY ASC,
  884. ZTRASHEDSTATE COLLATE BINARY ASC,
  885. ZHIDDEN COLLATE BINARY ASC,
  886. ZSAVEDASSETTYPE COLLATE BINARY ASC,
  887. ZAVALANCHEPICKTYPE COLLATE BINARY ASC);
  888. CREATE INDEX Z_GenericAsset_groupingUUID ON ZGENERICASSET (ZGROUPINGUUID COLLATE BINARY ASC);
  889. CREATE INDEX Z_GenericAsset_hidden_visibilityState ON ZGENERICASSET (ZHIDDEN COLLATE BINARY ASC,
  890. ZVISIBILITYSTATE COLLATE BINARY ASC);
  891. CREATE INDEX Z_GenericAsset_kind ON ZGENERICASSET (ZKIND COLLATE BINARY ASC);
  892. CREATE INDEX Z_GenericAsset_kindSubtype ON ZGENERICASSET (ZKINDSUBTYPE COLLATE BINARY ASC);
  893. CREATE INDEX Z_GenericAsset_kindSubtype_dateCreated_addedDate_filename ON ZGENERICASSET (ZKINDSUBTYPE COLLATE BINARY ASC,
  894. ZDATECREATED COLLATE BINARY ASC,
  895. ZADDEDDATE COLLATE BINARY ASC,
  896. ZFILENAME COLLATE BINARY ASC);
  897. CREATE INDEX Z_GenericAsset_kind_entity ON ZGENERICASSET (ZKIND COLLATE BINARY ASC,
  898. Z_ENT COLLATE BINARY ASC);
  899. CREATE INDEX Z_GenericAsset_kind_trashedState_cloudLocalState_savedAssetType ON ZGENERICASSET (ZKIND COLLATE BINARY ASC,
  900. ZTRASHEDSTATE COLLATE BINARY ASC,
  901. ZCLOUDLOCALSTATE COLLATE BINARY ASC,
  902. ZSAVEDASSETTYPE COLLATE BINARY ASC);
  903. CREATE INDEX Z_GenericAsset_lastSharedDate ON ZGENERICASSET (ZLASTSHAREDDATE COLLATE BINARY ASC);
  904. CREATE INDEX Z_GenericAsset_latitude_longitude_trashedState_hidden_avalanchePickType_savedAssetType ON ZGENERICASSET (ZLATITUDE COLLATE BINARY ASC,
  905. ZLONGITUDE COLLATE BINARY ASC,
  906. ZTRASHEDSTATE COLLATE BINARY ASC,
  907. ZHIDDEN COLLATE BINARY ASC,
  908. ZAVALANCHEPICKTYPE COLLATE BINARY ASC,
  909. ZSAVEDASSETTYPE COLLATE BINARY ASC);
  910. CREATE INDEX Z_GenericAsset_mediaGroupUUID ON ZGENERICASSET (ZMEDIAGROUPUUID COLLATE BINARY ASC);
  911. CREATE INDEX Z_GenericAsset_playbackStyle ON ZGENERICASSET (ZPLAYBACKSTYLE COLLATE BINARY ASC);
  912. CREATE INDEX Z_GenericAsset_playbackStyle_dateCreated_addedDate_filename_visibilityState_complete_trashedState_hidden_savedAssetType_avalanchePickType ON ZGENERICASSET (ZPLAYBACKSTYLE COLLATE BINARY ASC,
  913. ZDATECREATED COLLATE BINARY ASC,
  914. ZADDEDDATE COLLATE BINARY ASC,
  915. ZFILENAME COLLATE BINARY ASC,
  916. ZVISIBILITYSTATE COLLATE BINARY ASC,
  917. ZCOMPLETE COLLATE BINARY ASC,
  918. ZTRASHEDSTATE COLLATE BINARY ASC,
  919. ZHIDDEN COLLATE BINARY ASC,
  920. ZSAVEDASSETTYPE COLLATE BINARY ASC,
  921. ZAVALANCHEPICKTYPE COLLATE BINARY ASC);
  922. CREATE INDEX Z_GenericAsset_playbackVariation ON ZGENERICASSET (ZPLAYBACKVARIATION COLLATE BINARY ASC);
  923. CREATE INDEX Z_GenericAsset_savedAssetType ON ZGENERICASSET (ZSAVEDASSETTYPE COLLATE BINARY ASC);
  924. CREATE INDEX Z_GenericAsset_sortToken ON ZGENERICASSET (ZSORTTOKEN COLLATE BINARY ASC);
  925. CREATE INDEX Z_GenericAsset_thumbnailIndex ON ZGENERICASSET (ZTHUMBNAILINDEX COLLATE BINARY ASC);
  926. CREATE INDEX Z_GenericAsset_trashedState_cloudLocalState_savedAssetType ON ZGENERICASSET (ZTRASHEDSTATE COLLATE BINARY ASC,
  927. ZCLOUDLOCALSTATE COLLATE BINARY ASC,
  928. ZSAVEDASSETTYPE COLLATE BINARY ASC);
  929. CREATE INDEX Z_GenericAsset_trashedState_trashedDate ON ZGENERICASSET (ZTRASHEDSTATE COLLATE BINARY ASC,
  930. ZTRASHEDDATE COLLATE BINARY ASC);
  931. CREATE INDEX Z_GenericAsset_uniformTypeIdentifier ON ZGENERICASSET (ZUNIFORMTYPEIDENTIFIER COLLATE BINARY ASC);
  932. CREATE INDEX Z_GenericAsset_uuid ON ZGENERICASSET (ZUUID COLLATE BINARY ASC);
  933. CREATE INDEX Z_GenericAsset_visibilityState ON ZGENERICASSET (ZVISIBILITYSTATE COLLATE BINARY ASC);
  934. CREATE INDEX Z_Keyword_title ON ZKEYWORD (ZTITLE COLLATE BINARY ASC);
  935. CREATE INDEX Z_LegacyFace_albumUUID ON ZLEGACYFACE (ZALBUMUUID COLLATE BINARY ASC);
  936. CREATE INDEX Z_LegacyFace_identifier ON ZLEGACYFACE (ZIDENTIFIER COLLATE BINARY ASC);
  937. CREATE INDEX Z_Memory_cloudLocalState ON ZMEMORY (ZCLOUDLOCALSTATE COLLATE BINARY ASC);
  938. CREATE INDEX Z_Memory_lastMoviePlayedDate ON ZMEMORY (ZLASTMOVIEPLAYEDDATE COLLATE BINARY ASC);
  939. CREATE INDEX Z_Memory_lastViewedDate ON ZMEMORY (ZLASTVIEWEDDATE COLLATE BINARY ASC);
  940. CREATE INDEX Z_Memory_pending ON ZMEMORY (ZPENDING COLLATE BINARY ASC);
  941. CREATE INDEX Z_Memory_uuid ON ZMEMORY (ZUUID COLLATE BINARY ASC);
  942. CREATE INDEX Z_Moment_endDate ON ZMOMENT (ZENDDATE COLLATE BINARY ASC);
  943. CREATE INDEX Z_Moment_representativeDate ON ZMOMENT (ZREPRESENTATIVEDATE COLLATE BINARY ASC);
  944. CREATE INDEX Z_Moment_reverseLocationDataIsValid ON ZMOMENT (ZREVERSELOCATIONDATAISVALID COLLATE BINARY ASC);
  945. CREATE INDEX Z_Moment_startDate ON ZMOMENT (ZSTARTDATE COLLATE BINARY ASC);
  946. CREATE INDEX Z_Moment_startDate_endDate ON ZMOMENT (ZSTARTDATE COLLATE BINARY ASC,
  947. ZENDDATE COLLATE BINARY ASC);
  948. CREATE INDEX Z_Moment_trashedState ON ZMOMENT (ZTRASHEDSTATE COLLATE BINARY ASC);
  949. CREATE INDEX Z_Moment_uuid ON ZMOMENT (ZUUID COLLATE BINARY ASC);
  950. CREATE INDEX Z_MomentList_granularityLevel ON ZMOMENTLIST (ZGRANULARITYLEVEL COLLATE BINARY ASC);
  951. CREATE INDEX Z_MomentList_granularityLevel_sortIndex ON ZMOMENTLIST (ZGRANULARITYLEVEL COLLATE BINARY ASC,
  952. ZSORTINDEX COLLATE BINARY ASC);
  953. CREATE INDEX Z_MomentList_representativeDate ON ZMOMENTLIST (ZREPRESENTATIVEDATE COLLATE BINARY ASC);
  954. CREATE INDEX Z_MomentList_reverseLocationDataIsValid ON ZMOMENTLIST (ZREVERSELOCATIONDATAISVALID COLLATE BINARY ASC);
  955. CREATE INDEX Z_MomentList_reverseLocationDataIsValid_granularityLevel ON ZMOMENTLIST (ZREVERSELOCATIONDATAISVALID COLLATE BINARY ASC,
  956. ZGRANULARITYLEVEL COLLATE BINARY ASC);
  957. CREATE INDEX Z_MomentList_sortIndex ON ZMOMENTLIST (ZSORTINDEX COLLATE BINARY ASC);
  958. CREATE INDEX Z_MomentList_trashedState ON ZMOMENTLIST (ZTRASHEDSTATE COLLATE BINARY ASC);
  959. CREATE INDEX Z_MomentList_uuid ON ZMOMENTLIST (ZUUID COLLATE BINARY ASC);
  960. CREATE INDEX Z_Person_cloudLocalState ON ZPERSON (ZCLOUDLOCALSTATE COLLATE BINARY ASC);
  961. CREATE INDEX Z_Person_faceCount ON ZPERSON (ZFACECOUNT COLLATE BINARY ASC);
  962. CREATE INDEX Z_Person_manualOrder ON ZPERSON (ZMANUALORDER COLLATE BINARY ASC);
  963. CREATE INDEX Z_Person_personUUID ON ZPERSON (ZPERSONUUID COLLATE BINARY ASC);
  964. CREATE INDEX Z_Person_personUri ON ZPERSON (ZPERSONURI COLLATE BINARY ASC);
  965. CREATE INDEX Z_Person_type ON ZPERSON (ZTYPE COLLATE BINARY ASC);
  966. CREATE INDEX Z_Person_verifiedType ON ZPERSON (ZVERIFIEDTYPE COLLATE BINARY ASC);
  967. CREATE INDEX Z_Person_verifiedType_faceCount_type ON ZPERSON (ZVERIFIEDTYPE COLLATE BINARY ASC,
  968. ZFACECOUNT COLLATE BINARY ASC,
  969. ZTYPE COLLATE BINARY ASC);
  970. CREATE INDEX Z_SearchData_valid ON ZSEARCHDATA (ZVALID COLLATE BINARY ASC);
  971. CREATE INDEX RADAR_22158684_INDEX ON Z_20ASSETS (Z_20ALBUMS,
  972. Z_FOK_27ASSETS,
  973. Z_27ASSETS);
  974. CREATE INDEX RADAR_10322662_INDEX ON Z_20ASSETS (Z_20ALBUMS,
  975. Z_27ASSETS,
  976. Z_FOK_27ASSETS);
  977. CREATE INDEX RADAR_16835859_INDEX ON ZGENERICASSET (ZMOMENT,
  978. Z_FOK_MOMENT);