@openpeepshq/core 0.1.31

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 (500) hide show
  1. package/LICENSE +674 -0
  2. package/dist/accessTokens/finders.d.ts +11 -0
  3. package/dist/accessTokens/finders.js +43 -0
  4. package/dist/accessTokens/helpers.d.ts +13 -0
  5. package/dist/accessTokens/helpers.js +15 -0
  6. package/dist/accessTokens/index.d.ts +4 -0
  7. package/dist/accessTokens/index.js +4 -0
  8. package/dist/accessTokens/mapping.d.ts +10 -0
  9. package/dist/accessTokens/mapping.js +25 -0
  10. package/dist/accessTokens/mutations.d.ts +4 -0
  11. package/dist/accessTokens/mutations.js +24 -0
  12. package/dist/accessTokens/revokations.d.ts +2 -0
  13. package/dist/accessTokens/revokations.js +18 -0
  14. package/dist/accessTokens/tokens.d.ts +31 -0
  15. package/dist/accessTokens/tokens.js +174 -0
  16. package/dist/accounts/cache.d.ts +3 -0
  17. package/dist/accounts/cache.js +13 -0
  18. package/dist/accounts/finders.d.ts +6 -0
  19. package/dist/accounts/finders.js +17 -0
  20. package/dist/accounts/helpers.d.ts +7 -0
  21. package/dist/accounts/helpers.js +36 -0
  22. package/dist/accounts/index.d.ts +6 -0
  23. package/dist/accounts/index.js +6 -0
  24. package/dist/accounts/mapping.d.ts +10 -0
  25. package/dist/accounts/mapping.js +28 -0
  26. package/dist/accounts/mutations.d.ts +21 -0
  27. package/dist/accounts/mutations.js +204 -0
  28. package/dist/analytics/cache.d.ts +6 -0
  29. package/dist/analytics/cache.js +29 -0
  30. package/dist/analytics/compile.d.ts +4 -0
  31. package/dist/analytics/compile.js +296 -0
  32. package/dist/analytics/dateRange.d.ts +39 -0
  33. package/dist/analytics/dateRange.js +181 -0
  34. package/dist/analytics/index.d.ts +8 -0
  35. package/dist/analytics/index.js +8 -0
  36. package/dist/analytics/jobs.d.ts +20 -0
  37. package/dist/analytics/jobs.js +84 -0
  38. package/dist/analytics/metrics.d.ts +4 -0
  39. package/dist/analytics/metrics.js +13 -0
  40. package/dist/analytics/pdfReport.d.ts +8 -0
  41. package/dist/analytics/pdfReport.js +821 -0
  42. package/dist/analytics/read.d.ts +6 -0
  43. package/dist/analytics/read.js +696 -0
  44. package/dist/analytics/report.d.ts +293 -0
  45. package/dist/analytics/report.js +153 -0
  46. package/dist/analytics/settings.d.ts +3 -0
  47. package/dist/analytics/settings.js +37 -0
  48. package/dist/backups/index.d.ts +5 -0
  49. package/dist/backups/index.js +260 -0
  50. package/dist/backups/metadata.d.ts +9 -0
  51. package/dist/backups/metadata.js +2 -0
  52. package/dist/config/db.d.ts +7 -0
  53. package/dist/config/db.js +26 -0
  54. package/dist/config/defaults/capabilities.d.ts +2 -0
  55. package/dist/config/defaults/capabilities.js +47 -0
  56. package/dist/config/defaults/community.d.ts +2 -0
  57. package/dist/config/defaults/community.js +41 -0
  58. package/dist/config/defaults/core.d.ts +2 -0
  59. package/dist/config/defaults/core.js +113 -0
  60. package/dist/config/defaults/db.d.ts +6 -0
  61. package/dist/config/defaults/db.js +8 -0
  62. package/dist/config/defaults/logs.d.ts +6 -0
  63. package/dist/config/defaults/logs.js +7 -0
  64. package/dist/config/defaults/redis.d.ts +4 -0
  65. package/dist/config/defaults/redis.js +5 -0
  66. package/dist/config/helpers.d.ts +11 -0
  67. package/dist/config/helpers.js +31 -0
  68. package/dist/config/index.d.ts +392 -0
  69. package/dist/config/index.js +83 -0
  70. package/dist/config/pruneEmptyConfigStrings.d.ts +7 -0
  71. package/dist/config/pruneEmptyConfigStrings.js +29 -0
  72. package/dist/db/aql.d.ts +0 -0
  73. package/dist/db/aql.js +1 -0
  74. package/dist/db/arango.d.ts +2 -0
  75. package/dist/db/arango.js +110 -0
  76. package/dist/db/bootMigrate.d.ts +1 -0
  77. package/dist/db/bootMigrate.js +15 -0
  78. package/dist/db/examples.d.ts +1 -0
  79. package/dist/db/examples.js +13 -0
  80. package/dist/db/explorer/csv.d.ts +1 -0
  81. package/dist/db/explorer/csv.js +18 -0
  82. package/dist/db/explorer/index.d.ts +6 -0
  83. package/dist/db/explorer/index.js +5 -0
  84. package/dist/db/explorer/mutate.d.ts +6 -0
  85. package/dist/db/explorer/mutate.js +66 -0
  86. package/dist/db/explorer/query.d.ts +17 -0
  87. package/dist/db/explorer/query.js +48 -0
  88. package/dist/db/explorer/sql.d.ts +11 -0
  89. package/dist/db/explorer/sql.js +42 -0
  90. package/dist/db/explorer/tables.d.ts +9 -0
  91. package/dist/db/explorer/tables.js +65 -0
  92. package/dist/db/helpers.d.ts +64 -0
  93. package/dist/db/helpers.js +240 -0
  94. package/dist/db/index.d.ts +13 -0
  95. package/dist/db/index.js +15 -0
  96. package/dist/db/init.d.ts +2 -0
  97. package/dist/db/init.js +10 -0
  98. package/dist/db/migration/autoMigrate.d.ts +2 -0
  99. package/dist/db/migration/autoMigrate.js +111 -0
  100. package/dist/db/migration/cli.d.ts +1 -0
  101. package/dist/db/migration/cli.js +56 -0
  102. package/dist/db/migration/detect.d.ts +6 -0
  103. package/dist/db/migration/detect.js +87 -0
  104. package/dist/db/migration/exportArango.d.ts +4 -0
  105. package/dist/db/migration/exportArango.js +80 -0
  106. package/dist/db/migration/importCollections.d.ts +19 -0
  107. package/dist/db/migration/importCollections.js +280 -0
  108. package/dist/db/migration/importPostgres.d.ts +3 -0
  109. package/dist/db/migration/importPostgres.js +18 -0
  110. package/dist/db/migration/shared.d.ts +39 -0
  111. package/dist/db/migration/shared.js +158 -0
  112. package/dist/db/migration/transform.d.ts +18 -0
  113. package/dist/db/migration/transform.js +209 -0
  114. package/dist/db/migration/validate.d.ts +18 -0
  115. package/dist/db/migration/validate.js +69 -0
  116. package/dist/db/pg/client.d.ts +35 -0
  117. package/dist/db/pg/client.js +126 -0
  118. package/dist/db/pg/collections.d.ts +48 -0
  119. package/dist/db/pg/collections.js +53 -0
  120. package/dist/db/pg/filters/common.d.ts +21 -0
  121. package/dist/db/pg/filters/common.js +48 -0
  122. package/dist/db/pg/filters/edges.d.ts +9 -0
  123. package/dist/db/pg/filters/edges.js +10 -0
  124. package/dist/db/pg/filters/groups.d.ts +7 -0
  125. package/dist/db/pg/filters/groups.js +15 -0
  126. package/dist/db/pg/filters/index.d.ts +22 -0
  127. package/dist/db/pg/filters/index.js +35 -0
  128. package/dist/db/pg/filters/notifications.d.ts +6 -0
  129. package/dist/db/pg/filters/notifications.js +10 -0
  130. package/dist/db/pg/filters/posts.d.ts +18 -0
  131. package/dist/db/pg/filters/posts.js +25 -0
  132. package/dist/db/pg/filters/profiles.d.ts +6 -0
  133. package/dist/db/pg/filters/profiles.js +9 -0
  134. package/dist/db/pg/filters/types.d.ts +7 -0
  135. package/dist/db/pg/filters/types.js +5 -0
  136. package/dist/db/pg/helpers.d.ts +19 -0
  137. package/dist/db/pg/helpers.js +67 -0
  138. package/dist/db/pg/map/filters.d.ts +22 -0
  139. package/dist/db/pg/map/filters.js +566 -0
  140. package/dist/db/pg/map/helpers.d.ts +2 -0
  141. package/dist/db/pg/map/helpers.js +2 -0
  142. package/dist/db/pg/map/index.d.ts +46 -0
  143. package/dist/db/pg/map/index.js +93 -0
  144. package/dist/db/pg/map/mutations.d.ts +11 -0
  145. package/dist/db/pg/map/mutations.js +135 -0
  146. package/dist/db/pg/map/queryTypes.d.ts +115 -0
  147. package/dist/db/pg/map/queryTypes.js +1 -0
  148. package/dist/db/pg/map/registry.d.ts +29 -0
  149. package/dist/db/pg/map/registry.js +413 -0
  150. package/dist/db/pg/map/relations.d.ts +28 -0
  151. package/dist/db/pg/map/relations.js +399 -0
  152. package/dist/db/pg/map/search.d.ts +6 -0
  153. package/dist/db/pg/map/search.js +190 -0
  154. package/dist/db/pg/map/types.d.ts +11 -0
  155. package/dist/db/pg/map/types.js +1 -0
  156. package/dist/db/pg/mappers.d.ts +28 -0
  157. package/dist/db/pg/mappers.js +29 -0
  158. package/dist/db/pg/migrate.d.ts +14 -0
  159. package/dist/db/pg/migrate.js +134 -0
  160. package/dist/db/pg/queries/activity.d.ts +10 -0
  161. package/dist/db/pg/queries/activity.js +47 -0
  162. package/dist/db/pg/queries/computed.d.ts +7 -0
  163. package/dist/db/pg/queries/computed.js +19 -0
  164. package/dist/db/pg/queries/derived.d.ts +22 -0
  165. package/dist/db/pg/queries/derived.js +100 -0
  166. package/dist/db/pg/queries/index.d.ts +4 -0
  167. package/dist/db/pg/queries/index.js +4 -0
  168. package/dist/db/pg/queries/sorts.d.ts +10 -0
  169. package/dist/db/pg/queries/sorts.js +9 -0
  170. package/dist/db/pg/schema/analytics.d.ts +998 -0
  171. package/dist/db/pg/schema/analytics.js +110 -0
  172. package/dist/db/pg/schema/base.d.ts +36 -0
  173. package/dist/db/pg/schema/base.js +23 -0
  174. package/dist/db/pg/schema/documents.d.ts +2002 -0
  175. package/dist/db/pg/schema/documents.js +40 -0
  176. package/dist/db/pg/schema/edges.d.ts +2725 -0
  177. package/dist/db/pg/schema/edges.js +34 -0
  178. package/dist/db/pg/schema/index.d.ts +5724 -0
  179. package/dist/db/pg/schema/index.js +7 -0
  180. package/dist/db/pg/sql/0000_bizarre_chat.sql +456 -0
  181. package/dist/db/pg/sql/0001_search_vector.sql +122 -0
  182. package/dist/db/pg/sql/0002_data_migrations_id_text.sql +1 -0
  183. package/dist/db/pg/sql/0003_fix_group_post_visibility.sql +4 -0
  184. package/dist/db/pg/sql/0004_analytics.sql +90 -0
  185. package/dist/db/pg/sql/meta/0000_snapshot.json +3380 -0
  186. package/dist/db/pg/sql/meta/0004_snapshot.json +4114 -0
  187. package/dist/db/pg/sql/meta/_journal.json +41 -0
  188. package/dist/db/replaceHostname.d.ts +1 -0
  189. package/dist/db/replaceHostname.js +88 -0
  190. package/dist/db/types.d.ts +17 -0
  191. package/dist/db/types.js +1 -0
  192. package/dist/email/index.d.ts +9 -0
  193. package/dist/email/index.js +19 -0
  194. package/dist/email/jobs.d.ts +3 -0
  195. package/dist/email/jobs.js +13 -0
  196. package/dist/email/queueStats.d.ts +2 -0
  197. package/dist/email/queueStats.js +27 -0
  198. package/dist/email/registry.d.ts +3 -0
  199. package/dist/email/registry.js +4 -0
  200. package/dist/email/render.d.ts +8 -0
  201. package/dist/email/render.js +34 -0
  202. package/dist/email/send.d.ts +9 -0
  203. package/dist/email/send.js +97 -0
  204. package/dist/email/smtpTest.d.ts +2 -0
  205. package/dist/email/smtpTest.js +26 -0
  206. package/dist/errors/index.d.ts +8 -0
  207. package/dist/errors/index.js +13 -0
  208. package/dist/events/index.d.ts +31 -0
  209. package/dist/events/index.js +66 -0
  210. package/dist/events/once.d.ts +4 -0
  211. package/dist/events/once.js +23 -0
  212. package/dist/groups/finders.d.ts +125 -0
  213. package/dist/groups/finders.js +18 -0
  214. package/dist/groups/helpers.d.ts +227 -0
  215. package/dist/groups/helpers.js +17 -0
  216. package/dist/groups/index.d.ts +3 -0
  217. package/dist/groups/index.js +3 -0
  218. package/dist/groups/mapping.d.ts +188 -0
  219. package/dist/groups/mapping.js +47 -0
  220. package/dist/groups/mutations.d.ts +26 -0
  221. package/dist/groups/mutations.js +41 -0
  222. package/dist/hashtags/finders.d.ts +3 -0
  223. package/dist/hashtags/finders.js +22 -0
  224. package/dist/hashtags/index.d.ts +2 -0
  225. package/dist/hashtags/index.js +2 -0
  226. package/dist/hashtags/mapping.d.ts +4 -0
  227. package/dist/hashtags/mapping.js +5 -0
  228. package/dist/hashtags/mutations.d.ts +0 -0
  229. package/dist/hashtags/mutations.js +1 -0
  230. package/dist/i18n/index.d.ts +14 -0
  231. package/dist/i18n/index.js +53 -0
  232. package/dist/index.d.ts +0 -0
  233. package/dist/index.js +1 -0
  234. package/dist/inviteLinks/finders.d.ts +3 -0
  235. package/dist/inviteLinks/finders.js +5 -0
  236. package/dist/inviteLinks/helpers.d.ts +20 -0
  237. package/dist/inviteLinks/helpers.js +4 -0
  238. package/dist/inviteLinks/index.d.ts +3 -0
  239. package/dist/inviteLinks/index.js +3 -0
  240. package/dist/inviteLinks/mapping.d.ts +10 -0
  241. package/dist/inviteLinks/mapping.js +35 -0
  242. package/dist/inviteLinks/mutations.d.ts +4 -0
  243. package/dist/inviteLinks/mutations.js +39 -0
  244. package/dist/jams/cache.d.ts +9 -0
  245. package/dist/jams/cache.js +13 -0
  246. package/dist/jams/finders.d.ts +23 -0
  247. package/dist/jams/finders.js +24 -0
  248. package/dist/jams/helpers.d.ts +70 -0
  249. package/dist/jams/helpers.js +29 -0
  250. package/dist/jams/index.d.ts +15 -0
  251. package/dist/jams/index.js +108 -0
  252. package/dist/jams/jobs.d.ts +9 -0
  253. package/dist/jams/jobs.js +42 -0
  254. package/dist/jams/livekit.d.ts +24 -0
  255. package/dist/jams/livekit.js +220 -0
  256. package/dist/jams/mapping.d.ts +137 -0
  257. package/dist/jams/mapping.js +35 -0
  258. package/dist/jams/mutations.d.ts +40 -0
  259. package/dist/jams/mutations.js +4 -0
  260. package/dist/jams/recording.d.ts +8 -0
  261. package/dist/jams/recording.js +67 -0
  262. package/dist/jams/recordingUploadAuth.d.ts +9 -0
  263. package/dist/jams/recordingUploadAuth.js +19 -0
  264. package/dist/jams/token.d.ts +4 -0
  265. package/dist/jams/token.js +129 -0
  266. package/dist/jams/waitingRoom.d.ts +5 -0
  267. package/dist/jams/waitingRoom.js +71 -0
  268. package/dist/jobs/index.d.ts +10 -0
  269. package/dist/jobs/index.js +60 -0
  270. package/dist/jobs/jobDetail.d.ts +2 -0
  271. package/dist/jobs/jobDetail.js +31 -0
  272. package/dist/jobs/jobLog.d.ts +18 -0
  273. package/dist/jobs/jobLog.js +61 -0
  274. package/dist/jwt/index.d.ts +10 -0
  275. package/dist/jwt/index.js +43 -0
  276. package/dist/lib/index.d.ts +2 -0
  277. package/dist/lib/index.js +2 -0
  278. package/dist/lib/streams.d.ts +2 -0
  279. package/dist/lib/streams.js +56 -0
  280. package/dist/lib/utils.d.ts +2 -0
  281. package/dist/lib/utils.js +17 -0
  282. package/dist/lib/zodDeepPartial.d.ts +3 -0
  283. package/dist/lib/zodDeepPartial.js +26 -0
  284. package/dist/location/index.d.ts +2 -0
  285. package/dist/location/index.js +28 -0
  286. package/dist/log/index.d.ts +3 -0
  287. package/dist/log/index.js +97 -0
  288. package/dist/mastodon/index.d.ts +4 -0
  289. package/dist/mastodon/index.js +51 -0
  290. package/dist/mastodon/types.d.ts +7579 -0
  291. package/dist/mastodon/types.js +523 -0
  292. package/dist/mastodon/typescript.d.ts +1578 -0
  293. package/dist/mastodon/typescript.js +1 -0
  294. package/dist/media/index.d.ts +40 -0
  295. package/dist/media/index.js +248 -0
  296. package/dist/media/ipfs/index.d.ts +0 -0
  297. package/dist/media/ipfs/index.js +39 -0
  298. package/dist/media/jobs.d.ts +19 -0
  299. package/dist/media/jobs.js +90 -0
  300. package/dist/media/openpeeps/index.d.ts +3 -0
  301. package/dist/media/openpeeps/index.js +131 -0
  302. package/dist/media/processing.d.ts +19 -0
  303. package/dist/media/processing.js +83 -0
  304. package/dist/media/streaming.d.ts +77 -0
  305. package/dist/media/streaming.js +257 -0
  306. package/dist/media/streamingCleanupJobs.d.ts +14 -0
  307. package/dist/media/streamingCleanupJobs.js +47 -0
  308. package/dist/media/streamingJobs.d.ts +5 -0
  309. package/dist/media/streamingJobs.js +329 -0
  310. package/dist/media/streamingPrewarm.d.ts +36 -0
  311. package/dist/media/streamingPrewarm.js +109 -0
  312. package/dist/mediaAttachments/finders.d.ts +1 -0
  313. package/dist/mediaAttachments/finders.js +3 -0
  314. package/dist/mediaAttachments/index.d.ts +5 -0
  315. package/dist/mediaAttachments/index.js +12 -0
  316. package/dist/mediaAttachments/mapping.d.ts +21 -0
  317. package/dist/mediaAttachments/mapping.js +4 -0
  318. package/dist/mediaAttachments/mutations.d.ts +3 -0
  319. package/dist/mediaAttachments/mutations.js +10 -0
  320. package/dist/notifications/defaultNotifications/announcement/index.d.ts +24 -0
  321. package/dist/notifications/defaultNotifications/announcement/index.js +42 -0
  322. package/dist/notifications/defaultNotifications/directMessage/index.d.ts +28 -0
  323. package/dist/notifications/defaultNotifications/directMessage/index.js +69 -0
  324. package/dist/notifications/defaultNotifications/follow/index.d.ts +24 -0
  325. package/dist/notifications/defaultNotifications/follow/index.js +31 -0
  326. package/dist/notifications/defaultNotifications/groupAdded/index.d.ts +18 -0
  327. package/dist/notifications/defaultNotifications/groupAdded/index.js +33 -0
  328. package/dist/notifications/defaultNotifications/groupMemberJoined/index.d.ts +18 -0
  329. package/dist/notifications/defaultNotifications/groupMemberJoined/index.js +36 -0
  330. package/dist/notifications/defaultNotifications/groupMemberLeft/index.d.ts +18 -0
  331. package/dist/notifications/defaultNotifications/groupMemberLeft/index.js +36 -0
  332. package/dist/notifications/defaultNotifications/index.d.ts +3 -0
  333. package/dist/notifications/defaultNotifications/index.js +43 -0
  334. package/dist/notifications/defaultNotifications/jamModerator/index.d.ts +23 -0
  335. package/dist/notifications/defaultNotifications/jamModerator/index.js +49 -0
  336. package/dist/notifications/defaultNotifications/jamSpeaker/index.d.ts +23 -0
  337. package/dist/notifications/defaultNotifications/jamSpeaker/index.js +47 -0
  338. package/dist/notifications/defaultNotifications/jamStarted/index.d.ts +18 -0
  339. package/dist/notifications/defaultNotifications/jamStarted/index.js +82 -0
  340. package/dist/notifications/defaultNotifications/mention/index.d.ts +24 -0
  341. package/dist/notifications/defaultNotifications/mention/index.js +89 -0
  342. package/dist/notifications/defaultNotifications/newGroupPost/index.d.ts +24 -0
  343. package/dist/notifications/defaultNotifications/newGroupPost/index.js +47 -0
  344. package/dist/notifications/defaultNotifications/newProfile/index.d.ts +24 -0
  345. package/dist/notifications/defaultNotifications/newProfile/index.js +40 -0
  346. package/dist/notifications/defaultNotifications/pollVote/index.d.ts +19 -0
  347. package/dist/notifications/defaultNotifications/pollVote/index.js +40 -0
  348. package/dist/notifications/defaultNotifications/reaction/index.d.ts +18 -0
  349. package/dist/notifications/defaultNotifications/reaction/index.js +43 -0
  350. package/dist/notifications/defaultNotifications/reply/index.d.ts +25 -0
  351. package/dist/notifications/defaultNotifications/reply/index.js +57 -0
  352. package/dist/notifications/defaultNotifications/repost/index.d.ts +18 -0
  353. package/dist/notifications/defaultNotifications/repost/index.js +42 -0
  354. package/dist/notifications/defaultNotifications/rsvp/index.d.ts +19 -0
  355. package/dist/notifications/defaultNotifications/rsvp/index.js +40 -0
  356. package/dist/notifications/fcmCredential.d.ts +14 -0
  357. package/dist/notifications/fcmCredential.js +68 -0
  358. package/dist/notifications/finders.d.ts +7 -0
  359. package/dist/notifications/finders.js +13 -0
  360. package/dist/notifications/firebase.d.ts +1 -0
  361. package/dist/notifications/firebase.js +33 -0
  362. package/dist/notifications/handlers.d.ts +3 -0
  363. package/dist/notifications/handlers.js +6 -0
  364. package/dist/notifications/helpers.d.ts +7 -0
  365. package/dist/notifications/helpers.js +31 -0
  366. package/dist/notifications/index.d.ts +9 -0
  367. package/dist/notifications/index.js +43 -0
  368. package/dist/notifications/jobs.d.ts +2 -0
  369. package/dist/notifications/jobs.js +75 -0
  370. package/dist/notifications/mapping.d.ts +25 -0
  371. package/dist/notifications/mapping.js +25 -0
  372. package/dist/notifications/mutations.d.ts +6 -0
  373. package/dist/notifications/mutations.js +40 -0
  374. package/dist/notifications/push.d.ts +9 -0
  375. package/dist/notifications/push.js +261 -0
  376. package/dist/notifications/pushInvalidation.d.ts +10 -0
  377. package/dist/notifications/pushInvalidation.js +10 -0
  378. package/dist/performance/index.d.ts +24 -0
  379. package/dist/performance/index.js +61 -0
  380. package/dist/plugins/helpers.d.ts +3 -0
  381. package/dist/plugins/helpers.js +72 -0
  382. package/dist/plugins/index.d.ts +10 -0
  383. package/dist/plugins/index.js +84 -0
  384. package/dist/plugins/pluginAuth.d.ts +30 -0
  385. package/dist/plugins/pluginAuth.js +44 -0
  386. package/dist/posts/contextClosure.d.ts +16 -0
  387. package/dist/posts/contextClosure.js +66 -0
  388. package/dist/posts/finders.d.ts +298 -0
  389. package/dist/posts/finders.js +259 -0
  390. package/dist/posts/helpers/filters.d.ts +14 -0
  391. package/dist/posts/helpers/filters.js +39 -0
  392. package/dist/posts/helpers/index.d.ts +837 -0
  393. package/dist/posts/helpers/index.js +117 -0
  394. package/dist/posts/index.d.ts +6 -0
  395. package/dist/posts/index.js +6 -0
  396. package/dist/posts/mapping.d.ts +2187 -0
  397. package/dist/posts/mapping.js +222 -0
  398. package/dist/posts/mutations.d.ts +19 -0
  399. package/dist/posts/mutations.js +202 -0
  400. package/dist/posts/rsvpConfirmationEmail.d.ts +2 -0
  401. package/dist/posts/rsvpConfirmationEmail.js +82 -0
  402. package/dist/processingStats/index.d.ts +3 -0
  403. package/dist/processingStats/index.js +3 -0
  404. package/dist/processingStats/mapping.d.ts +7 -0
  405. package/dist/processingStats/mapping.js +4 -0
  406. package/dist/processingStats/mutations.d.ts +2 -0
  407. package/dist/processingStats/mutations.js +6 -0
  408. package/dist/processingStats/queries.d.ts +4 -0
  409. package/dist/processingStats/queries.js +46 -0
  410. package/dist/profileSettings/cache.d.ts +2 -0
  411. package/dist/profileSettings/cache.js +24 -0
  412. package/dist/profileSettings/finders.d.ts +1 -0
  413. package/dist/profileSettings/finders.js +2 -0
  414. package/dist/profileSettings/index.d.ts +3 -0
  415. package/dist/profileSettings/index.js +3 -0
  416. package/dist/profileSettings/mapping.d.ts +38 -0
  417. package/dist/profileSettings/mapping.js +5 -0
  418. package/dist/profileSettings/mutations.d.ts +3 -0
  419. package/dist/profileSettings/mutations.js +24 -0
  420. package/dist/profiles/cache.d.ts +5 -0
  421. package/dist/profiles/cache.js +19 -0
  422. package/dist/profiles/capacity.d.ts +2 -0
  423. package/dist/profiles/capacity.js +20 -0
  424. package/dist/profiles/export.d.ts +3 -0
  425. package/dist/profiles/export.js +85 -0
  426. package/dist/profiles/finders.d.ts +11 -0
  427. package/dist/profiles/finders.js +39 -0
  428. package/dist/profiles/helpers.d.ts +35 -0
  429. package/dist/profiles/helpers.js +10 -0
  430. package/dist/profiles/index.d.ts +5 -0
  431. package/dist/profiles/index.js +18 -0
  432. package/dist/profiles/mapping.d.ts +157 -0
  433. package/dist/profiles/mapping.js +132 -0
  434. package/dist/profiles/mutations.d.ts +9 -0
  435. package/dist/profiles/mutations.js +75 -0
  436. package/dist/pushSubscriptions/finders.d.ts +187 -0
  437. package/dist/pushSubscriptions/finders.js +6 -0
  438. package/dist/pushSubscriptions/helpers.d.ts +99 -0
  439. package/dist/pushSubscriptions/helpers.js +3 -0
  440. package/dist/pushSubscriptions/index.d.ts +3 -0
  441. package/dist/pushSubscriptions/index.js +3 -0
  442. package/dist/pushSubscriptions/mapping.d.ts +261 -0
  443. package/dist/pushSubscriptions/mapping.js +6 -0
  444. package/dist/pushSubscriptions/mutations.d.ts +95 -0
  445. package/dist/pushSubscriptions/mutations.js +21 -0
  446. package/dist/redis/connection.d.ts +4 -0
  447. package/dist/redis/connection.js +17 -0
  448. package/dist/redis/index.d.ts +1 -0
  449. package/dist/redis/index.js +1 -0
  450. package/dist/reports/finders.d.ts +6 -0
  451. package/dist/reports/finders.js +44 -0
  452. package/dist/reports/helpers.d.ts +21 -0
  453. package/dist/reports/helpers.js +12 -0
  454. package/dist/reports/index.d.ts +3 -0
  455. package/dist/reports/index.js +3 -0
  456. package/dist/reports/mapping.d.ts +9 -0
  457. package/dist/reports/mapping.js +34 -0
  458. package/dist/reports/mutations.d.ts +5 -0
  459. package/dist/reports/mutations.js +16 -0
  460. package/dist/roles/defaults.d.ts +2 -0
  461. package/dist/roles/defaults.js +94 -0
  462. package/dist/roles/finders.d.ts +5 -0
  463. package/dist/roles/finders.js +9 -0
  464. package/dist/roles/index.d.ts +4 -0
  465. package/dist/roles/index.js +4 -0
  466. package/dist/roles/mapping.d.ts +11 -0
  467. package/dist/roles/mapping.js +5 -0
  468. package/dist/roles/mutations.d.ts +4 -0
  469. package/dist/roles/mutations.js +30 -0
  470. package/dist/search/finders.d.ts +47 -0
  471. package/dist/search/finders.js +59 -0
  472. package/dist/search/helpers.d.ts +3 -0
  473. package/dist/search/helpers.js +1 -0
  474. package/dist/search/index.d.ts +1 -0
  475. package/dist/search/index.js +1 -0
  476. package/dist/search/mapping.d.ts +40 -0
  477. package/dist/search/mapping.js +43 -0
  478. package/dist/sentry/index.d.ts +34 -0
  479. package/dist/sentry/index.js +113 -0
  480. package/dist/server/helpers.d.ts +0 -0
  481. package/dist/server/helpers.js +1 -0
  482. package/dist/server/index.d.ts +105 -0
  483. package/dist/server/index.js +64 -0
  484. package/dist/stats/finders.d.ts +16156 -0
  485. package/dist/stats/finders.js +167 -0
  486. package/dist/stats/helpers.d.ts +17 -0
  487. package/dist/stats/helpers.js +34 -0
  488. package/dist/stats/index.d.ts +1 -0
  489. package/dist/stats/index.js +1 -0
  490. package/dist/stats/mapping.d.ts +188 -0
  491. package/dist/stats/mapping.js +19 -0
  492. package/dist/stripe/cache.d.ts +30 -0
  493. package/dist/stripe/cache.js +37 -0
  494. package/dist/stripe/connection.d.ts +5 -0
  495. package/dist/stripe/connection.js +23 -0
  496. package/dist/stripe/helpers.d.ts +25 -0
  497. package/dist/stripe/helpers.js +211 -0
  498. package/dist/stripe/index.d.ts +3 -0
  499. package/dist/stripe/index.js +3 -0
  500. package/package.json +99 -0
@@ -0,0 +1,4114 @@
1
+ {
2
+ "id": "c636f081-be6e-4478-8365-3291ad02bd84",
3
+ "prevId": "2c6d3c18-f523-43ed-8eb0-08dde60cddcd",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.access_tokens": {
8
+ "name": "access_tokens",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "body": {
18
+ "name": "body",
19
+ "type": "jsonb",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "default": "'{}'::jsonb"
23
+ },
24
+ "created_at": {
25
+ "name": "created_at",
26
+ "type": "timestamp with time zone",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "default": "now()"
30
+ },
31
+ "updated_at": {
32
+ "name": "updated_at",
33
+ "type": "timestamp with time zone",
34
+ "primaryKey": false,
35
+ "notNull": true,
36
+ "default": "now()"
37
+ },
38
+ "deleted_at": {
39
+ "name": "deleted_at",
40
+ "type": "timestamp with time zone",
41
+ "primaryKey": false,
42
+ "notNull": false
43
+ }
44
+ },
45
+ "indexes": {},
46
+ "foreignKeys": {},
47
+ "compositePrimaryKeys": {},
48
+ "uniqueConstraints": {},
49
+ "policies": {},
50
+ "checkConstraints": {},
51
+ "isRLSEnabled": false
52
+ },
53
+ "public.accounts": {
54
+ "name": "accounts",
55
+ "schema": "",
56
+ "columns": {
57
+ "id": {
58
+ "name": "id",
59
+ "type": "uuid",
60
+ "primaryKey": true,
61
+ "notNull": true
62
+ },
63
+ "email": {
64
+ "name": "email",
65
+ "type": "text",
66
+ "primaryKey": false,
67
+ "notNull": true
68
+ },
69
+ "password_hash": {
70
+ "name": "password_hash",
71
+ "type": "text",
72
+ "primaryKey": false,
73
+ "notNull": true
74
+ },
75
+ "email_validated": {
76
+ "name": "email_validated",
77
+ "type": "boolean",
78
+ "primaryKey": false,
79
+ "notNull": true,
80
+ "default": false
81
+ },
82
+ "guest": {
83
+ "name": "guest",
84
+ "type": "boolean",
85
+ "primaryKey": false,
86
+ "notNull": false
87
+ },
88
+ "created_at": {
89
+ "name": "created_at",
90
+ "type": "timestamp with time zone",
91
+ "primaryKey": false,
92
+ "notNull": true,
93
+ "default": "now()"
94
+ },
95
+ "updated_at": {
96
+ "name": "updated_at",
97
+ "type": "timestamp with time zone",
98
+ "primaryKey": false,
99
+ "notNull": true,
100
+ "default": "now()"
101
+ },
102
+ "deleted_at": {
103
+ "name": "deleted_at",
104
+ "type": "timestamp with time zone",
105
+ "primaryKey": false,
106
+ "notNull": false
107
+ }
108
+ },
109
+ "indexes": {
110
+ "accounts_email_unique": {
111
+ "name": "accounts_email_unique",
112
+ "columns": [
113
+ {
114
+ "expression": "email",
115
+ "isExpression": false,
116
+ "asc": true,
117
+ "nulls": "last"
118
+ }
119
+ ],
120
+ "isUnique": true,
121
+ "concurrently": false,
122
+ "method": "btree",
123
+ "with": {}
124
+ }
125
+ },
126
+ "foreignKeys": {},
127
+ "compositePrimaryKeys": {},
128
+ "uniqueConstraints": {},
129
+ "policies": {},
130
+ "checkConstraints": {},
131
+ "isRLSEnabled": false
132
+ },
133
+ "public.configs": {
134
+ "name": "configs",
135
+ "schema": "",
136
+ "columns": {
137
+ "key": {
138
+ "name": "key",
139
+ "type": "text",
140
+ "primaryKey": true,
141
+ "notNull": true
142
+ },
143
+ "body": {
144
+ "name": "body",
145
+ "type": "jsonb",
146
+ "primaryKey": false,
147
+ "notNull": true
148
+ },
149
+ "created_at": {
150
+ "name": "created_at",
151
+ "type": "timestamp with time zone",
152
+ "primaryKey": false,
153
+ "notNull": true,
154
+ "default": "now()"
155
+ },
156
+ "updated_at": {
157
+ "name": "updated_at",
158
+ "type": "timestamp with time zone",
159
+ "primaryKey": false,
160
+ "notNull": true,
161
+ "default": "now()"
162
+ },
163
+ "deleted_at": {
164
+ "name": "deleted_at",
165
+ "type": "timestamp with time zone",
166
+ "primaryKey": false,
167
+ "notNull": false
168
+ }
169
+ },
170
+ "indexes": {},
171
+ "foreignKeys": {},
172
+ "compositePrimaryKeys": {},
173
+ "uniqueConstraints": {},
174
+ "policies": {},
175
+ "checkConstraints": {},
176
+ "isRLSEnabled": false
177
+ },
178
+ "public.data_migrations": {
179
+ "name": "data_migrations",
180
+ "schema": "",
181
+ "columns": {
182
+ "id": {
183
+ "name": "id",
184
+ "type": "text",
185
+ "primaryKey": true,
186
+ "notNull": true
187
+ },
188
+ "applied_at": {
189
+ "name": "applied_at",
190
+ "type": "timestamp with time zone",
191
+ "primaryKey": false,
192
+ "notNull": true,
193
+ "default": "now()"
194
+ }
195
+ },
196
+ "indexes": {},
197
+ "foreignKeys": {},
198
+ "compositePrimaryKeys": {},
199
+ "uniqueConstraints": {},
200
+ "policies": {},
201
+ "checkConstraints": {},
202
+ "isRLSEnabled": false
203
+ },
204
+ "public.groups": {
205
+ "name": "groups",
206
+ "schema": "",
207
+ "columns": {
208
+ "id": {
209
+ "name": "id",
210
+ "type": "uuid",
211
+ "primaryKey": true,
212
+ "notNull": true
213
+ },
214
+ "handle": {
215
+ "name": "handle",
216
+ "type": "text",
217
+ "primaryKey": false,
218
+ "notNull": true
219
+ },
220
+ "body": {
221
+ "name": "body",
222
+ "type": "jsonb",
223
+ "primaryKey": false,
224
+ "notNull": true,
225
+ "default": "'{}'::jsonb"
226
+ },
227
+ "search_vector": {
228
+ "name": "search_vector",
229
+ "type": "tsvector",
230
+ "primaryKey": false,
231
+ "notNull": false
232
+ },
233
+ "created_at": {
234
+ "name": "created_at",
235
+ "type": "timestamp with time zone",
236
+ "primaryKey": false,
237
+ "notNull": true,
238
+ "default": "now()"
239
+ },
240
+ "updated_at": {
241
+ "name": "updated_at",
242
+ "type": "timestamp with time zone",
243
+ "primaryKey": false,
244
+ "notNull": true,
245
+ "default": "now()"
246
+ },
247
+ "deleted_at": {
248
+ "name": "deleted_at",
249
+ "type": "timestamp with time zone",
250
+ "primaryKey": false,
251
+ "notNull": false
252
+ }
253
+ },
254
+ "indexes": {
255
+ "groups_handle_unique": {
256
+ "name": "groups_handle_unique",
257
+ "columns": [
258
+ {
259
+ "expression": "handle",
260
+ "isExpression": false,
261
+ "asc": true,
262
+ "nulls": "last"
263
+ }
264
+ ],
265
+ "isUnique": true,
266
+ "concurrently": false,
267
+ "method": "btree",
268
+ "with": {}
269
+ },
270
+ "groups_search_vector_idx": {
271
+ "name": "groups_search_vector_idx",
272
+ "columns": [
273
+ {
274
+ "expression": "search_vector",
275
+ "isExpression": false,
276
+ "asc": true,
277
+ "nulls": "last"
278
+ }
279
+ ],
280
+ "isUnique": false,
281
+ "concurrently": false,
282
+ "method": "gin",
283
+ "with": {}
284
+ }
285
+ },
286
+ "foreignKeys": {},
287
+ "compositePrimaryKeys": {},
288
+ "uniqueConstraints": {},
289
+ "policies": {},
290
+ "checkConstraints": {},
291
+ "isRLSEnabled": false
292
+ },
293
+ "public.hashtags": {
294
+ "name": "hashtags",
295
+ "schema": "",
296
+ "columns": {
297
+ "id": {
298
+ "name": "id",
299
+ "type": "uuid",
300
+ "primaryKey": true,
301
+ "notNull": true
302
+ },
303
+ "name": {
304
+ "name": "name",
305
+ "type": "text",
306
+ "primaryKey": false,
307
+ "notNull": true
308
+ },
309
+ "created_at": {
310
+ "name": "created_at",
311
+ "type": "timestamp with time zone",
312
+ "primaryKey": false,
313
+ "notNull": true,
314
+ "default": "now()"
315
+ },
316
+ "updated_at": {
317
+ "name": "updated_at",
318
+ "type": "timestamp with time zone",
319
+ "primaryKey": false,
320
+ "notNull": true,
321
+ "default": "now()"
322
+ },
323
+ "deleted_at": {
324
+ "name": "deleted_at",
325
+ "type": "timestamp with time zone",
326
+ "primaryKey": false,
327
+ "notNull": false
328
+ }
329
+ },
330
+ "indexes": {
331
+ "hashtags_name_unique": {
332
+ "name": "hashtags_name_unique",
333
+ "columns": [
334
+ {
335
+ "expression": "name",
336
+ "isExpression": false,
337
+ "asc": true,
338
+ "nulls": "last"
339
+ }
340
+ ],
341
+ "isUnique": true,
342
+ "concurrently": false,
343
+ "method": "btree",
344
+ "with": {}
345
+ }
346
+ },
347
+ "foreignKeys": {},
348
+ "compositePrimaryKeys": {},
349
+ "uniqueConstraints": {},
350
+ "policies": {},
351
+ "checkConstraints": {},
352
+ "isRLSEnabled": false
353
+ },
354
+ "public.i18n": {
355
+ "name": "i18n",
356
+ "schema": "",
357
+ "columns": {
358
+ "id": {
359
+ "name": "id",
360
+ "type": "uuid",
361
+ "primaryKey": true,
362
+ "notNull": true
363
+ },
364
+ "locale": {
365
+ "name": "locale",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": true
369
+ },
370
+ "namespace": {
371
+ "name": "namespace",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true
375
+ },
376
+ "body": {
377
+ "name": "body",
378
+ "type": "jsonb",
379
+ "primaryKey": false,
380
+ "notNull": true
381
+ },
382
+ "created_at": {
383
+ "name": "created_at",
384
+ "type": "timestamp with time zone",
385
+ "primaryKey": false,
386
+ "notNull": true,
387
+ "default": "now()"
388
+ },
389
+ "updated_at": {
390
+ "name": "updated_at",
391
+ "type": "timestamp with time zone",
392
+ "primaryKey": false,
393
+ "notNull": true,
394
+ "default": "now()"
395
+ },
396
+ "deleted_at": {
397
+ "name": "deleted_at",
398
+ "type": "timestamp with time zone",
399
+ "primaryKey": false,
400
+ "notNull": false
401
+ }
402
+ },
403
+ "indexes": {
404
+ "i18n_locale_namespace": {
405
+ "name": "i18n_locale_namespace",
406
+ "columns": [
407
+ {
408
+ "expression": "locale",
409
+ "isExpression": false,
410
+ "asc": true,
411
+ "nulls": "last"
412
+ },
413
+ {
414
+ "expression": "namespace",
415
+ "isExpression": false,
416
+ "asc": true,
417
+ "nulls": "last"
418
+ }
419
+ ],
420
+ "isUnique": true,
421
+ "concurrently": false,
422
+ "method": "btree",
423
+ "with": {}
424
+ }
425
+ },
426
+ "foreignKeys": {},
427
+ "compositePrimaryKeys": {},
428
+ "uniqueConstraints": {},
429
+ "policies": {},
430
+ "checkConstraints": {},
431
+ "isRLSEnabled": false
432
+ },
433
+ "public.invite_links": {
434
+ "name": "invite_links",
435
+ "schema": "",
436
+ "columns": {
437
+ "id": {
438
+ "name": "id",
439
+ "type": "uuid",
440
+ "primaryKey": true,
441
+ "notNull": true
442
+ },
443
+ "slug": {
444
+ "name": "slug",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ },
449
+ "body": {
450
+ "name": "body",
451
+ "type": "jsonb",
452
+ "primaryKey": false,
453
+ "notNull": true,
454
+ "default": "'{}'::jsonb"
455
+ },
456
+ "created_at": {
457
+ "name": "created_at",
458
+ "type": "timestamp with time zone",
459
+ "primaryKey": false,
460
+ "notNull": true,
461
+ "default": "now()"
462
+ },
463
+ "updated_at": {
464
+ "name": "updated_at",
465
+ "type": "timestamp with time zone",
466
+ "primaryKey": false,
467
+ "notNull": true,
468
+ "default": "now()"
469
+ },
470
+ "deleted_at": {
471
+ "name": "deleted_at",
472
+ "type": "timestamp with time zone",
473
+ "primaryKey": false,
474
+ "notNull": false
475
+ }
476
+ },
477
+ "indexes": {
478
+ "invite_links_slug_unique": {
479
+ "name": "invite_links_slug_unique",
480
+ "columns": [
481
+ {
482
+ "expression": "slug",
483
+ "isExpression": false,
484
+ "asc": true,
485
+ "nulls": "last"
486
+ }
487
+ ],
488
+ "isUnique": true,
489
+ "concurrently": false,
490
+ "method": "btree",
491
+ "with": {}
492
+ }
493
+ },
494
+ "foreignKeys": {},
495
+ "compositePrimaryKeys": {},
496
+ "uniqueConstraints": {},
497
+ "policies": {},
498
+ "checkConstraints": {},
499
+ "isRLSEnabled": false
500
+ },
501
+ "public.jam_events": {
502
+ "name": "jam_events",
503
+ "schema": "",
504
+ "columns": {
505
+ "id": {
506
+ "name": "id",
507
+ "type": "uuid",
508
+ "primaryKey": true,
509
+ "notNull": true
510
+ },
511
+ "post_id": {
512
+ "name": "post_id",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": true
516
+ },
517
+ "body": {
518
+ "name": "body",
519
+ "type": "jsonb",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "default": "'{}'::jsonb"
523
+ },
524
+ "created_at": {
525
+ "name": "created_at",
526
+ "type": "timestamp with time zone",
527
+ "primaryKey": false,
528
+ "notNull": true,
529
+ "default": "now()"
530
+ },
531
+ "updated_at": {
532
+ "name": "updated_at",
533
+ "type": "timestamp with time zone",
534
+ "primaryKey": false,
535
+ "notNull": true,
536
+ "default": "now()"
537
+ },
538
+ "deleted_at": {
539
+ "name": "deleted_at",
540
+ "type": "timestamp with time zone",
541
+ "primaryKey": false,
542
+ "notNull": false
543
+ }
544
+ },
545
+ "indexes": {
546
+ "jam_events_post_idx": {
547
+ "name": "jam_events_post_idx",
548
+ "columns": [
549
+ {
550
+ "expression": "post_id",
551
+ "isExpression": false,
552
+ "asc": true,
553
+ "nulls": "last"
554
+ }
555
+ ],
556
+ "isUnique": false,
557
+ "concurrently": false,
558
+ "method": "btree",
559
+ "with": {}
560
+ }
561
+ },
562
+ "foreignKeys": {},
563
+ "compositePrimaryKeys": {},
564
+ "uniqueConstraints": {},
565
+ "policies": {},
566
+ "checkConstraints": {},
567
+ "isRLSEnabled": false
568
+ },
569
+ "public.media_attachments": {
570
+ "name": "media_attachments",
571
+ "schema": "",
572
+ "columns": {
573
+ "id": {
574
+ "name": "id",
575
+ "type": "uuid",
576
+ "primaryKey": true,
577
+ "notNull": true
578
+ },
579
+ "body": {
580
+ "name": "body",
581
+ "type": "jsonb",
582
+ "primaryKey": false,
583
+ "notNull": true,
584
+ "default": "'{}'::jsonb"
585
+ },
586
+ "created_at": {
587
+ "name": "created_at",
588
+ "type": "timestamp with time zone",
589
+ "primaryKey": false,
590
+ "notNull": true,
591
+ "default": "now()"
592
+ },
593
+ "updated_at": {
594
+ "name": "updated_at",
595
+ "type": "timestamp with time zone",
596
+ "primaryKey": false,
597
+ "notNull": true,
598
+ "default": "now()"
599
+ },
600
+ "deleted_at": {
601
+ "name": "deleted_at",
602
+ "type": "timestamp with time zone",
603
+ "primaryKey": false,
604
+ "notNull": false
605
+ }
606
+ },
607
+ "indexes": {},
608
+ "foreignKeys": {},
609
+ "compositePrimaryKeys": {},
610
+ "uniqueConstraints": {},
611
+ "policies": {},
612
+ "checkConstraints": {},
613
+ "isRLSEnabled": false
614
+ },
615
+ "public.notifications": {
616
+ "name": "notifications",
617
+ "schema": "",
618
+ "columns": {
619
+ "id": {
620
+ "name": "id",
621
+ "type": "uuid",
622
+ "primaryKey": true,
623
+ "notNull": true
624
+ },
625
+ "profile_id": {
626
+ "name": "profile_id",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": true
630
+ },
631
+ "body": {
632
+ "name": "body",
633
+ "type": "jsonb",
634
+ "primaryKey": false,
635
+ "notNull": true,
636
+ "default": "'{}'::jsonb"
637
+ },
638
+ "created_at": {
639
+ "name": "created_at",
640
+ "type": "timestamp with time zone",
641
+ "primaryKey": false,
642
+ "notNull": true,
643
+ "default": "now()"
644
+ },
645
+ "updated_at": {
646
+ "name": "updated_at",
647
+ "type": "timestamp with time zone",
648
+ "primaryKey": false,
649
+ "notNull": true,
650
+ "default": "now()"
651
+ },
652
+ "deleted_at": {
653
+ "name": "deleted_at",
654
+ "type": "timestamp with time zone",
655
+ "primaryKey": false,
656
+ "notNull": false
657
+ }
658
+ },
659
+ "indexes": {
660
+ "notifications_profile_idx": {
661
+ "name": "notifications_profile_idx",
662
+ "columns": [
663
+ {
664
+ "expression": "profile_id",
665
+ "isExpression": false,
666
+ "asc": true,
667
+ "nulls": "last"
668
+ }
669
+ ],
670
+ "isUnique": false,
671
+ "concurrently": false,
672
+ "method": "btree",
673
+ "with": {}
674
+ }
675
+ },
676
+ "foreignKeys": {},
677
+ "compositePrimaryKeys": {},
678
+ "uniqueConstraints": {},
679
+ "policies": {},
680
+ "checkConstraints": {},
681
+ "isRLSEnabled": false
682
+ },
683
+ "public.posts": {
684
+ "name": "posts",
685
+ "schema": "",
686
+ "columns": {
687
+ "id": {
688
+ "name": "id",
689
+ "type": "uuid",
690
+ "primaryKey": true,
691
+ "notNull": true
692
+ },
693
+ "type": {
694
+ "name": "type",
695
+ "type": "text",
696
+ "primaryKey": false,
697
+ "notNull": true
698
+ },
699
+ "visibility": {
700
+ "name": "visibility",
701
+ "type": "text",
702
+ "primaryKey": false,
703
+ "notNull": true
704
+ },
705
+ "creator_id": {
706
+ "name": "creator_id",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true
710
+ },
711
+ "body": {
712
+ "name": "body",
713
+ "type": "jsonb",
714
+ "primaryKey": false,
715
+ "notNull": true,
716
+ "default": "'{}'::jsonb"
717
+ },
718
+ "search_vector": {
719
+ "name": "search_vector",
720
+ "type": "tsvector",
721
+ "primaryKey": false,
722
+ "notNull": false
723
+ },
724
+ "created_at": {
725
+ "name": "created_at",
726
+ "type": "timestamp with time zone",
727
+ "primaryKey": false,
728
+ "notNull": true,
729
+ "default": "now()"
730
+ },
731
+ "updated_at": {
732
+ "name": "updated_at",
733
+ "type": "timestamp with time zone",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "default": "now()"
737
+ },
738
+ "deleted_at": {
739
+ "name": "deleted_at",
740
+ "type": "timestamp with time zone",
741
+ "primaryKey": false,
742
+ "notNull": false
743
+ }
744
+ },
745
+ "indexes": {
746
+ "posts_type_idx": {
747
+ "name": "posts_type_idx",
748
+ "columns": [
749
+ {
750
+ "expression": "type",
751
+ "isExpression": false,
752
+ "asc": true,
753
+ "nulls": "last"
754
+ }
755
+ ],
756
+ "isUnique": false,
757
+ "concurrently": false,
758
+ "method": "btree",
759
+ "with": {}
760
+ },
761
+ "posts_visibility_idx": {
762
+ "name": "posts_visibility_idx",
763
+ "columns": [
764
+ {
765
+ "expression": "visibility",
766
+ "isExpression": false,
767
+ "asc": true,
768
+ "nulls": "last"
769
+ }
770
+ ],
771
+ "isUnique": false,
772
+ "concurrently": false,
773
+ "method": "btree",
774
+ "with": {}
775
+ },
776
+ "posts_creator_idx": {
777
+ "name": "posts_creator_idx",
778
+ "columns": [
779
+ {
780
+ "expression": "creator_id",
781
+ "isExpression": false,
782
+ "asc": true,
783
+ "nulls": "last"
784
+ }
785
+ ],
786
+ "isUnique": false,
787
+ "concurrently": false,
788
+ "method": "btree",
789
+ "with": {}
790
+ },
791
+ "posts_search_vector_idx": {
792
+ "name": "posts_search_vector_idx",
793
+ "columns": [
794
+ {
795
+ "expression": "search_vector",
796
+ "isExpression": false,
797
+ "asc": true,
798
+ "nulls": "last"
799
+ }
800
+ ],
801
+ "isUnique": false,
802
+ "concurrently": false,
803
+ "method": "gin",
804
+ "with": {}
805
+ }
806
+ },
807
+ "foreignKeys": {},
808
+ "compositePrimaryKeys": {},
809
+ "uniqueConstraints": {},
810
+ "policies": {},
811
+ "checkConstraints": {},
812
+ "isRLSEnabled": false
813
+ },
814
+ "public.processing_stats": {
815
+ "name": "processing_stats",
816
+ "schema": "",
817
+ "columns": {
818
+ "id": {
819
+ "name": "id",
820
+ "type": "uuid",
821
+ "primaryKey": true,
822
+ "notNull": true
823
+ },
824
+ "filetype": {
825
+ "name": "filetype",
826
+ "type": "text",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "filesize": {
831
+ "name": "filesize",
832
+ "type": "text",
833
+ "primaryKey": false,
834
+ "notNull": true
835
+ },
836
+ "body": {
837
+ "name": "body",
838
+ "type": "jsonb",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "default": "'{}'::jsonb"
842
+ },
843
+ "created_at": {
844
+ "name": "created_at",
845
+ "type": "timestamp with time zone",
846
+ "primaryKey": false,
847
+ "notNull": true,
848
+ "default": "now()"
849
+ },
850
+ "updated_at": {
851
+ "name": "updated_at",
852
+ "type": "timestamp with time zone",
853
+ "primaryKey": false,
854
+ "notNull": true,
855
+ "default": "now()"
856
+ },
857
+ "deleted_at": {
858
+ "name": "deleted_at",
859
+ "type": "timestamp with time zone",
860
+ "primaryKey": false,
861
+ "notNull": false
862
+ }
863
+ },
864
+ "indexes": {
865
+ "processing_stats_filetype_idx": {
866
+ "name": "processing_stats_filetype_idx",
867
+ "columns": [
868
+ {
869
+ "expression": "filetype",
870
+ "isExpression": false,
871
+ "asc": true,
872
+ "nulls": "last"
873
+ }
874
+ ],
875
+ "isUnique": false,
876
+ "concurrently": false,
877
+ "method": "btree",
878
+ "with": {}
879
+ },
880
+ "processing_stats_filetype_size_idx": {
881
+ "name": "processing_stats_filetype_size_idx",
882
+ "columns": [
883
+ {
884
+ "expression": "filetype",
885
+ "isExpression": false,
886
+ "asc": true,
887
+ "nulls": "last"
888
+ },
889
+ {
890
+ "expression": "filesize",
891
+ "isExpression": false,
892
+ "asc": true,
893
+ "nulls": "last"
894
+ }
895
+ ],
896
+ "isUnique": false,
897
+ "concurrently": false,
898
+ "method": "btree",
899
+ "with": {}
900
+ }
901
+ },
902
+ "foreignKeys": {},
903
+ "compositePrimaryKeys": {},
904
+ "uniqueConstraints": {},
905
+ "policies": {},
906
+ "checkConstraints": {},
907
+ "isRLSEnabled": false
908
+ },
909
+ "public.profile_settings": {
910
+ "name": "profile_settings",
911
+ "schema": "",
912
+ "columns": {
913
+ "id": {
914
+ "name": "id",
915
+ "type": "uuid",
916
+ "primaryKey": true,
917
+ "notNull": true
918
+ },
919
+ "profile_id": {
920
+ "name": "profile_id",
921
+ "type": "text",
922
+ "primaryKey": false,
923
+ "notNull": true
924
+ },
925
+ "body": {
926
+ "name": "body",
927
+ "type": "jsonb",
928
+ "primaryKey": false,
929
+ "notNull": true,
930
+ "default": "'{}'::jsonb"
931
+ },
932
+ "created_at": {
933
+ "name": "created_at",
934
+ "type": "timestamp with time zone",
935
+ "primaryKey": false,
936
+ "notNull": true,
937
+ "default": "now()"
938
+ },
939
+ "updated_at": {
940
+ "name": "updated_at",
941
+ "type": "timestamp with time zone",
942
+ "primaryKey": false,
943
+ "notNull": true,
944
+ "default": "now()"
945
+ },
946
+ "deleted_at": {
947
+ "name": "deleted_at",
948
+ "type": "timestamp with time zone",
949
+ "primaryKey": false,
950
+ "notNull": false
951
+ }
952
+ },
953
+ "indexes": {
954
+ "profile_settings_profile_unique": {
955
+ "name": "profile_settings_profile_unique",
956
+ "columns": [
957
+ {
958
+ "expression": "profile_id",
959
+ "isExpression": false,
960
+ "asc": true,
961
+ "nulls": "last"
962
+ }
963
+ ],
964
+ "isUnique": true,
965
+ "concurrently": false,
966
+ "method": "btree",
967
+ "with": {}
968
+ }
969
+ },
970
+ "foreignKeys": {},
971
+ "compositePrimaryKeys": {},
972
+ "uniqueConstraints": {},
973
+ "policies": {},
974
+ "checkConstraints": {},
975
+ "isRLSEnabled": false
976
+ },
977
+ "public.profiles": {
978
+ "name": "profiles",
979
+ "schema": "",
980
+ "columns": {
981
+ "id": {
982
+ "name": "id",
983
+ "type": "uuid",
984
+ "primaryKey": true,
985
+ "notNull": true
986
+ },
987
+ "handle": {
988
+ "name": "handle",
989
+ "type": "text",
990
+ "primaryKey": false,
991
+ "notNull": true
992
+ },
993
+ "activity_pub_domain": {
994
+ "name": "activity_pub_domain",
995
+ "type": "text",
996
+ "primaryKey": false,
997
+ "notNull": false
998
+ },
999
+ "type": {
1000
+ "name": "type",
1001
+ "type": "text",
1002
+ "primaryKey": false,
1003
+ "notNull": true
1004
+ },
1005
+ "body": {
1006
+ "name": "body",
1007
+ "type": "jsonb",
1008
+ "primaryKey": false,
1009
+ "notNull": true,
1010
+ "default": "'{}'::jsonb"
1011
+ },
1012
+ "search_vector": {
1013
+ "name": "search_vector",
1014
+ "type": "tsvector",
1015
+ "primaryKey": false,
1016
+ "notNull": false
1017
+ },
1018
+ "created_at": {
1019
+ "name": "created_at",
1020
+ "type": "timestamp with time zone",
1021
+ "primaryKey": false,
1022
+ "notNull": true,
1023
+ "default": "now()"
1024
+ },
1025
+ "updated_at": {
1026
+ "name": "updated_at",
1027
+ "type": "timestamp with time zone",
1028
+ "primaryKey": false,
1029
+ "notNull": true,
1030
+ "default": "now()"
1031
+ },
1032
+ "deleted_at": {
1033
+ "name": "deleted_at",
1034
+ "type": "timestamp with time zone",
1035
+ "primaryKey": false,
1036
+ "notNull": false
1037
+ }
1038
+ },
1039
+ "indexes": {
1040
+ "profiles_handle_domain_unique": {
1041
+ "name": "profiles_handle_domain_unique",
1042
+ "columns": [
1043
+ {
1044
+ "expression": "handle",
1045
+ "isExpression": false,
1046
+ "asc": true,
1047
+ "nulls": "last"
1048
+ },
1049
+ {
1050
+ "expression": "activity_pub_domain",
1051
+ "isExpression": false,
1052
+ "asc": true,
1053
+ "nulls": "last"
1054
+ }
1055
+ ],
1056
+ "isUnique": true,
1057
+ "concurrently": false,
1058
+ "method": "btree",
1059
+ "with": {}
1060
+ },
1061
+ "profiles_search_vector_idx": {
1062
+ "name": "profiles_search_vector_idx",
1063
+ "columns": [
1064
+ {
1065
+ "expression": "search_vector",
1066
+ "isExpression": false,
1067
+ "asc": true,
1068
+ "nulls": "last"
1069
+ }
1070
+ ],
1071
+ "isUnique": false,
1072
+ "concurrently": false,
1073
+ "method": "gin",
1074
+ "with": {}
1075
+ }
1076
+ },
1077
+ "foreignKeys": {},
1078
+ "compositePrimaryKeys": {},
1079
+ "uniqueConstraints": {},
1080
+ "policies": {},
1081
+ "checkConstraints": {},
1082
+ "isRLSEnabled": false
1083
+ },
1084
+ "public.push_subscriptions": {
1085
+ "name": "push_subscriptions",
1086
+ "schema": "",
1087
+ "columns": {
1088
+ "id": {
1089
+ "name": "id",
1090
+ "type": "uuid",
1091
+ "primaryKey": true,
1092
+ "notNull": true
1093
+ },
1094
+ "body": {
1095
+ "name": "body",
1096
+ "type": "jsonb",
1097
+ "primaryKey": false,
1098
+ "notNull": true,
1099
+ "default": "'{}'::jsonb"
1100
+ },
1101
+ "created_at": {
1102
+ "name": "created_at",
1103
+ "type": "timestamp with time zone",
1104
+ "primaryKey": false,
1105
+ "notNull": true,
1106
+ "default": "now()"
1107
+ },
1108
+ "updated_at": {
1109
+ "name": "updated_at",
1110
+ "type": "timestamp with time zone",
1111
+ "primaryKey": false,
1112
+ "notNull": true,
1113
+ "default": "now()"
1114
+ },
1115
+ "deleted_at": {
1116
+ "name": "deleted_at",
1117
+ "type": "timestamp with time zone",
1118
+ "primaryKey": false,
1119
+ "notNull": false
1120
+ }
1121
+ },
1122
+ "indexes": {},
1123
+ "foreignKeys": {},
1124
+ "compositePrimaryKeys": {},
1125
+ "uniqueConstraints": {},
1126
+ "policies": {},
1127
+ "checkConstraints": {},
1128
+ "isRLSEnabled": false
1129
+ },
1130
+ "public.reports": {
1131
+ "name": "reports",
1132
+ "schema": "",
1133
+ "columns": {
1134
+ "id": {
1135
+ "name": "id",
1136
+ "type": "uuid",
1137
+ "primaryKey": true,
1138
+ "notNull": true
1139
+ },
1140
+ "body": {
1141
+ "name": "body",
1142
+ "type": "jsonb",
1143
+ "primaryKey": false,
1144
+ "notNull": true,
1145
+ "default": "'{}'::jsonb"
1146
+ },
1147
+ "created_at": {
1148
+ "name": "created_at",
1149
+ "type": "timestamp with time zone",
1150
+ "primaryKey": false,
1151
+ "notNull": true,
1152
+ "default": "now()"
1153
+ },
1154
+ "updated_at": {
1155
+ "name": "updated_at",
1156
+ "type": "timestamp with time zone",
1157
+ "primaryKey": false,
1158
+ "notNull": true,
1159
+ "default": "now()"
1160
+ },
1161
+ "deleted_at": {
1162
+ "name": "deleted_at",
1163
+ "type": "timestamp with time zone",
1164
+ "primaryKey": false,
1165
+ "notNull": false
1166
+ }
1167
+ },
1168
+ "indexes": {},
1169
+ "foreignKeys": {},
1170
+ "compositePrimaryKeys": {},
1171
+ "uniqueConstraints": {},
1172
+ "policies": {},
1173
+ "checkConstraints": {},
1174
+ "isRLSEnabled": false
1175
+ },
1176
+ "public.roles": {
1177
+ "name": "roles",
1178
+ "schema": "",
1179
+ "columns": {
1180
+ "id": {
1181
+ "name": "id",
1182
+ "type": "uuid",
1183
+ "primaryKey": true,
1184
+ "notNull": true
1185
+ },
1186
+ "key": {
1187
+ "name": "key",
1188
+ "type": "text",
1189
+ "primaryKey": false,
1190
+ "notNull": true
1191
+ },
1192
+ "is_default": {
1193
+ "name": "is_default",
1194
+ "type": "boolean",
1195
+ "primaryKey": false,
1196
+ "notNull": true,
1197
+ "default": false
1198
+ },
1199
+ "body": {
1200
+ "name": "body",
1201
+ "type": "jsonb",
1202
+ "primaryKey": false,
1203
+ "notNull": true,
1204
+ "default": "'{}'::jsonb"
1205
+ },
1206
+ "created_at": {
1207
+ "name": "created_at",
1208
+ "type": "timestamp with time zone",
1209
+ "primaryKey": false,
1210
+ "notNull": true,
1211
+ "default": "now()"
1212
+ },
1213
+ "updated_at": {
1214
+ "name": "updated_at",
1215
+ "type": "timestamp with time zone",
1216
+ "primaryKey": false,
1217
+ "notNull": true,
1218
+ "default": "now()"
1219
+ },
1220
+ "deleted_at": {
1221
+ "name": "deleted_at",
1222
+ "type": "timestamp with time zone",
1223
+ "primaryKey": false,
1224
+ "notNull": false
1225
+ }
1226
+ },
1227
+ "indexes": {
1228
+ "roles_key_unique": {
1229
+ "name": "roles_key_unique",
1230
+ "columns": [
1231
+ {
1232
+ "expression": "key",
1233
+ "isExpression": false,
1234
+ "asc": true,
1235
+ "nulls": "last"
1236
+ }
1237
+ ],
1238
+ "isUnique": true,
1239
+ "concurrently": false,
1240
+ "method": "btree",
1241
+ "with": {}
1242
+ }
1243
+ },
1244
+ "foreignKeys": {},
1245
+ "compositePrimaryKeys": {},
1246
+ "uniqueConstraints": {},
1247
+ "policies": {},
1248
+ "checkConstraints": {},
1249
+ "isRLSEnabled": false
1250
+ },
1251
+ "public.account_to_push_subscription": {
1252
+ "name": "account_to_push_subscription",
1253
+ "schema": "",
1254
+ "columns": {
1255
+ "id": {
1256
+ "name": "id",
1257
+ "type": "uuid",
1258
+ "primaryKey": true,
1259
+ "notNull": true
1260
+ },
1261
+ "from_id": {
1262
+ "name": "from_id",
1263
+ "type": "text",
1264
+ "primaryKey": false,
1265
+ "notNull": true
1266
+ },
1267
+ "to_id": {
1268
+ "name": "to_id",
1269
+ "type": "text",
1270
+ "primaryKey": false,
1271
+ "notNull": true
1272
+ },
1273
+ "body": {
1274
+ "name": "body",
1275
+ "type": "jsonb",
1276
+ "primaryKey": false,
1277
+ "notNull": false,
1278
+ "default": "'{}'::jsonb"
1279
+ },
1280
+ "created_at": {
1281
+ "name": "created_at",
1282
+ "type": "timestamp with time zone",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "default": "now()"
1286
+ },
1287
+ "updated_at": {
1288
+ "name": "updated_at",
1289
+ "type": "timestamp with time zone",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "default": "now()"
1293
+ }
1294
+ },
1295
+ "indexes": {
1296
+ "account_to_push_subscription_from_idx": {
1297
+ "name": "account_to_push_subscription_from_idx",
1298
+ "columns": [
1299
+ {
1300
+ "expression": "from_id",
1301
+ "isExpression": false,
1302
+ "asc": true,
1303
+ "nulls": "last"
1304
+ }
1305
+ ],
1306
+ "isUnique": false,
1307
+ "concurrently": false,
1308
+ "method": "btree",
1309
+ "with": {}
1310
+ },
1311
+ "account_to_push_subscription_to_idx": {
1312
+ "name": "account_to_push_subscription_to_idx",
1313
+ "columns": [
1314
+ {
1315
+ "expression": "to_id",
1316
+ "isExpression": false,
1317
+ "asc": true,
1318
+ "nulls": "last"
1319
+ }
1320
+ ],
1321
+ "isUnique": false,
1322
+ "concurrently": false,
1323
+ "method": "btree",
1324
+ "with": {}
1325
+ }
1326
+ },
1327
+ "foreignKeys": {},
1328
+ "compositePrimaryKeys": {},
1329
+ "uniqueConstraints": {},
1330
+ "policies": {},
1331
+ "checkConstraints": {},
1332
+ "isRLSEnabled": false
1333
+ },
1334
+ "public.audience": {
1335
+ "name": "audience",
1336
+ "schema": "",
1337
+ "columns": {
1338
+ "id": {
1339
+ "name": "id",
1340
+ "type": "uuid",
1341
+ "primaryKey": true,
1342
+ "notNull": true
1343
+ },
1344
+ "from_id": {
1345
+ "name": "from_id",
1346
+ "type": "text",
1347
+ "primaryKey": false,
1348
+ "notNull": true
1349
+ },
1350
+ "to_id": {
1351
+ "name": "to_id",
1352
+ "type": "text",
1353
+ "primaryKey": false,
1354
+ "notNull": true
1355
+ },
1356
+ "body": {
1357
+ "name": "body",
1358
+ "type": "jsonb",
1359
+ "primaryKey": false,
1360
+ "notNull": false,
1361
+ "default": "'{}'::jsonb"
1362
+ },
1363
+ "created_at": {
1364
+ "name": "created_at",
1365
+ "type": "timestamp with time zone",
1366
+ "primaryKey": false,
1367
+ "notNull": true,
1368
+ "default": "now()"
1369
+ },
1370
+ "updated_at": {
1371
+ "name": "updated_at",
1372
+ "type": "timestamp with time zone",
1373
+ "primaryKey": false,
1374
+ "notNull": true,
1375
+ "default": "now()"
1376
+ }
1377
+ },
1378
+ "indexes": {
1379
+ "audience_from_idx": {
1380
+ "name": "audience_from_idx",
1381
+ "columns": [
1382
+ {
1383
+ "expression": "from_id",
1384
+ "isExpression": false,
1385
+ "asc": true,
1386
+ "nulls": "last"
1387
+ }
1388
+ ],
1389
+ "isUnique": false,
1390
+ "concurrently": false,
1391
+ "method": "btree",
1392
+ "with": {}
1393
+ },
1394
+ "audience_to_idx": {
1395
+ "name": "audience_to_idx",
1396
+ "columns": [
1397
+ {
1398
+ "expression": "to_id",
1399
+ "isExpression": false,
1400
+ "asc": true,
1401
+ "nulls": "last"
1402
+ }
1403
+ ],
1404
+ "isUnique": false,
1405
+ "concurrently": false,
1406
+ "method": "btree",
1407
+ "with": {}
1408
+ }
1409
+ },
1410
+ "foreignKeys": {},
1411
+ "compositePrimaryKeys": {},
1412
+ "uniqueConstraints": {},
1413
+ "policies": {},
1414
+ "checkConstraints": {},
1415
+ "isRLSEnabled": false
1416
+ },
1417
+ "public.bookmarks": {
1418
+ "name": "bookmarks",
1419
+ "schema": "",
1420
+ "columns": {
1421
+ "id": {
1422
+ "name": "id",
1423
+ "type": "uuid",
1424
+ "primaryKey": true,
1425
+ "notNull": true
1426
+ },
1427
+ "from_id": {
1428
+ "name": "from_id",
1429
+ "type": "text",
1430
+ "primaryKey": false,
1431
+ "notNull": true
1432
+ },
1433
+ "to_id": {
1434
+ "name": "to_id",
1435
+ "type": "text",
1436
+ "primaryKey": false,
1437
+ "notNull": true
1438
+ },
1439
+ "body": {
1440
+ "name": "body",
1441
+ "type": "jsonb",
1442
+ "primaryKey": false,
1443
+ "notNull": false,
1444
+ "default": "'{}'::jsonb"
1445
+ },
1446
+ "created_at": {
1447
+ "name": "created_at",
1448
+ "type": "timestamp with time zone",
1449
+ "primaryKey": false,
1450
+ "notNull": true,
1451
+ "default": "now()"
1452
+ },
1453
+ "updated_at": {
1454
+ "name": "updated_at",
1455
+ "type": "timestamp with time zone",
1456
+ "primaryKey": false,
1457
+ "notNull": true,
1458
+ "default": "now()"
1459
+ }
1460
+ },
1461
+ "indexes": {
1462
+ "bookmarks_from_idx": {
1463
+ "name": "bookmarks_from_idx",
1464
+ "columns": [
1465
+ {
1466
+ "expression": "from_id",
1467
+ "isExpression": false,
1468
+ "asc": true,
1469
+ "nulls": "last"
1470
+ }
1471
+ ],
1472
+ "isUnique": false,
1473
+ "concurrently": false,
1474
+ "method": "btree",
1475
+ "with": {}
1476
+ },
1477
+ "bookmarks_to_idx": {
1478
+ "name": "bookmarks_to_idx",
1479
+ "columns": [
1480
+ {
1481
+ "expression": "to_id",
1482
+ "isExpression": false,
1483
+ "asc": true,
1484
+ "nulls": "last"
1485
+ }
1486
+ ],
1487
+ "isUnique": false,
1488
+ "concurrently": false,
1489
+ "method": "btree",
1490
+ "with": {}
1491
+ }
1492
+ },
1493
+ "foreignKeys": {},
1494
+ "compositePrimaryKeys": {},
1495
+ "uniqueConstraints": {},
1496
+ "policies": {},
1497
+ "checkConstraints": {},
1498
+ "isRLSEnabled": false
1499
+ },
1500
+ "public.controls": {
1501
+ "name": "controls",
1502
+ "schema": "",
1503
+ "columns": {
1504
+ "id": {
1505
+ "name": "id",
1506
+ "type": "uuid",
1507
+ "primaryKey": true,
1508
+ "notNull": true
1509
+ },
1510
+ "from_id": {
1511
+ "name": "from_id",
1512
+ "type": "text",
1513
+ "primaryKey": false,
1514
+ "notNull": true
1515
+ },
1516
+ "to_id": {
1517
+ "name": "to_id",
1518
+ "type": "text",
1519
+ "primaryKey": false,
1520
+ "notNull": true
1521
+ },
1522
+ "body": {
1523
+ "name": "body",
1524
+ "type": "jsonb",
1525
+ "primaryKey": false,
1526
+ "notNull": false,
1527
+ "default": "'{}'::jsonb"
1528
+ },
1529
+ "created_at": {
1530
+ "name": "created_at",
1531
+ "type": "timestamp with time zone",
1532
+ "primaryKey": false,
1533
+ "notNull": true,
1534
+ "default": "now()"
1535
+ },
1536
+ "updated_at": {
1537
+ "name": "updated_at",
1538
+ "type": "timestamp with time zone",
1539
+ "primaryKey": false,
1540
+ "notNull": true,
1541
+ "default": "now()"
1542
+ }
1543
+ },
1544
+ "indexes": {
1545
+ "controls_from_idx": {
1546
+ "name": "controls_from_idx",
1547
+ "columns": [
1548
+ {
1549
+ "expression": "from_id",
1550
+ "isExpression": false,
1551
+ "asc": true,
1552
+ "nulls": "last"
1553
+ }
1554
+ ],
1555
+ "isUnique": false,
1556
+ "concurrently": false,
1557
+ "method": "btree",
1558
+ "with": {}
1559
+ },
1560
+ "controls_to_idx": {
1561
+ "name": "controls_to_idx",
1562
+ "columns": [
1563
+ {
1564
+ "expression": "to_id",
1565
+ "isExpression": false,
1566
+ "asc": true,
1567
+ "nulls": "last"
1568
+ }
1569
+ ],
1570
+ "isUnique": false,
1571
+ "concurrently": false,
1572
+ "method": "btree",
1573
+ "with": {}
1574
+ }
1575
+ },
1576
+ "foreignKeys": {},
1577
+ "compositePrimaryKeys": {},
1578
+ "uniqueConstraints": {},
1579
+ "policies": {},
1580
+ "checkConstraints": {},
1581
+ "isRLSEnabled": false
1582
+ },
1583
+ "public.created_report": {
1584
+ "name": "created_report",
1585
+ "schema": "",
1586
+ "columns": {
1587
+ "id": {
1588
+ "name": "id",
1589
+ "type": "uuid",
1590
+ "primaryKey": true,
1591
+ "notNull": true
1592
+ },
1593
+ "from_id": {
1594
+ "name": "from_id",
1595
+ "type": "text",
1596
+ "primaryKey": false,
1597
+ "notNull": true
1598
+ },
1599
+ "to_id": {
1600
+ "name": "to_id",
1601
+ "type": "text",
1602
+ "primaryKey": false,
1603
+ "notNull": true
1604
+ },
1605
+ "body": {
1606
+ "name": "body",
1607
+ "type": "jsonb",
1608
+ "primaryKey": false,
1609
+ "notNull": false,
1610
+ "default": "'{}'::jsonb"
1611
+ },
1612
+ "created_at": {
1613
+ "name": "created_at",
1614
+ "type": "timestamp with time zone",
1615
+ "primaryKey": false,
1616
+ "notNull": true,
1617
+ "default": "now()"
1618
+ },
1619
+ "updated_at": {
1620
+ "name": "updated_at",
1621
+ "type": "timestamp with time zone",
1622
+ "primaryKey": false,
1623
+ "notNull": true,
1624
+ "default": "now()"
1625
+ }
1626
+ },
1627
+ "indexes": {
1628
+ "created_report_from_idx": {
1629
+ "name": "created_report_from_idx",
1630
+ "columns": [
1631
+ {
1632
+ "expression": "from_id",
1633
+ "isExpression": false,
1634
+ "asc": true,
1635
+ "nulls": "last"
1636
+ }
1637
+ ],
1638
+ "isUnique": false,
1639
+ "concurrently": false,
1640
+ "method": "btree",
1641
+ "with": {}
1642
+ },
1643
+ "created_report_to_idx": {
1644
+ "name": "created_report_to_idx",
1645
+ "columns": [
1646
+ {
1647
+ "expression": "to_id",
1648
+ "isExpression": false,
1649
+ "asc": true,
1650
+ "nulls": "last"
1651
+ }
1652
+ ],
1653
+ "isUnique": false,
1654
+ "concurrently": false,
1655
+ "method": "btree",
1656
+ "with": {}
1657
+ }
1658
+ },
1659
+ "foreignKeys": {},
1660
+ "compositePrimaryKeys": {},
1661
+ "uniqueConstraints": {},
1662
+ "policies": {},
1663
+ "checkConstraints": {},
1664
+ "isRLSEnabled": false
1665
+ },
1666
+ "public.entries": {
1667
+ "name": "entries",
1668
+ "schema": "",
1669
+ "columns": {
1670
+ "id": {
1671
+ "name": "id",
1672
+ "type": "uuid",
1673
+ "primaryKey": true,
1674
+ "notNull": true
1675
+ },
1676
+ "from_id": {
1677
+ "name": "from_id",
1678
+ "type": "text",
1679
+ "primaryKey": false,
1680
+ "notNull": true
1681
+ },
1682
+ "to_id": {
1683
+ "name": "to_id",
1684
+ "type": "text",
1685
+ "primaryKey": false,
1686
+ "notNull": true
1687
+ },
1688
+ "body": {
1689
+ "name": "body",
1690
+ "type": "jsonb",
1691
+ "primaryKey": false,
1692
+ "notNull": false,
1693
+ "default": "'{}'::jsonb"
1694
+ },
1695
+ "created_at": {
1696
+ "name": "created_at",
1697
+ "type": "timestamp with time zone",
1698
+ "primaryKey": false,
1699
+ "notNull": true,
1700
+ "default": "now()"
1701
+ },
1702
+ "updated_at": {
1703
+ "name": "updated_at",
1704
+ "type": "timestamp with time zone",
1705
+ "primaryKey": false,
1706
+ "notNull": true,
1707
+ "default": "now()"
1708
+ }
1709
+ },
1710
+ "indexes": {
1711
+ "entries_from_idx": {
1712
+ "name": "entries_from_idx",
1713
+ "columns": [
1714
+ {
1715
+ "expression": "from_id",
1716
+ "isExpression": false,
1717
+ "asc": true,
1718
+ "nulls": "last"
1719
+ }
1720
+ ],
1721
+ "isUnique": false,
1722
+ "concurrently": false,
1723
+ "method": "btree",
1724
+ "with": {}
1725
+ },
1726
+ "entries_to_idx": {
1727
+ "name": "entries_to_idx",
1728
+ "columns": [
1729
+ {
1730
+ "expression": "to_id",
1731
+ "isExpression": false,
1732
+ "asc": true,
1733
+ "nulls": "last"
1734
+ }
1735
+ ],
1736
+ "isUnique": false,
1737
+ "concurrently": false,
1738
+ "method": "btree",
1739
+ "with": {}
1740
+ }
1741
+ },
1742
+ "foreignKeys": {},
1743
+ "compositePrimaryKeys": {},
1744
+ "uniqueConstraints": {},
1745
+ "policies": {},
1746
+ "checkConstraints": {},
1747
+ "isRLSEnabled": false
1748
+ },
1749
+ "public.follows": {
1750
+ "name": "follows",
1751
+ "schema": "",
1752
+ "columns": {
1753
+ "id": {
1754
+ "name": "id",
1755
+ "type": "uuid",
1756
+ "primaryKey": true,
1757
+ "notNull": true
1758
+ },
1759
+ "from_id": {
1760
+ "name": "from_id",
1761
+ "type": "text",
1762
+ "primaryKey": false,
1763
+ "notNull": true
1764
+ },
1765
+ "to_id": {
1766
+ "name": "to_id",
1767
+ "type": "text",
1768
+ "primaryKey": false,
1769
+ "notNull": true
1770
+ },
1771
+ "body": {
1772
+ "name": "body",
1773
+ "type": "jsonb",
1774
+ "primaryKey": false,
1775
+ "notNull": false,
1776
+ "default": "'{}'::jsonb"
1777
+ },
1778
+ "created_at": {
1779
+ "name": "created_at",
1780
+ "type": "timestamp with time zone",
1781
+ "primaryKey": false,
1782
+ "notNull": true,
1783
+ "default": "now()"
1784
+ },
1785
+ "updated_at": {
1786
+ "name": "updated_at",
1787
+ "type": "timestamp with time zone",
1788
+ "primaryKey": false,
1789
+ "notNull": true,
1790
+ "default": "now()"
1791
+ }
1792
+ },
1793
+ "indexes": {
1794
+ "follows_from_idx": {
1795
+ "name": "follows_from_idx",
1796
+ "columns": [
1797
+ {
1798
+ "expression": "from_id",
1799
+ "isExpression": false,
1800
+ "asc": true,
1801
+ "nulls": "last"
1802
+ }
1803
+ ],
1804
+ "isUnique": false,
1805
+ "concurrently": false,
1806
+ "method": "btree",
1807
+ "with": {}
1808
+ },
1809
+ "follows_to_idx": {
1810
+ "name": "follows_to_idx",
1811
+ "columns": [
1812
+ {
1813
+ "expression": "to_id",
1814
+ "isExpression": false,
1815
+ "asc": true,
1816
+ "nulls": "last"
1817
+ }
1818
+ ],
1819
+ "isUnique": false,
1820
+ "concurrently": false,
1821
+ "method": "btree",
1822
+ "with": {}
1823
+ },
1824
+ "follows_from_to_unique": {
1825
+ "name": "follows_from_to_unique",
1826
+ "columns": [
1827
+ {
1828
+ "expression": "from_id",
1829
+ "isExpression": false,
1830
+ "asc": true,
1831
+ "nulls": "last"
1832
+ },
1833
+ {
1834
+ "expression": "to_id",
1835
+ "isExpression": false,
1836
+ "asc": true,
1837
+ "nulls": "last"
1838
+ }
1839
+ ],
1840
+ "isUnique": true,
1841
+ "concurrently": false,
1842
+ "method": "btree",
1843
+ "with": {}
1844
+ }
1845
+ },
1846
+ "foreignKeys": {},
1847
+ "compositePrimaryKeys": {},
1848
+ "uniqueConstraints": {},
1849
+ "policies": {},
1850
+ "checkConstraints": {},
1851
+ "isRLSEnabled": false
1852
+ },
1853
+ "public.has_read": {
1854
+ "name": "has_read",
1855
+ "schema": "",
1856
+ "columns": {
1857
+ "id": {
1858
+ "name": "id",
1859
+ "type": "uuid",
1860
+ "primaryKey": true,
1861
+ "notNull": true
1862
+ },
1863
+ "from_id": {
1864
+ "name": "from_id",
1865
+ "type": "text",
1866
+ "primaryKey": false,
1867
+ "notNull": true
1868
+ },
1869
+ "to_id": {
1870
+ "name": "to_id",
1871
+ "type": "text",
1872
+ "primaryKey": false,
1873
+ "notNull": true
1874
+ },
1875
+ "body": {
1876
+ "name": "body",
1877
+ "type": "jsonb",
1878
+ "primaryKey": false,
1879
+ "notNull": false,
1880
+ "default": "'{}'::jsonb"
1881
+ },
1882
+ "created_at": {
1883
+ "name": "created_at",
1884
+ "type": "timestamp with time zone",
1885
+ "primaryKey": false,
1886
+ "notNull": true,
1887
+ "default": "now()"
1888
+ },
1889
+ "updated_at": {
1890
+ "name": "updated_at",
1891
+ "type": "timestamp with time zone",
1892
+ "primaryKey": false,
1893
+ "notNull": true,
1894
+ "default": "now()"
1895
+ }
1896
+ },
1897
+ "indexes": {
1898
+ "has_read_from_idx": {
1899
+ "name": "has_read_from_idx",
1900
+ "columns": [
1901
+ {
1902
+ "expression": "from_id",
1903
+ "isExpression": false,
1904
+ "asc": true,
1905
+ "nulls": "last"
1906
+ }
1907
+ ],
1908
+ "isUnique": false,
1909
+ "concurrently": false,
1910
+ "method": "btree",
1911
+ "with": {}
1912
+ },
1913
+ "has_read_to_idx": {
1914
+ "name": "has_read_to_idx",
1915
+ "columns": [
1916
+ {
1917
+ "expression": "to_id",
1918
+ "isExpression": false,
1919
+ "asc": true,
1920
+ "nulls": "last"
1921
+ }
1922
+ ],
1923
+ "isUnique": false,
1924
+ "concurrently": false,
1925
+ "method": "btree",
1926
+ "with": {}
1927
+ }
1928
+ },
1929
+ "foreignKeys": {},
1930
+ "compositePrimaryKeys": {},
1931
+ "uniqueConstraints": {},
1932
+ "policies": {},
1933
+ "checkConstraints": {},
1934
+ "isRLSEnabled": false
1935
+ },
1936
+ "public.has_role": {
1937
+ "name": "has_role",
1938
+ "schema": "",
1939
+ "columns": {
1940
+ "id": {
1941
+ "name": "id",
1942
+ "type": "uuid",
1943
+ "primaryKey": true,
1944
+ "notNull": true
1945
+ },
1946
+ "from_id": {
1947
+ "name": "from_id",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": true
1951
+ },
1952
+ "to_id": {
1953
+ "name": "to_id",
1954
+ "type": "text",
1955
+ "primaryKey": false,
1956
+ "notNull": true
1957
+ },
1958
+ "body": {
1959
+ "name": "body",
1960
+ "type": "jsonb",
1961
+ "primaryKey": false,
1962
+ "notNull": false,
1963
+ "default": "'{}'::jsonb"
1964
+ },
1965
+ "created_at": {
1966
+ "name": "created_at",
1967
+ "type": "timestamp with time zone",
1968
+ "primaryKey": false,
1969
+ "notNull": true,
1970
+ "default": "now()"
1971
+ },
1972
+ "updated_at": {
1973
+ "name": "updated_at",
1974
+ "type": "timestamp with time zone",
1975
+ "primaryKey": false,
1976
+ "notNull": true,
1977
+ "default": "now()"
1978
+ }
1979
+ },
1980
+ "indexes": {
1981
+ "has_role_from_idx": {
1982
+ "name": "has_role_from_idx",
1983
+ "columns": [
1984
+ {
1985
+ "expression": "from_id",
1986
+ "isExpression": false,
1987
+ "asc": true,
1988
+ "nulls": "last"
1989
+ }
1990
+ ],
1991
+ "isUnique": false,
1992
+ "concurrently": false,
1993
+ "method": "btree",
1994
+ "with": {}
1995
+ },
1996
+ "has_role_to_idx": {
1997
+ "name": "has_role_to_idx",
1998
+ "columns": [
1999
+ {
2000
+ "expression": "to_id",
2001
+ "isExpression": false,
2002
+ "asc": true,
2003
+ "nulls": "last"
2004
+ }
2005
+ ],
2006
+ "isUnique": false,
2007
+ "concurrently": false,
2008
+ "method": "btree",
2009
+ "with": {}
2010
+ }
2011
+ },
2012
+ "foreignKeys": {},
2013
+ "compositePrimaryKeys": {},
2014
+ "uniqueConstraints": {},
2015
+ "policies": {},
2016
+ "checkConstraints": {},
2017
+ "isRLSEnabled": false
2018
+ },
2019
+ "public.has_seen": {
2020
+ "name": "has_seen",
2021
+ "schema": "",
2022
+ "columns": {
2023
+ "id": {
2024
+ "name": "id",
2025
+ "type": "uuid",
2026
+ "primaryKey": true,
2027
+ "notNull": true
2028
+ },
2029
+ "from_id": {
2030
+ "name": "from_id",
2031
+ "type": "text",
2032
+ "primaryKey": false,
2033
+ "notNull": true
2034
+ },
2035
+ "to_id": {
2036
+ "name": "to_id",
2037
+ "type": "text",
2038
+ "primaryKey": false,
2039
+ "notNull": true
2040
+ },
2041
+ "body": {
2042
+ "name": "body",
2043
+ "type": "jsonb",
2044
+ "primaryKey": false,
2045
+ "notNull": false,
2046
+ "default": "'{}'::jsonb"
2047
+ },
2048
+ "created_at": {
2049
+ "name": "created_at",
2050
+ "type": "timestamp with time zone",
2051
+ "primaryKey": false,
2052
+ "notNull": true,
2053
+ "default": "now()"
2054
+ },
2055
+ "updated_at": {
2056
+ "name": "updated_at",
2057
+ "type": "timestamp with time zone",
2058
+ "primaryKey": false,
2059
+ "notNull": true,
2060
+ "default": "now()"
2061
+ }
2062
+ },
2063
+ "indexes": {
2064
+ "has_seen_from_idx": {
2065
+ "name": "has_seen_from_idx",
2066
+ "columns": [
2067
+ {
2068
+ "expression": "from_id",
2069
+ "isExpression": false,
2070
+ "asc": true,
2071
+ "nulls": "last"
2072
+ }
2073
+ ],
2074
+ "isUnique": false,
2075
+ "concurrently": false,
2076
+ "method": "btree",
2077
+ "with": {}
2078
+ },
2079
+ "has_seen_to_idx": {
2080
+ "name": "has_seen_to_idx",
2081
+ "columns": [
2082
+ {
2083
+ "expression": "to_id",
2084
+ "isExpression": false,
2085
+ "asc": true,
2086
+ "nulls": "last"
2087
+ }
2088
+ ],
2089
+ "isUnique": false,
2090
+ "concurrently": false,
2091
+ "method": "btree",
2092
+ "with": {}
2093
+ }
2094
+ },
2095
+ "foreignKeys": {},
2096
+ "compositePrimaryKeys": {},
2097
+ "uniqueConstraints": {},
2098
+ "policies": {},
2099
+ "checkConstraints": {},
2100
+ "isRLSEnabled": false
2101
+ },
2102
+ "public.invite_link_creators": {
2103
+ "name": "invite_link_creators",
2104
+ "schema": "",
2105
+ "columns": {
2106
+ "id": {
2107
+ "name": "id",
2108
+ "type": "uuid",
2109
+ "primaryKey": true,
2110
+ "notNull": true
2111
+ },
2112
+ "from_id": {
2113
+ "name": "from_id",
2114
+ "type": "text",
2115
+ "primaryKey": false,
2116
+ "notNull": true
2117
+ },
2118
+ "to_id": {
2119
+ "name": "to_id",
2120
+ "type": "text",
2121
+ "primaryKey": false,
2122
+ "notNull": true
2123
+ },
2124
+ "body": {
2125
+ "name": "body",
2126
+ "type": "jsonb",
2127
+ "primaryKey": false,
2128
+ "notNull": false,
2129
+ "default": "'{}'::jsonb"
2130
+ },
2131
+ "created_at": {
2132
+ "name": "created_at",
2133
+ "type": "timestamp with time zone",
2134
+ "primaryKey": false,
2135
+ "notNull": true,
2136
+ "default": "now()"
2137
+ },
2138
+ "updated_at": {
2139
+ "name": "updated_at",
2140
+ "type": "timestamp with time zone",
2141
+ "primaryKey": false,
2142
+ "notNull": true,
2143
+ "default": "now()"
2144
+ }
2145
+ },
2146
+ "indexes": {
2147
+ "invite_link_creators_from_idx": {
2148
+ "name": "invite_link_creators_from_idx",
2149
+ "columns": [
2150
+ {
2151
+ "expression": "from_id",
2152
+ "isExpression": false,
2153
+ "asc": true,
2154
+ "nulls": "last"
2155
+ }
2156
+ ],
2157
+ "isUnique": false,
2158
+ "concurrently": false,
2159
+ "method": "btree",
2160
+ "with": {}
2161
+ },
2162
+ "invite_link_creators_to_idx": {
2163
+ "name": "invite_link_creators_to_idx",
2164
+ "columns": [
2165
+ {
2166
+ "expression": "to_id",
2167
+ "isExpression": false,
2168
+ "asc": true,
2169
+ "nulls": "last"
2170
+ }
2171
+ ],
2172
+ "isUnique": false,
2173
+ "concurrently": false,
2174
+ "method": "btree",
2175
+ "with": {}
2176
+ }
2177
+ },
2178
+ "foreignKeys": {},
2179
+ "compositePrimaryKeys": {},
2180
+ "uniqueConstraints": {},
2181
+ "policies": {},
2182
+ "checkConstraints": {},
2183
+ "isRLSEnabled": false
2184
+ },
2185
+ "public.invite_link_redeemers": {
2186
+ "name": "invite_link_redeemers",
2187
+ "schema": "",
2188
+ "columns": {
2189
+ "id": {
2190
+ "name": "id",
2191
+ "type": "uuid",
2192
+ "primaryKey": true,
2193
+ "notNull": true
2194
+ },
2195
+ "from_id": {
2196
+ "name": "from_id",
2197
+ "type": "text",
2198
+ "primaryKey": false,
2199
+ "notNull": true
2200
+ },
2201
+ "to_id": {
2202
+ "name": "to_id",
2203
+ "type": "text",
2204
+ "primaryKey": false,
2205
+ "notNull": true
2206
+ },
2207
+ "body": {
2208
+ "name": "body",
2209
+ "type": "jsonb",
2210
+ "primaryKey": false,
2211
+ "notNull": false,
2212
+ "default": "'{}'::jsonb"
2213
+ },
2214
+ "created_at": {
2215
+ "name": "created_at",
2216
+ "type": "timestamp with time zone",
2217
+ "primaryKey": false,
2218
+ "notNull": true,
2219
+ "default": "now()"
2220
+ },
2221
+ "updated_at": {
2222
+ "name": "updated_at",
2223
+ "type": "timestamp with time zone",
2224
+ "primaryKey": false,
2225
+ "notNull": true,
2226
+ "default": "now()"
2227
+ }
2228
+ },
2229
+ "indexes": {
2230
+ "invite_link_redeemers_from_idx": {
2231
+ "name": "invite_link_redeemers_from_idx",
2232
+ "columns": [
2233
+ {
2234
+ "expression": "from_id",
2235
+ "isExpression": false,
2236
+ "asc": true,
2237
+ "nulls": "last"
2238
+ }
2239
+ ],
2240
+ "isUnique": false,
2241
+ "concurrently": false,
2242
+ "method": "btree",
2243
+ "with": {}
2244
+ },
2245
+ "invite_link_redeemers_to_idx": {
2246
+ "name": "invite_link_redeemers_to_idx",
2247
+ "columns": [
2248
+ {
2249
+ "expression": "to_id",
2250
+ "isExpression": false,
2251
+ "asc": true,
2252
+ "nulls": "last"
2253
+ }
2254
+ ],
2255
+ "isUnique": false,
2256
+ "concurrently": false,
2257
+ "method": "btree",
2258
+ "with": {}
2259
+ }
2260
+ },
2261
+ "foreignKeys": {},
2262
+ "compositePrimaryKeys": {},
2263
+ "uniqueConstraints": {},
2264
+ "policies": {},
2265
+ "checkConstraints": {},
2266
+ "isRLSEnabled": false
2267
+ },
2268
+ "public.is_reported_object": {
2269
+ "name": "is_reported_object",
2270
+ "schema": "",
2271
+ "columns": {
2272
+ "id": {
2273
+ "name": "id",
2274
+ "type": "uuid",
2275
+ "primaryKey": true,
2276
+ "notNull": true
2277
+ },
2278
+ "from_id": {
2279
+ "name": "from_id",
2280
+ "type": "text",
2281
+ "primaryKey": false,
2282
+ "notNull": true
2283
+ },
2284
+ "to_id": {
2285
+ "name": "to_id",
2286
+ "type": "text",
2287
+ "primaryKey": false,
2288
+ "notNull": true
2289
+ },
2290
+ "body": {
2291
+ "name": "body",
2292
+ "type": "jsonb",
2293
+ "primaryKey": false,
2294
+ "notNull": false,
2295
+ "default": "'{}'::jsonb"
2296
+ },
2297
+ "created_at": {
2298
+ "name": "created_at",
2299
+ "type": "timestamp with time zone",
2300
+ "primaryKey": false,
2301
+ "notNull": true,
2302
+ "default": "now()"
2303
+ },
2304
+ "updated_at": {
2305
+ "name": "updated_at",
2306
+ "type": "timestamp with time zone",
2307
+ "primaryKey": false,
2308
+ "notNull": true,
2309
+ "default": "now()"
2310
+ }
2311
+ },
2312
+ "indexes": {
2313
+ "is_reported_object_from_idx": {
2314
+ "name": "is_reported_object_from_idx",
2315
+ "columns": [
2316
+ {
2317
+ "expression": "from_id",
2318
+ "isExpression": false,
2319
+ "asc": true,
2320
+ "nulls": "last"
2321
+ }
2322
+ ],
2323
+ "isUnique": false,
2324
+ "concurrently": false,
2325
+ "method": "btree",
2326
+ "with": {}
2327
+ },
2328
+ "is_reported_object_to_idx": {
2329
+ "name": "is_reported_object_to_idx",
2330
+ "columns": [
2331
+ {
2332
+ "expression": "to_id",
2333
+ "isExpression": false,
2334
+ "asc": true,
2335
+ "nulls": "last"
2336
+ }
2337
+ ],
2338
+ "isUnique": false,
2339
+ "concurrently": false,
2340
+ "method": "btree",
2341
+ "with": {}
2342
+ }
2343
+ },
2344
+ "foreignKeys": {},
2345
+ "compositePrimaryKeys": {},
2346
+ "uniqueConstraints": {},
2347
+ "policies": {},
2348
+ "checkConstraints": {},
2349
+ "isRLSEnabled": false
2350
+ },
2351
+ "public.is_reported_profile": {
2352
+ "name": "is_reported_profile",
2353
+ "schema": "",
2354
+ "columns": {
2355
+ "id": {
2356
+ "name": "id",
2357
+ "type": "uuid",
2358
+ "primaryKey": true,
2359
+ "notNull": true
2360
+ },
2361
+ "from_id": {
2362
+ "name": "from_id",
2363
+ "type": "text",
2364
+ "primaryKey": false,
2365
+ "notNull": true
2366
+ },
2367
+ "to_id": {
2368
+ "name": "to_id",
2369
+ "type": "text",
2370
+ "primaryKey": false,
2371
+ "notNull": true
2372
+ },
2373
+ "body": {
2374
+ "name": "body",
2375
+ "type": "jsonb",
2376
+ "primaryKey": false,
2377
+ "notNull": false,
2378
+ "default": "'{}'::jsonb"
2379
+ },
2380
+ "created_at": {
2381
+ "name": "created_at",
2382
+ "type": "timestamp with time zone",
2383
+ "primaryKey": false,
2384
+ "notNull": true,
2385
+ "default": "now()"
2386
+ },
2387
+ "updated_at": {
2388
+ "name": "updated_at",
2389
+ "type": "timestamp with time zone",
2390
+ "primaryKey": false,
2391
+ "notNull": true,
2392
+ "default": "now()"
2393
+ }
2394
+ },
2395
+ "indexes": {
2396
+ "is_reported_profile_from_idx": {
2397
+ "name": "is_reported_profile_from_idx",
2398
+ "columns": [
2399
+ {
2400
+ "expression": "from_id",
2401
+ "isExpression": false,
2402
+ "asc": true,
2403
+ "nulls": "last"
2404
+ }
2405
+ ],
2406
+ "isUnique": false,
2407
+ "concurrently": false,
2408
+ "method": "btree",
2409
+ "with": {}
2410
+ },
2411
+ "is_reported_profile_to_idx": {
2412
+ "name": "is_reported_profile_to_idx",
2413
+ "columns": [
2414
+ {
2415
+ "expression": "to_id",
2416
+ "isExpression": false,
2417
+ "asc": true,
2418
+ "nulls": "last"
2419
+ }
2420
+ ],
2421
+ "isUnique": false,
2422
+ "concurrently": false,
2423
+ "method": "btree",
2424
+ "with": {}
2425
+ }
2426
+ },
2427
+ "foreignKeys": {},
2428
+ "compositePrimaryKeys": {},
2429
+ "uniqueConstraints": {},
2430
+ "policies": {},
2431
+ "checkConstraints": {},
2432
+ "isRLSEnabled": false
2433
+ },
2434
+ "public.jam_recordings": {
2435
+ "name": "jam_recordings",
2436
+ "schema": "",
2437
+ "columns": {
2438
+ "id": {
2439
+ "name": "id",
2440
+ "type": "uuid",
2441
+ "primaryKey": true,
2442
+ "notNull": true
2443
+ },
2444
+ "from_id": {
2445
+ "name": "from_id",
2446
+ "type": "text",
2447
+ "primaryKey": false,
2448
+ "notNull": true
2449
+ },
2450
+ "to_id": {
2451
+ "name": "to_id",
2452
+ "type": "text",
2453
+ "primaryKey": false,
2454
+ "notNull": true
2455
+ },
2456
+ "body": {
2457
+ "name": "body",
2458
+ "type": "jsonb",
2459
+ "primaryKey": false,
2460
+ "notNull": false,
2461
+ "default": "'{}'::jsonb"
2462
+ },
2463
+ "created_at": {
2464
+ "name": "created_at",
2465
+ "type": "timestamp with time zone",
2466
+ "primaryKey": false,
2467
+ "notNull": true,
2468
+ "default": "now()"
2469
+ },
2470
+ "updated_at": {
2471
+ "name": "updated_at",
2472
+ "type": "timestamp with time zone",
2473
+ "primaryKey": false,
2474
+ "notNull": true,
2475
+ "default": "now()"
2476
+ }
2477
+ },
2478
+ "indexes": {
2479
+ "jam_recordings_from_idx": {
2480
+ "name": "jam_recordings_from_idx",
2481
+ "columns": [
2482
+ {
2483
+ "expression": "from_id",
2484
+ "isExpression": false,
2485
+ "asc": true,
2486
+ "nulls": "last"
2487
+ }
2488
+ ],
2489
+ "isUnique": false,
2490
+ "concurrently": false,
2491
+ "method": "btree",
2492
+ "with": {}
2493
+ },
2494
+ "jam_recordings_to_idx": {
2495
+ "name": "jam_recordings_to_idx",
2496
+ "columns": [
2497
+ {
2498
+ "expression": "to_id",
2499
+ "isExpression": false,
2500
+ "asc": true,
2501
+ "nulls": "last"
2502
+ }
2503
+ ],
2504
+ "isUnique": false,
2505
+ "concurrently": false,
2506
+ "method": "btree",
2507
+ "with": {}
2508
+ }
2509
+ },
2510
+ "foreignKeys": {},
2511
+ "compositePrimaryKeys": {},
2512
+ "uniqueConstraints": {},
2513
+ "policies": {},
2514
+ "checkConstraints": {},
2515
+ "isRLSEnabled": false
2516
+ },
2517
+ "public.mentions": {
2518
+ "name": "mentions",
2519
+ "schema": "",
2520
+ "columns": {
2521
+ "id": {
2522
+ "name": "id",
2523
+ "type": "uuid",
2524
+ "primaryKey": true,
2525
+ "notNull": true
2526
+ },
2527
+ "from_id": {
2528
+ "name": "from_id",
2529
+ "type": "text",
2530
+ "primaryKey": false,
2531
+ "notNull": true
2532
+ },
2533
+ "to_id": {
2534
+ "name": "to_id",
2535
+ "type": "text",
2536
+ "primaryKey": false,
2537
+ "notNull": true
2538
+ },
2539
+ "body": {
2540
+ "name": "body",
2541
+ "type": "jsonb",
2542
+ "primaryKey": false,
2543
+ "notNull": false,
2544
+ "default": "'{}'::jsonb"
2545
+ },
2546
+ "created_at": {
2547
+ "name": "created_at",
2548
+ "type": "timestamp with time zone",
2549
+ "primaryKey": false,
2550
+ "notNull": true,
2551
+ "default": "now()"
2552
+ },
2553
+ "updated_at": {
2554
+ "name": "updated_at",
2555
+ "type": "timestamp with time zone",
2556
+ "primaryKey": false,
2557
+ "notNull": true,
2558
+ "default": "now()"
2559
+ }
2560
+ },
2561
+ "indexes": {
2562
+ "mentions_from_idx": {
2563
+ "name": "mentions_from_idx",
2564
+ "columns": [
2565
+ {
2566
+ "expression": "from_id",
2567
+ "isExpression": false,
2568
+ "asc": true,
2569
+ "nulls": "last"
2570
+ }
2571
+ ],
2572
+ "isUnique": false,
2573
+ "concurrently": false,
2574
+ "method": "btree",
2575
+ "with": {}
2576
+ },
2577
+ "mentions_to_idx": {
2578
+ "name": "mentions_to_idx",
2579
+ "columns": [
2580
+ {
2581
+ "expression": "to_id",
2582
+ "isExpression": false,
2583
+ "asc": true,
2584
+ "nulls": "last"
2585
+ }
2586
+ ],
2587
+ "isUnique": false,
2588
+ "concurrently": false,
2589
+ "method": "btree",
2590
+ "with": {}
2591
+ }
2592
+ },
2593
+ "foreignKeys": {},
2594
+ "compositePrimaryKeys": {},
2595
+ "uniqueConstraints": {},
2596
+ "policies": {},
2597
+ "checkConstraints": {},
2598
+ "isRLSEnabled": false
2599
+ },
2600
+ "public.post_groups": {
2601
+ "name": "post_groups",
2602
+ "schema": "",
2603
+ "columns": {
2604
+ "id": {
2605
+ "name": "id",
2606
+ "type": "uuid",
2607
+ "primaryKey": true,
2608
+ "notNull": true
2609
+ },
2610
+ "from_id": {
2611
+ "name": "from_id",
2612
+ "type": "text",
2613
+ "primaryKey": false,
2614
+ "notNull": true
2615
+ },
2616
+ "to_id": {
2617
+ "name": "to_id",
2618
+ "type": "text",
2619
+ "primaryKey": false,
2620
+ "notNull": true
2621
+ },
2622
+ "body": {
2623
+ "name": "body",
2624
+ "type": "jsonb",
2625
+ "primaryKey": false,
2626
+ "notNull": false,
2627
+ "default": "'{}'::jsonb"
2628
+ },
2629
+ "created_at": {
2630
+ "name": "created_at",
2631
+ "type": "timestamp with time zone",
2632
+ "primaryKey": false,
2633
+ "notNull": true,
2634
+ "default": "now()"
2635
+ },
2636
+ "updated_at": {
2637
+ "name": "updated_at",
2638
+ "type": "timestamp with time zone",
2639
+ "primaryKey": false,
2640
+ "notNull": true,
2641
+ "default": "now()"
2642
+ }
2643
+ },
2644
+ "indexes": {
2645
+ "post_groups_from_idx": {
2646
+ "name": "post_groups_from_idx",
2647
+ "columns": [
2648
+ {
2649
+ "expression": "from_id",
2650
+ "isExpression": false,
2651
+ "asc": true,
2652
+ "nulls": "last"
2653
+ }
2654
+ ],
2655
+ "isUnique": false,
2656
+ "concurrently": false,
2657
+ "method": "btree",
2658
+ "with": {}
2659
+ },
2660
+ "post_groups_to_idx": {
2661
+ "name": "post_groups_to_idx",
2662
+ "columns": [
2663
+ {
2664
+ "expression": "to_id",
2665
+ "isExpression": false,
2666
+ "asc": true,
2667
+ "nulls": "last"
2668
+ }
2669
+ ],
2670
+ "isUnique": false,
2671
+ "concurrently": false,
2672
+ "method": "btree",
2673
+ "with": {}
2674
+ }
2675
+ },
2676
+ "foreignKeys": {},
2677
+ "compositePrimaryKeys": {},
2678
+ "uniqueConstraints": {},
2679
+ "policies": {},
2680
+ "checkConstraints": {},
2681
+ "isRLSEnabled": false
2682
+ },
2683
+ "public.post_hashtags": {
2684
+ "name": "post_hashtags",
2685
+ "schema": "",
2686
+ "columns": {
2687
+ "id": {
2688
+ "name": "id",
2689
+ "type": "uuid",
2690
+ "primaryKey": true,
2691
+ "notNull": true
2692
+ },
2693
+ "from_id": {
2694
+ "name": "from_id",
2695
+ "type": "text",
2696
+ "primaryKey": false,
2697
+ "notNull": true
2698
+ },
2699
+ "to_id": {
2700
+ "name": "to_id",
2701
+ "type": "text",
2702
+ "primaryKey": false,
2703
+ "notNull": true
2704
+ },
2705
+ "body": {
2706
+ "name": "body",
2707
+ "type": "jsonb",
2708
+ "primaryKey": false,
2709
+ "notNull": false,
2710
+ "default": "'{}'::jsonb"
2711
+ },
2712
+ "created_at": {
2713
+ "name": "created_at",
2714
+ "type": "timestamp with time zone",
2715
+ "primaryKey": false,
2716
+ "notNull": true,
2717
+ "default": "now()"
2718
+ },
2719
+ "updated_at": {
2720
+ "name": "updated_at",
2721
+ "type": "timestamp with time zone",
2722
+ "primaryKey": false,
2723
+ "notNull": true,
2724
+ "default": "now()"
2725
+ }
2726
+ },
2727
+ "indexes": {
2728
+ "post_hashtags_from_idx": {
2729
+ "name": "post_hashtags_from_idx",
2730
+ "columns": [
2731
+ {
2732
+ "expression": "from_id",
2733
+ "isExpression": false,
2734
+ "asc": true,
2735
+ "nulls": "last"
2736
+ }
2737
+ ],
2738
+ "isUnique": false,
2739
+ "concurrently": false,
2740
+ "method": "btree",
2741
+ "with": {}
2742
+ },
2743
+ "post_hashtags_to_idx": {
2744
+ "name": "post_hashtags_to_idx",
2745
+ "columns": [
2746
+ {
2747
+ "expression": "to_id",
2748
+ "isExpression": false,
2749
+ "asc": true,
2750
+ "nulls": "last"
2751
+ }
2752
+ ],
2753
+ "isUnique": false,
2754
+ "concurrently": false,
2755
+ "method": "btree",
2756
+ "with": {}
2757
+ }
2758
+ },
2759
+ "foreignKeys": {},
2760
+ "compositePrimaryKeys": {},
2761
+ "uniqueConstraints": {},
2762
+ "policies": {},
2763
+ "checkConstraints": {},
2764
+ "isRLSEnabled": false
2765
+ },
2766
+ "public.post_seen": {
2767
+ "name": "post_seen",
2768
+ "schema": "",
2769
+ "columns": {
2770
+ "id": {
2771
+ "name": "id",
2772
+ "type": "uuid",
2773
+ "primaryKey": true,
2774
+ "notNull": true
2775
+ },
2776
+ "from_id": {
2777
+ "name": "from_id",
2778
+ "type": "text",
2779
+ "primaryKey": false,
2780
+ "notNull": true
2781
+ },
2782
+ "to_id": {
2783
+ "name": "to_id",
2784
+ "type": "text",
2785
+ "primaryKey": false,
2786
+ "notNull": true
2787
+ },
2788
+ "body": {
2789
+ "name": "body",
2790
+ "type": "jsonb",
2791
+ "primaryKey": false,
2792
+ "notNull": false,
2793
+ "default": "'{}'::jsonb"
2794
+ },
2795
+ "created_at": {
2796
+ "name": "created_at",
2797
+ "type": "timestamp with time zone",
2798
+ "primaryKey": false,
2799
+ "notNull": true,
2800
+ "default": "now()"
2801
+ },
2802
+ "updated_at": {
2803
+ "name": "updated_at",
2804
+ "type": "timestamp with time zone",
2805
+ "primaryKey": false,
2806
+ "notNull": true,
2807
+ "default": "now()"
2808
+ }
2809
+ },
2810
+ "indexes": {
2811
+ "post_seen_from_idx": {
2812
+ "name": "post_seen_from_idx",
2813
+ "columns": [
2814
+ {
2815
+ "expression": "from_id",
2816
+ "isExpression": false,
2817
+ "asc": true,
2818
+ "nulls": "last"
2819
+ }
2820
+ ],
2821
+ "isUnique": false,
2822
+ "concurrently": false,
2823
+ "method": "btree",
2824
+ "with": {}
2825
+ },
2826
+ "post_seen_to_idx": {
2827
+ "name": "post_seen_to_idx",
2828
+ "columns": [
2829
+ {
2830
+ "expression": "to_id",
2831
+ "isExpression": false,
2832
+ "asc": true,
2833
+ "nulls": "last"
2834
+ }
2835
+ ],
2836
+ "isUnique": false,
2837
+ "concurrently": false,
2838
+ "method": "btree",
2839
+ "with": {}
2840
+ }
2841
+ },
2842
+ "foreignKeys": {},
2843
+ "compositePrimaryKeys": {},
2844
+ "uniqueConstraints": {},
2845
+ "policies": {},
2846
+ "checkConstraints": {},
2847
+ "isRLSEnabled": false
2848
+ },
2849
+ "public.profile_access_tokens": {
2850
+ "name": "profile_access_tokens",
2851
+ "schema": "",
2852
+ "columns": {
2853
+ "id": {
2854
+ "name": "id",
2855
+ "type": "uuid",
2856
+ "primaryKey": true,
2857
+ "notNull": true
2858
+ },
2859
+ "from_id": {
2860
+ "name": "from_id",
2861
+ "type": "text",
2862
+ "primaryKey": false,
2863
+ "notNull": true
2864
+ },
2865
+ "to_id": {
2866
+ "name": "to_id",
2867
+ "type": "text",
2868
+ "primaryKey": false,
2869
+ "notNull": true
2870
+ },
2871
+ "body": {
2872
+ "name": "body",
2873
+ "type": "jsonb",
2874
+ "primaryKey": false,
2875
+ "notNull": false,
2876
+ "default": "'{}'::jsonb"
2877
+ },
2878
+ "created_at": {
2879
+ "name": "created_at",
2880
+ "type": "timestamp with time zone",
2881
+ "primaryKey": false,
2882
+ "notNull": true,
2883
+ "default": "now()"
2884
+ },
2885
+ "updated_at": {
2886
+ "name": "updated_at",
2887
+ "type": "timestamp with time zone",
2888
+ "primaryKey": false,
2889
+ "notNull": true,
2890
+ "default": "now()"
2891
+ }
2892
+ },
2893
+ "indexes": {
2894
+ "profile_access_tokens_from_idx": {
2895
+ "name": "profile_access_tokens_from_idx",
2896
+ "columns": [
2897
+ {
2898
+ "expression": "from_id",
2899
+ "isExpression": false,
2900
+ "asc": true,
2901
+ "nulls": "last"
2902
+ }
2903
+ ],
2904
+ "isUnique": false,
2905
+ "concurrently": false,
2906
+ "method": "btree",
2907
+ "with": {}
2908
+ },
2909
+ "profile_access_tokens_to_idx": {
2910
+ "name": "profile_access_tokens_to_idx",
2911
+ "columns": [
2912
+ {
2913
+ "expression": "to_id",
2914
+ "isExpression": false,
2915
+ "asc": true,
2916
+ "nulls": "last"
2917
+ }
2918
+ ],
2919
+ "isUnique": false,
2920
+ "concurrently": false,
2921
+ "method": "btree",
2922
+ "with": {}
2923
+ },
2924
+ "profile_access_tokens_from_to_unique": {
2925
+ "name": "profile_access_tokens_from_to_unique",
2926
+ "columns": [
2927
+ {
2928
+ "expression": "from_id",
2929
+ "isExpression": false,
2930
+ "asc": true,
2931
+ "nulls": "last"
2932
+ },
2933
+ {
2934
+ "expression": "to_id",
2935
+ "isExpression": false,
2936
+ "asc": true,
2937
+ "nulls": "last"
2938
+ }
2939
+ ],
2940
+ "isUnique": true,
2941
+ "concurrently": false,
2942
+ "method": "btree",
2943
+ "with": {}
2944
+ }
2945
+ },
2946
+ "foreignKeys": {},
2947
+ "compositePrimaryKeys": {},
2948
+ "uniqueConstraints": {},
2949
+ "policies": {},
2950
+ "checkConstraints": {},
2951
+ "isRLSEnabled": false
2952
+ },
2953
+ "public.reactions": {
2954
+ "name": "reactions",
2955
+ "schema": "",
2956
+ "columns": {
2957
+ "id": {
2958
+ "name": "id",
2959
+ "type": "uuid",
2960
+ "primaryKey": true,
2961
+ "notNull": true
2962
+ },
2963
+ "from_id": {
2964
+ "name": "from_id",
2965
+ "type": "text",
2966
+ "primaryKey": false,
2967
+ "notNull": true
2968
+ },
2969
+ "to_id": {
2970
+ "name": "to_id",
2971
+ "type": "text",
2972
+ "primaryKey": false,
2973
+ "notNull": true
2974
+ },
2975
+ "body": {
2976
+ "name": "body",
2977
+ "type": "jsonb",
2978
+ "primaryKey": false,
2979
+ "notNull": false,
2980
+ "default": "'{}'::jsonb"
2981
+ },
2982
+ "created_at": {
2983
+ "name": "created_at",
2984
+ "type": "timestamp with time zone",
2985
+ "primaryKey": false,
2986
+ "notNull": true,
2987
+ "default": "now()"
2988
+ },
2989
+ "updated_at": {
2990
+ "name": "updated_at",
2991
+ "type": "timestamp with time zone",
2992
+ "primaryKey": false,
2993
+ "notNull": true,
2994
+ "default": "now()"
2995
+ }
2996
+ },
2997
+ "indexes": {
2998
+ "reactions_from_idx": {
2999
+ "name": "reactions_from_idx",
3000
+ "columns": [
3001
+ {
3002
+ "expression": "from_id",
3003
+ "isExpression": false,
3004
+ "asc": true,
3005
+ "nulls": "last"
3006
+ }
3007
+ ],
3008
+ "isUnique": false,
3009
+ "concurrently": false,
3010
+ "method": "btree",
3011
+ "with": {}
3012
+ },
3013
+ "reactions_to_idx": {
3014
+ "name": "reactions_to_idx",
3015
+ "columns": [
3016
+ {
3017
+ "expression": "to_id",
3018
+ "isExpression": false,
3019
+ "asc": true,
3020
+ "nulls": "last"
3021
+ }
3022
+ ],
3023
+ "isUnique": false,
3024
+ "concurrently": false,
3025
+ "method": "btree",
3026
+ "with": {}
3027
+ },
3028
+ "reactions_from_to_unique": {
3029
+ "name": "reactions_from_to_unique",
3030
+ "columns": [
3031
+ {
3032
+ "expression": "from_id",
3033
+ "isExpression": false,
3034
+ "asc": true,
3035
+ "nulls": "last"
3036
+ },
3037
+ {
3038
+ "expression": "to_id",
3039
+ "isExpression": false,
3040
+ "asc": true,
3041
+ "nulls": "last"
3042
+ }
3043
+ ],
3044
+ "isUnique": true,
3045
+ "concurrently": false,
3046
+ "method": "btree",
3047
+ "with": {}
3048
+ }
3049
+ },
3050
+ "foreignKeys": {},
3051
+ "compositePrimaryKeys": {},
3052
+ "uniqueConstraints": {},
3053
+ "policies": {},
3054
+ "checkConstraints": {},
3055
+ "isRLSEnabled": false
3056
+ },
3057
+ "public.reply_to": {
3058
+ "name": "reply_to",
3059
+ "schema": "",
3060
+ "columns": {
3061
+ "id": {
3062
+ "name": "id",
3063
+ "type": "uuid",
3064
+ "primaryKey": true,
3065
+ "notNull": true
3066
+ },
3067
+ "from_id": {
3068
+ "name": "from_id",
3069
+ "type": "text",
3070
+ "primaryKey": false,
3071
+ "notNull": true
3072
+ },
3073
+ "to_id": {
3074
+ "name": "to_id",
3075
+ "type": "text",
3076
+ "primaryKey": false,
3077
+ "notNull": true
3078
+ },
3079
+ "body": {
3080
+ "name": "body",
3081
+ "type": "jsonb",
3082
+ "primaryKey": false,
3083
+ "notNull": false,
3084
+ "default": "'{}'::jsonb"
3085
+ },
3086
+ "created_at": {
3087
+ "name": "created_at",
3088
+ "type": "timestamp with time zone",
3089
+ "primaryKey": false,
3090
+ "notNull": true,
3091
+ "default": "now()"
3092
+ },
3093
+ "updated_at": {
3094
+ "name": "updated_at",
3095
+ "type": "timestamp with time zone",
3096
+ "primaryKey": false,
3097
+ "notNull": true,
3098
+ "default": "now()"
3099
+ }
3100
+ },
3101
+ "indexes": {
3102
+ "reply_to_from_idx": {
3103
+ "name": "reply_to_from_idx",
3104
+ "columns": [
3105
+ {
3106
+ "expression": "from_id",
3107
+ "isExpression": false,
3108
+ "asc": true,
3109
+ "nulls": "last"
3110
+ }
3111
+ ],
3112
+ "isUnique": false,
3113
+ "concurrently": false,
3114
+ "method": "btree",
3115
+ "with": {}
3116
+ },
3117
+ "reply_to_to_idx": {
3118
+ "name": "reply_to_to_idx",
3119
+ "columns": [
3120
+ {
3121
+ "expression": "to_id",
3122
+ "isExpression": false,
3123
+ "asc": true,
3124
+ "nulls": "last"
3125
+ }
3126
+ ],
3127
+ "isUnique": false,
3128
+ "concurrently": false,
3129
+ "method": "btree",
3130
+ "with": {}
3131
+ },
3132
+ "reply_to_from_to_unique": {
3133
+ "name": "reply_to_from_to_unique",
3134
+ "columns": [
3135
+ {
3136
+ "expression": "from_id",
3137
+ "isExpression": false,
3138
+ "asc": true,
3139
+ "nulls": "last"
3140
+ },
3141
+ {
3142
+ "expression": "to_id",
3143
+ "isExpression": false,
3144
+ "asc": true,
3145
+ "nulls": "last"
3146
+ }
3147
+ ],
3148
+ "isUnique": true,
3149
+ "concurrently": false,
3150
+ "method": "btree",
3151
+ "with": {}
3152
+ }
3153
+ },
3154
+ "foreignKeys": {},
3155
+ "compositePrimaryKeys": {},
3156
+ "uniqueConstraints": {},
3157
+ "policies": {},
3158
+ "checkConstraints": {},
3159
+ "isRLSEnabled": false
3160
+ },
3161
+ "public.repost": {
3162
+ "name": "repost",
3163
+ "schema": "",
3164
+ "columns": {
3165
+ "id": {
3166
+ "name": "id",
3167
+ "type": "uuid",
3168
+ "primaryKey": true,
3169
+ "notNull": true
3170
+ },
3171
+ "from_id": {
3172
+ "name": "from_id",
3173
+ "type": "text",
3174
+ "primaryKey": false,
3175
+ "notNull": true
3176
+ },
3177
+ "to_id": {
3178
+ "name": "to_id",
3179
+ "type": "text",
3180
+ "primaryKey": false,
3181
+ "notNull": true
3182
+ },
3183
+ "body": {
3184
+ "name": "body",
3185
+ "type": "jsonb",
3186
+ "primaryKey": false,
3187
+ "notNull": false,
3188
+ "default": "'{}'::jsonb"
3189
+ },
3190
+ "created_at": {
3191
+ "name": "created_at",
3192
+ "type": "timestamp with time zone",
3193
+ "primaryKey": false,
3194
+ "notNull": true,
3195
+ "default": "now()"
3196
+ },
3197
+ "updated_at": {
3198
+ "name": "updated_at",
3199
+ "type": "timestamp with time zone",
3200
+ "primaryKey": false,
3201
+ "notNull": true,
3202
+ "default": "now()"
3203
+ }
3204
+ },
3205
+ "indexes": {
3206
+ "repost_from_idx": {
3207
+ "name": "repost_from_idx",
3208
+ "columns": [
3209
+ {
3210
+ "expression": "from_id",
3211
+ "isExpression": false,
3212
+ "asc": true,
3213
+ "nulls": "last"
3214
+ }
3215
+ ],
3216
+ "isUnique": false,
3217
+ "concurrently": false,
3218
+ "method": "btree",
3219
+ "with": {}
3220
+ },
3221
+ "repost_to_idx": {
3222
+ "name": "repost_to_idx",
3223
+ "columns": [
3224
+ {
3225
+ "expression": "to_id",
3226
+ "isExpression": false,
3227
+ "asc": true,
3228
+ "nulls": "last"
3229
+ }
3230
+ ],
3231
+ "isUnique": false,
3232
+ "concurrently": false,
3233
+ "method": "btree",
3234
+ "with": {}
3235
+ },
3236
+ "repost_from_to_unique": {
3237
+ "name": "repost_from_to_unique",
3238
+ "columns": [
3239
+ {
3240
+ "expression": "from_id",
3241
+ "isExpression": false,
3242
+ "asc": true,
3243
+ "nulls": "last"
3244
+ },
3245
+ {
3246
+ "expression": "to_id",
3247
+ "isExpression": false,
3248
+ "asc": true,
3249
+ "nulls": "last"
3250
+ }
3251
+ ],
3252
+ "isUnique": true,
3253
+ "concurrently": false,
3254
+ "method": "btree",
3255
+ "with": {}
3256
+ }
3257
+ },
3258
+ "foreignKeys": {},
3259
+ "compositePrimaryKeys": {},
3260
+ "uniqueConstraints": {},
3261
+ "policies": {},
3262
+ "checkConstraints": {},
3263
+ "isRLSEnabled": false
3264
+ },
3265
+ "public.requests_follow": {
3266
+ "name": "requests_follow",
3267
+ "schema": "",
3268
+ "columns": {
3269
+ "id": {
3270
+ "name": "id",
3271
+ "type": "uuid",
3272
+ "primaryKey": true,
3273
+ "notNull": true
3274
+ },
3275
+ "from_id": {
3276
+ "name": "from_id",
3277
+ "type": "text",
3278
+ "primaryKey": false,
3279
+ "notNull": true
3280
+ },
3281
+ "to_id": {
3282
+ "name": "to_id",
3283
+ "type": "text",
3284
+ "primaryKey": false,
3285
+ "notNull": true
3286
+ },
3287
+ "body": {
3288
+ "name": "body",
3289
+ "type": "jsonb",
3290
+ "primaryKey": false,
3291
+ "notNull": false,
3292
+ "default": "'{}'::jsonb"
3293
+ },
3294
+ "created_at": {
3295
+ "name": "created_at",
3296
+ "type": "timestamp with time zone",
3297
+ "primaryKey": false,
3298
+ "notNull": true,
3299
+ "default": "now()"
3300
+ },
3301
+ "updated_at": {
3302
+ "name": "updated_at",
3303
+ "type": "timestamp with time zone",
3304
+ "primaryKey": false,
3305
+ "notNull": true,
3306
+ "default": "now()"
3307
+ }
3308
+ },
3309
+ "indexes": {
3310
+ "requests_follow_from_idx": {
3311
+ "name": "requests_follow_from_idx",
3312
+ "columns": [
3313
+ {
3314
+ "expression": "from_id",
3315
+ "isExpression": false,
3316
+ "asc": true,
3317
+ "nulls": "last"
3318
+ }
3319
+ ],
3320
+ "isUnique": false,
3321
+ "concurrently": false,
3322
+ "method": "btree",
3323
+ "with": {}
3324
+ },
3325
+ "requests_follow_to_idx": {
3326
+ "name": "requests_follow_to_idx",
3327
+ "columns": [
3328
+ {
3329
+ "expression": "to_id",
3330
+ "isExpression": false,
3331
+ "asc": true,
3332
+ "nulls": "last"
3333
+ }
3334
+ ],
3335
+ "isUnique": false,
3336
+ "concurrently": false,
3337
+ "method": "btree",
3338
+ "with": {}
3339
+ }
3340
+ },
3341
+ "foreignKeys": {},
3342
+ "compositePrimaryKeys": {},
3343
+ "uniqueConstraints": {},
3344
+ "policies": {},
3345
+ "checkConstraints": {},
3346
+ "isRLSEnabled": false
3347
+ },
3348
+ "public.user_groups": {
3349
+ "name": "user_groups",
3350
+ "schema": "",
3351
+ "columns": {
3352
+ "id": {
3353
+ "name": "id",
3354
+ "type": "uuid",
3355
+ "primaryKey": true,
3356
+ "notNull": true
3357
+ },
3358
+ "from_id": {
3359
+ "name": "from_id",
3360
+ "type": "text",
3361
+ "primaryKey": false,
3362
+ "notNull": true
3363
+ },
3364
+ "to_id": {
3365
+ "name": "to_id",
3366
+ "type": "text",
3367
+ "primaryKey": false,
3368
+ "notNull": true
3369
+ },
3370
+ "body": {
3371
+ "name": "body",
3372
+ "type": "jsonb",
3373
+ "primaryKey": false,
3374
+ "notNull": false,
3375
+ "default": "'{}'::jsonb"
3376
+ },
3377
+ "created_at": {
3378
+ "name": "created_at",
3379
+ "type": "timestamp with time zone",
3380
+ "primaryKey": false,
3381
+ "notNull": true,
3382
+ "default": "now()"
3383
+ },
3384
+ "updated_at": {
3385
+ "name": "updated_at",
3386
+ "type": "timestamp with time zone",
3387
+ "primaryKey": false,
3388
+ "notNull": true,
3389
+ "default": "now()"
3390
+ }
3391
+ },
3392
+ "indexes": {
3393
+ "user_groups_from_idx": {
3394
+ "name": "user_groups_from_idx",
3395
+ "columns": [
3396
+ {
3397
+ "expression": "from_id",
3398
+ "isExpression": false,
3399
+ "asc": true,
3400
+ "nulls": "last"
3401
+ }
3402
+ ],
3403
+ "isUnique": false,
3404
+ "concurrently": false,
3405
+ "method": "btree",
3406
+ "with": {}
3407
+ },
3408
+ "user_groups_to_idx": {
3409
+ "name": "user_groups_to_idx",
3410
+ "columns": [
3411
+ {
3412
+ "expression": "to_id",
3413
+ "isExpression": false,
3414
+ "asc": true,
3415
+ "nulls": "last"
3416
+ }
3417
+ ],
3418
+ "isUnique": false,
3419
+ "concurrently": false,
3420
+ "method": "btree",
3421
+ "with": {}
3422
+ }
3423
+ },
3424
+ "foreignKeys": {},
3425
+ "compositePrimaryKeys": {},
3426
+ "uniqueConstraints": {},
3427
+ "policies": {},
3428
+ "checkConstraints": {},
3429
+ "isRLSEnabled": false
3430
+ },
3431
+ "public.analytics_daily_activity_heatmap": {
3432
+ "name": "analytics_daily_activity_heatmap",
3433
+ "schema": "",
3434
+ "columns": {
3435
+ "id": {
3436
+ "name": "id",
3437
+ "type": "uuid",
3438
+ "primaryKey": true,
3439
+ "notNull": true
3440
+ },
3441
+ "day": {
3442
+ "name": "day",
3443
+ "type": "date",
3444
+ "primaryKey": false,
3445
+ "notNull": true
3446
+ },
3447
+ "dow": {
3448
+ "name": "dow",
3449
+ "type": "integer",
3450
+ "primaryKey": false,
3451
+ "notNull": true
3452
+ },
3453
+ "hour": {
3454
+ "name": "hour",
3455
+ "type": "integer",
3456
+ "primaryKey": false,
3457
+ "notNull": true
3458
+ },
3459
+ "activity_count": {
3460
+ "name": "activity_count",
3461
+ "type": "integer",
3462
+ "primaryKey": false,
3463
+ "notNull": true,
3464
+ "default": 0
3465
+ },
3466
+ "compiled_at": {
3467
+ "name": "compiled_at",
3468
+ "type": "timestamp with time zone",
3469
+ "primaryKey": false,
3470
+ "notNull": true,
3471
+ "default": "now()"
3472
+ }
3473
+ },
3474
+ "indexes": {
3475
+ "analytics_heatmap_day_dow_hour": {
3476
+ "name": "analytics_heatmap_day_dow_hour",
3477
+ "columns": [
3478
+ {
3479
+ "expression": "day",
3480
+ "isExpression": false,
3481
+ "asc": true,
3482
+ "nulls": "last"
3483
+ },
3484
+ {
3485
+ "expression": "dow",
3486
+ "isExpression": false,
3487
+ "asc": true,
3488
+ "nulls": "last"
3489
+ },
3490
+ {
3491
+ "expression": "hour",
3492
+ "isExpression": false,
3493
+ "asc": true,
3494
+ "nulls": "last"
3495
+ }
3496
+ ],
3497
+ "isUnique": true,
3498
+ "concurrently": false,
3499
+ "method": "btree",
3500
+ "with": {}
3501
+ },
3502
+ "analytics_heatmap_day_idx": {
3503
+ "name": "analytics_heatmap_day_idx",
3504
+ "columns": [
3505
+ {
3506
+ "expression": "day",
3507
+ "isExpression": false,
3508
+ "asc": true,
3509
+ "nulls": "last"
3510
+ }
3511
+ ],
3512
+ "isUnique": false,
3513
+ "concurrently": false,
3514
+ "method": "btree",
3515
+ "with": {}
3516
+ }
3517
+ },
3518
+ "foreignKeys": {},
3519
+ "compositePrimaryKeys": {},
3520
+ "uniqueConstraints": {},
3521
+ "policies": {},
3522
+ "checkConstraints": {},
3523
+ "isRLSEnabled": false
3524
+ },
3525
+ "public.analytics_daily_by_group": {
3526
+ "name": "analytics_daily_by_group",
3527
+ "schema": "",
3528
+ "columns": {
3529
+ "id": {
3530
+ "name": "id",
3531
+ "type": "uuid",
3532
+ "primaryKey": true,
3533
+ "notNull": true
3534
+ },
3535
+ "day": {
3536
+ "name": "day",
3537
+ "type": "date",
3538
+ "primaryKey": false,
3539
+ "notNull": true
3540
+ },
3541
+ "group_id": {
3542
+ "name": "group_id",
3543
+ "type": "text",
3544
+ "primaryKey": false,
3545
+ "notNull": true
3546
+ },
3547
+ "posts": {
3548
+ "name": "posts",
3549
+ "type": "integer",
3550
+ "primaryKey": false,
3551
+ "notNull": true,
3552
+ "default": 0
3553
+ },
3554
+ "likes": {
3555
+ "name": "likes",
3556
+ "type": "integer",
3557
+ "primaryKey": false,
3558
+ "notNull": true,
3559
+ "default": 0
3560
+ },
3561
+ "comments": {
3562
+ "name": "comments",
3563
+ "type": "integer",
3564
+ "primaryKey": false,
3565
+ "notNull": true,
3566
+ "default": 0
3567
+ },
3568
+ "unique_viewers": {
3569
+ "name": "unique_viewers",
3570
+ "type": "integer",
3571
+ "primaryKey": false,
3572
+ "notNull": true,
3573
+ "default": 0
3574
+ },
3575
+ "compiled_at": {
3576
+ "name": "compiled_at",
3577
+ "type": "timestamp with time zone",
3578
+ "primaryKey": false,
3579
+ "notNull": true,
3580
+ "default": "now()"
3581
+ }
3582
+ },
3583
+ "indexes": {
3584
+ "analytics_daily_by_group_day_group": {
3585
+ "name": "analytics_daily_by_group_day_group",
3586
+ "columns": [
3587
+ {
3588
+ "expression": "day",
3589
+ "isExpression": false,
3590
+ "asc": true,
3591
+ "nulls": "last"
3592
+ },
3593
+ {
3594
+ "expression": "group_id",
3595
+ "isExpression": false,
3596
+ "asc": true,
3597
+ "nulls": "last"
3598
+ }
3599
+ ],
3600
+ "isUnique": true,
3601
+ "concurrently": false,
3602
+ "method": "btree",
3603
+ "with": {}
3604
+ },
3605
+ "analytics_daily_by_group_day_idx": {
3606
+ "name": "analytics_daily_by_group_day_idx",
3607
+ "columns": [
3608
+ {
3609
+ "expression": "day",
3610
+ "isExpression": false,
3611
+ "asc": true,
3612
+ "nulls": "last"
3613
+ }
3614
+ ],
3615
+ "isUnique": false,
3616
+ "concurrently": false,
3617
+ "method": "btree",
3618
+ "with": {}
3619
+ }
3620
+ },
3621
+ "foreignKeys": {},
3622
+ "compositePrimaryKeys": {},
3623
+ "uniqueConstraints": {},
3624
+ "policies": {},
3625
+ "checkConstraints": {},
3626
+ "isRLSEnabled": false
3627
+ },
3628
+ "public.analytics_daily_signups_by_channel": {
3629
+ "name": "analytics_daily_signups_by_channel",
3630
+ "schema": "",
3631
+ "columns": {
3632
+ "id": {
3633
+ "name": "id",
3634
+ "type": "uuid",
3635
+ "primaryKey": true,
3636
+ "notNull": true
3637
+ },
3638
+ "day": {
3639
+ "name": "day",
3640
+ "type": "date",
3641
+ "primaryKey": false,
3642
+ "notNull": true
3643
+ },
3644
+ "channel": {
3645
+ "name": "channel",
3646
+ "type": "text",
3647
+ "primaryKey": false,
3648
+ "notNull": true
3649
+ },
3650
+ "count": {
3651
+ "name": "count",
3652
+ "type": "integer",
3653
+ "primaryKey": false,
3654
+ "notNull": true,
3655
+ "default": 0
3656
+ },
3657
+ "compiled_at": {
3658
+ "name": "compiled_at",
3659
+ "type": "timestamp with time zone",
3660
+ "primaryKey": false,
3661
+ "notNull": true,
3662
+ "default": "now()"
3663
+ }
3664
+ },
3665
+ "indexes": {
3666
+ "analytics_signups_day_channel": {
3667
+ "name": "analytics_signups_day_channel",
3668
+ "columns": [
3669
+ {
3670
+ "expression": "day",
3671
+ "isExpression": false,
3672
+ "asc": true,
3673
+ "nulls": "last"
3674
+ },
3675
+ {
3676
+ "expression": "channel",
3677
+ "isExpression": false,
3678
+ "asc": true,
3679
+ "nulls": "last"
3680
+ }
3681
+ ],
3682
+ "isUnique": true,
3683
+ "concurrently": false,
3684
+ "method": "btree",
3685
+ "with": {}
3686
+ },
3687
+ "analytics_signups_day_idx": {
3688
+ "name": "analytics_signups_day_idx",
3689
+ "columns": [
3690
+ {
3691
+ "expression": "day",
3692
+ "isExpression": false,
3693
+ "asc": true,
3694
+ "nulls": "last"
3695
+ }
3696
+ ],
3697
+ "isUnique": false,
3698
+ "concurrently": false,
3699
+ "method": "btree",
3700
+ "with": {}
3701
+ }
3702
+ },
3703
+ "foreignKeys": {},
3704
+ "compositePrimaryKeys": {},
3705
+ "uniqueConstraints": {},
3706
+ "policies": {},
3707
+ "checkConstraints": {},
3708
+ "isRLSEnabled": false
3709
+ },
3710
+ "public.analytics_daily_totals": {
3711
+ "name": "analytics_daily_totals",
3712
+ "schema": "",
3713
+ "columns": {
3714
+ "day": {
3715
+ "name": "day",
3716
+ "type": "date",
3717
+ "primaryKey": true,
3718
+ "notNull": true
3719
+ },
3720
+ "new_members": {
3721
+ "name": "new_members",
3722
+ "type": "integer",
3723
+ "primaryKey": false,
3724
+ "notNull": true,
3725
+ "default": 0
3726
+ },
3727
+ "active_members": {
3728
+ "name": "active_members",
3729
+ "type": "integer",
3730
+ "primaryKey": false,
3731
+ "notNull": true,
3732
+ "default": 0
3733
+ },
3734
+ "posts": {
3735
+ "name": "posts",
3736
+ "type": "integer",
3737
+ "primaryKey": false,
3738
+ "notNull": true,
3739
+ "default": 0
3740
+ },
3741
+ "replies": {
3742
+ "name": "replies",
3743
+ "type": "integer",
3744
+ "primaryKey": false,
3745
+ "notNull": true,
3746
+ "default": 0
3747
+ },
3748
+ "likes": {
3749
+ "name": "likes",
3750
+ "type": "integer",
3751
+ "primaryKey": false,
3752
+ "notNull": true,
3753
+ "default": 0
3754
+ },
3755
+ "reposts": {
3756
+ "name": "reposts",
3757
+ "type": "integer",
3758
+ "primaryKey": false,
3759
+ "notNull": true,
3760
+ "default": 0
3761
+ },
3762
+ "bookmarks": {
3763
+ "name": "bookmarks",
3764
+ "type": "integer",
3765
+ "primaryKey": false,
3766
+ "notNull": true,
3767
+ "default": 0
3768
+ },
3769
+ "comments": {
3770
+ "name": "comments",
3771
+ "type": "integer",
3772
+ "primaryKey": false,
3773
+ "notNull": true,
3774
+ "default": 0
3775
+ },
3776
+ "dms": {
3777
+ "name": "dms",
3778
+ "type": "integer",
3779
+ "primaryKey": false,
3780
+ "notNull": true,
3781
+ "default": 0
3782
+ },
3783
+ "unique_viewers": {
3784
+ "name": "unique_viewers",
3785
+ "type": "integer",
3786
+ "primaryKey": false,
3787
+ "notNull": true,
3788
+ "default": 0
3789
+ },
3790
+ "view_events": {
3791
+ "name": "view_events",
3792
+ "type": "integer",
3793
+ "primaryKey": false,
3794
+ "notNull": true,
3795
+ "default": 0
3796
+ },
3797
+ "jam_sessions": {
3798
+ "name": "jam_sessions",
3799
+ "type": "integer",
3800
+ "primaryKey": false,
3801
+ "notNull": true,
3802
+ "default": 0
3803
+ },
3804
+ "jam_participants": {
3805
+ "name": "jam_participants",
3806
+ "type": "integer",
3807
+ "primaryKey": false,
3808
+ "notNull": true,
3809
+ "default": 0
3810
+ },
3811
+ "compiled_at": {
3812
+ "name": "compiled_at",
3813
+ "type": "timestamp with time zone",
3814
+ "primaryKey": false,
3815
+ "notNull": true,
3816
+ "default": "now()"
3817
+ }
3818
+ },
3819
+ "indexes": {},
3820
+ "foreignKeys": {},
3821
+ "compositePrimaryKeys": {},
3822
+ "uniqueConstraints": {},
3823
+ "policies": {},
3824
+ "checkConstraints": {},
3825
+ "isRLSEnabled": false
3826
+ },
3827
+ "public.analytics_post_views_daily": {
3828
+ "name": "analytics_post_views_daily",
3829
+ "schema": "",
3830
+ "columns": {
3831
+ "id": {
3832
+ "name": "id",
3833
+ "type": "uuid",
3834
+ "primaryKey": true,
3835
+ "notNull": true
3836
+ },
3837
+ "day": {
3838
+ "name": "day",
3839
+ "type": "date",
3840
+ "primaryKey": false,
3841
+ "notNull": true
3842
+ },
3843
+ "post_id": {
3844
+ "name": "post_id",
3845
+ "type": "text",
3846
+ "primaryKey": false,
3847
+ "notNull": true
3848
+ },
3849
+ "unique_viewers": {
3850
+ "name": "unique_viewers",
3851
+ "type": "integer",
3852
+ "primaryKey": false,
3853
+ "notNull": true,
3854
+ "default": 0
3855
+ },
3856
+ "view_events": {
3857
+ "name": "view_events",
3858
+ "type": "integer",
3859
+ "primaryKey": false,
3860
+ "notNull": true,
3861
+ "default": 0
3862
+ },
3863
+ "compiled_at": {
3864
+ "name": "compiled_at",
3865
+ "type": "timestamp with time zone",
3866
+ "primaryKey": false,
3867
+ "notNull": true,
3868
+ "default": "now()"
3869
+ }
3870
+ },
3871
+ "indexes": {
3872
+ "analytics_post_views_day_post": {
3873
+ "name": "analytics_post_views_day_post",
3874
+ "columns": [
3875
+ {
3876
+ "expression": "day",
3877
+ "isExpression": false,
3878
+ "asc": true,
3879
+ "nulls": "last"
3880
+ },
3881
+ {
3882
+ "expression": "post_id",
3883
+ "isExpression": false,
3884
+ "asc": true,
3885
+ "nulls": "last"
3886
+ }
3887
+ ],
3888
+ "isUnique": true,
3889
+ "concurrently": false,
3890
+ "method": "btree",
3891
+ "with": {}
3892
+ },
3893
+ "analytics_post_views_day_idx": {
3894
+ "name": "analytics_post_views_day_idx",
3895
+ "columns": [
3896
+ {
3897
+ "expression": "day",
3898
+ "isExpression": false,
3899
+ "asc": true,
3900
+ "nulls": "last"
3901
+ }
3902
+ ],
3903
+ "isUnique": false,
3904
+ "concurrently": false,
3905
+ "method": "btree",
3906
+ "with": {}
3907
+ },
3908
+ "analytics_post_views_post_idx": {
3909
+ "name": "analytics_post_views_post_idx",
3910
+ "columns": [
3911
+ {
3912
+ "expression": "post_id",
3913
+ "isExpression": false,
3914
+ "asc": true,
3915
+ "nulls": "last"
3916
+ }
3917
+ ],
3918
+ "isUnique": false,
3919
+ "concurrently": false,
3920
+ "method": "btree",
3921
+ "with": {}
3922
+ }
3923
+ },
3924
+ "foreignKeys": {},
3925
+ "compositePrimaryKeys": {},
3926
+ "uniqueConstraints": {},
3927
+ "policies": {},
3928
+ "checkConstraints": {},
3929
+ "isRLSEnabled": false
3930
+ },
3931
+ "public.analytics_report_deliveries": {
3932
+ "name": "analytics_report_deliveries",
3933
+ "schema": "",
3934
+ "columns": {
3935
+ "id": {
3936
+ "name": "id",
3937
+ "type": "uuid",
3938
+ "primaryKey": true,
3939
+ "notNull": true
3940
+ },
3941
+ "period_start": {
3942
+ "name": "period_start",
3943
+ "type": "date",
3944
+ "primaryKey": false,
3945
+ "notNull": true
3946
+ },
3947
+ "period_end": {
3948
+ "name": "period_end",
3949
+ "type": "date",
3950
+ "primaryKey": false,
3951
+ "notNull": true
3952
+ },
3953
+ "recipients": {
3954
+ "name": "recipients",
3955
+ "type": "jsonb",
3956
+ "primaryKey": false,
3957
+ "notNull": true,
3958
+ "default": "'[]'::jsonb"
3959
+ },
3960
+ "status": {
3961
+ "name": "status",
3962
+ "type": "text",
3963
+ "primaryKey": false,
3964
+ "notNull": true,
3965
+ "default": "'pending'"
3966
+ },
3967
+ "body": {
3968
+ "name": "body",
3969
+ "type": "jsonb",
3970
+ "primaryKey": false,
3971
+ "notNull": true,
3972
+ "default": "'{}'::jsonb"
3973
+ },
3974
+ "created_at": {
3975
+ "name": "created_at",
3976
+ "type": "timestamp with time zone",
3977
+ "primaryKey": false,
3978
+ "notNull": true,
3979
+ "default": "now()"
3980
+ }
3981
+ },
3982
+ "indexes": {
3983
+ "analytics_report_deliveries_period_idx": {
3984
+ "name": "analytics_report_deliveries_period_idx",
3985
+ "columns": [
3986
+ {
3987
+ "expression": "period_start",
3988
+ "isExpression": false,
3989
+ "asc": true,
3990
+ "nulls": "last"
3991
+ }
3992
+ ],
3993
+ "isUnique": false,
3994
+ "concurrently": false,
3995
+ "method": "btree",
3996
+ "with": {}
3997
+ }
3998
+ },
3999
+ "foreignKeys": {},
4000
+ "compositePrimaryKeys": {},
4001
+ "uniqueConstraints": {},
4002
+ "policies": {},
4003
+ "checkConstraints": {},
4004
+ "isRLSEnabled": false
4005
+ },
4006
+ "public.analytics_retention_cohorts": {
4007
+ "name": "analytics_retention_cohorts",
4008
+ "schema": "",
4009
+ "columns": {
4010
+ "id": {
4011
+ "name": "id",
4012
+ "type": "uuid",
4013
+ "primaryKey": true,
4014
+ "notNull": true
4015
+ },
4016
+ "cohort_week": {
4017
+ "name": "cohort_week",
4018
+ "type": "date",
4019
+ "primaryKey": false,
4020
+ "notNull": true
4021
+ },
4022
+ "cohort_size": {
4023
+ "name": "cohort_size",
4024
+ "type": "integer",
4025
+ "primaryKey": false,
4026
+ "notNull": true,
4027
+ "default": 0
4028
+ },
4029
+ "rates": {
4030
+ "name": "rates",
4031
+ "type": "jsonb",
4032
+ "primaryKey": false,
4033
+ "notNull": true,
4034
+ "default": "'{}'::jsonb"
4035
+ },
4036
+ "compiled_at": {
4037
+ "name": "compiled_at",
4038
+ "type": "timestamp with time zone",
4039
+ "primaryKey": false,
4040
+ "notNull": true,
4041
+ "default": "now()"
4042
+ }
4043
+ },
4044
+ "indexes": {
4045
+ "analytics_retention_cohort_week": {
4046
+ "name": "analytics_retention_cohort_week",
4047
+ "columns": [
4048
+ {
4049
+ "expression": "cohort_week",
4050
+ "isExpression": false,
4051
+ "asc": true,
4052
+ "nulls": "last"
4053
+ }
4054
+ ],
4055
+ "isUnique": true,
4056
+ "concurrently": false,
4057
+ "method": "btree",
4058
+ "with": {}
4059
+ }
4060
+ },
4061
+ "foreignKeys": {},
4062
+ "compositePrimaryKeys": {},
4063
+ "uniqueConstraints": {},
4064
+ "policies": {},
4065
+ "checkConstraints": {},
4066
+ "isRLSEnabled": false
4067
+ },
4068
+ "public.analytics_settings": {
4069
+ "name": "analytics_settings",
4070
+ "schema": "",
4071
+ "columns": {
4072
+ "id": {
4073
+ "name": "id",
4074
+ "type": "text",
4075
+ "primaryKey": true,
4076
+ "notNull": true,
4077
+ "default": "'default'"
4078
+ },
4079
+ "body": {
4080
+ "name": "body",
4081
+ "type": "jsonb",
4082
+ "primaryKey": false,
4083
+ "notNull": true,
4084
+ "default": "'{}'::jsonb"
4085
+ },
4086
+ "updated_at": {
4087
+ "name": "updated_at",
4088
+ "type": "timestamp with time zone",
4089
+ "primaryKey": false,
4090
+ "notNull": true,
4091
+ "default": "now()"
4092
+ }
4093
+ },
4094
+ "indexes": {},
4095
+ "foreignKeys": {},
4096
+ "compositePrimaryKeys": {},
4097
+ "uniqueConstraints": {},
4098
+ "policies": {},
4099
+ "checkConstraints": {},
4100
+ "isRLSEnabled": false
4101
+ }
4102
+ },
4103
+ "enums": {},
4104
+ "schemas": {},
4105
+ "sequences": {},
4106
+ "roles": {},
4107
+ "policies": {},
4108
+ "views": {},
4109
+ "_meta": {
4110
+ "columns": {},
4111
+ "schemas": {},
4112
+ "tables": {}
4113
+ }
4114
+ }