photos_6.1.6.sql 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. CREATE TABLE ZADDITIONALASSETATTRIBUTES ( Z_PK INTEGER PRIMARY KEY,
  2. Z_ENT INTEGER,
  3. Z_OPT INTEGER,
  4. ZEMBEDDEDTHUMBNAILHEIGHT INTEGER,
  5. ZEMBEDDEDTHUMBNAILLENGTH INTEGER,
  6. ZEMBEDDEDTHUMBNAILOFFSET INTEGER,
  7. ZEMBEDDEDTHUMBNAILWIDTH INTEGER,
  8. ZHIGHDYNAMICRANGETYPE INTEGER,
  9. ZORIGINALFILESIZE INTEGER,
  10. ZORIGINALHEIGHT INTEGER,
  11. ZORIGINALORIENTATION INTEGER,
  12. ZORIGINALWIDTH INTEGER,
  13. ZASSET INTEGER,
  14. Z14_ASSET INTEGER,
  15. ZDURATION FLOAT,
  16. ZCREATORBUNDLEID VARCHAR,
  17. ZORIGINALFILENAME VARCHAR,
  18. ZORIGINALPATH VARCHAR,
  19. ZIMPORTSESSIONID BLOB,
  20. ZORIGINALASSETSUUID BLOB );
  21. CREATE INDEX ZADDITIONALASSETATTRIBUTES_ZCREATORBUNDLEID_INDEX ON ZADDITIONALASSETATTRIBUTES (ZCREATORBUNDLEID);
  22. CREATE INDEX ZADDITIONALASSETATTRIBUTES_ZORIGINALASSETSUUID_INDEX ON ZADDITIONALASSETATTRIBUTES (ZORIGINALASSETSUUID);
  23. CREATE INDEX ZADDITIONALASSETATTRIBUTES_ZASSET_INDEX ON ZADDITIONALASSETATTRIBUTES (ZASSET);
  24. CREATE TABLE ZADJUSTMENT ( Z_PK INTEGER PRIMARY KEY,
  25. Z_ENT INTEGER,
  26. Z_OPT INTEGER,
  27. ZIDENTIFIER INTEGER,
  28. ZASSET INTEGER,
  29. Z14_ASSET INTEGER,
  30. Z_FOK_ASSET INTEGER,
  31. ZFILTERNAME VARCHAR,
  32. ZFILTERSETTINGS BLOB );
  33. CREATE INDEX ZADJUSTMENT_ZASSET_INDEX ON ZADJUSTMENT (ZASSET);
  34. CREATE TABLE ZALBUMLIST ( Z_PK INTEGER PRIMARY KEY,
  35. Z_ENT INTEGER,
  36. Z_OPT INTEGER,
  37. ZIDENTIFIER INTEGER,
  38. ZNEEDSREORDERINGNUMBER INTEGER,
  39. ZPENDINGITEMSCOUNT INTEGER );
  40. CREATE TABLE ZCLOUDSHAREDALBUMINVITATIONRECORD ( Z_PK INTEGER PRIMARY KEY,
  41. Z_ENT INTEGER,
  42. Z_OPT INTEGER,
  43. ZINVITATIONSTATE INTEGER,
  44. ZINVITATIONSTATELOCAL INTEGER,
  45. ZINVITEEEMAILKEY INTEGER,
  46. ZALBUM INTEGER,
  47. Z_FOK_ALBUM INTEGER,
  48. ZALBUMGUID VARCHAR,
  49. ZCLOUDGUID VARCHAR,
  50. ZINVITEEFIRSTNAME VARCHAR,
  51. ZINVITEELASTNAME VARCHAR );
  52. CREATE INDEX ZCLOUDSHAREDALBUMINVITATIONRECORD_ZALBUM_INDEX ON ZCLOUDSHAREDALBUMINVITATIONRECORD (ZALBUM);
  53. CREATE TABLE ZCLOUDSHAREDCOMMENT ( Z_PK INTEGER PRIMARY KEY,
  54. Z_ENT INTEGER,
  55. Z_OPT INTEGER,
  56. ZCOMMENTEREMAILKEY INTEGER,
  57. ZISCAPTION INTEGER,
  58. ZISDELETABLE INTEGER,
  59. ZISLIKE INTEGER,
  60. ZISMYCOMMENT INTEGER,
  61. ZCOMMENTEDASSET INTEGER,
  62. Z14_COMMENTEDASSET INTEGER,
  63. ZLIKEDASSET INTEGER,
  64. Z14_LIKEDASSET INTEGER,
  65. Z_FOK_LIKEDASSET INTEGER,
  66. Z_FOK_COMMENTEDASSET INTEGER,
  67. ZCOMMENTDATE TIMESTAMP,
  68. ZCLOUDGUID VARCHAR,
  69. ZCOMMENTTEXT VARCHAR,
  70. ZCOMMENTTYPE VARCHAR,
  71. ZCOMMENTERFIRSTNAME VARCHAR,
  72. ZCOMMENTERLASTNAME VARCHAR );
  73. CREATE INDEX ZCLOUDSHAREDCOMMENT_ZCOMMENTEDASSET_INDEX ON ZCLOUDSHAREDCOMMENT (ZCOMMENTEDASSET);
  74. CREATE INDEX ZCLOUDSHAREDCOMMENT_ZLIKEDASSET_INDEX ON ZCLOUDSHAREDCOMMENT (ZLIKEDASSET);
  75. CREATE TABLE ZFACE ( Z_PK INTEGER PRIMARY KEY,
  76. Z_ENT INTEGER,
  77. Z_OPT INTEGER,
  78. ZIDENTIFIER INTEGER,
  79. ZASSET INTEGER,
  80. Z14_ASSET INTEGER,
  81. ZALBUMUUID BLOB,
  82. ZRELATIVERECTVALUE BLOB );
  83. CREATE INDEX ZFACE_ZALBUMUUID_INDEX ON ZFACE (ZALBUMUUID);
  84. CREATE INDEX ZFACE_ZIDENTIFIER_INDEX ON ZFACE (ZIDENTIFIER);
  85. CREATE INDEX ZFACE_ZASSET_INDEX ON ZFACE (ZASSET);
  86. CREATE TABLE ZGENERICALBUM ( Z_PK INTEGER PRIMARY KEY,
  87. Z_ENT INTEGER,
  88. Z_OPT INTEGER,
  89. ZCACHEDCOUNT INTEGER,
  90. ZCACHEDPHOTOSCOUNT INTEGER,
  91. ZCACHEDVIDEOSCOUNT INTEGER,
  92. ZKIND INTEGER,
  93. ZPENDINGITEMSCOUNT INTEGER,
  94. ZPENDINGITEMSTYPE INTEGER,
  95. ZKEYASSET INTEGER,
  96. Z14_KEYASSET INTEGER,
  97. ZCLOUDOWNEREMAILKEY INTEGER,
  98. ZCLOUDPUBLICURLENABLED INTEGER,
  99. ZCLOUDPUBLICURLENABLEDLOCAL INTEGER,
  100. ZCLOUDRELATIONSHIPSTATE INTEGER,
  101. ZCLOUDRELATIONSHIPSTATELOCAL INTEGER,
  102. ZHASUNSEENCONTENT INTEGER,
  103. ZISOWNED INTEGER,
  104. ZUNSEENASSETSCOUNT INTEGER,
  105. ZKEYASSETFACEIDENTIFIER INTEGER,
  106. ZKEYASSETFACETHUMBNAILINDEX INTEGER,
  107. ZCLOUDLASTINTERESTINGCHANGEDATE TIMESTAMP,
  108. ZTITLE VARCHAR,
  109. ZCLOUDGUID VARCHAR,
  110. ZCLOUDOWNERFIRSTNAME VARCHAR,
  111. ZCLOUDOWNERLASTNAME VARCHAR,
  112. ZCLOUDPERSONID VARCHAR,
  113. ZPUBLICURL VARCHAR,
  114. ZIMPORTSESSIONID BLOB,
  115. ZUUID BLOB,
  116. ZCLOUDMETADATA BLOB );
  117. CREATE INDEX ZGENERICALBUM_ZKIND_INDEX ON ZGENERICALBUM (ZKIND);
  118. CREATE INDEX ZGENERICALBUM_ZUUID_INDEX ON ZGENERICALBUM (ZUUID);
  119. CREATE INDEX ZGENERICALBUM_ZKEYASSET_INDEX ON ZGENERICALBUM (ZKEYASSET);
  120. CREATE INDEX ZGENERICALBUM_Z_ENT_INDEX ON ZGENERICALBUM (Z_ENT);
  121. CREATE TABLE Z_7ALBUMLISTS ( Z_7ALBUMS INTEGER,
  122. Z_3ALBUMLISTS INTEGER,
  123. Z_FOK_7ALBUMS INTEGER,
  124. PRIMARY KEY (Z_7ALBUMS,
  125. Z_3ALBUMLISTS) );
  126. CREATE TABLE Z_8ASSETS ( Z_8ALBUMS INTEGER,
  127. Z_14ASSETS INTEGER,
  128. Z_FOK_14ASSETS INTEGER,
  129. PRIMARY KEY (Z_8ALBUMS,
  130. Z_14ASSETS) );
  131. CREATE TABLE ZGENERICASSET ( Z_PK INTEGER PRIMARY KEY,
  132. Z_ENT INTEGER,
  133. Z_OPT INTEGER,
  134. ZCLOUDHASCOMMENTSBYME INTEGER,
  135. ZCLOUDHASCOMMENTSCONVERSATION INTEGER,
  136. ZCLOUDHASUNSEENCOMMENTS INTEGER,
  137. ZCLOUDPLACEHOLDERKIND INTEGER,
  138. ZCOMPLETE INTEGER,
  139. ZFLAGGED INTEGER,
  140. ZHEIGHT INTEGER,
  141. ZKIND INTEGER,
  142. ZORIENTATION INTEGER,
  143. ZSAVEDASSETTYPE INTEGER,
  144. ZTHUMBNAILINDEX INTEGER,
  145. ZWIDTH INTEGER,
  146. ZADDITIONALATTRIBUTES INTEGER,
  147. ZCLOUDBATCHPUBLISHDATE TIMESTAMP,
  148. ZCLOUDLASTVIEWEDCOMMENTDATE TIMESTAMP,
  149. ZDATECREATED TIMESTAMP,
  150. ZMODIFICATIONDATE TIMESTAMP,
  151. ZSORTTOKEN FLOAT,
  152. ZCLOUDASSETGUID VARCHAR,
  153. ZCLOUDASSETKIND VARCHAR,
  154. ZCLOUDBATCHID VARCHAR,
  155. ZCLOUDCOLLECTIONGUID VARCHAR,
  156. ZDIRECTORY VARCHAR,
  157. ZFILENAME VARCHAR,
  158. ZTITLE VARCHAR,
  159. ZUNIFORMTYPEIDENTIFIER VARCHAR,
  160. ZCLOUDMETADATA BLOB,
  161. ZFACERECTANGLES BLOB,
  162. ZUUID BLOB,
  163. ZLOCATIONDATA BLOB,
  164. ZIMAGEURLDATA BLOB,
  165. ZTHUMBNAILURLDATA BLOB );
  166. CREATE INDEX ZGENERICASSET_ZCLOUDPLACEHOLDERKIND_INDEX ON ZGENERICASSET (ZCLOUDPLACEHOLDERKIND);
  167. CREATE INDEX ZGENERICASSET_ZCOMPLETE_INDEX ON ZGENERICASSET (ZCOMPLETE);
  168. CREATE INDEX ZGENERICASSET_ZDATECREATED_INDEX ON ZGENERICASSET (ZDATECREATED);
  169. CREATE INDEX ZGENERICASSET_ZKIND_INDEX ON ZGENERICASSET (ZKIND);
  170. CREATE INDEX ZGENERICASSET_ZSAVEDASSETTYPE_INDEX ON ZGENERICASSET (ZSAVEDASSETTYPE);
  171. CREATE INDEX ZGENERICASSET_ZSORTTOKEN_INDEX ON ZGENERICASSET (ZSORTTOKEN);
  172. CREATE INDEX ZGENERICASSET_ZUUID_INDEX ON ZGENERICASSET (ZUUID);
  173. CREATE INDEX ZGENERICASSET_ZADDITIONALATTRIBUTES_INDEX ON ZGENERICASSET (ZADDITIONALATTRIBUTES);
  174. CREATE INDEX ZGENERICASSET_Z_ENT_INDEX ON ZGENERICASSET (Z_ENT);
  175. CREATE INDEX ZGENERICASSET_ZKIND_Z_PK ON ZGENERICASSET (ZKIND,
  176. Z_PK);
  177. CREATE TABLE ZKEYWORD ( Z_PK INTEGER PRIMARY KEY,
  178. Z_ENT INTEGER,
  179. Z_OPT INTEGER,
  180. ZTITLE VARCHAR );
  181. CREATE TABLE ZSIDECARFILE ( Z_PK INTEGER PRIMARY KEY,
  182. Z_ENT INTEGER,
  183. Z_OPT INTEGER,
  184. ZCOMPRESSEDSIZE INTEGER,
  185. ZINDEX INTEGER,
  186. ZASSET INTEGER,
  187. Z14_ASSET INTEGER,
  188. ZCAPTUREDATE TIMESTAMP,
  189. ZMODIFICATIONDATE TIMESTAMP,
  190. ZFILENAME VARCHAR,
  191. ZORIGINALFILENAME VARCHAR,
  192. ZUNIFORMTYPEIDENTIFIER VARCHAR );
  193. CREATE INDEX ZSIDECARFILE_ZASSET_INDEX ON ZSIDECARFILE (ZASSET);
  194. CREATE TABLE Z_PRIMARYKEY (Z_ENT INTEGER PRIMARY KEY,
  195. Z_NAME VARCHAR,
  196. Z_SUPER INTEGER,
  197. Z_MAX INTEGER);
  198. CREATE TABLE Z_METADATA (Z_VERSION INTEGER PRIMARY KEY,
  199. Z_UUID VARCHAR(255),
  200. Z_PLIST BLOB);
  201. CREATE INDEX RADAR_10322662_INDEX ON Z_8ASSETS (Z_8ALBUMS,
  202. Z_FOK_14ASSETS,
  203. Z_14ASSETS);