@openpeepshq/core 0.1.33 → 0.1.35

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