@sync-in/server 1.3.7 → 1.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/CHANGELOG.md +13 -13
  2. package/migrations/0001_square_mauler.sql +4 -0
  3. package/migrations/meta/0001_snapshot.json +2417 -0
  4. package/migrations/meta/_journal.json +7 -0
  5. package/package.json +45 -2
  6. package/server/app.service.spec.js +4 -4
  7. package/server/app.service.spec.js.map +1 -1
  8. package/server/applications/sync/schemas/sync-clients.schema.js +4 -4
  9. package/server/applications/sync/schemas/sync-clients.schema.js.map +1 -1
  10. package/server/applications/users/schemas/users.schema.js +4 -4
  11. package/server/applications/users/schemas/users.schema.js.map +1 -1
  12. package/server/configuration/config.constants.js +0 -4
  13. package/server/configuration/config.constants.js.map +1 -1
  14. package/server/configuration/config.loader.js +2 -2
  15. package/server/configuration/config.loader.js.map +1 -1
  16. package/server/infrastructure/database/configuration.js +1 -1
  17. package/server/infrastructure/database/configuration.js.map +1 -1
  18. package/server/infrastructure/database/constants.js +19 -5
  19. package/server/infrastructure/database/constants.js.map +1 -1
  20. package/static/assets/mimes/7zip.svg +14 -0
  21. package/static/assets/mimes/application-7zip.svg +14 -0
  22. package/static/assets/mimes/application-atom+xml.svg +15 -0
  23. package/static/assets/mimes/application-gzip.svg +16 -0
  24. package/static/assets/mimes/application-mathml+xml.svg +188 -0
  25. package/static/assets/mimes/application-mp4.svg +18 -0
  26. package/static/assets/mimes/application-msexcel.svg +1 -0
  27. package/static/assets/mimes/application-msword-template.svg +1 -0
  28. package/static/assets/mimes/application-pgp-encrypted.svg +16 -0
  29. package/static/assets/mimes/application-pgp-keys.svg +16 -0
  30. package/static/assets/mimes/application-pgp-signature.svg +16 -0
  31. package/static/assets/mimes/application-powerpoint.svg +1 -0
  32. package/static/assets/mimes/application-rdf+xml.svg +14 -0
  33. package/static/assets/mimes/application-rss+xml.svg +15 -0
  34. package/static/assets/mimes/application-rtf.svg +14 -0
  35. package/static/assets/mimes/application-text.svg +14 -0
  36. package/static/assets/mimes/application-vnd.ms-excel.sheet.binary.macroenabled.12.svg +1 -0
  37. package/static/assets/mimes/application-vnd.ms-excel.sheet.macroenabled.12.svg +1 -0
  38. package/static/assets/mimes/application-vnd.ms-excel.template.macroenabled.12.svg +1 -0
  39. package/static/assets/mimes/application-vnd.ms-powerpoint.presentation.macroenabled.12.svg +1 -0
  40. package/static/assets/mimes/application-vnd.ms-powerpoint.template.macroenabled.12.svg +1 -0
  41. package/static/assets/mimes/application-vnd.ms-word.document.macroenabled.12.svg +1 -0
  42. package/static/assets/mimes/application-vnd.ms-word.svg +1 -0
  43. package/static/assets/mimes/application-vnd.ms-word.template.macroenabled.12.svg +1 -0
  44. package/static/assets/mimes/application-vnd.mspowerpoint.svg +1 -0
  45. package/static/assets/mimes/application-vnd.oasis.opendocument.chart.svg +1 -0
  46. package/static/assets/mimes/application-vnd.oasis.opendocument.text-master.svg +92 -0
  47. package/static/assets/mimes/application-vnd.oasis.opendocument.text-web.svg +18 -0
  48. package/static/assets/mimes/application-vnd.openofficeorg.extension.svg +59 -0
  49. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.presentationml.presentation.svg +1 -0
  50. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.presentationml.slideshow.svg +1 -0
  51. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.svg +1 -0
  52. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.spreadsheetml.template.svg +1 -0
  53. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.wordprocessingml.document.svg +1 -0
  54. package/static/assets/mimes/application-vnd.openxmlformats-officedocument.wordprocessingml.template.svg +1 -0
  55. package/static/assets/mimes/application-vnd.rn-realmedia.svg +18 -0
  56. package/static/assets/mimes/application-vnd.sun.xml.calc.svg +1 -0
  57. package/static/assets/mimes/application-vnd.sun.xml.writer-global.svg +1 -0
  58. package/static/assets/mimes/application-vnd.sun.xml.writer-template.svg +1 -0
  59. package/static/assets/mimes/application-vnd.sun.xml.writer.svg +1 -0
  60. package/static/assets/mimes/application-vnd.sun.xml.writer.template.svg +14 -0
  61. package/static/assets/mimes/application-wps-office.doc.svg +1 -0
  62. package/static/assets/mimes/application-wps-office.docx.svg +1 -0
  63. package/static/assets/mimes/application-wps-office.ppt.svg +1 -0
  64. package/static/assets/mimes/application-wps-office.pptx.svg +1 -0
  65. package/static/assets/mimes/application-wps-office.xls.svg +1 -0
  66. package/static/assets/mimes/application-wps-office.xlsx.svg +1 -0
  67. package/static/assets/mimes/application-x-7zip.svg +14 -0
  68. package/static/assets/mimes/application-x-ace.svg +14 -0
  69. package/static/assets/mimes/application-x-addon.svg +59 -0
  70. package/static/assets/mimes/application-x-ar.svg +16 -0
  71. package/static/assets/mimes/application-x-arc.svg +14 -0
  72. package/static/assets/mimes/application-x-archive.svg +16 -0
  73. package/static/assets/mimes/application-x-arj.svg +14 -0
  74. package/static/assets/mimes/application-x-audacity-project.svg +24 -0
  75. package/static/assets/mimes/application-x-bzdvi.svg +14 -0
  76. package/static/assets/mimes/application-x-bzip-compressed-tar.svg +14 -0
  77. package/static/assets/mimes/application-x-class-file.svg +37 -0
  78. package/static/assets/mimes/application-x-compress-tar.svg +16 -0
  79. package/static/assets/mimes/application-x-compress.svg +16 -0
  80. package/static/assets/mimes/application-x-compressed-tar.svg +14 -0
  81. package/static/assets/mimes/application-x-core.svg +20 -0
  82. package/static/assets/mimes/application-x-cpio.svg +16 -0
  83. package/static/assets/mimes/application-x-deb.svg +14 -0
  84. package/static/assets/mimes/application-x-designer.svg +48 -0
  85. package/static/assets/mimes/application-x-egon.svg +12 -0
  86. package/static/assets/mimes/application-x-extension-html.svg +18 -0
  87. package/static/assets/mimes/application-x-font-afm.svg +14 -0
  88. package/static/assets/mimes/application-x-font-snf.svg +14 -0
  89. package/static/assets/mimes/application-x-font-speedo.svg +14 -0
  90. package/static/assets/mimes/application-x-font-type1.svg +14 -0
  91. package/static/assets/mimes/application-x-gettext-translation.svg +14 -0
  92. package/static/assets/mimes/application-x-gnome-theme-package.svg +109 -0
  93. package/static/assets/mimes/application-x-gzdvi.svg +16 -0
  94. package/static/assets/mimes/application-x-gzip.svg +16 -0
  95. package/static/assets/mimes/application-x-httpd-php.svg +18 -0
  96. package/static/assets/mimes/application-x-iso9660-image.svg +292 -0
  97. package/static/assets/mimes/application-x-java-archive.svg +16 -0
  98. package/static/assets/mimes/application-x-jokosher.svg +24 -0
  99. package/static/assets/mimes/application-x-kcachegrind.svg +273 -0
  100. package/static/assets/mimes/application-x-kcsrc.svg +109 -0
  101. package/static/assets/mimes/application-x-keepass2.svg +2 -0
  102. package/static/assets/mimes/application-x-kgetlist.svg +53 -0
  103. package/static/assets/mimes/application-x-lha.svg +14 -0
  104. package/static/assets/mimes/application-x-lzma-compressed-tar.svg +16 -0
  105. package/static/assets/mimes/application-x-lzop.svg +16 -0
  106. package/static/assets/mimes/application-x-m4.svg +14 -0
  107. package/static/assets/mimes/application-x-matroska.svg +18 -0
  108. package/static/assets/mimes/application-x-mplayer2.svg +18 -0
  109. package/static/assets/mimes/application-x-ms-application.svg +306 -0
  110. package/static/assets/mimes/application-x-msdos-program.svg +306 -0
  111. package/static/assets/mimes/application-x-msdownload.svg +306 -0
  112. package/static/assets/mimes/application-x-msi.svg +306 -0
  113. package/static/assets/mimes/application-x-mswinurl.svg +18 -0
  114. package/static/assets/mimes/application-x-mswrite.svg +1 -0
  115. package/static/assets/mimes/application-x-object.svg +273 -0
  116. package/static/assets/mimes/application-x-ole-storage.svg +273 -0
  117. package/static/assets/mimes/application-x-pak.svg +16 -0
  118. package/static/assets/mimes/application-x-perl.svg +15 -0
  119. package/static/assets/mimes/application-x-php.svg +18 -0
  120. package/static/assets/mimes/application-x-python-bytecode.svg +16 -0
  121. package/static/assets/mimes/application-x-rar.svg +14 -0
  122. package/static/assets/mimes/application-x-rpm.svg +14 -0
  123. package/static/assets/mimes/application-x-ruby.svg +22 -0
  124. package/static/assets/mimes/application-x-sh.svg +17 -0
  125. package/static/assets/mimes/application-x-shared-library-la.svg +62 -0
  126. package/static/assets/mimes/application-x-shellscript.svg +17 -0
  127. package/static/assets/mimes/application-x-shockwave-flash.svg +18 -0
  128. package/static/assets/mimes/application-x-srt.svg +210 -0
  129. package/static/assets/mimes/application-x-tar.svg +16 -0
  130. package/static/assets/mimes/application-x-tarz.svg +14 -0
  131. package/static/assets/mimes/application-x-trash.svg +14 -0
  132. package/static/assets/mimes/application-x-tzo.svg +14 -0
  133. package/static/assets/mimes/application-x-wine-extension-pdd.svg +14 -0
  134. package/static/assets/mimes/application-x-zip.svg +14 -0
  135. package/static/assets/mimes/application-x-zoo.svg +14 -0
  136. package/static/assets/mimes/application-xhtml+xml.svg +18 -0
  137. package/static/assets/mimes/application-xml.svg +18 -0
  138. package/static/assets/mimes/application-xsd.svg +18 -0
  139. package/static/assets/mimes/application-xslt+xml.svg +18 -0
  140. package/static/assets/mimes/application-zip.svg +14 -0
  141. package/static/assets/mimes/applications-java.svg +14 -0
  142. package/static/assets/mimes/archive.svg +16 -0
  143. package/static/assets/mimes/ascii.svg +14 -0
  144. package/static/assets/mimes/audio-ac3.svg +24 -0
  145. package/static/assets/mimes/audio-flac.svg +24 -0
  146. package/static/assets/mimes/audio-mpeg.svg +24 -0
  147. package/static/assets/mimes/audio-vn.rn-realmedia.svg +18 -0
  148. package/static/assets/mimes/audio-vnd.rn-realvideo.svg +18 -0
  149. package/static/assets/mimes/audio-x-adpcm.svg +24 -0
  150. package/static/assets/mimes/audio-x-aiff.svg +24 -0
  151. package/static/assets/mimes/audio-x-flac+ogg.svg +24 -0
  152. package/static/assets/mimes/audio-x-flac.svg +24 -0
  153. package/static/assets/mimes/audio-x-it.svg +24 -0
  154. package/static/assets/mimes/audio-x-monkey.svg +24 -0
  155. package/static/assets/mimes/audio-x-mpegurl.svg +24 -0
  156. package/static/assets/mimes/audio-x-wav.svg +24 -0
  157. package/static/assets/mimes/audio-x-xi.svg +24 -0
  158. package/static/assets/mimes/audio-x-xm.svg +24 -0
  159. package/static/assets/mimes/binary.svg +40 -0
  160. package/static/assets/mimes/deb.svg +14 -0
  161. package/static/assets/mimes/divx.svg +18 -0
  162. package/static/assets/mimes/document.svg +14 -0
  163. package/static/assets/mimes/emblem-package.svg +16 -0
  164. package/static/assets/mimes/eps.svg +24 -0
  165. package/static/assets/mimes/exec.svg +40 -0
  166. package/static/assets/mimes/folder-tar.svg +16 -0
  167. package/static/assets/mimes/folder_tar.svg +16 -0
  168. package/static/assets/mimes/font-otf.svg +14 -0
  169. package/static/assets/mimes/font.svg +14 -0
  170. package/static/assets/mimes/font_bitmap.svg +14 -0
  171. package/static/assets/mimes/font_truetype.svg +14 -0
  172. package/static/assets/mimes/font_type1.svg +14 -0
  173. package/static/assets/mimes/fonts-package.svg +16 -0
  174. package/static/assets/mimes/gedit-plugin.svg +59 -0
  175. package/static/assets/mimes/gnome-exe-thumbnailer-generic-x.svg +306 -0
  176. package/static/assets/mimes/gnome-exe-thumbnailer-generic.svg +306 -0
  177. package/static/assets/mimes/gnome-exe-thumbnailer-template.svg +306 -0
  178. package/static/assets/mimes/gnome-fs-executable.svg +40 -0
  179. package/static/assets/mimes/gnome-mime-application-atom+xml.svg +15 -0
  180. package/static/assets/mimes/gnome-mime-application-msexcel.svg +1 -0
  181. package/static/assets/mimes/gnome-mime-application-msword.svg +1 -0
  182. package/static/assets/mimes/gnome-mime-application-ogg.svg +24 -0
  183. package/static/assets/mimes/gnome-mime-application-pdf.svg +13 -0
  184. package/static/assets/mimes/gnome-mime-application-postscript.svg +14 -0
  185. package/static/assets/mimes/gnome-mime-application-powerpoint.svg +1 -0
  186. package/static/assets/mimes/gnome-mime-application-rss+xml.svg +15 -0
  187. package/static/assets/mimes/gnome-mime-application-rtf.svg +14 -0
  188. package/static/assets/mimes/gnome-mime-application-vnd.ms-excel.svg +1 -0
  189. package/static/assets/mimes/gnome-mime-application-vnd.ms-powerpoint.svg +1 -0
  190. package/static/assets/mimes/gnome-mime-application-vnd.ms-word.svg +1 -0
  191. package/static/assets/mimes/gnome-mime-application-vnd.mspowerpoint.svg +1 -0
  192. package/static/assets/mimes/gnome-mime-application-vnd.oasis.opendocument.formula.svg +188 -0
  193. package/static/assets/mimes/gnome-mime-application-vnd.oasis.opendocument.text-web.svg +18 -0
  194. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.presentationml.presentation.svg +1 -0
  195. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.presentationml.slideshow.svg +1 -0
  196. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.svg +1 -0
  197. package/static/assets/mimes/gnome-mime-application-vnd.openxmlformats-officedocument.wordprocessingml.document.svg +1 -0
  198. package/static/assets/mimes/gnome-mime-application-vnd.rn-realmedia-secure.svg +18 -0
  199. package/static/assets/mimes/gnome-mime-application-vnd.rn-realmedia-vbr.svg +18 -0
  200. package/static/assets/mimes/gnome-mime-application-vnd.rn-realmedia.svg +18 -0
  201. package/static/assets/mimes/gnome-mime-application-wps-office.doc.svg +1 -0
  202. package/static/assets/mimes/gnome-mime-application-wps-office.docx.svg +1 -0
  203. package/static/assets/mimes/gnome-mime-application-wps-office.ppt.svg +1 -0
  204. package/static/assets/mimes/gnome-mime-application-wps-office.pptx.svg +1 -0
  205. package/static/assets/mimes/gnome-mime-application-wps-office.xls.svg +1 -0
  206. package/static/assets/mimes/gnome-mime-application-wps-office.xlsx.svg +1 -0
  207. package/static/assets/mimes/gnome-mime-application-x-7z-compressed.svg +14 -0
  208. package/static/assets/mimes/gnome-mime-application-x-7zip.svg +14 -0
  209. package/static/assets/mimes/gnome-mime-application-x-archive.svg +16 -0
  210. package/static/assets/mimes/gnome-mime-application-x-arj.svg +16 -0
  211. package/static/assets/mimes/gnome-mime-application-x-bittorrent.svg +53 -0
  212. package/static/assets/mimes/gnome-mime-application-x-bzip-compressed-tar.svg +16 -0
  213. package/static/assets/mimes/gnome-mime-application-x-bzip-compressed.svg +16 -0
  214. package/static/assets/mimes/gnome-mime-application-x-bzip.svg +16 -0
  215. package/static/assets/mimes/gnome-mime-application-x-class-file.svg +14 -0
  216. package/static/assets/mimes/gnome-mime-application-x-compress.svg +16 -0
  217. package/static/assets/mimes/gnome-mime-application-x-compressed-tar.svg +16 -0
  218. package/static/assets/mimes/gnome-mime-application-x-cpio-compressed.svg +16 -0
  219. package/static/assets/mimes/gnome-mime-application-x-cpio.svg +16 -0
  220. package/static/assets/mimes/gnome-mime-application-x-deb.svg +14 -0
  221. package/static/assets/mimes/gnome-mime-application-x-designer.svg +48 -0
  222. package/static/assets/mimes/gnome-mime-application-x-executable.svg +40 -0
  223. package/static/assets/mimes/gnome-mime-application-x-font-afm.svg +14 -0
  224. package/static/assets/mimes/gnome-mime-application-x-font-bdf.svg +14 -0
  225. package/static/assets/mimes/gnome-mime-application-x-font-linux-psf.svg +14 -0
  226. package/static/assets/mimes/gnome-mime-application-x-font-pcf.svg +14 -0
  227. package/static/assets/mimes/gnome-mime-application-x-font-sunos-news.svg +14 -0
  228. package/static/assets/mimes/gnome-mime-application-x-font-ttf.svg +14 -0
  229. package/static/assets/mimes/gnome-mime-application-x-glade.svg +48 -0
  230. package/static/assets/mimes/gnome-mime-application-x-gnome-app-info.svg +109 -0
  231. package/static/assets/mimes/gnome-mime-application-x-gnome-theme-package.svg +109 -0
  232. package/static/assets/mimes/gnome-mime-application-x-gzip.svg +16 -0
  233. package/static/assets/mimes/gnome-mime-application-x-gzpostscript.svg +14 -0
  234. package/static/assets/mimes/gnome-mime-application-x-jar.svg +16 -0
  235. package/static/assets/mimes/gnome-mime-application-x-java.svg +14 -0
  236. package/static/assets/mimes/gnome-mime-application-x-killustrator.svg +12 -0
  237. package/static/assets/mimes/gnome-mime-application-x-lha.svg +16 -0
  238. package/static/assets/mimes/gnome-mime-application-x-lhz.svg +16 -0
  239. package/static/assets/mimes/gnome-mime-application-x-lzma-compressed-tar.svg +16 -0
  240. package/static/assets/mimes/gnome-mime-application-x-lzma.svg +16 -0
  241. package/static/assets/mimes/gnome-mime-application-x-ms-dos-executable.svg +306 -0
  242. package/static/assets/mimes/gnome-mime-application-x-perl.svg +15 -0
  243. package/static/assets/mimes/gnome-mime-application-x-php.svg +18 -0
  244. package/static/assets/mimes/gnome-mime-application-x-python-bytecode.svg +16 -0
  245. package/static/assets/mimes/gnome-mime-application-x-rar.svg +14 -0
  246. package/static/assets/mimes/gnome-mime-application-x-rpm.svg +14 -0
  247. package/static/assets/mimes/gnome-mime-application-x-ruby.svg +22 -0
  248. package/static/assets/mimes/gnome-mime-application-x-shellscript.svg +17 -0
  249. package/static/assets/mimes/gnome-mime-application-x-shockwave-flash.svg +18 -0
  250. package/static/assets/mimes/gnome-mime-application-x-stuffit.svg +16 -0
  251. package/static/assets/mimes/gnome-mime-application-x-tar.svg +16 -0
  252. package/static/assets/mimes/gnome-mime-application-x-tarz.svg +16 -0
  253. package/static/assets/mimes/gnome-mime-application-x-tex.svg +79 -0
  254. package/static/assets/mimes/gnome-mime-application-x-theme.svg +109 -0
  255. package/static/assets/mimes/gnome-mime-application-x-zip.svg +14 -0
  256. package/static/assets/mimes/gnome-mime-application-xhtml+xml.svg +18 -0
  257. package/static/assets/mimes/gnome-mime-application-xml.svg +18 -0
  258. package/static/assets/mimes/gnome-mime-application-zip.svg +14 -0
  259. package/static/assets/mimes/gnome-mime-application.svg +40 -0
  260. package/static/assets/mimes/gnome-mime-audio.svg +24 -0
  261. package/static/assets/mimes/gnome-mime-image-vnd.adobe.photoshop.svg +14 -0
  262. package/static/assets/mimes/gnome-mime-image-x-cmu-raster.svg +12 -0
  263. package/static/assets/mimes/gnome-mime-image-x-killustrator.svg +12 -0
  264. package/static/assets/mimes/gnome-mime-image-x-psd.svg +14 -0
  265. package/static/assets/mimes/gnome-mime-image-x-xpixmap.svg +12 -0
  266. package/static/assets/mimes/gnome-mime-image.svg +12 -0
  267. package/static/assets/mimes/gnome-mime-text-html.svg +18 -0
  268. package/static/assets/mimes/gnome-mime-text-install.svg +20 -0
  269. package/static/assets/mimes/gnome-mime-text-plain.svg +14 -0
  270. package/static/assets/mimes/gnome-mime-text-vnd.wap.wml.svg +18 -0
  271. package/static/assets/mimes/gnome-mime-text-x-changelog.svg +208 -0
  272. package/static/assets/mimes/gnome-mime-text-x-copying.svg +17 -0
  273. package/static/assets/mimes/gnome-mime-text-x-csh.svg +17 -0
  274. package/static/assets/mimes/gnome-mime-text-x-gtkrc.svg +109 -0
  275. package/static/assets/mimes/gnome-mime-text-x-install.svg +17 -0
  276. package/static/assets/mimes/gnome-mime-text-x-java-source.svg +14 -0
  277. package/static/assets/mimes/gnome-mime-text-x-java.svg +14 -0
  278. package/static/assets/mimes/gnome-mime-text-x-makefile.svg +176 -0
  279. package/static/assets/mimes/gnome-mime-text-x-opml+xml.svg +15 -0
  280. package/static/assets/mimes/gnome-mime-text-x-opml.svg +15 -0
  281. package/static/assets/mimes/gnome-mime-text-x-python.svg +16 -0
  282. package/static/assets/mimes/gnome-mime-text-x-readme.svg +15 -0
  283. package/static/assets/mimes/gnome-mime-text-x-sh.svg +17 -0
  284. package/static/assets/mimes/gnome-mime-text-x-zsh.svg +17 -0
  285. package/static/assets/mimes/gnome-mime-text.svg +14 -0
  286. package/static/assets/mimes/gnome-mime-video-x-ms-asf.svg +18 -0
  287. package/static/assets/mimes/gnome-mime-video-x-ms-wmv.svg +18 -0
  288. package/static/assets/mimes/gnome-mime-video.svg +18 -0
  289. package/static/assets/mimes/gnome-mime-x-font-afm.svg +14 -0
  290. package/static/assets/mimes/gnome-mime-x-install.svg +20 -0
  291. package/static/assets/mimes/gnome-package.svg +16 -0
  292. package/static/assets/mimes/html.svg +18 -0
  293. package/static/assets/mimes/image-gif.svg +12 -0
  294. package/static/assets/mimes/image-jpeg.svg +12 -0
  295. package/static/assets/mimes/image-png.svg +12 -0
  296. package/static/assets/mimes/image-svg+xml-compressed.svg +12 -0
  297. package/static/assets/mimes/image-svg+xml.svg +12 -0
  298. package/static/assets/mimes/image-vnd.adobe.photoshop.svg +14 -0
  299. package/static/assets/mimes/image-vnd.microsoft.icon.svg +12 -0
  300. package/static/assets/mimes/image-x-psdimage-x-psd.svg +14 -0
  301. package/static/assets/mimes/image-x-xfig.svg +12 -0
  302. package/static/assets/mimes/image.svg +12 -0
  303. package/static/assets/mimes/internet-feed.svg +15 -0
  304. package/static/assets/mimes/libpeas-plugin.svg +59 -0
  305. package/static/assets/mimes/libreoffice-database.svg +155 -0
  306. package/static/assets/mimes/libreoffice-extension.svg +59 -0
  307. package/static/assets/mimes/libreoffice-extensionn.svg +59 -0
  308. package/static/assets/mimes/libreoffice-formula.svg +188 -0
  309. package/static/assets/mimes/libreoffice-oasis-formula.svg +188 -0
  310. package/static/assets/mimes/libreoffice34-extension.svg +59 -0
  311. package/static/assets/mimes/media-audio.svg +24 -0
  312. package/static/assets/mimes/media-video.svg +18 -0
  313. package/static/assets/mimes/mime-ascii.svg +14 -0
  314. package/static/assets/mimes/mime_ascii.svg +14 -0
  315. package/static/assets/mimes/misc.svg +14 -0
  316. package/static/assets/mimes/multipart-encrypted.svg +273 -0
  317. package/static/assets/mimes/music.svg +24 -0
  318. package/static/assets/mimes/none.svg +110 -0
  319. package/static/assets/mimes/openofficeorg3-extension.svg +59 -0
  320. package/static/assets/mimes/package.svg +16 -0
  321. package/static/assets/mimes/package_editors.svg +14 -0
  322. package/static/assets/mimes/pdf.svg +13 -0
  323. package/static/assets/mimes/preferences-certificate.svg +28 -0
  324. package/static/assets/mimes/preferences-plugin.svg +59 -0
  325. package/static/assets/mimes/rar.svg +14 -0
  326. package/static/assets/mimes/raw.svg +12 -0
  327. package/static/assets/mimes/scii.svg +14 -0
  328. package/static/assets/mimes/shellscript.svg +17 -0
  329. package/static/assets/mimes/sound.svg +24 -0
  330. package/static/assets/mimes/stock_certificate.svg +28 -0
  331. package/static/assets/mimes/stock_new-formula.svg +188 -0
  332. package/static/assets/mimes/stock_new-html.svg +18 -0
  333. package/static/assets/mimes/stock_script.svg +17 -0
  334. package/static/assets/mimes/stock_scripts.svg +17 -0
  335. package/static/assets/mimes/tar.svg +16 -0
  336. package/static/assets/mimes/text-css.svg +18 -0
  337. package/static/assets/mimes/text-enriched.svg +14 -0
  338. package/static/assets/mimes/text-htmlh.svg +18 -0
  339. package/static/assets/mimes/text-javascript.svg +6 -0
  340. package/static/assets/mimes/text-mht.svg +18 -0
  341. package/static/assets/mimes/text-plain.svg +14 -0
  342. package/static/assets/mimes/text-x-bibtex.svg +79 -0
  343. package/static/assets/mimes/text-x-gtkrc.svg +109 -0
  344. package/static/assets/mimes/text-x-java-source.svg +14 -0
  345. package/static/assets/mimes/text-x-lua.svg +14 -0
  346. package/static/assets/mimes/text-x-nfo.svg +14 -0
  347. package/static/assets/mimes/text-x-opml+xml.svg +15 -0
  348. package/static/assets/mimes/text-x-opml.svg +15 -0
  349. package/static/assets/mimes/text-x-tex.svg +79 -0
  350. package/static/assets/mimes/text-x-vala.svg +14 -0
  351. package/static/assets/mimes/text-x.svg +14 -0
  352. package/static/assets/mimes/text-xmcd.svg +358 -0
  353. package/static/assets/mimes/text.svg +14 -0
  354. package/static/assets/mimes/text2.svg +14 -0
  355. package/static/assets/mimes/tgz.svg +16 -0
  356. package/static/assets/mimes/txt.svg +14 -0
  357. package/static/assets/mimes/txt2.svg +14 -0
  358. package/static/assets/mimes/uri-mms.svg +18 -0
  359. package/static/assets/mimes/uri-mmst.svg +18 -0
  360. package/static/assets/mimes/uri-mmsu.svg +18 -0
  361. package/static/assets/mimes/uri-pnm.svg +18 -0
  362. package/static/assets/mimes/uri-rtspt.svg +18 -0
  363. package/static/assets/mimes/uri-rtspu.svg +18 -0
  364. package/static/assets/mimes/video-mp4.svg +18 -0
  365. package/static/assets/mimes/video-quicktime.svg +18 -0
  366. package/static/assets/mimes/video-vivo.svg +18 -0
  367. package/static/assets/mimes/video-wavelet.svg +18 -0
  368. package/static/assets/mimes/video-webm.svg +18 -0
  369. package/static/assets/mimes/video-x-anim.svg +18 -0
  370. package/static/assets/mimes/video-x-flic.svg +18 -0
  371. package/static/assets/mimes/video-x-google-vlc-plugin.svg +18 -0
  372. package/static/assets/mimes/video-x-javafx.svg +18 -0
  373. package/static/assets/mimes/video-x-matroska.svg +18 -0
  374. package/static/assets/mimes/video-x-mng.svg +18 -0
  375. package/static/assets/mimes/video-x-ms-asf-plugin.svg +18 -0
  376. package/static/assets/mimes/video-x-ms-asf.svg +18 -0
  377. package/static/assets/mimes/video-x-ms-wmp.svg +18 -0
  378. package/static/assets/mimes/video-x-ms-wmv.svg +18 -0
  379. package/static/assets/mimes/video-x-nsv.svg +18 -0
  380. package/static/assets/mimes/video-x-sgi-movie.svg +18 -0
  381. package/static/assets/mimes/video-x-theora+ogg.svg +18 -0
  382. package/static/assets/mimes/video-x-wmv.svg +18 -0
  383. package/static/assets/mimes/video.svg +18 -0
  384. package/static/assets/mimes/www.svg +18 -0
  385. package/static/assets/mimes/x-kde-nsplugin-generated.svg +59 -0
  386. package/static/assets/mimes/zip.svg +14 -0
  387. package/static/{chunk-CS5K4IBF.js → chunk-3FX6ISDY.js} +1 -1
  388. package/static/chunk-3S4WNZ2T.js +7 -0
  389. package/static/chunk-4KESSWTF.js +1 -0
  390. package/static/{chunk-62NKWSCZ.js → chunk-4TEHM3AS.js} +1 -1
  391. package/static/chunk-AY2GOSJ2.js +24 -0
  392. package/static/chunk-BW5PQAKK.js +4 -0
  393. package/static/{chunk-MGWJOK6G.js → chunk-CLSVDV7J.js} +1 -1
  394. package/static/chunk-FJFNDK67.js +1 -0
  395. package/static/{chunk-YCR3E6AS.js → chunk-HUWQHCUX.js} +1 -1
  396. package/static/{chunk-KOYXXWT3.js → chunk-KFM544CA.js} +1 -1
  397. package/static/{chunk-ATROK3XR.js → chunk-LB7B5RIV.js} +1 -1
  398. package/static/{chunk-CBQRUHAW.js → chunk-LYTD6AJE.js} +1 -1
  399. package/static/{chunk-FNR2JLQZ.js → chunk-MK7WZG3F.js} +1 -1
  400. package/static/{chunk-3UFSZ24R.js → chunk-MTRNPGS4.js} +1 -1
  401. package/static/{chunk-ME4DNAIM.js → chunk-MWFRZBJD.js} +1 -1
  402. package/static/{chunk-VUBNAENR.js → chunk-N3T57OCA.js} +1 -1
  403. package/static/{chunk-USM4HKKT.js → chunk-NV2MEIWP.js} +1 -1
  404. package/static/{chunk-H5ZPIT76.js → chunk-O4AQBQBF.js} +1 -1
  405. package/static/{chunk-OHGTSIIO.js → chunk-O67RFAWU.js} +1 -1
  406. package/static/{chunk-CXGKFQMB.js → chunk-PYSFXLMV.js} +1 -1
  407. package/static/{chunk-BMZK5PGX.js → chunk-QTW62OKJ.js} +1 -1
  408. package/static/chunk-RSNLYAN6.js +560 -0
  409. package/static/{chunk-PU26FIXJ.js → chunk-S5WXHO6D.js} +1 -1
  410. package/static/{chunk-VCXIQZT4.js → chunk-SH5EVL4E.js} +4 -4
  411. package/static/{chunk-K375F6CH.js → chunk-SKDQM65G.js} +1 -1
  412. package/static/{chunk-IYMU2AOQ.js → chunk-SRLMFJ7C.js} +1 -1
  413. package/static/{chunk-OWYD7F64.js → chunk-TTQ37MUV.js} +1 -1
  414. package/static/chunk-WL65GYD5.js +4 -0
  415. package/static/{chunk-ZFGAD4UR.js → chunk-WLPYIJFI.js} +1 -1
  416. package/static/chunk-XE5YHU5J.js +1 -0
  417. package/static/{chunk-NC5X67U2.js → chunk-XUZSYWRF.js} +1 -1
  418. package/static/{chunk-MDYFTKWU.js → chunk-Z5X7LVMZ.js} +1 -1
  419. package/static/{chunk-AOASP2ML.js → chunk-ZFKCGL6X.js} +1 -1
  420. package/static/chunk-ZTXJC5IC.js +1 -0
  421. package/static/index.html +1 -1
  422. package/static/main-RREKR34B.js +10 -0
  423. package/static/{polyfills-GNKGQMRJ.js → polyfills-IA5XWQYN.js} +1 -1
  424. package/static/{scripts-263WP5VB.js → scripts-VZVAP2P4.js} +4 -4
  425. package/sync-in-server.js +1 -1
  426. package/static/chunk-3CQHRM6K.js +0 -24
  427. package/static/chunk-7DWT7W6L.js +0 -1
  428. package/static/chunk-E2MMQS3P.js +0 -1
  429. package/static/chunk-EUCMHS6F.js +0 -4
  430. package/static/chunk-H3O3N5LY.js +0 -4
  431. package/static/chunk-J6YSVODR.js +0 -1
  432. package/static/chunk-JQOMI5VI.js +0 -560
  433. package/static/chunk-MAVDZOWK.js +0 -1
  434. package/static/chunk-N6A3HHB5.js +0 -7
  435. package/static/main-TFDBY2TB.js +0 -10
@@ -0,0 +1,2417 @@
1
+ {
2
+ "version": "5",
3
+ "dialect": "mysql",
4
+ "id": "2d75e81b-44bf-4633-b5b4-3774683a2d78",
5
+ "prevId": "d84b6bb0-f597-48b0-b14e-a2e0a8742a0a",
6
+ "tables": {
7
+ "cache": {
8
+ "name": "cache",
9
+ "columns": {
10
+ "key": {
11
+ "name": "key",
12
+ "type": "varchar(768)",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "value": {
18
+ "name": "value",
19
+ "type": "json",
20
+ "primaryKey": false,
21
+ "notNull": false,
22
+ "autoincrement": false
23
+ },
24
+ "expiration": {
25
+ "name": "expiration",
26
+ "type": "int",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false,
30
+ "default": -1
31
+ }
32
+ },
33
+ "indexes": {
34
+ "expiration_idx": {
35
+ "name": "expiration_idx",
36
+ "columns": [
37
+ "expiration"
38
+ ],
39
+ "isUnique": false
40
+ }
41
+ },
42
+ "foreignKeys": {},
43
+ "compositePrimaryKeys": {
44
+ "cache_key": {
45
+ "name": "cache_key",
46
+ "columns": [
47
+ "key"
48
+ ]
49
+ }
50
+ },
51
+ "uniqueConstraints": {},
52
+ "checkConstraint": {}
53
+ },
54
+ "users": {
55
+ "name": "users",
56
+ "columns": {
57
+ "id": {
58
+ "name": "id",
59
+ "type": "bigint unsigned",
60
+ "primaryKey": false,
61
+ "notNull": true,
62
+ "autoincrement": true
63
+ },
64
+ "email": {
65
+ "name": "email",
66
+ "type": "varchar(255)",
67
+ "primaryKey": false,
68
+ "notNull": true,
69
+ "autoincrement": false
70
+ },
71
+ "login": {
72
+ "name": "login",
73
+ "type": "varchar(255)",
74
+ "primaryKey": false,
75
+ "notNull": true,
76
+ "autoincrement": false
77
+ },
78
+ "firstName": {
79
+ "name": "firstName",
80
+ "type": "varchar(255)",
81
+ "primaryKey": false,
82
+ "notNull": false,
83
+ "autoincrement": false
84
+ },
85
+ "lastName": {
86
+ "name": "lastName",
87
+ "type": "varchar(255)",
88
+ "primaryKey": false,
89
+ "notNull": false,
90
+ "autoincrement": false
91
+ },
92
+ "password": {
93
+ "name": "password",
94
+ "type": "varchar(255)",
95
+ "primaryKey": false,
96
+ "notNull": true,
97
+ "autoincrement": false
98
+ },
99
+ "passwordAttempts": {
100
+ "name": "passwordAttempts",
101
+ "type": "tinyint unsigned",
102
+ "primaryKey": false,
103
+ "notNull": true,
104
+ "autoincrement": false,
105
+ "default": 0
106
+ },
107
+ "role": {
108
+ "name": "role",
109
+ "type": "tinyint unsigned",
110
+ "primaryKey": false,
111
+ "notNull": true,
112
+ "autoincrement": false,
113
+ "default": 1
114
+ },
115
+ "isActive": {
116
+ "name": "isActive",
117
+ "type": "boolean",
118
+ "primaryKey": false,
119
+ "notNull": true,
120
+ "autoincrement": false,
121
+ "default": true
122
+ },
123
+ "language": {
124
+ "name": "language",
125
+ "type": "char(2)",
126
+ "primaryKey": false,
127
+ "notNull": false,
128
+ "autoincrement": false
129
+ },
130
+ "permissions": {
131
+ "name": "permissions",
132
+ "type": "varchar(255)",
133
+ "primaryKey": false,
134
+ "notNull": true,
135
+ "autoincrement": false,
136
+ "default": "''"
137
+ },
138
+ "storageUsage": {
139
+ "name": "storageUsage",
140
+ "type": "bigint unsigned",
141
+ "primaryKey": false,
142
+ "notNull": false,
143
+ "autoincrement": false,
144
+ "default": 0
145
+ },
146
+ "storageQuota": {
147
+ "name": "storageQuota",
148
+ "type": "bigint unsigned",
149
+ "primaryKey": false,
150
+ "notNull": false,
151
+ "autoincrement": false
152
+ },
153
+ "notification": {
154
+ "name": "notification",
155
+ "type": "tinyint unsigned",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "autoincrement": false,
159
+ "default": 1
160
+ },
161
+ "onlineStatus": {
162
+ "name": "onlineStatus",
163
+ "type": "tinyint unsigned",
164
+ "primaryKey": false,
165
+ "notNull": true,
166
+ "autoincrement": false,
167
+ "default": 0
168
+ },
169
+ "currentIp": {
170
+ "name": "currentIp",
171
+ "type": "varchar(45)",
172
+ "primaryKey": false,
173
+ "notNull": false,
174
+ "autoincrement": false
175
+ },
176
+ "lastIp": {
177
+ "name": "lastIp",
178
+ "type": "varchar(45)",
179
+ "primaryKey": false,
180
+ "notNull": false,
181
+ "autoincrement": false
182
+ },
183
+ "currentAccess": {
184
+ "name": "currentAccess",
185
+ "type": "datetime",
186
+ "primaryKey": false,
187
+ "notNull": false,
188
+ "autoincrement": false
189
+ },
190
+ "lastAccess": {
191
+ "name": "lastAccess",
192
+ "type": "datetime",
193
+ "primaryKey": false,
194
+ "notNull": false,
195
+ "autoincrement": false
196
+ },
197
+ "createdAt": {
198
+ "name": "createdAt",
199
+ "type": "datetime",
200
+ "primaryKey": false,
201
+ "notNull": true,
202
+ "autoincrement": false,
203
+ "default": "CURRENT_TIMESTAMP"
204
+ }
205
+ },
206
+ "indexes": {
207
+ "email_idx": {
208
+ "name": "email_idx",
209
+ "columns": [
210
+ "email"
211
+ ],
212
+ "isUnique": true
213
+ },
214
+ "login_idx": {
215
+ "name": "login_idx",
216
+ "columns": [
217
+ "login"
218
+ ],
219
+ "isUnique": true
220
+ },
221
+ "role_idx": {
222
+ "name": "role_idx",
223
+ "columns": [
224
+ "role"
225
+ ],
226
+ "isUnique": false
227
+ }
228
+ },
229
+ "foreignKeys": {},
230
+ "compositePrimaryKeys": {
231
+ "users_id": {
232
+ "name": "users_id",
233
+ "columns": [
234
+ "id"
235
+ ]
236
+ }
237
+ },
238
+ "uniqueConstraints": {},
239
+ "checkConstraint": {}
240
+ },
241
+ "groups": {
242
+ "name": "groups",
243
+ "columns": {
244
+ "id": {
245
+ "name": "id",
246
+ "type": "bigint unsigned",
247
+ "primaryKey": false,
248
+ "notNull": true,
249
+ "autoincrement": true
250
+ },
251
+ "name": {
252
+ "name": "name",
253
+ "type": "varchar(255)",
254
+ "primaryKey": false,
255
+ "notNull": true,
256
+ "autoincrement": false
257
+ },
258
+ "description": {
259
+ "name": "description",
260
+ "type": "varchar(255)",
261
+ "primaryKey": false,
262
+ "notNull": false,
263
+ "autoincrement": false
264
+ },
265
+ "type": {
266
+ "name": "type",
267
+ "type": "tinyint unsigned",
268
+ "primaryKey": false,
269
+ "notNull": true,
270
+ "autoincrement": false,
271
+ "default": 0
272
+ },
273
+ "visibility": {
274
+ "name": "visibility",
275
+ "type": "tinyint unsigned",
276
+ "primaryKey": false,
277
+ "notNull": true,
278
+ "autoincrement": false,
279
+ "default": 0
280
+ },
281
+ "parentId": {
282
+ "name": "parentId",
283
+ "type": "bigint unsigned",
284
+ "primaryKey": false,
285
+ "notNull": false,
286
+ "autoincrement": false
287
+ },
288
+ "permissions": {
289
+ "name": "permissions",
290
+ "type": "varchar(255)",
291
+ "primaryKey": false,
292
+ "notNull": true,
293
+ "autoincrement": false,
294
+ "default": "''"
295
+ },
296
+ "createdAt": {
297
+ "name": "createdAt",
298
+ "type": "datetime",
299
+ "primaryKey": false,
300
+ "notNull": true,
301
+ "autoincrement": false,
302
+ "default": "CURRENT_TIMESTAMP"
303
+ },
304
+ "modifiedAt": {
305
+ "name": "modifiedAt",
306
+ "type": "datetime",
307
+ "primaryKey": false,
308
+ "notNull": false,
309
+ "autoincrement": false,
310
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
311
+ }
312
+ },
313
+ "indexes": {
314
+ "name_idx": {
315
+ "name": "name_idx",
316
+ "columns": [
317
+ "name"
318
+ ],
319
+ "isUnique": true
320
+ },
321
+ "parent_idx": {
322
+ "name": "parent_idx",
323
+ "columns": [
324
+ "parentId"
325
+ ],
326
+ "isUnique": false
327
+ },
328
+ "type_idx": {
329
+ "name": "type_idx",
330
+ "columns": [
331
+ "type"
332
+ ],
333
+ "isUnique": false
334
+ },
335
+ "visibility_idx": {
336
+ "name": "visibility_idx",
337
+ "columns": [
338
+ "visibility"
339
+ ],
340
+ "isUnique": false
341
+ }
342
+ },
343
+ "foreignKeys": {
344
+ "groups_parentId_groups_id_fk": {
345
+ "name": "groups_parentId_groups_id_fk",
346
+ "tableFrom": "groups",
347
+ "tableTo": "groups",
348
+ "columnsFrom": [
349
+ "parentId"
350
+ ],
351
+ "columnsTo": [
352
+ "id"
353
+ ],
354
+ "onDelete": "set null",
355
+ "onUpdate": "no action"
356
+ }
357
+ },
358
+ "compositePrimaryKeys": {
359
+ "groups_id": {
360
+ "name": "groups_id",
361
+ "columns": [
362
+ "id"
363
+ ]
364
+ }
365
+ },
366
+ "uniqueConstraints": {},
367
+ "checkConstraint": {}
368
+ },
369
+ "users_groups": {
370
+ "name": "users_groups",
371
+ "columns": {
372
+ "userId": {
373
+ "name": "userId",
374
+ "type": "bigint unsigned",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "autoincrement": false
378
+ },
379
+ "groupId": {
380
+ "name": "groupId",
381
+ "type": "bigint unsigned",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "autoincrement": false
385
+ },
386
+ "role": {
387
+ "name": "role",
388
+ "type": "tinyint unsigned",
389
+ "primaryKey": false,
390
+ "notNull": true,
391
+ "autoincrement": false,
392
+ "default": 0
393
+ },
394
+ "createdAt": {
395
+ "name": "createdAt",
396
+ "type": "datetime",
397
+ "primaryKey": false,
398
+ "notNull": true,
399
+ "autoincrement": false,
400
+ "default": "CURRENT_TIMESTAMP"
401
+ }
402
+ },
403
+ "indexes": {
404
+ "user_idx": {
405
+ "name": "user_idx",
406
+ "columns": [
407
+ "userId"
408
+ ],
409
+ "isUnique": false
410
+ },
411
+ "group_idx": {
412
+ "name": "group_idx",
413
+ "columns": [
414
+ "groupId"
415
+ ],
416
+ "isUnique": false
417
+ }
418
+ },
419
+ "foreignKeys": {
420
+ "users_groups_userId_users_id_fk": {
421
+ "name": "users_groups_userId_users_id_fk",
422
+ "tableFrom": "users_groups",
423
+ "tableTo": "users",
424
+ "columnsFrom": [
425
+ "userId"
426
+ ],
427
+ "columnsTo": [
428
+ "id"
429
+ ],
430
+ "onDelete": "cascade",
431
+ "onUpdate": "no action"
432
+ },
433
+ "users_groups_groupId_groups_id_fk": {
434
+ "name": "users_groups_groupId_groups_id_fk",
435
+ "tableFrom": "users_groups",
436
+ "tableTo": "groups",
437
+ "columnsFrom": [
438
+ "groupId"
439
+ ],
440
+ "columnsTo": [
441
+ "id"
442
+ ],
443
+ "onDelete": "cascade",
444
+ "onUpdate": "no action"
445
+ }
446
+ },
447
+ "compositePrimaryKeys": {
448
+ "users_groups_userId_groupId_pk": {
449
+ "name": "users_groups_userId_groupId_pk",
450
+ "columns": [
451
+ "userId",
452
+ "groupId"
453
+ ]
454
+ }
455
+ },
456
+ "uniqueConstraints": {},
457
+ "checkConstraint": {}
458
+ },
459
+ "users_guests": {
460
+ "name": "users_guests",
461
+ "columns": {
462
+ "userId": {
463
+ "name": "userId",
464
+ "type": "bigint unsigned",
465
+ "primaryKey": false,
466
+ "notNull": true,
467
+ "autoincrement": false
468
+ },
469
+ "guestId": {
470
+ "name": "guestId",
471
+ "type": "bigint unsigned",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "autoincrement": false
475
+ },
476
+ "createdAt": {
477
+ "name": "createdAt",
478
+ "type": "datetime",
479
+ "primaryKey": false,
480
+ "notNull": true,
481
+ "autoincrement": false,
482
+ "default": "CURRENT_TIMESTAMP"
483
+ }
484
+ },
485
+ "indexes": {
486
+ "user_idx": {
487
+ "name": "user_idx",
488
+ "columns": [
489
+ "userId"
490
+ ],
491
+ "isUnique": false
492
+ },
493
+ "guest_id": {
494
+ "name": "guest_id",
495
+ "columns": [
496
+ "guestId"
497
+ ],
498
+ "isUnique": false
499
+ }
500
+ },
501
+ "foreignKeys": {
502
+ "users_guests_userId_users_id_fk": {
503
+ "name": "users_guests_userId_users_id_fk",
504
+ "tableFrom": "users_guests",
505
+ "tableTo": "users",
506
+ "columnsFrom": [
507
+ "userId"
508
+ ],
509
+ "columnsTo": [
510
+ "id"
511
+ ],
512
+ "onDelete": "cascade",
513
+ "onUpdate": "no action"
514
+ },
515
+ "users_guests_guestId_users_id_fk": {
516
+ "name": "users_guests_guestId_users_id_fk",
517
+ "tableFrom": "users_guests",
518
+ "tableTo": "users",
519
+ "columnsFrom": [
520
+ "guestId"
521
+ ],
522
+ "columnsTo": [
523
+ "id"
524
+ ],
525
+ "onDelete": "cascade",
526
+ "onUpdate": "no action"
527
+ }
528
+ },
529
+ "compositePrimaryKeys": {
530
+ "users_guests_userId_guestId_pk": {
531
+ "name": "users_guests_userId_guestId_pk",
532
+ "columns": [
533
+ "userId",
534
+ "guestId"
535
+ ]
536
+ }
537
+ },
538
+ "uniqueConstraints": {},
539
+ "checkConstraint": {
540
+ "user_guest_check": {
541
+ "name": "user_guest_check",
542
+ "value": "`users_guests`.`userId` <> `users_guests`.`guestId`"
543
+ }
544
+ }
545
+ },
546
+ "spaces": {
547
+ "name": "spaces",
548
+ "columns": {
549
+ "id": {
550
+ "name": "id",
551
+ "type": "bigint unsigned",
552
+ "primaryKey": false,
553
+ "notNull": true,
554
+ "autoincrement": true
555
+ },
556
+ "alias": {
557
+ "name": "alias",
558
+ "type": "varchar(255)",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "autoincrement": false
562
+ },
563
+ "name": {
564
+ "name": "name",
565
+ "type": "varchar(255)",
566
+ "primaryKey": false,
567
+ "notNull": true,
568
+ "autoincrement": false
569
+ },
570
+ "description": {
571
+ "name": "description",
572
+ "type": "varchar(255)",
573
+ "primaryKey": false,
574
+ "notNull": false,
575
+ "autoincrement": false
576
+ },
577
+ "enabled": {
578
+ "name": "enabled",
579
+ "type": "boolean",
580
+ "primaryKey": false,
581
+ "notNull": true,
582
+ "autoincrement": false,
583
+ "default": true
584
+ },
585
+ "storageUsage": {
586
+ "name": "storageUsage",
587
+ "type": "bigint unsigned",
588
+ "primaryKey": false,
589
+ "notNull": true,
590
+ "autoincrement": false,
591
+ "default": 0
592
+ },
593
+ "storageQuota": {
594
+ "name": "storageQuota",
595
+ "type": "bigint unsigned",
596
+ "primaryKey": false,
597
+ "notNull": false,
598
+ "autoincrement": false
599
+ },
600
+ "createdAt": {
601
+ "name": "createdAt",
602
+ "type": "datetime",
603
+ "primaryKey": false,
604
+ "notNull": true,
605
+ "autoincrement": false,
606
+ "default": "CURRENT_TIMESTAMP"
607
+ },
608
+ "modifiedAt": {
609
+ "name": "modifiedAt",
610
+ "type": "datetime",
611
+ "primaryKey": false,
612
+ "notNull": false,
613
+ "autoincrement": false,
614
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
615
+ },
616
+ "disabledAt": {
617
+ "name": "disabledAt",
618
+ "type": "datetime",
619
+ "primaryKey": false,
620
+ "notNull": false,
621
+ "autoincrement": false
622
+ }
623
+ },
624
+ "indexes": {
625
+ "alias_idx": {
626
+ "name": "alias_idx",
627
+ "columns": [
628
+ "alias"
629
+ ],
630
+ "isUnique": true
631
+ }
632
+ },
633
+ "foreignKeys": {},
634
+ "compositePrimaryKeys": {
635
+ "spaces_id": {
636
+ "name": "spaces_id",
637
+ "columns": [
638
+ "id"
639
+ ]
640
+ }
641
+ },
642
+ "uniqueConstraints": {},
643
+ "checkConstraint": {}
644
+ },
645
+ "spaces_members": {
646
+ "name": "spaces_members",
647
+ "columns": {
648
+ "id": {
649
+ "name": "id",
650
+ "type": "bigint unsigned",
651
+ "primaryKey": false,
652
+ "notNull": true,
653
+ "autoincrement": true
654
+ },
655
+ "spaceId": {
656
+ "name": "spaceId",
657
+ "type": "bigint unsigned",
658
+ "primaryKey": false,
659
+ "notNull": true,
660
+ "autoincrement": false
661
+ },
662
+ "userId": {
663
+ "name": "userId",
664
+ "type": "bigint unsigned",
665
+ "primaryKey": false,
666
+ "notNull": false,
667
+ "autoincrement": false
668
+ },
669
+ "groupId": {
670
+ "name": "groupId",
671
+ "type": "bigint unsigned",
672
+ "primaryKey": false,
673
+ "notNull": false,
674
+ "autoincrement": false
675
+ },
676
+ "linkId": {
677
+ "name": "linkId",
678
+ "type": "bigint unsigned",
679
+ "primaryKey": false,
680
+ "notNull": false,
681
+ "autoincrement": false
682
+ },
683
+ "role": {
684
+ "name": "role",
685
+ "type": "tinyint unsigned",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "autoincrement": false,
689
+ "default": 0
690
+ },
691
+ "permissions": {
692
+ "name": "permissions",
693
+ "type": "varchar(32)",
694
+ "primaryKey": false,
695
+ "notNull": false,
696
+ "autoincrement": false,
697
+ "default": "''"
698
+ },
699
+ "createdAt": {
700
+ "name": "createdAt",
701
+ "type": "datetime",
702
+ "primaryKey": false,
703
+ "notNull": true,
704
+ "autoincrement": false,
705
+ "default": "CURRENT_TIMESTAMP"
706
+ },
707
+ "modifiedAt": {
708
+ "name": "modifiedAt",
709
+ "type": "datetime",
710
+ "primaryKey": false,
711
+ "notNull": false,
712
+ "autoincrement": false,
713
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
714
+ }
715
+ },
716
+ "indexes": {
717
+ "space_idx": {
718
+ "name": "space_idx",
719
+ "columns": [
720
+ "spaceId"
721
+ ],
722
+ "isUnique": false
723
+ },
724
+ "user_idx": {
725
+ "name": "user_idx",
726
+ "columns": [
727
+ "userId"
728
+ ],
729
+ "isUnique": false
730
+ },
731
+ "group_idx": {
732
+ "name": "group_idx",
733
+ "columns": [
734
+ "groupId"
735
+ ],
736
+ "isUnique": false
737
+ },
738
+ "link_idx": {
739
+ "name": "link_idx",
740
+ "columns": [
741
+ "linkId"
742
+ ],
743
+ "isUnique": false
744
+ },
745
+ "role_idx": {
746
+ "name": "role_idx",
747
+ "columns": [
748
+ "role"
749
+ ],
750
+ "isUnique": false
751
+ }
752
+ },
753
+ "foreignKeys": {
754
+ "spaces_members_spaceId_spaces_id_fk": {
755
+ "name": "spaces_members_spaceId_spaces_id_fk",
756
+ "tableFrom": "spaces_members",
757
+ "tableTo": "spaces",
758
+ "columnsFrom": [
759
+ "spaceId"
760
+ ],
761
+ "columnsTo": [
762
+ "id"
763
+ ],
764
+ "onDelete": "cascade",
765
+ "onUpdate": "no action"
766
+ },
767
+ "spaces_members_userId_users_id_fk": {
768
+ "name": "spaces_members_userId_users_id_fk",
769
+ "tableFrom": "spaces_members",
770
+ "tableTo": "users",
771
+ "columnsFrom": [
772
+ "userId"
773
+ ],
774
+ "columnsTo": [
775
+ "id"
776
+ ],
777
+ "onDelete": "cascade",
778
+ "onUpdate": "no action"
779
+ },
780
+ "spaces_members_groupId_groups_id_fk": {
781
+ "name": "spaces_members_groupId_groups_id_fk",
782
+ "tableFrom": "spaces_members",
783
+ "tableTo": "groups",
784
+ "columnsFrom": [
785
+ "groupId"
786
+ ],
787
+ "columnsTo": [
788
+ "id"
789
+ ],
790
+ "onDelete": "cascade",
791
+ "onUpdate": "no action"
792
+ },
793
+ "spaces_members_linkId_links_id_fk": {
794
+ "name": "spaces_members_linkId_links_id_fk",
795
+ "tableFrom": "spaces_members",
796
+ "tableTo": "links",
797
+ "columnsFrom": [
798
+ "linkId"
799
+ ],
800
+ "columnsTo": [
801
+ "id"
802
+ ],
803
+ "onDelete": "cascade",
804
+ "onUpdate": "no action"
805
+ }
806
+ },
807
+ "compositePrimaryKeys": {
808
+ "spaces_members_id": {
809
+ "name": "spaces_members_id",
810
+ "columns": [
811
+ "id"
812
+ ]
813
+ }
814
+ },
815
+ "uniqueConstraints": {
816
+ "space_user_uniq": {
817
+ "name": "space_user_uniq",
818
+ "columns": [
819
+ "spaceId",
820
+ "userId"
821
+ ]
822
+ },
823
+ "space_group_uniq": {
824
+ "name": "space_group_uniq",
825
+ "columns": [
826
+ "spaceId",
827
+ "groupId"
828
+ ]
829
+ },
830
+ "space_link_uniq": {
831
+ "name": "space_link_uniq",
832
+ "columns": [
833
+ "spaceId",
834
+ "linkId"
835
+ ]
836
+ }
837
+ },
838
+ "checkConstraint": {}
839
+ },
840
+ "spaces_roots": {
841
+ "name": "spaces_roots",
842
+ "columns": {
843
+ "id": {
844
+ "name": "id",
845
+ "type": "bigint unsigned",
846
+ "primaryKey": false,
847
+ "notNull": true,
848
+ "autoincrement": true
849
+ },
850
+ "spaceId": {
851
+ "name": "spaceId",
852
+ "type": "bigint unsigned",
853
+ "primaryKey": false,
854
+ "notNull": true,
855
+ "autoincrement": false
856
+ },
857
+ "fileId": {
858
+ "name": "fileId",
859
+ "type": "bigint unsigned",
860
+ "primaryKey": false,
861
+ "notNull": false,
862
+ "autoincrement": false
863
+ },
864
+ "alias": {
865
+ "name": "alias",
866
+ "type": "varchar(255)",
867
+ "primaryKey": false,
868
+ "notNull": true,
869
+ "autoincrement": false
870
+ },
871
+ "name": {
872
+ "name": "name",
873
+ "type": "varchar(255)",
874
+ "primaryKey": false,
875
+ "notNull": true,
876
+ "autoincrement": false
877
+ },
878
+ "externalPath": {
879
+ "name": "externalPath",
880
+ "type": "varchar(4096)",
881
+ "primaryKey": false,
882
+ "notNull": false,
883
+ "autoincrement": false
884
+ },
885
+ "permissions": {
886
+ "name": "permissions",
887
+ "type": "varchar(32)",
888
+ "primaryKey": false,
889
+ "notNull": false,
890
+ "autoincrement": false,
891
+ "default": "''"
892
+ },
893
+ "createdAt": {
894
+ "name": "createdAt",
895
+ "type": "datetime",
896
+ "primaryKey": false,
897
+ "notNull": true,
898
+ "autoincrement": false,
899
+ "default": "CURRENT_TIMESTAMP"
900
+ },
901
+ "modifiedAt": {
902
+ "name": "modifiedAt",
903
+ "type": "datetime",
904
+ "primaryKey": false,
905
+ "notNull": false,
906
+ "autoincrement": false,
907
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
908
+ }
909
+ },
910
+ "indexes": {
911
+ "alias_idx": {
912
+ "name": "alias_idx",
913
+ "columns": [
914
+ "alias"
915
+ ],
916
+ "isUnique": false
917
+ },
918
+ "space_idx": {
919
+ "name": "space_idx",
920
+ "columns": [
921
+ "spaceId"
922
+ ],
923
+ "isUnique": false
924
+ },
925
+ "file_idx": {
926
+ "name": "file_idx",
927
+ "columns": [
928
+ "fileId"
929
+ ],
930
+ "isUnique": false
931
+ }
932
+ },
933
+ "foreignKeys": {
934
+ "spaces_roots_spaceId_spaces_id_fk": {
935
+ "name": "spaces_roots_spaceId_spaces_id_fk",
936
+ "tableFrom": "spaces_roots",
937
+ "tableTo": "spaces",
938
+ "columnsFrom": [
939
+ "spaceId"
940
+ ],
941
+ "columnsTo": [
942
+ "id"
943
+ ],
944
+ "onDelete": "cascade",
945
+ "onUpdate": "no action"
946
+ },
947
+ "spaces_roots_fileId_files_id_fk": {
948
+ "name": "spaces_roots_fileId_files_id_fk",
949
+ "tableFrom": "spaces_roots",
950
+ "tableTo": "files",
951
+ "columnsFrom": [
952
+ "fileId"
953
+ ],
954
+ "columnsTo": [
955
+ "id"
956
+ ],
957
+ "onDelete": "cascade",
958
+ "onUpdate": "no action"
959
+ }
960
+ },
961
+ "compositePrimaryKeys": {
962
+ "spaces_roots_id": {
963
+ "name": "spaces_roots_id",
964
+ "columns": [
965
+ "id"
966
+ ]
967
+ }
968
+ },
969
+ "uniqueConstraints": {
970
+ "space_root_alias_uniq": {
971
+ "name": "space_root_alias_uniq",
972
+ "columns": [
973
+ "id",
974
+ "alias"
975
+ ]
976
+ }
977
+ },
978
+ "checkConstraint": {}
979
+ },
980
+ "shares": {
981
+ "name": "shares",
982
+ "columns": {
983
+ "id": {
984
+ "name": "id",
985
+ "type": "bigint unsigned",
986
+ "primaryKey": false,
987
+ "notNull": true,
988
+ "autoincrement": true
989
+ },
990
+ "ownerId": {
991
+ "name": "ownerId",
992
+ "type": "bigint unsigned",
993
+ "primaryKey": false,
994
+ "notNull": false,
995
+ "autoincrement": false
996
+ },
997
+ "parentId": {
998
+ "name": "parentId",
999
+ "type": "bigint unsigned",
1000
+ "primaryKey": false,
1001
+ "notNull": false,
1002
+ "autoincrement": false
1003
+ },
1004
+ "spaceId": {
1005
+ "name": "spaceId",
1006
+ "type": "bigint unsigned",
1007
+ "primaryKey": false,
1008
+ "notNull": false,
1009
+ "autoincrement": false
1010
+ },
1011
+ "spaceRootId": {
1012
+ "name": "spaceRootId",
1013
+ "type": "bigint unsigned",
1014
+ "primaryKey": false,
1015
+ "notNull": false,
1016
+ "autoincrement": false
1017
+ },
1018
+ "fileId": {
1019
+ "name": "fileId",
1020
+ "type": "bigint unsigned",
1021
+ "primaryKey": false,
1022
+ "notNull": false,
1023
+ "autoincrement": false
1024
+ },
1025
+ "externalPath": {
1026
+ "name": "externalPath",
1027
+ "type": "varchar(4096)",
1028
+ "primaryKey": false,
1029
+ "notNull": false,
1030
+ "autoincrement": false
1031
+ },
1032
+ "type": {
1033
+ "name": "type",
1034
+ "type": "tinyint unsigned",
1035
+ "primaryKey": false,
1036
+ "notNull": true,
1037
+ "autoincrement": false,
1038
+ "default": 0
1039
+ },
1040
+ "alias": {
1041
+ "name": "alias",
1042
+ "type": "varchar(255)",
1043
+ "primaryKey": false,
1044
+ "notNull": true,
1045
+ "autoincrement": false
1046
+ },
1047
+ "name": {
1048
+ "name": "name",
1049
+ "type": "varchar(255)",
1050
+ "primaryKey": false,
1051
+ "notNull": true,
1052
+ "autoincrement": false
1053
+ },
1054
+ "enabled": {
1055
+ "name": "enabled",
1056
+ "type": "boolean",
1057
+ "primaryKey": false,
1058
+ "notNull": true,
1059
+ "autoincrement": false,
1060
+ "default": true
1061
+ },
1062
+ "description": {
1063
+ "name": "description",
1064
+ "type": "varchar(255)",
1065
+ "primaryKey": false,
1066
+ "notNull": false,
1067
+ "autoincrement": false
1068
+ },
1069
+ "createdAt": {
1070
+ "name": "createdAt",
1071
+ "type": "datetime",
1072
+ "primaryKey": false,
1073
+ "notNull": true,
1074
+ "autoincrement": false,
1075
+ "default": "CURRENT_TIMESTAMP"
1076
+ },
1077
+ "modifiedAt": {
1078
+ "name": "modifiedAt",
1079
+ "type": "datetime",
1080
+ "primaryKey": false,
1081
+ "notNull": false,
1082
+ "autoincrement": false,
1083
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
1084
+ },
1085
+ "disabledAt": {
1086
+ "name": "disabledAt",
1087
+ "type": "datetime",
1088
+ "primaryKey": false,
1089
+ "notNull": false,
1090
+ "autoincrement": false
1091
+ }
1092
+ },
1093
+ "indexes": {
1094
+ "alias_idx": {
1095
+ "name": "alias_idx",
1096
+ "columns": [
1097
+ "alias"
1098
+ ],
1099
+ "isUnique": true
1100
+ },
1101
+ "parent_idx": {
1102
+ "name": "parent_idx",
1103
+ "columns": [
1104
+ "parentId"
1105
+ ],
1106
+ "isUnique": false
1107
+ },
1108
+ "owner_idx": {
1109
+ "name": "owner_idx",
1110
+ "columns": [
1111
+ "ownerId"
1112
+ ],
1113
+ "isUnique": false
1114
+ },
1115
+ "space_idx": {
1116
+ "name": "space_idx",
1117
+ "columns": [
1118
+ "spaceId"
1119
+ ],
1120
+ "isUnique": false
1121
+ },
1122
+ "space_root_idx": {
1123
+ "name": "space_root_idx",
1124
+ "columns": [
1125
+ "spaceRootId"
1126
+ ],
1127
+ "isUnique": false
1128
+ },
1129
+ "file_idx": {
1130
+ "name": "file_idx",
1131
+ "columns": [
1132
+ "fileId"
1133
+ ],
1134
+ "isUnique": false
1135
+ },
1136
+ "type_idx": {
1137
+ "name": "type_idx",
1138
+ "columns": [
1139
+ "type"
1140
+ ],
1141
+ "isUnique": false
1142
+ }
1143
+ },
1144
+ "foreignKeys": {
1145
+ "shares_ownerId_users_id_fk": {
1146
+ "name": "shares_ownerId_users_id_fk",
1147
+ "tableFrom": "shares",
1148
+ "tableTo": "users",
1149
+ "columnsFrom": [
1150
+ "ownerId"
1151
+ ],
1152
+ "columnsTo": [
1153
+ "id"
1154
+ ],
1155
+ "onDelete": "cascade",
1156
+ "onUpdate": "no action"
1157
+ },
1158
+ "shares_parentId_shares_id_fk": {
1159
+ "name": "shares_parentId_shares_id_fk",
1160
+ "tableFrom": "shares",
1161
+ "tableTo": "shares",
1162
+ "columnsFrom": [
1163
+ "parentId"
1164
+ ],
1165
+ "columnsTo": [
1166
+ "id"
1167
+ ],
1168
+ "onDelete": "cascade",
1169
+ "onUpdate": "no action"
1170
+ },
1171
+ "shares_spaceId_spaces_id_fk": {
1172
+ "name": "shares_spaceId_spaces_id_fk",
1173
+ "tableFrom": "shares",
1174
+ "tableTo": "spaces",
1175
+ "columnsFrom": [
1176
+ "spaceId"
1177
+ ],
1178
+ "columnsTo": [
1179
+ "id"
1180
+ ],
1181
+ "onDelete": "cascade",
1182
+ "onUpdate": "no action"
1183
+ },
1184
+ "shares_spaceRootId_spaces_roots_id_fk": {
1185
+ "name": "shares_spaceRootId_spaces_roots_id_fk",
1186
+ "tableFrom": "shares",
1187
+ "tableTo": "spaces_roots",
1188
+ "columnsFrom": [
1189
+ "spaceRootId"
1190
+ ],
1191
+ "columnsTo": [
1192
+ "id"
1193
+ ],
1194
+ "onDelete": "cascade",
1195
+ "onUpdate": "no action"
1196
+ },
1197
+ "shares_fileId_files_id_fk": {
1198
+ "name": "shares_fileId_files_id_fk",
1199
+ "tableFrom": "shares",
1200
+ "tableTo": "files",
1201
+ "columnsFrom": [
1202
+ "fileId"
1203
+ ],
1204
+ "columnsTo": [
1205
+ "id"
1206
+ ],
1207
+ "onDelete": "cascade",
1208
+ "onUpdate": "no action"
1209
+ }
1210
+ },
1211
+ "compositePrimaryKeys": {
1212
+ "shares_id": {
1213
+ "name": "shares_id",
1214
+ "columns": [
1215
+ "id"
1216
+ ]
1217
+ }
1218
+ },
1219
+ "uniqueConstraints": {},
1220
+ "checkConstraint": {}
1221
+ },
1222
+ "shares_members": {
1223
+ "name": "shares_members",
1224
+ "columns": {
1225
+ "id": {
1226
+ "name": "id",
1227
+ "type": "bigint unsigned",
1228
+ "primaryKey": false,
1229
+ "notNull": true,
1230
+ "autoincrement": true
1231
+ },
1232
+ "shareId": {
1233
+ "name": "shareId",
1234
+ "type": "bigint unsigned",
1235
+ "primaryKey": false,
1236
+ "notNull": true,
1237
+ "autoincrement": false
1238
+ },
1239
+ "userId": {
1240
+ "name": "userId",
1241
+ "type": "bigint unsigned",
1242
+ "primaryKey": false,
1243
+ "notNull": false,
1244
+ "autoincrement": false
1245
+ },
1246
+ "groupId": {
1247
+ "name": "groupId",
1248
+ "type": "bigint unsigned",
1249
+ "primaryKey": false,
1250
+ "notNull": false,
1251
+ "autoincrement": false
1252
+ },
1253
+ "linkId": {
1254
+ "name": "linkId",
1255
+ "type": "bigint unsigned",
1256
+ "primaryKey": false,
1257
+ "notNull": false,
1258
+ "autoincrement": false
1259
+ },
1260
+ "permissions": {
1261
+ "name": "permissions",
1262
+ "type": "varchar(32)",
1263
+ "primaryKey": false,
1264
+ "notNull": false,
1265
+ "autoincrement": false,
1266
+ "default": "''"
1267
+ },
1268
+ "createdAt": {
1269
+ "name": "createdAt",
1270
+ "type": "datetime",
1271
+ "primaryKey": false,
1272
+ "notNull": true,
1273
+ "autoincrement": false,
1274
+ "default": "CURRENT_TIMESTAMP"
1275
+ },
1276
+ "modifiedAt": {
1277
+ "name": "modifiedAt",
1278
+ "type": "datetime",
1279
+ "primaryKey": false,
1280
+ "notNull": false,
1281
+ "autoincrement": false,
1282
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
1283
+ }
1284
+ },
1285
+ "indexes": {
1286
+ "share_idx": {
1287
+ "name": "share_idx",
1288
+ "columns": [
1289
+ "shareId"
1290
+ ],
1291
+ "isUnique": false
1292
+ },
1293
+ "user_idx": {
1294
+ "name": "user_idx",
1295
+ "columns": [
1296
+ "userId"
1297
+ ],
1298
+ "isUnique": false
1299
+ },
1300
+ "group_idx": {
1301
+ "name": "group_idx",
1302
+ "columns": [
1303
+ "groupId"
1304
+ ],
1305
+ "isUnique": false
1306
+ },
1307
+ "link_idx": {
1308
+ "name": "link_idx",
1309
+ "columns": [
1310
+ "linkId"
1311
+ ],
1312
+ "isUnique": false
1313
+ }
1314
+ },
1315
+ "foreignKeys": {
1316
+ "shares_members_shareId_shares_id_fk": {
1317
+ "name": "shares_members_shareId_shares_id_fk",
1318
+ "tableFrom": "shares_members",
1319
+ "tableTo": "shares",
1320
+ "columnsFrom": [
1321
+ "shareId"
1322
+ ],
1323
+ "columnsTo": [
1324
+ "id"
1325
+ ],
1326
+ "onDelete": "cascade",
1327
+ "onUpdate": "no action"
1328
+ },
1329
+ "shares_members_userId_users_id_fk": {
1330
+ "name": "shares_members_userId_users_id_fk",
1331
+ "tableFrom": "shares_members",
1332
+ "tableTo": "users",
1333
+ "columnsFrom": [
1334
+ "userId"
1335
+ ],
1336
+ "columnsTo": [
1337
+ "id"
1338
+ ],
1339
+ "onDelete": "cascade",
1340
+ "onUpdate": "no action"
1341
+ },
1342
+ "shares_members_groupId_groups_id_fk": {
1343
+ "name": "shares_members_groupId_groups_id_fk",
1344
+ "tableFrom": "shares_members",
1345
+ "tableTo": "groups",
1346
+ "columnsFrom": [
1347
+ "groupId"
1348
+ ],
1349
+ "columnsTo": [
1350
+ "id"
1351
+ ],
1352
+ "onDelete": "cascade",
1353
+ "onUpdate": "no action"
1354
+ },
1355
+ "shares_members_linkId_links_id_fk": {
1356
+ "name": "shares_members_linkId_links_id_fk",
1357
+ "tableFrom": "shares_members",
1358
+ "tableTo": "links",
1359
+ "columnsFrom": [
1360
+ "linkId"
1361
+ ],
1362
+ "columnsTo": [
1363
+ "id"
1364
+ ],
1365
+ "onDelete": "cascade",
1366
+ "onUpdate": "no action"
1367
+ }
1368
+ },
1369
+ "compositePrimaryKeys": {
1370
+ "shares_members_id": {
1371
+ "name": "shares_members_id",
1372
+ "columns": [
1373
+ "id"
1374
+ ]
1375
+ }
1376
+ },
1377
+ "uniqueConstraints": {
1378
+ "share_user_uniq": {
1379
+ "name": "share_user_uniq",
1380
+ "columns": [
1381
+ "shareId",
1382
+ "userId"
1383
+ ]
1384
+ },
1385
+ "share_group_uniq": {
1386
+ "name": "share_group_uniq",
1387
+ "columns": [
1388
+ "shareId",
1389
+ "groupId"
1390
+ ]
1391
+ },
1392
+ "share_link_uniq": {
1393
+ "name": "share_link_uniq",
1394
+ "columns": [
1395
+ "shareId",
1396
+ "linkId"
1397
+ ]
1398
+ }
1399
+ },
1400
+ "checkConstraint": {}
1401
+ },
1402
+ "files": {
1403
+ "name": "files",
1404
+ "columns": {
1405
+ "id": {
1406
+ "name": "id",
1407
+ "type": "bigint unsigned",
1408
+ "primaryKey": false,
1409
+ "notNull": true,
1410
+ "autoincrement": true
1411
+ },
1412
+ "ownerId": {
1413
+ "name": "ownerId",
1414
+ "type": "bigint unsigned",
1415
+ "primaryKey": false,
1416
+ "notNull": false,
1417
+ "autoincrement": false
1418
+ },
1419
+ "spaceId": {
1420
+ "name": "spaceId",
1421
+ "type": "bigint unsigned",
1422
+ "primaryKey": false,
1423
+ "notNull": false,
1424
+ "autoincrement": false
1425
+ },
1426
+ "spaceExternalRootId": {
1427
+ "name": "spaceExternalRootId",
1428
+ "type": "bigint unsigned",
1429
+ "primaryKey": false,
1430
+ "notNull": false,
1431
+ "autoincrement": false
1432
+ },
1433
+ "shareExternalId": {
1434
+ "name": "shareExternalId",
1435
+ "type": "bigint unsigned",
1436
+ "primaryKey": false,
1437
+ "notNull": false,
1438
+ "autoincrement": false
1439
+ },
1440
+ "path": {
1441
+ "name": "path",
1442
+ "type": "varchar(4096)",
1443
+ "primaryKey": false,
1444
+ "notNull": true,
1445
+ "autoincrement": false
1446
+ },
1447
+ "name": {
1448
+ "name": "name",
1449
+ "type": "varchar(255)",
1450
+ "primaryKey": false,
1451
+ "notNull": true,
1452
+ "autoincrement": false
1453
+ },
1454
+ "isDir": {
1455
+ "name": "isDir",
1456
+ "type": "boolean",
1457
+ "primaryKey": false,
1458
+ "notNull": true,
1459
+ "autoincrement": false
1460
+ },
1461
+ "inTrash": {
1462
+ "name": "inTrash",
1463
+ "type": "boolean",
1464
+ "primaryKey": false,
1465
+ "notNull": true,
1466
+ "autoincrement": false,
1467
+ "default": false
1468
+ },
1469
+ "mime": {
1470
+ "name": "mime",
1471
+ "type": "varchar(255)",
1472
+ "primaryKey": false,
1473
+ "notNull": false,
1474
+ "autoincrement": false
1475
+ },
1476
+ "size": {
1477
+ "name": "size",
1478
+ "type": "bigint unsigned",
1479
+ "primaryKey": false,
1480
+ "notNull": false,
1481
+ "autoincrement": false,
1482
+ "default": 0
1483
+ },
1484
+ "mtime": {
1485
+ "name": "mtime",
1486
+ "type": "bigint unsigned",
1487
+ "primaryKey": false,
1488
+ "notNull": false,
1489
+ "autoincrement": false,
1490
+ "default": 0
1491
+ },
1492
+ "ctime": {
1493
+ "name": "ctime",
1494
+ "type": "bigint unsigned",
1495
+ "primaryKey": false,
1496
+ "notNull": false,
1497
+ "autoincrement": false,
1498
+ "default": 0
1499
+ }
1500
+ },
1501
+ "indexes": {
1502
+ "owner_idx": {
1503
+ "name": "owner_idx",
1504
+ "columns": [
1505
+ "ownerId"
1506
+ ],
1507
+ "isUnique": false
1508
+ },
1509
+ "space_idx": {
1510
+ "name": "space_idx",
1511
+ "columns": [
1512
+ "spaceId"
1513
+ ],
1514
+ "isUnique": false
1515
+ },
1516
+ "space_external_root_idx": {
1517
+ "name": "space_external_root_idx",
1518
+ "columns": [
1519
+ "spaceExternalRootId"
1520
+ ],
1521
+ "isUnique": false
1522
+ },
1523
+ "share_external_idx": {
1524
+ "name": "share_external_idx",
1525
+ "columns": [
1526
+ "shareExternalId"
1527
+ ],
1528
+ "isUnique": false
1529
+ },
1530
+ "name_idx": {
1531
+ "name": "name_idx",
1532
+ "columns": [
1533
+ "name"
1534
+ ],
1535
+ "isUnique": false
1536
+ },
1537
+ "path_idx": {
1538
+ "name": "path_idx",
1539
+ "columns": [
1540
+ "path"
1541
+ ],
1542
+ "isUnique": false
1543
+ }
1544
+ },
1545
+ "foreignKeys": {
1546
+ "files_ownerId_users_id_fk": {
1547
+ "name": "files_ownerId_users_id_fk",
1548
+ "tableFrom": "files",
1549
+ "tableTo": "users",
1550
+ "columnsFrom": [
1551
+ "ownerId"
1552
+ ],
1553
+ "columnsTo": [
1554
+ "id"
1555
+ ],
1556
+ "onDelete": "cascade",
1557
+ "onUpdate": "no action"
1558
+ },
1559
+ "files_spaceId_spaces_id_fk": {
1560
+ "name": "files_spaceId_spaces_id_fk",
1561
+ "tableFrom": "files",
1562
+ "tableTo": "spaces",
1563
+ "columnsFrom": [
1564
+ "spaceId"
1565
+ ],
1566
+ "columnsTo": [
1567
+ "id"
1568
+ ],
1569
+ "onDelete": "cascade",
1570
+ "onUpdate": "no action"
1571
+ },
1572
+ "files_spaceExternalRootId_spaces_roots_id_fk": {
1573
+ "name": "files_spaceExternalRootId_spaces_roots_id_fk",
1574
+ "tableFrom": "files",
1575
+ "tableTo": "spaces_roots",
1576
+ "columnsFrom": [
1577
+ "spaceExternalRootId"
1578
+ ],
1579
+ "columnsTo": [
1580
+ "id"
1581
+ ],
1582
+ "onDelete": "cascade",
1583
+ "onUpdate": "no action"
1584
+ },
1585
+ "files_shareExternalId_shares_id_fk": {
1586
+ "name": "files_shareExternalId_shares_id_fk",
1587
+ "tableFrom": "files",
1588
+ "tableTo": "shares",
1589
+ "columnsFrom": [
1590
+ "shareExternalId"
1591
+ ],
1592
+ "columnsTo": [
1593
+ "id"
1594
+ ],
1595
+ "onDelete": "cascade",
1596
+ "onUpdate": "no action"
1597
+ }
1598
+ },
1599
+ "compositePrimaryKeys": {
1600
+ "files_id": {
1601
+ "name": "files_id",
1602
+ "columns": [
1603
+ "id"
1604
+ ]
1605
+ }
1606
+ },
1607
+ "uniqueConstraints": {},
1608
+ "checkConstraint": {}
1609
+ },
1610
+ "files_recents": {
1611
+ "name": "files_recents",
1612
+ "columns": {
1613
+ "id": {
1614
+ "name": "id",
1615
+ "type": "bigint",
1616
+ "primaryKey": false,
1617
+ "notNull": false,
1618
+ "autoincrement": false
1619
+ },
1620
+ "ownerId": {
1621
+ "name": "ownerId",
1622
+ "type": "bigint unsigned",
1623
+ "primaryKey": false,
1624
+ "notNull": false,
1625
+ "autoincrement": false
1626
+ },
1627
+ "spaceId": {
1628
+ "name": "spaceId",
1629
+ "type": "bigint unsigned",
1630
+ "primaryKey": false,
1631
+ "notNull": false,
1632
+ "autoincrement": false
1633
+ },
1634
+ "shareId": {
1635
+ "name": "shareId",
1636
+ "type": "bigint unsigned",
1637
+ "primaryKey": false,
1638
+ "notNull": false,
1639
+ "autoincrement": false
1640
+ },
1641
+ "path": {
1642
+ "name": "path",
1643
+ "type": "varchar(4096)",
1644
+ "primaryKey": false,
1645
+ "notNull": true,
1646
+ "autoincrement": false
1647
+ },
1648
+ "name": {
1649
+ "name": "name",
1650
+ "type": "varchar(255)",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "autoincrement": false
1654
+ },
1655
+ "mime": {
1656
+ "name": "mime",
1657
+ "type": "varchar(255)",
1658
+ "primaryKey": false,
1659
+ "notNull": false,
1660
+ "autoincrement": false
1661
+ },
1662
+ "mtime": {
1663
+ "name": "mtime",
1664
+ "type": "bigint unsigned",
1665
+ "primaryKey": false,
1666
+ "notNull": true,
1667
+ "autoincrement": false
1668
+ }
1669
+ },
1670
+ "indexes": {
1671
+ "owner_idx": {
1672
+ "name": "owner_idx",
1673
+ "columns": [
1674
+ "ownerId"
1675
+ ],
1676
+ "isUnique": false
1677
+ },
1678
+ "space_idx": {
1679
+ "name": "space_idx",
1680
+ "columns": [
1681
+ "spaceId"
1682
+ ],
1683
+ "isUnique": false
1684
+ },
1685
+ "share_idx": {
1686
+ "name": "share_idx",
1687
+ "columns": [
1688
+ "shareId"
1689
+ ],
1690
+ "isUnique": false
1691
+ },
1692
+ "mtime_idx": {
1693
+ "name": "mtime_idx",
1694
+ "columns": [
1695
+ "mtime"
1696
+ ],
1697
+ "isUnique": false
1698
+ },
1699
+ "path_idx": {
1700
+ "name": "path_idx",
1701
+ "columns": [
1702
+ "path"
1703
+ ],
1704
+ "isUnique": false
1705
+ }
1706
+ },
1707
+ "foreignKeys": {
1708
+ "files_recents_ownerId_users_id_fk": {
1709
+ "name": "files_recents_ownerId_users_id_fk",
1710
+ "tableFrom": "files_recents",
1711
+ "tableTo": "users",
1712
+ "columnsFrom": [
1713
+ "ownerId"
1714
+ ],
1715
+ "columnsTo": [
1716
+ "id"
1717
+ ],
1718
+ "onDelete": "cascade",
1719
+ "onUpdate": "no action"
1720
+ },
1721
+ "files_recents_spaceId_spaces_id_fk": {
1722
+ "name": "files_recents_spaceId_spaces_id_fk",
1723
+ "tableFrom": "files_recents",
1724
+ "tableTo": "spaces",
1725
+ "columnsFrom": [
1726
+ "spaceId"
1727
+ ],
1728
+ "columnsTo": [
1729
+ "id"
1730
+ ],
1731
+ "onDelete": "cascade",
1732
+ "onUpdate": "no action"
1733
+ },
1734
+ "files_recents_shareId_shares_id_fk": {
1735
+ "name": "files_recents_shareId_shares_id_fk",
1736
+ "tableFrom": "files_recents",
1737
+ "tableTo": "shares",
1738
+ "columnsFrom": [
1739
+ "shareId"
1740
+ ],
1741
+ "columnsTo": [
1742
+ "id"
1743
+ ],
1744
+ "onDelete": "cascade",
1745
+ "onUpdate": "no action"
1746
+ }
1747
+ },
1748
+ "compositePrimaryKeys": {},
1749
+ "uniqueConstraints": {},
1750
+ "checkConstraint": {}
1751
+ },
1752
+ "links": {
1753
+ "name": "links",
1754
+ "columns": {
1755
+ "id": {
1756
+ "name": "id",
1757
+ "type": "bigint unsigned",
1758
+ "primaryKey": false,
1759
+ "notNull": true,
1760
+ "autoincrement": true
1761
+ },
1762
+ "uuid": {
1763
+ "name": "uuid",
1764
+ "type": "varchar(32)",
1765
+ "primaryKey": false,
1766
+ "notNull": true,
1767
+ "autoincrement": false
1768
+ },
1769
+ "userId": {
1770
+ "name": "userId",
1771
+ "type": "bigint unsigned",
1772
+ "primaryKey": false,
1773
+ "notNull": true,
1774
+ "autoincrement": false
1775
+ },
1776
+ "name": {
1777
+ "name": "name",
1778
+ "type": "varchar(255)",
1779
+ "primaryKey": false,
1780
+ "notNull": true,
1781
+ "autoincrement": false
1782
+ },
1783
+ "email": {
1784
+ "name": "email",
1785
+ "type": "varchar(255)",
1786
+ "primaryKey": false,
1787
+ "notNull": false,
1788
+ "autoincrement": false
1789
+ },
1790
+ "requireAuth": {
1791
+ "name": "requireAuth",
1792
+ "type": "boolean",
1793
+ "primaryKey": false,
1794
+ "notNull": true,
1795
+ "autoincrement": false,
1796
+ "default": false
1797
+ },
1798
+ "nbAccess": {
1799
+ "name": "nbAccess",
1800
+ "type": "int unsigned",
1801
+ "primaryKey": false,
1802
+ "notNull": true,
1803
+ "autoincrement": false,
1804
+ "default": 0
1805
+ },
1806
+ "limitAccess": {
1807
+ "name": "limitAccess",
1808
+ "type": "int unsigned",
1809
+ "primaryKey": false,
1810
+ "notNull": true,
1811
+ "autoincrement": false,
1812
+ "default": 0
1813
+ },
1814
+ "expiresAt": {
1815
+ "name": "expiresAt",
1816
+ "type": "date",
1817
+ "primaryKey": false,
1818
+ "notNull": false,
1819
+ "autoincrement": false
1820
+ },
1821
+ "createdAt": {
1822
+ "name": "createdAt",
1823
+ "type": "datetime",
1824
+ "primaryKey": false,
1825
+ "notNull": true,
1826
+ "autoincrement": false,
1827
+ "default": "CURRENT_TIMESTAMP"
1828
+ }
1829
+ },
1830
+ "indexes": {
1831
+ "user_idx": {
1832
+ "name": "user_idx",
1833
+ "columns": [
1834
+ "userId"
1835
+ ],
1836
+ "isUnique": false
1837
+ },
1838
+ "uuid_idx": {
1839
+ "name": "uuid_idx",
1840
+ "columns": [
1841
+ "uuid"
1842
+ ],
1843
+ "isUnique": true
1844
+ }
1845
+ },
1846
+ "foreignKeys": {
1847
+ "links_userId_users_id_fk": {
1848
+ "name": "links_userId_users_id_fk",
1849
+ "tableFrom": "links",
1850
+ "tableTo": "users",
1851
+ "columnsFrom": [
1852
+ "userId"
1853
+ ],
1854
+ "columnsTo": [
1855
+ "id"
1856
+ ],
1857
+ "onDelete": "cascade",
1858
+ "onUpdate": "no action"
1859
+ }
1860
+ },
1861
+ "compositePrimaryKeys": {
1862
+ "links_id": {
1863
+ "name": "links_id",
1864
+ "columns": [
1865
+ "id"
1866
+ ]
1867
+ }
1868
+ },
1869
+ "uniqueConstraints": {},
1870
+ "checkConstraint": {}
1871
+ },
1872
+ "comments": {
1873
+ "name": "comments",
1874
+ "columns": {
1875
+ "id": {
1876
+ "name": "id",
1877
+ "type": "bigint unsigned",
1878
+ "primaryKey": false,
1879
+ "notNull": true,
1880
+ "autoincrement": true
1881
+ },
1882
+ "userId": {
1883
+ "name": "userId",
1884
+ "type": "bigint unsigned",
1885
+ "primaryKey": false,
1886
+ "notNull": true,
1887
+ "autoincrement": false
1888
+ },
1889
+ "fileId": {
1890
+ "name": "fileId",
1891
+ "type": "bigint unsigned",
1892
+ "primaryKey": false,
1893
+ "notNull": true,
1894
+ "autoincrement": false
1895
+ },
1896
+ "content": {
1897
+ "name": "content",
1898
+ "type": "text",
1899
+ "primaryKey": false,
1900
+ "notNull": false,
1901
+ "autoincrement": false
1902
+ },
1903
+ "modifiedAt": {
1904
+ "name": "modifiedAt",
1905
+ "type": "datetime",
1906
+ "primaryKey": false,
1907
+ "notNull": false,
1908
+ "autoincrement": false,
1909
+ "default": "CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
1910
+ },
1911
+ "createdAt": {
1912
+ "name": "createdAt",
1913
+ "type": "datetime",
1914
+ "primaryKey": false,
1915
+ "notNull": true,
1916
+ "autoincrement": false,
1917
+ "default": "CURRENT_TIMESTAMP"
1918
+ }
1919
+ },
1920
+ "indexes": {
1921
+ "user_idx": {
1922
+ "name": "user_idx",
1923
+ "columns": [
1924
+ "userId"
1925
+ ],
1926
+ "isUnique": false
1927
+ },
1928
+ "file_idx": {
1929
+ "name": "file_idx",
1930
+ "columns": [
1931
+ "fileId"
1932
+ ],
1933
+ "isUnique": false
1934
+ }
1935
+ },
1936
+ "foreignKeys": {
1937
+ "comments_userId_users_id_fk": {
1938
+ "name": "comments_userId_users_id_fk",
1939
+ "tableFrom": "comments",
1940
+ "tableTo": "users",
1941
+ "columnsFrom": [
1942
+ "userId"
1943
+ ],
1944
+ "columnsTo": [
1945
+ "id"
1946
+ ],
1947
+ "onDelete": "cascade",
1948
+ "onUpdate": "no action"
1949
+ },
1950
+ "comments_fileId_files_id_fk": {
1951
+ "name": "comments_fileId_files_id_fk",
1952
+ "tableFrom": "comments",
1953
+ "tableTo": "files",
1954
+ "columnsFrom": [
1955
+ "fileId"
1956
+ ],
1957
+ "columnsTo": [
1958
+ "id"
1959
+ ],
1960
+ "onDelete": "cascade",
1961
+ "onUpdate": "no action"
1962
+ }
1963
+ },
1964
+ "compositePrimaryKeys": {
1965
+ "comments_id": {
1966
+ "name": "comments_id",
1967
+ "columns": [
1968
+ "id"
1969
+ ]
1970
+ }
1971
+ },
1972
+ "uniqueConstraints": {},
1973
+ "checkConstraint": {}
1974
+ },
1975
+ "notifications": {
1976
+ "name": "notifications",
1977
+ "columns": {
1978
+ "id": {
1979
+ "name": "id",
1980
+ "type": "bigint unsigned",
1981
+ "primaryKey": false,
1982
+ "notNull": true,
1983
+ "autoincrement": true
1984
+ },
1985
+ "fromUserId": {
1986
+ "name": "fromUserId",
1987
+ "type": "bigint unsigned",
1988
+ "primaryKey": false,
1989
+ "notNull": false,
1990
+ "autoincrement": false
1991
+ },
1992
+ "toUserId": {
1993
+ "name": "toUserId",
1994
+ "type": "bigint unsigned",
1995
+ "primaryKey": false,
1996
+ "notNull": true,
1997
+ "autoincrement": false
1998
+ },
1999
+ "content": {
2000
+ "name": "content",
2001
+ "type": "json",
2002
+ "primaryKey": false,
2003
+ "notNull": false,
2004
+ "autoincrement": false
2005
+ },
2006
+ "wasRead": {
2007
+ "name": "wasRead",
2008
+ "type": "boolean",
2009
+ "primaryKey": false,
2010
+ "notNull": true,
2011
+ "autoincrement": false,
2012
+ "default": false
2013
+ },
2014
+ "createdAt": {
2015
+ "name": "createdAt",
2016
+ "type": "datetime",
2017
+ "primaryKey": false,
2018
+ "notNull": true,
2019
+ "autoincrement": false,
2020
+ "default": "CURRENT_TIMESTAMP"
2021
+ }
2022
+ },
2023
+ "indexes": {
2024
+ "from_user_idx": {
2025
+ "name": "from_user_idx",
2026
+ "columns": [
2027
+ "fromUserId"
2028
+ ],
2029
+ "isUnique": false
2030
+ },
2031
+ "to_user_idx": {
2032
+ "name": "to_user_idx",
2033
+ "columns": [
2034
+ "toUserId"
2035
+ ],
2036
+ "isUnique": false
2037
+ }
2038
+ },
2039
+ "foreignKeys": {
2040
+ "notifications_fromUserId_users_id_fk": {
2041
+ "name": "notifications_fromUserId_users_id_fk",
2042
+ "tableFrom": "notifications",
2043
+ "tableTo": "users",
2044
+ "columnsFrom": [
2045
+ "fromUserId"
2046
+ ],
2047
+ "columnsTo": [
2048
+ "id"
2049
+ ],
2050
+ "onDelete": "cascade",
2051
+ "onUpdate": "no action"
2052
+ },
2053
+ "notifications_toUserId_users_id_fk": {
2054
+ "name": "notifications_toUserId_users_id_fk",
2055
+ "tableFrom": "notifications",
2056
+ "tableTo": "users",
2057
+ "columnsFrom": [
2058
+ "toUserId"
2059
+ ],
2060
+ "columnsTo": [
2061
+ "id"
2062
+ ],
2063
+ "onDelete": "cascade",
2064
+ "onUpdate": "no action"
2065
+ }
2066
+ },
2067
+ "compositePrimaryKeys": {
2068
+ "notifications_id": {
2069
+ "name": "notifications_id",
2070
+ "columns": [
2071
+ "id"
2072
+ ]
2073
+ }
2074
+ },
2075
+ "uniqueConstraints": {},
2076
+ "checkConstraint": {}
2077
+ },
2078
+ "sync_clients": {
2079
+ "name": "sync_clients",
2080
+ "columns": {
2081
+ "id": {
2082
+ "name": "id",
2083
+ "type": "char(36)",
2084
+ "primaryKey": false,
2085
+ "notNull": true,
2086
+ "autoincrement": false
2087
+ },
2088
+ "ownerId": {
2089
+ "name": "ownerId",
2090
+ "type": "bigint unsigned",
2091
+ "primaryKey": false,
2092
+ "notNull": true,
2093
+ "autoincrement": false
2094
+ },
2095
+ "token": {
2096
+ "name": "token",
2097
+ "type": "char(36)",
2098
+ "primaryKey": false,
2099
+ "notNull": true,
2100
+ "autoincrement": false
2101
+ },
2102
+ "tokenExpiration": {
2103
+ "name": "tokenExpiration",
2104
+ "type": "bigint unsigned",
2105
+ "primaryKey": false,
2106
+ "notNull": true,
2107
+ "autoincrement": false
2108
+ },
2109
+ "info": {
2110
+ "name": "info",
2111
+ "type": "json",
2112
+ "primaryKey": false,
2113
+ "notNull": true,
2114
+ "autoincrement": false
2115
+ },
2116
+ "enabled": {
2117
+ "name": "enabled",
2118
+ "type": "boolean",
2119
+ "primaryKey": false,
2120
+ "notNull": true,
2121
+ "autoincrement": false,
2122
+ "default": true
2123
+ },
2124
+ "currentIp": {
2125
+ "name": "currentIp",
2126
+ "type": "varchar(45)",
2127
+ "primaryKey": false,
2128
+ "notNull": false,
2129
+ "autoincrement": false
2130
+ },
2131
+ "lastIp": {
2132
+ "name": "lastIp",
2133
+ "type": "varchar(45)",
2134
+ "primaryKey": false,
2135
+ "notNull": false,
2136
+ "autoincrement": false
2137
+ },
2138
+ "currentAccess": {
2139
+ "name": "currentAccess",
2140
+ "type": "datetime",
2141
+ "primaryKey": false,
2142
+ "notNull": false,
2143
+ "autoincrement": false
2144
+ },
2145
+ "lastAccess": {
2146
+ "name": "lastAccess",
2147
+ "type": "datetime",
2148
+ "primaryKey": false,
2149
+ "notNull": false,
2150
+ "autoincrement": false
2151
+ },
2152
+ "createdAt": {
2153
+ "name": "createdAt",
2154
+ "type": "datetime",
2155
+ "primaryKey": false,
2156
+ "notNull": true,
2157
+ "autoincrement": false,
2158
+ "default": "CURRENT_TIMESTAMP"
2159
+ }
2160
+ },
2161
+ "indexes": {
2162
+ "owner_idx": {
2163
+ "name": "owner_idx",
2164
+ "columns": [
2165
+ "ownerId"
2166
+ ],
2167
+ "isUnique": false
2168
+ },
2169
+ "token_idx": {
2170
+ "name": "token_idx",
2171
+ "columns": [
2172
+ "token"
2173
+ ],
2174
+ "isUnique": false
2175
+ }
2176
+ },
2177
+ "foreignKeys": {
2178
+ "sync_clients_ownerId_users_id_fk": {
2179
+ "name": "sync_clients_ownerId_users_id_fk",
2180
+ "tableFrom": "sync_clients",
2181
+ "tableTo": "users",
2182
+ "columnsFrom": [
2183
+ "ownerId"
2184
+ ],
2185
+ "columnsTo": [
2186
+ "id"
2187
+ ],
2188
+ "onDelete": "cascade",
2189
+ "onUpdate": "no action"
2190
+ }
2191
+ },
2192
+ "compositePrimaryKeys": {
2193
+ "sync_clients_id": {
2194
+ "name": "sync_clients_id",
2195
+ "columns": [
2196
+ "id"
2197
+ ]
2198
+ }
2199
+ },
2200
+ "uniqueConstraints": {},
2201
+ "checkConstraint": {}
2202
+ },
2203
+ "sync_paths": {
2204
+ "name": "sync_paths",
2205
+ "columns": {
2206
+ "id": {
2207
+ "name": "id",
2208
+ "type": "bigint unsigned",
2209
+ "primaryKey": false,
2210
+ "notNull": true,
2211
+ "autoincrement": true
2212
+ },
2213
+ "clientId": {
2214
+ "name": "clientId",
2215
+ "type": "char(36)",
2216
+ "primaryKey": false,
2217
+ "notNull": true,
2218
+ "autoincrement": false
2219
+ },
2220
+ "ownerId": {
2221
+ "name": "ownerId",
2222
+ "type": "bigint unsigned",
2223
+ "primaryKey": false,
2224
+ "notNull": false,
2225
+ "autoincrement": false
2226
+ },
2227
+ "spaceId": {
2228
+ "name": "spaceId",
2229
+ "type": "bigint unsigned",
2230
+ "primaryKey": false,
2231
+ "notNull": false,
2232
+ "autoincrement": false
2233
+ },
2234
+ "spaceRootId": {
2235
+ "name": "spaceRootId",
2236
+ "type": "bigint unsigned",
2237
+ "primaryKey": false,
2238
+ "notNull": false,
2239
+ "autoincrement": false
2240
+ },
2241
+ "shareId": {
2242
+ "name": "shareId",
2243
+ "type": "bigint unsigned",
2244
+ "primaryKey": false,
2245
+ "notNull": false,
2246
+ "autoincrement": false
2247
+ },
2248
+ "fileId": {
2249
+ "name": "fileId",
2250
+ "type": "bigint unsigned",
2251
+ "primaryKey": false,
2252
+ "notNull": false,
2253
+ "autoincrement": false
2254
+ },
2255
+ "settings": {
2256
+ "name": "settings",
2257
+ "type": "json",
2258
+ "primaryKey": false,
2259
+ "notNull": true,
2260
+ "autoincrement": false
2261
+ },
2262
+ "createdAt": {
2263
+ "name": "createdAt",
2264
+ "type": "datetime",
2265
+ "primaryKey": false,
2266
+ "notNull": true,
2267
+ "autoincrement": false,
2268
+ "default": "CURRENT_TIMESTAMP"
2269
+ }
2270
+ },
2271
+ "indexes": {
2272
+ "client_idx": {
2273
+ "name": "client_idx",
2274
+ "columns": [
2275
+ "clientId"
2276
+ ],
2277
+ "isUnique": false
2278
+ },
2279
+ "owner_idx": {
2280
+ "name": "owner_idx",
2281
+ "columns": [
2282
+ "ownerId"
2283
+ ],
2284
+ "isUnique": false
2285
+ },
2286
+ "space_idx": {
2287
+ "name": "space_idx",
2288
+ "columns": [
2289
+ "spaceId"
2290
+ ],
2291
+ "isUnique": false
2292
+ },
2293
+ "space_root_idx": {
2294
+ "name": "space_root_idx",
2295
+ "columns": [
2296
+ "spaceRootId"
2297
+ ],
2298
+ "isUnique": false
2299
+ },
2300
+ "share_idx": {
2301
+ "name": "share_idx",
2302
+ "columns": [
2303
+ "shareId"
2304
+ ],
2305
+ "isUnique": false
2306
+ },
2307
+ "file_idx": {
2308
+ "name": "file_idx",
2309
+ "columns": [
2310
+ "fileId"
2311
+ ],
2312
+ "isUnique": false
2313
+ }
2314
+ },
2315
+ "foreignKeys": {
2316
+ "sync_paths_clientId_sync_clients_id_fk": {
2317
+ "name": "sync_paths_clientId_sync_clients_id_fk",
2318
+ "tableFrom": "sync_paths",
2319
+ "tableTo": "sync_clients",
2320
+ "columnsFrom": [
2321
+ "clientId"
2322
+ ],
2323
+ "columnsTo": [
2324
+ "id"
2325
+ ],
2326
+ "onDelete": "cascade",
2327
+ "onUpdate": "no action"
2328
+ },
2329
+ "sync_paths_ownerId_users_id_fk": {
2330
+ "name": "sync_paths_ownerId_users_id_fk",
2331
+ "tableFrom": "sync_paths",
2332
+ "tableTo": "users",
2333
+ "columnsFrom": [
2334
+ "ownerId"
2335
+ ],
2336
+ "columnsTo": [
2337
+ "id"
2338
+ ],
2339
+ "onDelete": "cascade",
2340
+ "onUpdate": "no action"
2341
+ },
2342
+ "sync_paths_spaceId_spaces_id_fk": {
2343
+ "name": "sync_paths_spaceId_spaces_id_fk",
2344
+ "tableFrom": "sync_paths",
2345
+ "tableTo": "spaces",
2346
+ "columnsFrom": [
2347
+ "spaceId"
2348
+ ],
2349
+ "columnsTo": [
2350
+ "id"
2351
+ ],
2352
+ "onDelete": "cascade",
2353
+ "onUpdate": "no action"
2354
+ },
2355
+ "sync_paths_spaceRootId_spaces_roots_id_fk": {
2356
+ "name": "sync_paths_spaceRootId_spaces_roots_id_fk",
2357
+ "tableFrom": "sync_paths",
2358
+ "tableTo": "spaces_roots",
2359
+ "columnsFrom": [
2360
+ "spaceRootId"
2361
+ ],
2362
+ "columnsTo": [
2363
+ "id"
2364
+ ],
2365
+ "onDelete": "cascade",
2366
+ "onUpdate": "no action"
2367
+ },
2368
+ "sync_paths_shareId_shares_id_fk": {
2369
+ "name": "sync_paths_shareId_shares_id_fk",
2370
+ "tableFrom": "sync_paths",
2371
+ "tableTo": "shares",
2372
+ "columnsFrom": [
2373
+ "shareId"
2374
+ ],
2375
+ "columnsTo": [
2376
+ "id"
2377
+ ],
2378
+ "onDelete": "cascade",
2379
+ "onUpdate": "no action"
2380
+ },
2381
+ "sync_paths_fileId_files_id_fk": {
2382
+ "name": "sync_paths_fileId_files_id_fk",
2383
+ "tableFrom": "sync_paths",
2384
+ "tableTo": "files",
2385
+ "columnsFrom": [
2386
+ "fileId"
2387
+ ],
2388
+ "columnsTo": [
2389
+ "id"
2390
+ ],
2391
+ "onDelete": "cascade",
2392
+ "onUpdate": "no action"
2393
+ }
2394
+ },
2395
+ "compositePrimaryKeys": {
2396
+ "sync_paths_id": {
2397
+ "name": "sync_paths_id",
2398
+ "columns": [
2399
+ "id"
2400
+ ]
2401
+ }
2402
+ },
2403
+ "uniqueConstraints": {},
2404
+ "checkConstraint": {}
2405
+ }
2406
+ },
2407
+ "views": {},
2408
+ "_meta": {
2409
+ "schemas": {},
2410
+ "tables": {},
2411
+ "columns": {}
2412
+ },
2413
+ "internal": {
2414
+ "tables": {},
2415
+ "indexes": {}
2416
+ }
2417
+ }