@openora/core 0.4.1-canary.126 → 0.4.1-canary.128

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 (145) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/admin-console/plugin.d.ts +3 -0
  3. package/dist/admin-console/plugin.d.ts.map +1 -1
  4. package/dist/analytics/plugin.d.ts +3 -0
  5. package/dist/analytics/plugin.d.ts.map +1 -1
  6. package/dist/audit/plugin.d.ts +3 -0
  7. package/dist/audit/plugin.d.ts.map +1 -1
  8. package/dist/casino/gaming/plugin.d.ts +3 -0
  9. package/dist/casino/gaming/plugin.d.ts.map +1 -1
  10. package/dist/casino/lobby/plugin.d.ts +3 -0
  11. package/dist/casino/lobby/plugin.d.ts.map +1 -1
  12. package/dist/cms/plugin.d.ts +3 -0
  13. package/dist/cms/plugin.d.ts.map +1 -1
  14. package/dist/compliance/plugin.d.ts +3 -0
  15. package/dist/compliance/plugin.d.ts.map +1 -1
  16. package/dist/contracts/adapters/audit.d.ts +1 -1
  17. package/dist/contracts/adapters/audit.d.ts.map +1 -1
  18. package/dist/contracts/adapters/audit.js.map +1 -1
  19. package/dist/contracts/adapters/player-provisioning.d.ts +8 -0
  20. package/dist/contracts/adapters/player-provisioning.d.ts.map +1 -1
  21. package/dist/contracts/adapters/player-provisioning.js.map +1 -1
  22. package/dist/contracts/schemas/__tests__/common-schemas.test.js +26 -1
  23. package/dist/contracts/schemas/__tests__/common-schemas.test.js.map +1 -1
  24. package/dist/contracts/schemas/common.d.ts +14 -0
  25. package/dist/contracts/schemas/common.d.ts.map +1 -1
  26. package/dist/contracts/schemas/common.js +22 -0
  27. package/dist/contracts/schemas/common.js.map +1 -1
  28. package/dist/contracts/schemas/identity.d.ts +5 -0
  29. package/dist/contracts/schemas/identity.d.ts.map +1 -1
  30. package/dist/contracts/schemas/identity.js +8 -1
  31. package/dist/contracts/schemas/identity.js.map +1 -1
  32. package/dist/contracts/schemas/platform-config.d.ts +24 -0
  33. package/dist/contracts/schemas/platform-config.d.ts.map +1 -1
  34. package/dist/contracts/schemas/platform-config.js +29 -0
  35. package/dist/contracts/schemas/platform-config.js.map +1 -1
  36. package/dist/contracts/schemas/player.d.ts +6 -0
  37. package/dist/contracts/schemas/player.d.ts.map +1 -1
  38. package/dist/contracts/schemas/player.js +9 -1
  39. package/dist/contracts/schemas/player.js.map +1 -1
  40. package/dist/engagement/chat/__tests__/chat-moderation-expiry.int.test.d.ts +2 -0
  41. package/dist/engagement/chat/__tests__/chat-moderation-expiry.int.test.d.ts.map +1 -0
  42. package/dist/engagement/chat/__tests__/chat-moderation-expiry.int.test.js +155 -0
  43. package/dist/engagement/chat/__tests__/chat-moderation-expiry.int.test.js.map +1 -0
  44. package/dist/engagement/chat/__tests__/chat-mute-listing.int.test.d.ts +2 -0
  45. package/dist/engagement/chat/__tests__/chat-mute-listing.int.test.d.ts.map +1 -0
  46. package/dist/engagement/chat/__tests__/chat-mute-listing.int.test.js +81 -0
  47. package/dist/engagement/chat/__tests__/chat-mute-listing.int.test.js.map +1 -0
  48. package/dist/engagement/chat/drizzle/migrations/0014_chat_moderation_expiry_recorded.sql +19 -0
  49. package/dist/engagement/chat/drizzle/migrations/meta/0014_snapshot.json +1544 -0
  50. package/dist/engagement/chat/drizzle/migrations/meta/_journal.json +7 -0
  51. package/dist/engagement/chat/plugin.d.ts +3 -0
  52. package/dist/engagement/chat/plugin.d.ts.map +1 -1
  53. package/dist/engagement/chat/plugin.js +31 -1
  54. package/dist/engagement/chat/plugin.js.map +1 -1
  55. package/dist/engagement/chat/schema/index.d.ts +34 -0
  56. package/dist/engagement/chat/schema/index.d.ts.map +1 -1
  57. package/dist/engagement/chat/schema/index.js +3 -0
  58. package/dist/engagement/chat/schema/index.js.map +1 -1
  59. package/dist/engagement/chat/service/chat-ban.service.d.ts.map +1 -1
  60. package/dist/engagement/chat/service/chat-ban.service.js +7 -2
  61. package/dist/engagement/chat/service/chat-ban.service.js.map +1 -1
  62. package/dist/engagement/chat/service/chat-moderation-expiry.service.d.ts +22 -0
  63. package/dist/engagement/chat/service/chat-moderation-expiry.service.d.ts.map +1 -0
  64. package/dist/engagement/chat/service/chat-moderation-expiry.service.js +80 -0
  65. package/dist/engagement/chat/service/chat-moderation-expiry.service.js.map +1 -0
  66. package/dist/engagement/chat/service/chat-mute.service.d.ts.map +1 -1
  67. package/dist/engagement/chat/service/chat-mute.service.js +10 -2
  68. package/dist/engagement/chat/service/chat-mute.service.js.map +1 -1
  69. package/dist/engagement/chat-commands/plugin.d.ts +3 -0
  70. package/dist/engagement/chat-commands/plugin.d.ts.map +1 -1
  71. package/dist/engagement/notifications/plugin.d.ts +3 -0
  72. package/dist/engagement/notifications/plugin.d.ts.map +1 -1
  73. package/dist/engagement/social/plugin.d.ts +3 -0
  74. package/dist/engagement/social/plugin.d.ts.map +1 -1
  75. package/dist/fx/exchange-rate/plugin.d.ts +3 -0
  76. package/dist/fx/exchange-rate/plugin.d.ts.map +1 -1
  77. package/dist/iam/plugin.d.ts +3 -0
  78. package/dist/iam/plugin.d.ts.map +1 -1
  79. package/dist/pam/identity/contract/index.d.ts +5 -0
  80. package/dist/pam/identity/contract/index.d.ts.map +1 -1
  81. package/dist/pam/identity/plugin.d.ts +3 -0
  82. package/dist/pam/identity/plugin.d.ts.map +1 -1
  83. package/dist/pam/identity/plugin.js +1 -0
  84. package/dist/pam/identity/plugin.js.map +1 -1
  85. package/dist/pam/identity/react/account.d.ts +2 -0
  86. package/dist/pam/identity/react/account.d.ts.map +1 -1
  87. package/dist/pam/identity/react/auth.d.ts +2 -0
  88. package/dist/pam/identity/react/auth.d.ts.map +1 -1
  89. package/dist/pam/identity/router/index.d.ts +5 -0
  90. package/dist/pam/identity/router/index.d.ts.map +1 -1
  91. package/dist/pam/identity/service/capture-timezone.service.d.ts +10 -0
  92. package/dist/pam/identity/service/capture-timezone.service.d.ts.map +1 -0
  93. package/dist/pam/identity/service/capture-timezone.service.js +21 -0
  94. package/dist/pam/identity/service/capture-timezone.service.js.map +1 -0
  95. package/dist/pam/identity/service/identity.service.d.ts.map +1 -1
  96. package/dist/pam/identity/service/identity.service.js +9 -0
  97. package/dist/pam/identity/service/identity.service.js.map +1 -1
  98. package/dist/pam/identity/service/phone-login.service.d.ts +4 -2
  99. package/dist/pam/identity/service/phone-login.service.d.ts.map +1 -1
  100. package/dist/pam/identity/service/phone-login.service.js +7 -2
  101. package/dist/pam/identity/service/phone-login.service.js.map +1 -1
  102. package/dist/pam/player-management/contract/index.d.ts +10 -0
  103. package/dist/pam/player-management/contract/index.d.ts.map +1 -1
  104. package/dist/pam/player-management/plugin.d.ts +3 -0
  105. package/dist/pam/player-management/plugin.d.ts.map +1 -1
  106. package/dist/pam/player-management/router/index.d.ts +8 -0
  107. package/dist/pam/player-management/router/index.d.ts.map +1 -1
  108. package/dist/pam/player-management/service/player.service.d.ts +10 -0
  109. package/dist/pam/player-management/service/player.service.d.ts.map +1 -1
  110. package/dist/pam/player-note/plugin.d.ts +3 -0
  111. package/dist/pam/player-note/plugin.d.ts.map +1 -1
  112. package/dist/pam/profile/__tests__/profile.service.int.test.js +75 -0
  113. package/dist/pam/profile/__tests__/profile.service.int.test.js.map +1 -1
  114. package/dist/pam/profile/contract/index.d.ts +5 -0
  115. package/dist/pam/profile/contract/index.d.ts.map +1 -1
  116. package/dist/pam/profile/drizzle/migrations/0005_moaning_rachel_grey.sql +2 -0
  117. package/dist/pam/profile/drizzle/migrations/meta/0005_snapshot.json +242 -0
  118. package/dist/pam/profile/drizzle/migrations/meta/_journal.json +7 -0
  119. package/dist/pam/profile/plugin.d.ts +3 -0
  120. package/dist/pam/profile/plugin.d.ts.map +1 -1
  121. package/dist/pam/profile/react/profile.d.ts +5 -0
  122. package/dist/pam/profile/react/profile.d.ts.map +1 -1
  123. package/dist/pam/profile/router/index.d.ts +5 -0
  124. package/dist/pam/profile/router/index.d.ts.map +1 -1
  125. package/dist/pam/profile/schema/index.d.ts +34 -0
  126. package/dist/pam/profile/schema/index.d.ts.map +1 -1
  127. package/dist/pam/profile/schema/index.js +5 -0
  128. package/dist/pam/profile/schema/index.js.map +1 -1
  129. package/dist/pam/profile/service/profile.service.d.ts +11 -0
  130. package/dist/pam/profile/service/profile.service.d.ts.map +1 -1
  131. package/dist/pam/profile/service/profile.service.js +30 -5
  132. package/dist/pam/profile/service/profile.service.js.map +1 -1
  133. package/dist/pam/shared/player-mapper.d.ts +2 -0
  134. package/dist/pam/shared/player-mapper.d.ts.map +1 -1
  135. package/dist/pam/shared/player-mapper.js +2 -0
  136. package/dist/pam/shared/player-mapper.js.map +1 -1
  137. package/dist/pam/tag/plugin.d.ts +3 -0
  138. package/dist/pam/tag/plugin.d.ts.map +1 -1
  139. package/dist/server/runtime/core-token-catalog.d.ts +3 -0
  140. package/dist/server/runtime/core-token-catalog.d.ts.map +1 -1
  141. package/dist/testing/seed-player.d.ts +2 -0
  142. package/dist/testing/seed-player.d.ts.map +1 -1
  143. package/dist/wallet/plugin.d.ts +3 -0
  144. package/dist/wallet/plugin.d.ts.map +1 -1
  145. package/package.json +1 -1
@@ -0,0 +1,1544 @@
1
+ {
2
+ "id": "6781caa4-d666-47a9-b395-a58315092065",
3
+ "prevId": "b8b59387-269a-43f7-b2c4-7d62c96dc65b",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.chat_message": {
8
+ "name": "chat_message",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "uuid",
14
+ "primaryKey": true,
15
+ "notNull": true,
16
+ "default": "gen_random_uuid()"
17
+ },
18
+ "room_id": {
19
+ "name": "room_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": false
23
+ },
24
+ "user_id": {
25
+ "name": "user_id",
26
+ "type": "uuid",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "username": {
31
+ "name": "username",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "content": {
37
+ "name": "content",
38
+ "type": "text",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "type": {
43
+ "name": "type",
44
+ "type": "chat_message_type",
45
+ "typeSchema": "public",
46
+ "primaryKey": false,
47
+ "notNull": true,
48
+ "default": "'user'"
49
+ },
50
+ "metadata": {
51
+ "name": "metadata",
52
+ "type": "jsonb",
53
+ "primaryKey": false,
54
+ "notNull": false
55
+ },
56
+ "attachment": {
57
+ "name": "attachment",
58
+ "type": "jsonb",
59
+ "primaryKey": false,
60
+ "notNull": false
61
+ },
62
+ "is_deleted": {
63
+ "name": "is_deleted",
64
+ "type": "boolean",
65
+ "primaryKey": false,
66
+ "notNull": true,
67
+ "default": false
68
+ },
69
+ "deleted_at": {
70
+ "name": "deleted_at",
71
+ "type": "timestamp with time zone",
72
+ "primaryKey": false,
73
+ "notNull": false
74
+ },
75
+ "created_at": {
76
+ "name": "created_at",
77
+ "type": "timestamp with time zone",
78
+ "primaryKey": false,
79
+ "notNull": true,
80
+ "default": "now()"
81
+ }
82
+ },
83
+ "indexes": {
84
+ "chat_msg_room_id_created_at_idx": {
85
+ "name": "chat_msg_room_id_created_at_idx",
86
+ "columns": [
87
+ {
88
+ "expression": "room_id",
89
+ "isExpression": false,
90
+ "asc": true,
91
+ "nulls": "last"
92
+ },
93
+ {
94
+ "expression": "created_at",
95
+ "isExpression": false,
96
+ "asc": true,
97
+ "nulls": "last"
98
+ }
99
+ ],
100
+ "isUnique": false,
101
+ "concurrently": false,
102
+ "method": "btree",
103
+ "with": {}
104
+ },
105
+ "chat_msg_created_at_idx": {
106
+ "name": "chat_msg_created_at_idx",
107
+ "columns": [
108
+ {
109
+ "expression": "created_at",
110
+ "isExpression": false,
111
+ "asc": true,
112
+ "nulls": "last"
113
+ }
114
+ ],
115
+ "isUnique": false,
116
+ "concurrently": false,
117
+ "method": "btree",
118
+ "with": {}
119
+ },
120
+ "chat_msg_deleted_at_idx": {
121
+ "name": "chat_msg_deleted_at_idx",
122
+ "columns": [
123
+ {
124
+ "expression": "deleted_at",
125
+ "isExpression": false,
126
+ "asc": true,
127
+ "nulls": "last"
128
+ }
129
+ ],
130
+ "isUnique": false,
131
+ "concurrently": false,
132
+ "method": "btree",
133
+ "with": {}
134
+ },
135
+ "chat_msg_user_id_created_at_idx": {
136
+ "name": "chat_msg_user_id_created_at_idx",
137
+ "columns": [
138
+ {
139
+ "expression": "user_id",
140
+ "isExpression": false,
141
+ "asc": true,
142
+ "nulls": "last"
143
+ },
144
+ {
145
+ "expression": "created_at",
146
+ "isExpression": false,
147
+ "asc": true,
148
+ "nulls": "last"
149
+ }
150
+ ],
151
+ "isUnique": false,
152
+ "concurrently": false,
153
+ "method": "btree",
154
+ "with": {}
155
+ }
156
+ },
157
+ "foreignKeys": {
158
+ "chat_message_room_id_chat_room_id_fk": {
159
+ "name": "chat_message_room_id_chat_room_id_fk",
160
+ "tableFrom": "chat_message",
161
+ "tableTo": "chat_room",
162
+ "columnsFrom": ["room_id"],
163
+ "columnsTo": ["id"],
164
+ "onDelete": "cascade",
165
+ "onUpdate": "no action"
166
+ }
167
+ },
168
+ "compositePrimaryKeys": {},
169
+ "uniqueConstraints": {},
170
+ "policies": {},
171
+ "checkConstraints": {},
172
+ "isRLSEnabled": false
173
+ },
174
+ "public.chat_mute": {
175
+ "name": "chat_mute",
176
+ "schema": "",
177
+ "columns": {
178
+ "id": {
179
+ "name": "id",
180
+ "type": "uuid",
181
+ "primaryKey": true,
182
+ "notNull": true,
183
+ "default": "gen_random_uuid()"
184
+ },
185
+ "user_id": {
186
+ "name": "user_id",
187
+ "type": "uuid",
188
+ "primaryKey": false,
189
+ "notNull": true
190
+ },
191
+ "room_id": {
192
+ "name": "room_id",
193
+ "type": "uuid",
194
+ "primaryKey": false,
195
+ "notNull": false
196
+ },
197
+ "scope": {
198
+ "name": "scope",
199
+ "type": "chat_moderation_scope",
200
+ "typeSchema": "public",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "default": "'__global'"
204
+ },
205
+ "muted_by": {
206
+ "name": "muted_by",
207
+ "type": "uuid",
208
+ "primaryKey": false,
209
+ "notNull": true
210
+ },
211
+ "reason": {
212
+ "name": "reason",
213
+ "type": "text",
214
+ "primaryKey": false,
215
+ "notNull": true
216
+ },
217
+ "created_at": {
218
+ "name": "created_at",
219
+ "type": "timestamp with time zone",
220
+ "primaryKey": false,
221
+ "notNull": true,
222
+ "default": "now()"
223
+ },
224
+ "expires_at": {
225
+ "name": "expires_at",
226
+ "type": "timestamp with time zone",
227
+ "primaryKey": false,
228
+ "notNull": false
229
+ },
230
+ "lifted_at": {
231
+ "name": "lifted_at",
232
+ "type": "timestamp with time zone",
233
+ "primaryKey": false,
234
+ "notNull": false
235
+ },
236
+ "lifted_by": {
237
+ "name": "lifted_by",
238
+ "type": "uuid",
239
+ "primaryKey": false,
240
+ "notNull": false
241
+ },
242
+ "expiry_recorded_at": {
243
+ "name": "expiry_recorded_at",
244
+ "type": "timestamp with time zone",
245
+ "primaryKey": false,
246
+ "notNull": false
247
+ }
248
+ },
249
+ "indexes": {
250
+ "chat_mute_user_room_idx": {
251
+ "name": "chat_mute_user_room_idx",
252
+ "columns": [
253
+ {
254
+ "expression": "user_id",
255
+ "isExpression": false,
256
+ "asc": true,
257
+ "nulls": "last"
258
+ },
259
+ {
260
+ "expression": "room_id",
261
+ "isExpression": false,
262
+ "asc": true,
263
+ "nulls": "last"
264
+ }
265
+ ],
266
+ "isUnique": false,
267
+ "concurrently": false,
268
+ "method": "btree",
269
+ "with": {}
270
+ },
271
+ "chat_mute_expires_at_idx": {
272
+ "name": "chat_mute_expires_at_idx",
273
+ "columns": [
274
+ {
275
+ "expression": "expires_at",
276
+ "isExpression": false,
277
+ "asc": true,
278
+ "nulls": "last"
279
+ }
280
+ ],
281
+ "isUnique": false,
282
+ "concurrently": false,
283
+ "method": "btree",
284
+ "with": {}
285
+ }
286
+ },
287
+ "foreignKeys": {},
288
+ "compositePrimaryKeys": {},
289
+ "uniqueConstraints": {},
290
+ "policies": {},
291
+ "checkConstraints": {},
292
+ "isRLSEnabled": false
293
+ },
294
+ "public.chat_platform_ban": {
295
+ "name": "chat_platform_ban",
296
+ "schema": "",
297
+ "columns": {
298
+ "id": {
299
+ "name": "id",
300
+ "type": "uuid",
301
+ "primaryKey": true,
302
+ "notNull": true,
303
+ "default": "gen_random_uuid()"
304
+ },
305
+ "user_id": {
306
+ "name": "user_id",
307
+ "type": "uuid",
308
+ "primaryKey": false,
309
+ "notNull": true
310
+ },
311
+ "banned_by": {
312
+ "name": "banned_by",
313
+ "type": "uuid",
314
+ "primaryKey": false,
315
+ "notNull": true
316
+ },
317
+ "scope": {
318
+ "name": "scope",
319
+ "type": "chat_moderation_scope",
320
+ "typeSchema": "public",
321
+ "primaryKey": false,
322
+ "notNull": true,
323
+ "default": "'__all_public'"
324
+ },
325
+ "room_id": {
326
+ "name": "room_id",
327
+ "type": "uuid",
328
+ "primaryKey": false,
329
+ "notNull": false
330
+ },
331
+ "reason": {
332
+ "name": "reason",
333
+ "type": "text",
334
+ "primaryKey": false,
335
+ "notNull": true
336
+ },
337
+ "created_at": {
338
+ "name": "created_at",
339
+ "type": "timestamp with time zone",
340
+ "primaryKey": false,
341
+ "notNull": true,
342
+ "default": "now()"
343
+ },
344
+ "expires_at": {
345
+ "name": "expires_at",
346
+ "type": "timestamp with time zone",
347
+ "primaryKey": false,
348
+ "notNull": false
349
+ },
350
+ "lifted_at": {
351
+ "name": "lifted_at",
352
+ "type": "timestamp with time zone",
353
+ "primaryKey": false,
354
+ "notNull": false
355
+ },
356
+ "lifted_by": {
357
+ "name": "lifted_by",
358
+ "type": "uuid",
359
+ "primaryKey": false,
360
+ "notNull": false
361
+ },
362
+ "expiry_recorded_at": {
363
+ "name": "expiry_recorded_at",
364
+ "type": "timestamp with time zone",
365
+ "primaryKey": false,
366
+ "notNull": false
367
+ }
368
+ },
369
+ "indexes": {
370
+ "chat_platform_ban_active_scope_key": {
371
+ "name": "chat_platform_ban_active_scope_key",
372
+ "columns": [
373
+ {
374
+ "expression": "user_id",
375
+ "isExpression": false,
376
+ "asc": true,
377
+ "nulls": "last"
378
+ },
379
+ {
380
+ "expression": "scope",
381
+ "isExpression": false,
382
+ "asc": true,
383
+ "nulls": "last"
384
+ }
385
+ ],
386
+ "isUnique": true,
387
+ "where": "\"chat_platform_ban\".\"lifted_at\" IS NULL AND \"chat_platform_ban\".\"room_id\" IS NULL",
388
+ "concurrently": false,
389
+ "method": "btree",
390
+ "with": {}
391
+ },
392
+ "chat_platform_ban_active_room_key": {
393
+ "name": "chat_platform_ban_active_room_key",
394
+ "columns": [
395
+ {
396
+ "expression": "user_id",
397
+ "isExpression": false,
398
+ "asc": true,
399
+ "nulls": "last"
400
+ },
401
+ {
402
+ "expression": "scope",
403
+ "isExpression": false,
404
+ "asc": true,
405
+ "nulls": "last"
406
+ },
407
+ {
408
+ "expression": "room_id",
409
+ "isExpression": false,
410
+ "asc": true,
411
+ "nulls": "last"
412
+ }
413
+ ],
414
+ "isUnique": true,
415
+ "where": "\"chat_platform_ban\".\"lifted_at\" IS NULL AND \"chat_platform_ban\".\"room_id\" IS NOT NULL",
416
+ "concurrently": false,
417
+ "method": "btree",
418
+ "with": {}
419
+ },
420
+ "chat_platform_ban_user_idx": {
421
+ "name": "chat_platform_ban_user_idx",
422
+ "columns": [
423
+ {
424
+ "expression": "user_id",
425
+ "isExpression": false,
426
+ "asc": true,
427
+ "nulls": "last"
428
+ }
429
+ ],
430
+ "isUnique": false,
431
+ "concurrently": false,
432
+ "method": "btree",
433
+ "with": {}
434
+ },
435
+ "chat_platform_ban_expires_at_idx": {
436
+ "name": "chat_platform_ban_expires_at_idx",
437
+ "columns": [
438
+ {
439
+ "expression": "expires_at",
440
+ "isExpression": false,
441
+ "asc": true,
442
+ "nulls": "last"
443
+ }
444
+ ],
445
+ "isUnique": false,
446
+ "concurrently": false,
447
+ "method": "btree",
448
+ "with": {}
449
+ }
450
+ },
451
+ "foreignKeys": {
452
+ "chat_platform_ban_room_id_chat_room_id_fk": {
453
+ "name": "chat_platform_ban_room_id_chat_room_id_fk",
454
+ "tableFrom": "chat_platform_ban",
455
+ "tableTo": "chat_room",
456
+ "columnsFrom": ["room_id"],
457
+ "columnsTo": ["id"],
458
+ "onDelete": "cascade",
459
+ "onUpdate": "no action"
460
+ }
461
+ },
462
+ "compositePrimaryKeys": {},
463
+ "uniqueConstraints": {},
464
+ "policies": {},
465
+ "checkConstraints": {},
466
+ "isRLSEnabled": false
467
+ },
468
+ "public.chat_room": {
469
+ "name": "chat_room",
470
+ "schema": "",
471
+ "columns": {
472
+ "id": {
473
+ "name": "id",
474
+ "type": "uuid",
475
+ "primaryKey": true,
476
+ "notNull": true,
477
+ "default": "gen_random_uuid()"
478
+ },
479
+ "name": {
480
+ "name": "name",
481
+ "type": "text",
482
+ "primaryKey": false,
483
+ "notNull": true
484
+ },
485
+ "slug": {
486
+ "name": "slug",
487
+ "type": "text",
488
+ "primaryKey": false,
489
+ "notNull": true
490
+ },
491
+ "category": {
492
+ "name": "category",
493
+ "type": "chat_room_category",
494
+ "typeSchema": "public",
495
+ "primaryKey": false,
496
+ "notNull": false
497
+ },
498
+ "is_public": {
499
+ "name": "is_public",
500
+ "type": "boolean",
501
+ "primaryKey": false,
502
+ "notNull": true,
503
+ "default": true
504
+ },
505
+ "join_code": {
506
+ "name": "join_code",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false
510
+ },
511
+ "creator_id": {
512
+ "name": "creator_id",
513
+ "type": "uuid",
514
+ "primaryKey": false,
515
+ "notNull": false
516
+ },
517
+ "created_at": {
518
+ "name": "created_at",
519
+ "type": "timestamp with time zone",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "default": "now()"
523
+ },
524
+ "deleted_at": {
525
+ "name": "deleted_at",
526
+ "type": "timestamp with time zone",
527
+ "primaryKey": false,
528
+ "notNull": false
529
+ },
530
+ "scheduled_deletion_at": {
531
+ "name": "scheduled_deletion_at",
532
+ "type": "timestamp with time zone",
533
+ "primaryKey": false,
534
+ "notNull": false
535
+ }
536
+ },
537
+ "indexes": {
538
+ "chat_room_slug_key": {
539
+ "name": "chat_room_slug_key",
540
+ "columns": [
541
+ {
542
+ "expression": "slug",
543
+ "isExpression": false,
544
+ "asc": true,
545
+ "nulls": "last"
546
+ }
547
+ ],
548
+ "isUnique": true,
549
+ "concurrently": false,
550
+ "method": "btree",
551
+ "with": {}
552
+ },
553
+ "chat_room_join_code_key": {
554
+ "name": "chat_room_join_code_key",
555
+ "columns": [
556
+ {
557
+ "expression": "join_code",
558
+ "isExpression": false,
559
+ "asc": true,
560
+ "nulls": "last"
561
+ }
562
+ ],
563
+ "isUnique": true,
564
+ "concurrently": false,
565
+ "method": "btree",
566
+ "with": {}
567
+ },
568
+ "chat_room_deleted_at_idx": {
569
+ "name": "chat_room_deleted_at_idx",
570
+ "columns": [
571
+ {
572
+ "expression": "deleted_at",
573
+ "isExpression": false,
574
+ "asc": true,
575
+ "nulls": "last"
576
+ }
577
+ ],
578
+ "isUnique": false,
579
+ "concurrently": false,
580
+ "method": "btree",
581
+ "with": {}
582
+ },
583
+ "chat_room_creator_public_deleted_at_idx": {
584
+ "name": "chat_room_creator_public_deleted_at_idx",
585
+ "columns": [
586
+ {
587
+ "expression": "creator_id",
588
+ "isExpression": false,
589
+ "asc": true,
590
+ "nulls": "last"
591
+ },
592
+ {
593
+ "expression": "is_public",
594
+ "isExpression": false,
595
+ "asc": true,
596
+ "nulls": "last"
597
+ },
598
+ {
599
+ "expression": "deleted_at",
600
+ "isExpression": false,
601
+ "asc": true,
602
+ "nulls": "last"
603
+ }
604
+ ],
605
+ "isUnique": false,
606
+ "concurrently": false,
607
+ "method": "btree",
608
+ "with": {}
609
+ },
610
+ "chat_room_scheduled_deletion_idx": {
611
+ "name": "chat_room_scheduled_deletion_idx",
612
+ "columns": [
613
+ {
614
+ "expression": "scheduled_deletion_at",
615
+ "isExpression": false,
616
+ "asc": true,
617
+ "nulls": "last"
618
+ }
619
+ ],
620
+ "isUnique": false,
621
+ "where": "\"chat_room\".\"scheduled_deletion_at\" IS NOT NULL",
622
+ "concurrently": false,
623
+ "method": "btree",
624
+ "with": {}
625
+ }
626
+ },
627
+ "foreignKeys": {},
628
+ "compositePrimaryKeys": {},
629
+ "uniqueConstraints": {},
630
+ "policies": {},
631
+ "checkConstraints": {},
632
+ "isRLSEnabled": false
633
+ },
634
+ "public.chat_room_ban": {
635
+ "name": "chat_room_ban",
636
+ "schema": "",
637
+ "columns": {
638
+ "id": {
639
+ "name": "id",
640
+ "type": "uuid",
641
+ "primaryKey": true,
642
+ "notNull": true,
643
+ "default": "gen_random_uuid()"
644
+ },
645
+ "room_id": {
646
+ "name": "room_id",
647
+ "type": "uuid",
648
+ "primaryKey": false,
649
+ "notNull": true
650
+ },
651
+ "user_id": {
652
+ "name": "user_id",
653
+ "type": "uuid",
654
+ "primaryKey": false,
655
+ "notNull": true
656
+ },
657
+ "banned_by": {
658
+ "name": "banned_by",
659
+ "type": "uuid",
660
+ "primaryKey": false,
661
+ "notNull": true
662
+ },
663
+ "created_at": {
664
+ "name": "created_at",
665
+ "type": "timestamp with time zone",
666
+ "primaryKey": false,
667
+ "notNull": true,
668
+ "default": "now()"
669
+ },
670
+ "expires_at": {
671
+ "name": "expires_at",
672
+ "type": "timestamp with time zone",
673
+ "primaryKey": false,
674
+ "notNull": false
675
+ },
676
+ "lifted_at": {
677
+ "name": "lifted_at",
678
+ "type": "timestamp with time zone",
679
+ "primaryKey": false,
680
+ "notNull": false
681
+ },
682
+ "lifted_by": {
683
+ "name": "lifted_by",
684
+ "type": "uuid",
685
+ "primaryKey": false,
686
+ "notNull": false
687
+ }
688
+ },
689
+ "indexes": {
690
+ "chat_room_ban_active_room_user_key": {
691
+ "name": "chat_room_ban_active_room_user_key",
692
+ "columns": [
693
+ {
694
+ "expression": "room_id",
695
+ "isExpression": false,
696
+ "asc": true,
697
+ "nulls": "last"
698
+ },
699
+ {
700
+ "expression": "user_id",
701
+ "isExpression": false,
702
+ "asc": true,
703
+ "nulls": "last"
704
+ }
705
+ ],
706
+ "isUnique": true,
707
+ "where": "\"chat_room_ban\".\"lifted_at\" IS NULL",
708
+ "concurrently": false,
709
+ "method": "btree",
710
+ "with": {}
711
+ },
712
+ "chat_room_ban_room_idx": {
713
+ "name": "chat_room_ban_room_idx",
714
+ "columns": [
715
+ {
716
+ "expression": "room_id",
717
+ "isExpression": false,
718
+ "asc": true,
719
+ "nulls": "last"
720
+ }
721
+ ],
722
+ "isUnique": false,
723
+ "concurrently": false,
724
+ "method": "btree",
725
+ "with": {}
726
+ },
727
+ "chat_room_ban_user_idx": {
728
+ "name": "chat_room_ban_user_idx",
729
+ "columns": [
730
+ {
731
+ "expression": "user_id",
732
+ "isExpression": false,
733
+ "asc": true,
734
+ "nulls": "last"
735
+ }
736
+ ],
737
+ "isUnique": false,
738
+ "concurrently": false,
739
+ "method": "btree",
740
+ "with": {}
741
+ },
742
+ "chat_room_ban_expires_at_idx": {
743
+ "name": "chat_room_ban_expires_at_idx",
744
+ "columns": [
745
+ {
746
+ "expression": "expires_at",
747
+ "isExpression": false,
748
+ "asc": true,
749
+ "nulls": "last"
750
+ }
751
+ ],
752
+ "isUnique": false,
753
+ "concurrently": false,
754
+ "method": "btree",
755
+ "with": {}
756
+ }
757
+ },
758
+ "foreignKeys": {
759
+ "chat_room_ban_room_id_chat_room_id_fk": {
760
+ "name": "chat_room_ban_room_id_chat_room_id_fk",
761
+ "tableFrom": "chat_room_ban",
762
+ "tableTo": "chat_room",
763
+ "columnsFrom": ["room_id"],
764
+ "columnsTo": ["id"],
765
+ "onDelete": "cascade",
766
+ "onUpdate": "no action"
767
+ }
768
+ },
769
+ "compositePrimaryKeys": {},
770
+ "uniqueConstraints": {},
771
+ "policies": {},
772
+ "checkConstraints": {},
773
+ "isRLSEnabled": false
774
+ },
775
+ "public.chat_room_configuration": {
776
+ "name": "chat_room_configuration",
777
+ "schema": "",
778
+ "columns": {
779
+ "id": {
780
+ "name": "id",
781
+ "type": "uuid",
782
+ "primaryKey": true,
783
+ "notNull": true,
784
+ "default": "gen_random_uuid()"
785
+ },
786
+ "room_id": {
787
+ "name": "room_id",
788
+ "type": "uuid",
789
+ "primaryKey": false,
790
+ "notNull": true
791
+ },
792
+ "slow_mode": {
793
+ "name": "slow_mode",
794
+ "type": "boolean",
795
+ "primaryKey": false,
796
+ "notNull": true,
797
+ "default": false
798
+ },
799
+ "slow_mode_seconds": {
800
+ "name": "slow_mode_seconds",
801
+ "type": "integer",
802
+ "primaryKey": false,
803
+ "notNull": true,
804
+ "default": 0
805
+ },
806
+ "read_only_mode": {
807
+ "name": "read_only_mode",
808
+ "type": "boolean",
809
+ "primaryKey": false,
810
+ "notNull": true,
811
+ "default": false
812
+ },
813
+ "only_invited_can_join": {
814
+ "name": "only_invited_can_join",
815
+ "type": "boolean",
816
+ "primaryKey": false,
817
+ "notNull": true,
818
+ "default": false
819
+ },
820
+ "lock_room": {
821
+ "name": "lock_room",
822
+ "type": "boolean",
823
+ "primaryKey": false,
824
+ "notNull": true,
825
+ "default": false
826
+ },
827
+ "moderator_invite": {
828
+ "name": "moderator_invite",
829
+ "type": "boolean",
830
+ "primaryKey": false,
831
+ "notNull": true,
832
+ "default": false
833
+ },
834
+ "created_at": {
835
+ "name": "created_at",
836
+ "type": "timestamp with time zone",
837
+ "primaryKey": false,
838
+ "notNull": true,
839
+ "default": "now()"
840
+ },
841
+ "updated_at": {
842
+ "name": "updated_at",
843
+ "type": "timestamp with time zone",
844
+ "primaryKey": false,
845
+ "notNull": true,
846
+ "default": "now()"
847
+ }
848
+ },
849
+ "indexes": {
850
+ "chat_room_configuration_room_key": {
851
+ "name": "chat_room_configuration_room_key",
852
+ "columns": [
853
+ {
854
+ "expression": "room_id",
855
+ "isExpression": false,
856
+ "asc": true,
857
+ "nulls": "last"
858
+ }
859
+ ],
860
+ "isUnique": true,
861
+ "concurrently": false,
862
+ "method": "btree",
863
+ "with": {}
864
+ }
865
+ },
866
+ "foreignKeys": {
867
+ "chat_room_configuration_room_id_chat_room_id_fk": {
868
+ "name": "chat_room_configuration_room_id_chat_room_id_fk",
869
+ "tableFrom": "chat_room_configuration",
870
+ "tableTo": "chat_room",
871
+ "columnsFrom": ["room_id"],
872
+ "columnsTo": ["id"],
873
+ "onDelete": "cascade",
874
+ "onUpdate": "no action"
875
+ }
876
+ },
877
+ "compositePrimaryKeys": {},
878
+ "uniqueConstraints": {},
879
+ "policies": {},
880
+ "checkConstraints": {},
881
+ "isRLSEnabled": false
882
+ },
883
+ "public.chat_room_member": {
884
+ "name": "chat_room_member",
885
+ "schema": "",
886
+ "columns": {
887
+ "id": {
888
+ "name": "id",
889
+ "type": "uuid",
890
+ "primaryKey": true,
891
+ "notNull": true,
892
+ "default": "gen_random_uuid()"
893
+ },
894
+ "room_id": {
895
+ "name": "room_id",
896
+ "type": "uuid",
897
+ "primaryKey": false,
898
+ "notNull": true
899
+ },
900
+ "user_id": {
901
+ "name": "user_id",
902
+ "type": "uuid",
903
+ "primaryKey": false,
904
+ "notNull": true
905
+ },
906
+ "role": {
907
+ "name": "role",
908
+ "type": "chat_room_role",
909
+ "typeSchema": "public",
910
+ "primaryKey": false,
911
+ "notNull": true,
912
+ "default": "'member'"
913
+ },
914
+ "role_assigned_at": {
915
+ "name": "role_assigned_at",
916
+ "type": "timestamp with time zone",
917
+ "primaryKey": false,
918
+ "notNull": false
919
+ },
920
+ "account_closed_at": {
921
+ "name": "account_closed_at",
922
+ "type": "timestamp with time zone",
923
+ "primaryKey": false,
924
+ "notNull": false
925
+ },
926
+ "joined_at": {
927
+ "name": "joined_at",
928
+ "type": "timestamp with time zone",
929
+ "primaryKey": false,
930
+ "notNull": true,
931
+ "default": "now()"
932
+ }
933
+ },
934
+ "indexes": {
935
+ "chat_room_member_room_user_key": {
936
+ "name": "chat_room_member_room_user_key",
937
+ "columns": [
938
+ {
939
+ "expression": "room_id",
940
+ "isExpression": false,
941
+ "asc": true,
942
+ "nulls": "last"
943
+ },
944
+ {
945
+ "expression": "user_id",
946
+ "isExpression": false,
947
+ "asc": true,
948
+ "nulls": "last"
949
+ }
950
+ ],
951
+ "isUnique": true,
952
+ "concurrently": false,
953
+ "method": "btree",
954
+ "with": {}
955
+ },
956
+ "chat_room_member_room_idx": {
957
+ "name": "chat_room_member_room_idx",
958
+ "columns": [
959
+ {
960
+ "expression": "room_id",
961
+ "isExpression": false,
962
+ "asc": true,
963
+ "nulls": "last"
964
+ }
965
+ ],
966
+ "isUnique": false,
967
+ "concurrently": false,
968
+ "method": "btree",
969
+ "with": {}
970
+ },
971
+ "chat_room_member_user_idx": {
972
+ "name": "chat_room_member_user_idx",
973
+ "columns": [
974
+ {
975
+ "expression": "user_id",
976
+ "isExpression": false,
977
+ "asc": true,
978
+ "nulls": "last"
979
+ }
980
+ ],
981
+ "isUnique": false,
982
+ "concurrently": false,
983
+ "method": "btree",
984
+ "with": {}
985
+ }
986
+ },
987
+ "foreignKeys": {
988
+ "chat_room_member_room_id_chat_room_id_fk": {
989
+ "name": "chat_room_member_room_id_chat_room_id_fk",
990
+ "tableFrom": "chat_room_member",
991
+ "tableTo": "chat_room",
992
+ "columnsFrom": ["room_id"],
993
+ "columnsTo": ["id"],
994
+ "onDelete": "cascade",
995
+ "onUpdate": "no action"
996
+ }
997
+ },
998
+ "compositePrimaryKeys": {},
999
+ "uniqueConstraints": {},
1000
+ "policies": {},
1001
+ "checkConstraints": {},
1002
+ "isRLSEnabled": false
1003
+ },
1004
+ "public.chat_room_mute": {
1005
+ "name": "chat_room_mute",
1006
+ "schema": "",
1007
+ "columns": {
1008
+ "id": {
1009
+ "name": "id",
1010
+ "type": "uuid",
1011
+ "primaryKey": true,
1012
+ "notNull": true,
1013
+ "default": "gen_random_uuid()"
1014
+ },
1015
+ "room_id": {
1016
+ "name": "room_id",
1017
+ "type": "uuid",
1018
+ "primaryKey": false,
1019
+ "notNull": true
1020
+ },
1021
+ "user_id": {
1022
+ "name": "user_id",
1023
+ "type": "uuid",
1024
+ "primaryKey": false,
1025
+ "notNull": true
1026
+ },
1027
+ "muted_by": {
1028
+ "name": "muted_by",
1029
+ "type": "uuid",
1030
+ "primaryKey": false,
1031
+ "notNull": true
1032
+ },
1033
+ "reason": {
1034
+ "name": "reason",
1035
+ "type": "text",
1036
+ "primaryKey": false,
1037
+ "notNull": true
1038
+ },
1039
+ "created_at": {
1040
+ "name": "created_at",
1041
+ "type": "timestamp with time zone",
1042
+ "primaryKey": false,
1043
+ "notNull": true,
1044
+ "default": "now()"
1045
+ },
1046
+ "expires_at": {
1047
+ "name": "expires_at",
1048
+ "type": "timestamp with time zone",
1049
+ "primaryKey": false,
1050
+ "notNull": false
1051
+ },
1052
+ "lifted_at": {
1053
+ "name": "lifted_at",
1054
+ "type": "timestamp with time zone",
1055
+ "primaryKey": false,
1056
+ "notNull": false
1057
+ },
1058
+ "lifted_by": {
1059
+ "name": "lifted_by",
1060
+ "type": "uuid",
1061
+ "primaryKey": false,
1062
+ "notNull": false
1063
+ }
1064
+ },
1065
+ "indexes": {
1066
+ "chat_room_mute_active_room_user_key": {
1067
+ "name": "chat_room_mute_active_room_user_key",
1068
+ "columns": [
1069
+ {
1070
+ "expression": "room_id",
1071
+ "isExpression": false,
1072
+ "asc": true,
1073
+ "nulls": "last"
1074
+ },
1075
+ {
1076
+ "expression": "user_id",
1077
+ "isExpression": false,
1078
+ "asc": true,
1079
+ "nulls": "last"
1080
+ }
1081
+ ],
1082
+ "isUnique": true,
1083
+ "where": "\"chat_room_mute\".\"lifted_at\" IS NULL",
1084
+ "concurrently": false,
1085
+ "method": "btree",
1086
+ "with": {}
1087
+ },
1088
+ "chat_room_mute_room_user_idx": {
1089
+ "name": "chat_room_mute_room_user_idx",
1090
+ "columns": [
1091
+ {
1092
+ "expression": "room_id",
1093
+ "isExpression": false,
1094
+ "asc": true,
1095
+ "nulls": "last"
1096
+ },
1097
+ {
1098
+ "expression": "user_id",
1099
+ "isExpression": false,
1100
+ "asc": true,
1101
+ "nulls": "last"
1102
+ }
1103
+ ],
1104
+ "isUnique": false,
1105
+ "concurrently": false,
1106
+ "method": "btree",
1107
+ "with": {}
1108
+ },
1109
+ "chat_room_mute_expires_at_idx": {
1110
+ "name": "chat_room_mute_expires_at_idx",
1111
+ "columns": [
1112
+ {
1113
+ "expression": "expires_at",
1114
+ "isExpression": false,
1115
+ "asc": true,
1116
+ "nulls": "last"
1117
+ }
1118
+ ],
1119
+ "isUnique": false,
1120
+ "concurrently": false,
1121
+ "method": "btree",
1122
+ "with": {}
1123
+ }
1124
+ },
1125
+ "foreignKeys": {
1126
+ "chat_room_mute_room_id_chat_room_id_fk": {
1127
+ "name": "chat_room_mute_room_id_chat_room_id_fk",
1128
+ "tableFrom": "chat_room_mute",
1129
+ "tableTo": "chat_room",
1130
+ "columnsFrom": ["room_id"],
1131
+ "columnsTo": ["id"],
1132
+ "onDelete": "cascade",
1133
+ "onUpdate": "no action"
1134
+ }
1135
+ },
1136
+ "compositePrimaryKeys": {},
1137
+ "uniqueConstraints": {},
1138
+ "policies": {},
1139
+ "checkConstraints": {},
1140
+ "isRLSEnabled": false
1141
+ },
1142
+ "public.chat_room_remove": {
1143
+ "name": "chat_room_remove",
1144
+ "schema": "",
1145
+ "columns": {
1146
+ "id": {
1147
+ "name": "id",
1148
+ "type": "uuid",
1149
+ "primaryKey": true,
1150
+ "notNull": true,
1151
+ "default": "gen_random_uuid()"
1152
+ },
1153
+ "room_id": {
1154
+ "name": "room_id",
1155
+ "type": "uuid",
1156
+ "primaryKey": false,
1157
+ "notNull": true
1158
+ },
1159
+ "user_id": {
1160
+ "name": "user_id",
1161
+ "type": "uuid",
1162
+ "primaryKey": false,
1163
+ "notNull": true
1164
+ },
1165
+ "removed_by": {
1166
+ "name": "removed_by",
1167
+ "type": "uuid",
1168
+ "primaryKey": false,
1169
+ "notNull": true
1170
+ },
1171
+ "reason": {
1172
+ "name": "reason",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": true
1176
+ },
1177
+ "created_at": {
1178
+ "name": "created_at",
1179
+ "type": "timestamp with time zone",
1180
+ "primaryKey": false,
1181
+ "notNull": true,
1182
+ "default": "now()"
1183
+ }
1184
+ },
1185
+ "indexes": {
1186
+ "chat_room_remove_room_created_at_idx": {
1187
+ "name": "chat_room_remove_room_created_at_idx",
1188
+ "columns": [
1189
+ {
1190
+ "expression": "room_id",
1191
+ "isExpression": false,
1192
+ "asc": true,
1193
+ "nulls": "last"
1194
+ },
1195
+ {
1196
+ "expression": "created_at",
1197
+ "isExpression": false,
1198
+ "asc": true,
1199
+ "nulls": "last"
1200
+ }
1201
+ ],
1202
+ "isUnique": false,
1203
+ "concurrently": false,
1204
+ "method": "btree",
1205
+ "with": {}
1206
+ },
1207
+ "chat_room_remove_user_idx": {
1208
+ "name": "chat_room_remove_user_idx",
1209
+ "columns": [
1210
+ {
1211
+ "expression": "user_id",
1212
+ "isExpression": false,
1213
+ "asc": true,
1214
+ "nulls": "last"
1215
+ }
1216
+ ],
1217
+ "isUnique": false,
1218
+ "concurrently": false,
1219
+ "method": "btree",
1220
+ "with": {}
1221
+ }
1222
+ },
1223
+ "foreignKeys": {
1224
+ "chat_room_remove_room_id_chat_room_id_fk": {
1225
+ "name": "chat_room_remove_room_id_chat_room_id_fk",
1226
+ "tableFrom": "chat_room_remove",
1227
+ "tableTo": "chat_room",
1228
+ "columnsFrom": ["room_id"],
1229
+ "columnsTo": ["id"],
1230
+ "onDelete": "cascade",
1231
+ "onUpdate": "no action"
1232
+ }
1233
+ },
1234
+ "compositePrimaryKeys": {},
1235
+ "uniqueConstraints": {},
1236
+ "policies": {},
1237
+ "checkConstraints": {},
1238
+ "isRLSEnabled": false
1239
+ },
1240
+ "public.chat_room_rule": {
1241
+ "name": "chat_room_rule",
1242
+ "schema": "",
1243
+ "columns": {
1244
+ "id": {
1245
+ "name": "id",
1246
+ "type": "uuid",
1247
+ "primaryKey": true,
1248
+ "notNull": true,
1249
+ "default": "gen_random_uuid()"
1250
+ },
1251
+ "room_id": {
1252
+ "name": "room_id",
1253
+ "type": "uuid",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "created_by": {
1258
+ "name": "created_by",
1259
+ "type": "uuid",
1260
+ "primaryKey": false,
1261
+ "notNull": true
1262
+ },
1263
+ "order_num": {
1264
+ "name": "order_num",
1265
+ "type": "integer",
1266
+ "primaryKey": false,
1267
+ "notNull": true
1268
+ },
1269
+ "content": {
1270
+ "name": "content",
1271
+ "type": "text",
1272
+ "primaryKey": false,
1273
+ "notNull": true
1274
+ },
1275
+ "created_at": {
1276
+ "name": "created_at",
1277
+ "type": "timestamp with time zone",
1278
+ "primaryKey": false,
1279
+ "notNull": true,
1280
+ "default": "now()"
1281
+ },
1282
+ "updated_at": {
1283
+ "name": "updated_at",
1284
+ "type": "timestamp with time zone",
1285
+ "primaryKey": false,
1286
+ "notNull": true,
1287
+ "default": "now()"
1288
+ }
1289
+ },
1290
+ "indexes": {
1291
+ "chat_room_rule_room_order_idx": {
1292
+ "name": "chat_room_rule_room_order_idx",
1293
+ "columns": [
1294
+ {
1295
+ "expression": "room_id",
1296
+ "isExpression": false,
1297
+ "asc": true,
1298
+ "nulls": "last"
1299
+ },
1300
+ {
1301
+ "expression": "order_num",
1302
+ "isExpression": false,
1303
+ "asc": true,
1304
+ "nulls": "last"
1305
+ }
1306
+ ],
1307
+ "isUnique": false,
1308
+ "concurrently": false,
1309
+ "method": "btree",
1310
+ "with": {}
1311
+ },
1312
+ "chat_room_rule_room_idx": {
1313
+ "name": "chat_room_rule_room_idx",
1314
+ "columns": [
1315
+ {
1316
+ "expression": "room_id",
1317
+ "isExpression": false,
1318
+ "asc": true,
1319
+ "nulls": "last"
1320
+ }
1321
+ ],
1322
+ "isUnique": false,
1323
+ "concurrently": false,
1324
+ "method": "btree",
1325
+ "with": {}
1326
+ }
1327
+ },
1328
+ "foreignKeys": {
1329
+ "chat_room_rule_room_id_chat_room_id_fk": {
1330
+ "name": "chat_room_rule_room_id_chat_room_id_fk",
1331
+ "tableFrom": "chat_room_rule",
1332
+ "tableTo": "chat_room",
1333
+ "columnsFrom": ["room_id"],
1334
+ "columnsTo": ["id"],
1335
+ "onDelete": "cascade",
1336
+ "onUpdate": "no action"
1337
+ }
1338
+ },
1339
+ "compositePrimaryKeys": {},
1340
+ "uniqueConstraints": {},
1341
+ "policies": {},
1342
+ "checkConstraints": {},
1343
+ "isRLSEnabled": false
1344
+ },
1345
+ "public.chat_user_block": {
1346
+ "name": "chat_user_block",
1347
+ "schema": "",
1348
+ "columns": {
1349
+ "id": {
1350
+ "name": "id",
1351
+ "type": "uuid",
1352
+ "primaryKey": true,
1353
+ "notNull": true,
1354
+ "default": "gen_random_uuid()"
1355
+ },
1356
+ "blocker_id": {
1357
+ "name": "blocker_id",
1358
+ "type": "uuid",
1359
+ "primaryKey": false,
1360
+ "notNull": true
1361
+ },
1362
+ "blocked_id": {
1363
+ "name": "blocked_id",
1364
+ "type": "uuid",
1365
+ "primaryKey": false,
1366
+ "notNull": true
1367
+ },
1368
+ "created_at": {
1369
+ "name": "created_at",
1370
+ "type": "timestamp with time zone",
1371
+ "primaryKey": false,
1372
+ "notNull": true,
1373
+ "default": "now()"
1374
+ },
1375
+ "removed_at": {
1376
+ "name": "removed_at",
1377
+ "type": "timestamp with time zone",
1378
+ "primaryKey": false,
1379
+ "notNull": false
1380
+ }
1381
+ },
1382
+ "indexes": {
1383
+ "chat_user_block_pair_key": {
1384
+ "name": "chat_user_block_pair_key",
1385
+ "columns": [
1386
+ {
1387
+ "expression": "blocker_id",
1388
+ "isExpression": false,
1389
+ "asc": true,
1390
+ "nulls": "last"
1391
+ },
1392
+ {
1393
+ "expression": "blocked_id",
1394
+ "isExpression": false,
1395
+ "asc": true,
1396
+ "nulls": "last"
1397
+ }
1398
+ ],
1399
+ "isUnique": true,
1400
+ "where": "\"chat_user_block\".\"removed_at\" IS NULL",
1401
+ "concurrently": false,
1402
+ "method": "btree",
1403
+ "with": {}
1404
+ },
1405
+ "chat_user_block_blocker_idx": {
1406
+ "name": "chat_user_block_blocker_idx",
1407
+ "columns": [
1408
+ {
1409
+ "expression": "blocker_id",
1410
+ "isExpression": false,
1411
+ "asc": true,
1412
+ "nulls": "last"
1413
+ }
1414
+ ],
1415
+ "isUnique": false,
1416
+ "concurrently": false,
1417
+ "method": "btree",
1418
+ "with": {}
1419
+ }
1420
+ },
1421
+ "foreignKeys": {},
1422
+ "compositePrimaryKeys": {},
1423
+ "uniqueConstraints": {},
1424
+ "policies": {},
1425
+ "checkConstraints": {},
1426
+ "isRLSEnabled": false
1427
+ },
1428
+ "public.chat_user_ignore": {
1429
+ "name": "chat_user_ignore",
1430
+ "schema": "",
1431
+ "columns": {
1432
+ "id": {
1433
+ "name": "id",
1434
+ "type": "uuid",
1435
+ "primaryKey": true,
1436
+ "notNull": true,
1437
+ "default": "gen_random_uuid()"
1438
+ },
1439
+ "ignorer_id": {
1440
+ "name": "ignorer_id",
1441
+ "type": "uuid",
1442
+ "primaryKey": false,
1443
+ "notNull": true
1444
+ },
1445
+ "ignored_id": {
1446
+ "name": "ignored_id",
1447
+ "type": "uuid",
1448
+ "primaryKey": false,
1449
+ "notNull": true
1450
+ },
1451
+ "created_at": {
1452
+ "name": "created_at",
1453
+ "type": "timestamp with time zone",
1454
+ "primaryKey": false,
1455
+ "notNull": true,
1456
+ "default": "now()"
1457
+ },
1458
+ "removed_at": {
1459
+ "name": "removed_at",
1460
+ "type": "timestamp with time zone",
1461
+ "primaryKey": false,
1462
+ "notNull": false
1463
+ }
1464
+ },
1465
+ "indexes": {
1466
+ "chat_user_ignore_pair_key": {
1467
+ "name": "chat_user_ignore_pair_key",
1468
+ "columns": [
1469
+ {
1470
+ "expression": "ignorer_id",
1471
+ "isExpression": false,
1472
+ "asc": true,
1473
+ "nulls": "last"
1474
+ },
1475
+ {
1476
+ "expression": "ignored_id",
1477
+ "isExpression": false,
1478
+ "asc": true,
1479
+ "nulls": "last"
1480
+ }
1481
+ ],
1482
+ "isUnique": true,
1483
+ "where": "\"chat_user_ignore\".\"removed_at\" IS NULL",
1484
+ "concurrently": false,
1485
+ "method": "btree",
1486
+ "with": {}
1487
+ },
1488
+ "chat_user_ignore_ignorer_idx": {
1489
+ "name": "chat_user_ignore_ignorer_idx",
1490
+ "columns": [
1491
+ {
1492
+ "expression": "ignorer_id",
1493
+ "isExpression": false,
1494
+ "asc": true,
1495
+ "nulls": "last"
1496
+ }
1497
+ ],
1498
+ "isUnique": false,
1499
+ "concurrently": false,
1500
+ "method": "btree",
1501
+ "with": {}
1502
+ }
1503
+ },
1504
+ "foreignKeys": {},
1505
+ "compositePrimaryKeys": {},
1506
+ "uniqueConstraints": {},
1507
+ "policies": {},
1508
+ "checkConstraints": {},
1509
+ "isRLSEnabled": false
1510
+ }
1511
+ },
1512
+ "enums": {
1513
+ "public.chat_message_type": {
1514
+ "name": "chat_message_type",
1515
+ "schema": "public",
1516
+ "values": ["user", "system"]
1517
+ },
1518
+ "public.chat_moderation_scope": {
1519
+ "name": "chat_moderation_scope",
1520
+ "schema": "public",
1521
+ "values": ["__global", "__all_public", "__all", "room"]
1522
+ },
1523
+ "public.chat_room_category": {
1524
+ "name": "chat_room_category",
1525
+ "schema": "public",
1526
+ "values": ["games-sports", "regions", "languages", "private-channels"]
1527
+ },
1528
+ "public.chat_room_role": {
1529
+ "name": "chat_room_role",
1530
+ "schema": "public",
1531
+ "values": ["member", "moderator", "owner"]
1532
+ }
1533
+ },
1534
+ "schemas": {},
1535
+ "sequences": {},
1536
+ "roles": {},
1537
+ "policies": {},
1538
+ "views": {},
1539
+ "_meta": {
1540
+ "columns": {},
1541
+ "schemas": {},
1542
+ "tables": {}
1543
+ }
1544
+ }