@openora/core 0.4.1-canary.278 → 0.4.1-canary.280

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 (165) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/admin-console/contract/index.d.ts +6 -0
  3. package/dist/admin-console/contract/index.d.ts.map +1 -1
  4. package/dist/admin-console/plugin.d.ts +1 -0
  5. package/dist/admin-console/plugin.d.ts.map +1 -1
  6. package/dist/admin-console/router/index.d.ts +3 -0
  7. package/dist/admin-console/router/index.d.ts.map +1 -1
  8. package/dist/analytics/plugin.d.ts +1 -0
  9. package/dist/analytics/plugin.d.ts.map +1 -1
  10. package/dist/audit/plugin.d.ts +1 -0
  11. package/dist/audit/plugin.d.ts.map +1 -1
  12. package/dist/casino/gaming/plugin.d.ts +1 -0
  13. package/dist/casino/gaming/plugin.d.ts.map +1 -1
  14. package/dist/casino/lobby/plugin.d.ts +1 -0
  15. package/dist/casino/lobby/plugin.d.ts.map +1 -1
  16. package/dist/cms/plugin.d.ts +1 -0
  17. package/dist/cms/plugin.d.ts.map +1 -1
  18. package/dist/compliance/__tests__/rg-monitoring.service.int.test.js +11 -0
  19. package/dist/compliance/__tests__/rg-monitoring.service.int.test.js.map +1 -1
  20. package/dist/compliance/plugin.d.ts +1 -0
  21. package/dist/compliance/plugin.d.ts.map +1 -1
  22. package/dist/compliance/service/rg-monitoring.service.d.ts.map +1 -1
  23. package/dist/compliance/service/rg-monitoring.service.js +6 -2
  24. package/dist/compliance/service/rg-monitoring.service.js.map +1 -1
  25. package/dist/contracts/adapters/deposit-hold.d.ts +25 -0
  26. package/dist/contracts/adapters/deposit-hold.d.ts.map +1 -0
  27. package/dist/contracts/adapters/deposit-hold.js +3 -0
  28. package/dist/contracts/adapters/deposit-hold.js.map +1 -0
  29. package/dist/contracts/adapters/index.d.ts +2 -0
  30. package/dist/contracts/adapters/index.d.ts.map +1 -1
  31. package/dist/contracts/adapters/index.js +1 -0
  32. package/dist/contracts/adapters/index.js.map +1 -1
  33. package/dist/contracts/adapters/payment.d.ts +11 -0
  34. package/dist/contracts/adapters/payment.d.ts.map +1 -1
  35. package/dist/contracts/adapters/payment.js.map +1 -1
  36. package/dist/contracts/adapters/play-eligibility.d.ts +4 -1
  37. package/dist/contracts/adapters/play-eligibility.d.ts.map +1 -1
  38. package/dist/contracts/adapters/play-eligibility.js.map +1 -1
  39. package/dist/contracts/schemas/events.d.ts +7 -0
  40. package/dist/contracts/schemas/events.d.ts.map +1 -1
  41. package/dist/contracts/schemas/events.js +3 -0
  42. package/dist/contracts/schemas/events.js.map +1 -1
  43. package/dist/contracts/schemas/mail.d.ts +15 -1
  44. package/dist/contracts/schemas/mail.d.ts.map +1 -1
  45. package/dist/contracts/schemas/mail.js +3 -0
  46. package/dist/contracts/schemas/mail.js.map +1 -1
  47. package/dist/contracts/schemas/wallet-tx.d.ts +4 -2
  48. package/dist/contracts/schemas/wallet-tx.d.ts.map +1 -1
  49. package/dist/contracts/schemas/wallet-tx.js +3 -0
  50. package/dist/contracts/schemas/wallet-tx.js.map +1 -1
  51. package/dist/engagement/chat/__tests__/context-rooms.int.test.js +25 -0
  52. package/dist/engagement/chat/__tests__/context-rooms.int.test.js.map +1 -1
  53. package/dist/engagement/chat/drizzle/migrations/0021_chat_message_created_at_clock.sql +1 -0
  54. package/dist/engagement/chat/drizzle/migrations/meta/0021_snapshot.json +2100 -0
  55. package/dist/engagement/chat/drizzle/migrations/meta/_journal.json +7 -0
  56. package/dist/engagement/chat/plugin.d.ts +1 -0
  57. package/dist/engagement/chat/plugin.d.ts.map +1 -1
  58. package/dist/engagement/chat/schema/index.d.ts.map +1 -1
  59. package/dist/engagement/chat/schema/index.js +3 -1
  60. package/dist/engagement/chat/schema/index.js.map +1 -1
  61. package/dist/engagement/chat-commands/plugin.d.ts +1 -0
  62. package/dist/engagement/chat-commands/plugin.d.ts.map +1 -1
  63. package/dist/engagement/notifications/__tests__/notification-event-map.test.js +20 -0
  64. package/dist/engagement/notifications/__tests__/notification-event-map.test.js.map +1 -1
  65. package/dist/engagement/notifications/contract/index.d.ts +7 -3
  66. package/dist/engagement/notifications/contract/index.d.ts.map +1 -1
  67. package/dist/engagement/notifications/contract/index.js +1 -0
  68. package/dist/engagement/notifications/contract/index.js.map +1 -1
  69. package/dist/engagement/notifications/plugin.d.ts +1 -0
  70. package/dist/engagement/notifications/plugin.d.ts.map +1 -1
  71. package/dist/engagement/notifications/plugin.js +17 -0
  72. package/dist/engagement/notifications/plugin.js.map +1 -1
  73. package/dist/engagement/notifications/router/index.d.ts +3 -2
  74. package/dist/engagement/notifications/router/index.d.ts.map +1 -1
  75. package/dist/engagement/social/plugin.d.ts +1 -0
  76. package/dist/engagement/social/plugin.d.ts.map +1 -1
  77. package/dist/fx/exchange-rate/plugin.d.ts +1 -0
  78. package/dist/fx/exchange-rate/plugin.d.ts.map +1 -1
  79. package/dist/iam/plugin.d.ts +1 -0
  80. package/dist/iam/plugin.d.ts.map +1 -1
  81. package/dist/mail/adapters/default-email-template-renderer.d.ts.map +1 -1
  82. package/dist/mail/adapters/default-email-template-renderer.js +5 -0
  83. package/dist/mail/adapters/default-email-template-renderer.js.map +1 -1
  84. package/dist/mail/contract/index.d.ts +8 -0
  85. package/dist/mail/contract/index.d.ts.map +1 -1
  86. package/dist/mail/plugin.d.ts +1 -0
  87. package/dist/mail/plugin.d.ts.map +1 -1
  88. package/dist/pam/identity/__tests__/play-eligibility.service.int.test.js +17 -0
  89. package/dist/pam/identity/__tests__/play-eligibility.service.int.test.js.map +1 -1
  90. package/dist/pam/identity/plugin.d.ts +1 -0
  91. package/dist/pam/identity/plugin.d.ts.map +1 -1
  92. package/dist/pam/identity/service/play-eligibility.service.d.ts.map +1 -1
  93. package/dist/pam/identity/service/play-eligibility.service.js +2 -1
  94. package/dist/pam/identity/service/play-eligibility.service.js.map +1 -1
  95. package/dist/pam/player-management/plugin.d.ts +1 -0
  96. package/dist/pam/player-management/plugin.d.ts.map +1 -1
  97. package/dist/pam/player-note/plugin.d.ts +1 -0
  98. package/dist/pam/player-note/plugin.d.ts.map +1 -1
  99. package/dist/pam/profile/plugin.d.ts +1 -0
  100. package/dist/pam/profile/plugin.d.ts.map +1 -1
  101. package/dist/pam/tag/plugin.d.ts +1 -0
  102. package/dist/pam/tag/plugin.d.ts.map +1 -1
  103. package/dist/promo/bonus/plugin.d.ts +1 -0
  104. package/dist/promo/bonus/plugin.d.ts.map +1 -1
  105. package/dist/promo/gamification/plugin.d.ts +1 -0
  106. package/dist/promo/gamification/plugin.d.ts.map +1 -1
  107. package/dist/server/runtime/core-token-catalog.d.ts +1 -0
  108. package/dist/server/runtime/core-token-catalog.d.ts.map +1 -1
  109. package/dist/server/runtime/core-token-catalog.js +2 -1
  110. package/dist/server/runtime/core-token-catalog.js.map +1 -1
  111. package/dist/wallet/__tests__/reconciliation.service.int.test.js +516 -66
  112. package/dist/wallet/__tests__/reconciliation.service.int.test.js.map +1 -1
  113. package/dist/wallet/__tests__/settlement-network.test.js +15 -1
  114. package/dist/wallet/__tests__/settlement-network.test.js.map +1 -1
  115. package/dist/wallet/__tests__/wallet-auto-withdrawal.int.test.js +17 -2
  116. package/dist/wallet/__tests__/wallet-auto-withdrawal.int.test.js.map +1 -1
  117. package/dist/wallet/__tests__/wallet-custody-routes.router.test.js +19 -0
  118. package/dist/wallet/__tests__/wallet-custody-routes.router.test.js.map +1 -1
  119. package/dist/wallet/__tests__/wallet.service.int.test.js +95 -0
  120. package/dist/wallet/__tests__/wallet.service.int.test.js.map +1 -1
  121. package/dist/wallet/admin-reporting.d.ts +2 -2
  122. package/dist/wallet/contract/agent-tools.d.ts +2 -0
  123. package/dist/wallet/contract/agent-tools.d.ts.map +1 -1
  124. package/dist/wallet/contract/index.d.ts +58 -3
  125. package/dist/wallet/contract/index.d.ts.map +1 -1
  126. package/dist/wallet/contract/index.js +23 -4
  127. package/dist/wallet/contract/index.js.map +1 -1
  128. package/dist/wallet/drizzle/migrations/0030_brainy_black_panther.sql +1 -0
  129. package/dist/wallet/drizzle/migrations/0031_eminent_star_brand.sql +1 -0
  130. package/dist/wallet/drizzle/migrations/0032_clumsy_ink.sql +1 -0
  131. package/dist/wallet/drizzle/migrations/0033_lucky_silver_samurai.sql +10 -0
  132. package/dist/wallet/drizzle/migrations/meta/0030_snapshot.json +2090 -0
  133. package/dist/wallet/drizzle/migrations/meta/0031_snapshot.json +2099 -0
  134. package/dist/wallet/drizzle/migrations/meta/0032_snapshot.json +2105 -0
  135. package/dist/wallet/drizzle/migrations/meta/0033_snapshot.json +2182 -0
  136. package/dist/wallet/drizzle/migrations/meta/_journal.json +28 -0
  137. package/dist/wallet/plugin.d.ts +1 -0
  138. package/dist/wallet/plugin.d.ts.map +1 -1
  139. package/dist/wallet/plugin.js +2 -1
  140. package/dist/wallet/plugin.js.map +1 -1
  141. package/dist/wallet/router/index.d.ts +27 -1
  142. package/dist/wallet/router/index.d.ts.map +1 -1
  143. package/dist/wallet/router/index.js +19 -3
  144. package/dist/wallet/router/index.js.map +1 -1
  145. package/dist/wallet/schema/index.d.ts +118 -8
  146. package/dist/wallet/schema/index.d.ts.map +1 -1
  147. package/dist/wallet/schema/index.js +17 -0
  148. package/dist/wallet/schema/index.js.map +1 -1
  149. package/dist/wallet/server.d.ts +1 -1
  150. package/dist/wallet/server.d.ts.map +1 -1
  151. package/dist/wallet/server.js +1 -1
  152. package/dist/wallet/server.js.map +1 -1
  153. package/dist/wallet/service/reconciliation-finding.service.d.ts +14 -0
  154. package/dist/wallet/service/reconciliation-finding.service.d.ts.map +1 -1
  155. package/dist/wallet/service/reconciliation-finding.service.js +60 -11
  156. package/dist/wallet/service/reconciliation-finding.service.js.map +1 -1
  157. package/dist/wallet/service/reconciliation.service.d.ts +56 -17
  158. package/dist/wallet/service/reconciliation.service.d.ts.map +1 -1
  159. package/dist/wallet/service/reconciliation.service.js +318 -76
  160. package/dist/wallet/service/reconciliation.service.js.map +1 -1
  161. package/dist/wallet/service/wallet.service.d.ts +95 -7
  162. package/dist/wallet/service/wallet.service.d.ts.map +1 -1
  163. package/dist/wallet/service/wallet.service.js +230 -9
  164. package/dist/wallet/service/wallet.service.js.map +1 -1
  165. package/package.json +1 -1
@@ -0,0 +1,2099 @@
1
+ {
2
+ "id": "a57a7fa9-a752-498e-a1e4-0f6e2b209454",
3
+ "prevId": "2674f721-cc62-41c1-8e8d-48808576bd3d",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.auto_withdrawal_rule": {
8
+ "name": "auto_withdrawal_rule",
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
+ "user_id": {
19
+ "name": "user_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "threshold": {
25
+ "name": "threshold",
26
+ "type": "numeric(38, 18)",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "reason": {
31
+ "name": "reason",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "created_by": {
37
+ "name": "created_by",
38
+ "type": "uuid",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "created_at": {
43
+ "name": "created_at",
44
+ "type": "timestamp with time zone",
45
+ "primaryKey": false,
46
+ "notNull": true,
47
+ "default": "now()"
48
+ },
49
+ "updated_at": {
50
+ "name": "updated_at",
51
+ "type": "timestamp with time zone",
52
+ "primaryKey": false,
53
+ "notNull": true
54
+ }
55
+ },
56
+ "indexes": {},
57
+ "foreignKeys": {},
58
+ "compositePrimaryKeys": {},
59
+ "uniqueConstraints": {
60
+ "auto_withdrawal_rule_user_id_unique": {
61
+ "name": "auto_withdrawal_rule_user_id_unique",
62
+ "nullsNotDistinct": false,
63
+ "columns": ["user_id"]
64
+ }
65
+ },
66
+ "policies": {},
67
+ "checkConstraints": {},
68
+ "isRLSEnabled": false
69
+ },
70
+ "public.wallet": {
71
+ "name": "wallet",
72
+ "schema": "",
73
+ "columns": {
74
+ "id": {
75
+ "name": "id",
76
+ "type": "uuid",
77
+ "primaryKey": true,
78
+ "notNull": true,
79
+ "default": "gen_random_uuid()"
80
+ },
81
+ "user_id": {
82
+ "name": "user_id",
83
+ "type": "uuid",
84
+ "primaryKey": false,
85
+ "notNull": true
86
+ },
87
+ "currency": {
88
+ "name": "currency",
89
+ "type": "text",
90
+ "primaryKey": false,
91
+ "notNull": true,
92
+ "default": "'USD'"
93
+ },
94
+ "updated_at": {
95
+ "name": "updated_at",
96
+ "type": "timestamp with time zone",
97
+ "primaryKey": false,
98
+ "notNull": true
99
+ }
100
+ },
101
+ "indexes": {},
102
+ "foreignKeys": {},
103
+ "compositePrimaryKeys": {},
104
+ "uniqueConstraints": {
105
+ "wallet_user_id_unique": {
106
+ "name": "wallet_user_id_unique",
107
+ "nullsNotDistinct": false,
108
+ "columns": ["user_id"]
109
+ }
110
+ },
111
+ "policies": {},
112
+ "checkConstraints": {},
113
+ "isRLSEnabled": false
114
+ },
115
+ "public.wallet_asset": {
116
+ "name": "wallet_asset",
117
+ "schema": "",
118
+ "columns": {
119
+ "id": {
120
+ "name": "id",
121
+ "type": "uuid",
122
+ "primaryKey": true,
123
+ "notNull": true,
124
+ "default": "gen_random_uuid()"
125
+ },
126
+ "currency": {
127
+ "name": "currency",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true
131
+ },
132
+ "network": {
133
+ "name": "network",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "provider_asset_id": {
139
+ "name": "provider_asset_id",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "min_deposit": {
145
+ "name": "min_deposit",
146
+ "type": "numeric(38, 18)",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "min_withdrawal": {
151
+ "name": "min_withdrawal",
152
+ "type": "numeric(38, 18)",
153
+ "primaryKey": false,
154
+ "notNull": true
155
+ },
156
+ "withdrawal_fee": {
157
+ "name": "withdrawal_fee",
158
+ "type": "numeric(38, 18)",
159
+ "primaryKey": false,
160
+ "notNull": true
161
+ },
162
+ "deposit_enabled": {
163
+ "name": "deposit_enabled",
164
+ "type": "boolean",
165
+ "primaryKey": false,
166
+ "notNull": true,
167
+ "default": true
168
+ },
169
+ "withdrawal_enabled": {
170
+ "name": "withdrawal_enabled",
171
+ "type": "boolean",
172
+ "primaryKey": false,
173
+ "notNull": true,
174
+ "default": true
175
+ },
176
+ "provider_name": {
177
+ "name": "provider_name",
178
+ "type": "text",
179
+ "primaryKey": false,
180
+ "notNull": false
181
+ },
182
+ "sweep_dust_threshold": {
183
+ "name": "sweep_dust_threshold",
184
+ "type": "numeric(38, 18)",
185
+ "primaryKey": false,
186
+ "notNull": false
187
+ },
188
+ "sweep_fee_ceiling": {
189
+ "name": "sweep_fee_ceiling",
190
+ "type": "numeric(38, 18)",
191
+ "primaryKey": false,
192
+ "notNull": false
193
+ },
194
+ "pool_liquidity_floor": {
195
+ "name": "pool_liquidity_floor",
196
+ "type": "numeric(38, 18)",
197
+ "primaryKey": false,
198
+ "notNull": false
199
+ },
200
+ "created_at": {
201
+ "name": "created_at",
202
+ "type": "timestamp with time zone",
203
+ "primaryKey": false,
204
+ "notNull": true,
205
+ "default": "now()"
206
+ },
207
+ "updated_at": {
208
+ "name": "updated_at",
209
+ "type": "timestamp with time zone",
210
+ "primaryKey": false,
211
+ "notNull": true,
212
+ "default": "now()"
213
+ }
214
+ },
215
+ "indexes": {
216
+ "wallet_asset_currency_network_idx": {
217
+ "name": "wallet_asset_currency_network_idx",
218
+ "columns": [
219
+ {
220
+ "expression": "currency",
221
+ "isExpression": false,
222
+ "asc": true,
223
+ "nulls": "last"
224
+ },
225
+ {
226
+ "expression": "network",
227
+ "isExpression": false,
228
+ "asc": true,
229
+ "nulls": "last"
230
+ }
231
+ ],
232
+ "isUnique": true,
233
+ "concurrently": false,
234
+ "method": "btree",
235
+ "with": {}
236
+ }
237
+ },
238
+ "foreignKeys": {},
239
+ "compositePrimaryKeys": {},
240
+ "uniqueConstraints": {},
241
+ "policies": {},
242
+ "checkConstraints": {},
243
+ "isRLSEnabled": false
244
+ },
245
+ "public.wallet_auto_withdrawal_config": {
246
+ "name": "wallet_auto_withdrawal_config",
247
+ "schema": "",
248
+ "columns": {
249
+ "id": {
250
+ "name": "id",
251
+ "type": "uuid",
252
+ "primaryKey": true,
253
+ "notNull": true,
254
+ "default": "gen_random_uuid()"
255
+ },
256
+ "singleton_key": {
257
+ "name": "singleton_key",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true,
261
+ "default": "'global'"
262
+ },
263
+ "fiat_threshold": {
264
+ "name": "fiat_threshold",
265
+ "type": "numeric(38, 18)",
266
+ "primaryKey": false,
267
+ "notNull": true
268
+ },
269
+ "crypto_threshold": {
270
+ "name": "crypto_threshold",
271
+ "type": "numeric(38, 18)",
272
+ "primaryKey": false,
273
+ "notNull": true
274
+ },
275
+ "exclude_risk_flags": {
276
+ "name": "exclude_risk_flags",
277
+ "type": "text[]",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "default": "ARRAY['high_risk','bonus_abuser','kyc_rejected','withdrawal_review','multi_account']::text[]"
281
+ },
282
+ "velocity_count": {
283
+ "name": "velocity_count",
284
+ "type": "integer",
285
+ "primaryKey": false,
286
+ "notNull": false,
287
+ "default": 3
288
+ },
289
+ "velocity_window_hours": {
290
+ "name": "velocity_window_hours",
291
+ "type": "integer",
292
+ "primaryKey": false,
293
+ "notNull": true,
294
+ "default": 24
295
+ },
296
+ "updated_by": {
297
+ "name": "updated_by",
298
+ "type": "uuid",
299
+ "primaryKey": false,
300
+ "notNull": false
301
+ },
302
+ "updated_at": {
303
+ "name": "updated_at",
304
+ "type": "timestamp with time zone",
305
+ "primaryKey": false,
306
+ "notNull": true
307
+ },
308
+ "created_at": {
309
+ "name": "created_at",
310
+ "type": "timestamp with time zone",
311
+ "primaryKey": false,
312
+ "notNull": true,
313
+ "default": "now()"
314
+ }
315
+ },
316
+ "indexes": {},
317
+ "foreignKeys": {},
318
+ "compositePrimaryKeys": {},
319
+ "uniqueConstraints": {
320
+ "wallet_auto_withdrawal_config_singletonKey_unique": {
321
+ "name": "wallet_auto_withdrawal_config_singletonKey_unique",
322
+ "nullsNotDistinct": false,
323
+ "columns": ["singleton_key"]
324
+ }
325
+ },
326
+ "policies": {},
327
+ "checkConstraints": {},
328
+ "isRLSEnabled": false
329
+ },
330
+ "public.wallet_balance": {
331
+ "name": "wallet_balance",
332
+ "schema": "",
333
+ "columns": {
334
+ "id": {
335
+ "name": "id",
336
+ "type": "uuid",
337
+ "primaryKey": true,
338
+ "notNull": true,
339
+ "default": "gen_random_uuid()"
340
+ },
341
+ "wallet_id": {
342
+ "name": "wallet_id",
343
+ "type": "uuid",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "currency": {
348
+ "name": "currency",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true
352
+ },
353
+ "amount": {
354
+ "name": "amount",
355
+ "type": "numeric(38, 18)",
356
+ "primaryKey": false,
357
+ "notNull": true,
358
+ "default": "'0'"
359
+ },
360
+ "created_at": {
361
+ "name": "created_at",
362
+ "type": "timestamp with time zone",
363
+ "primaryKey": false,
364
+ "notNull": true,
365
+ "default": "now()"
366
+ },
367
+ "updated_at": {
368
+ "name": "updated_at",
369
+ "type": "timestamp with time zone",
370
+ "primaryKey": false,
371
+ "notNull": true,
372
+ "default": "now()"
373
+ }
374
+ },
375
+ "indexes": {
376
+ "wallet_balance_wallet_id_currency_idx": {
377
+ "name": "wallet_balance_wallet_id_currency_idx",
378
+ "columns": [
379
+ {
380
+ "expression": "wallet_id",
381
+ "isExpression": false,
382
+ "asc": true,
383
+ "nulls": "last"
384
+ },
385
+ {
386
+ "expression": "currency",
387
+ "isExpression": false,
388
+ "asc": true,
389
+ "nulls": "last"
390
+ }
391
+ ],
392
+ "isUnique": true,
393
+ "concurrently": false,
394
+ "method": "btree",
395
+ "with": {}
396
+ }
397
+ },
398
+ "foreignKeys": {
399
+ "wallet_balance_wallet_id_wallet_id_fk": {
400
+ "name": "wallet_balance_wallet_id_wallet_id_fk",
401
+ "tableFrom": "wallet_balance",
402
+ "tableTo": "wallet",
403
+ "columnsFrom": ["wallet_id"],
404
+ "columnsTo": ["id"],
405
+ "onDelete": "no action",
406
+ "onUpdate": "no action"
407
+ }
408
+ },
409
+ "compositePrimaryKeys": {},
410
+ "uniqueConstraints": {},
411
+ "policies": {},
412
+ "checkConstraints": {},
413
+ "isRLSEnabled": false
414
+ },
415
+ "public.wallet_bonus_credit": {
416
+ "name": "wallet_bonus_credit",
417
+ "schema": "",
418
+ "columns": {
419
+ "id": {
420
+ "name": "id",
421
+ "type": "uuid",
422
+ "primaryKey": true,
423
+ "notNull": true,
424
+ "default": "gen_random_uuid()"
425
+ },
426
+ "wallet_id": {
427
+ "name": "wallet_id",
428
+ "type": "uuid",
429
+ "primaryKey": false,
430
+ "notNull": true
431
+ },
432
+ "user_id": {
433
+ "name": "user_id",
434
+ "type": "uuid",
435
+ "primaryKey": false,
436
+ "notNull": true
437
+ },
438
+ "currency": {
439
+ "name": "currency",
440
+ "type": "text",
441
+ "primaryKey": false,
442
+ "notNull": true
443
+ },
444
+ "source_type": {
445
+ "name": "source_type",
446
+ "type": "wallet_bonus_credit_source_type",
447
+ "typeSchema": "public",
448
+ "primaryKey": false,
449
+ "notNull": true
450
+ },
451
+ "credited_amount": {
452
+ "name": "credited_amount",
453
+ "type": "numeric(38, 18)",
454
+ "primaryKey": false,
455
+ "notNull": true
456
+ },
457
+ "rollover_multiplier": {
458
+ "name": "rollover_multiplier",
459
+ "type": "numeric(38, 18)",
460
+ "primaryKey": false,
461
+ "notNull": true
462
+ },
463
+ "rollover_required": {
464
+ "name": "rollover_required",
465
+ "type": "numeric(38, 18)",
466
+ "primaryKey": false,
467
+ "notNull": true
468
+ },
469
+ "rollover_progress": {
470
+ "name": "rollover_progress",
471
+ "type": "numeric(38, 18)",
472
+ "primaryKey": false,
473
+ "notNull": true,
474
+ "default": "'0'"
475
+ },
476
+ "status": {
477
+ "name": "status",
478
+ "type": "wallet_bonus_credit_status",
479
+ "typeSchema": "public",
480
+ "primaryKey": false,
481
+ "notNull": true,
482
+ "default": "'active'"
483
+ },
484
+ "created_at": {
485
+ "name": "created_at",
486
+ "type": "timestamp with time zone",
487
+ "primaryKey": false,
488
+ "notNull": true,
489
+ "default": "now()"
490
+ },
491
+ "completed_at": {
492
+ "name": "completed_at",
493
+ "type": "timestamp with time zone",
494
+ "primaryKey": false,
495
+ "notNull": false
496
+ }
497
+ },
498
+ "indexes": {
499
+ "wallet_bonus_credit_user_id_currency_status_idx": {
500
+ "name": "wallet_bonus_credit_user_id_currency_status_idx",
501
+ "columns": [
502
+ {
503
+ "expression": "user_id",
504
+ "isExpression": false,
505
+ "asc": true,
506
+ "nulls": "last"
507
+ },
508
+ {
509
+ "expression": "currency",
510
+ "isExpression": false,
511
+ "asc": true,
512
+ "nulls": "last"
513
+ },
514
+ {
515
+ "expression": "status",
516
+ "isExpression": false,
517
+ "asc": true,
518
+ "nulls": "last"
519
+ }
520
+ ],
521
+ "isUnique": false,
522
+ "concurrently": false,
523
+ "method": "btree",
524
+ "with": {}
525
+ },
526
+ "wallet_bonus_credit_wallet_id_idx": {
527
+ "name": "wallet_bonus_credit_wallet_id_idx",
528
+ "columns": [
529
+ {
530
+ "expression": "wallet_id",
531
+ "isExpression": false,
532
+ "asc": true,
533
+ "nulls": "last"
534
+ }
535
+ ],
536
+ "isUnique": false,
537
+ "concurrently": false,
538
+ "method": "btree",
539
+ "with": {}
540
+ }
541
+ },
542
+ "foreignKeys": {
543
+ "wallet_bonus_credit_wallet_id_wallet_id_fk": {
544
+ "name": "wallet_bonus_credit_wallet_id_wallet_id_fk",
545
+ "tableFrom": "wallet_bonus_credit",
546
+ "tableTo": "wallet",
547
+ "columnsFrom": ["wallet_id"],
548
+ "columnsTo": ["id"],
549
+ "onDelete": "no action",
550
+ "onUpdate": "no action"
551
+ }
552
+ },
553
+ "compositePrimaryKeys": {},
554
+ "uniqueConstraints": {},
555
+ "policies": {},
556
+ "checkConstraints": {},
557
+ "isRLSEnabled": false
558
+ },
559
+ "public.wallet_bonus_rollover_config": {
560
+ "name": "wallet_bonus_rollover_config",
561
+ "schema": "",
562
+ "columns": {
563
+ "id": {
564
+ "name": "id",
565
+ "type": "uuid",
566
+ "primaryKey": true,
567
+ "notNull": true,
568
+ "default": "gen_random_uuid()"
569
+ },
570
+ "singleton_key": {
571
+ "name": "singleton_key",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": true,
575
+ "default": "'global'"
576
+ },
577
+ "multiplier": {
578
+ "name": "multiplier",
579
+ "type": "numeric(38, 18)",
580
+ "primaryKey": false,
581
+ "notNull": true
582
+ },
583
+ "updated_by": {
584
+ "name": "updated_by",
585
+ "type": "uuid",
586
+ "primaryKey": false,
587
+ "notNull": false
588
+ },
589
+ "updated_at": {
590
+ "name": "updated_at",
591
+ "type": "timestamp with time zone",
592
+ "primaryKey": false,
593
+ "notNull": true
594
+ },
595
+ "created_at": {
596
+ "name": "created_at",
597
+ "type": "timestamp with time zone",
598
+ "primaryKey": false,
599
+ "notNull": true,
600
+ "default": "now()"
601
+ }
602
+ },
603
+ "indexes": {},
604
+ "foreignKeys": {},
605
+ "compositePrimaryKeys": {},
606
+ "uniqueConstraints": {
607
+ "wallet_bonus_rollover_config_singletonKey_unique": {
608
+ "name": "wallet_bonus_rollover_config_singletonKey_unique",
609
+ "nullsNotDistinct": false,
610
+ "columns": ["singleton_key"]
611
+ }
612
+ },
613
+ "policies": {},
614
+ "checkConstraints": {},
615
+ "isRLSEnabled": false
616
+ },
617
+ "public.wallet_custody_sweep": {
618
+ "name": "wallet_custody_sweep",
619
+ "schema": "",
620
+ "columns": {
621
+ "id": {
622
+ "name": "id",
623
+ "type": "uuid",
624
+ "primaryKey": true,
625
+ "notNull": true,
626
+ "default": "gen_random_uuid()"
627
+ },
628
+ "user_id": {
629
+ "name": "user_id",
630
+ "type": "uuid",
631
+ "primaryKey": false,
632
+ "notNull": true
633
+ },
634
+ "provider_name": {
635
+ "name": "provider_name",
636
+ "type": "text",
637
+ "primaryKey": false,
638
+ "notNull": true
639
+ },
640
+ "currency": {
641
+ "name": "currency",
642
+ "type": "text",
643
+ "primaryKey": false,
644
+ "notNull": true
645
+ },
646
+ "network": {
647
+ "name": "network",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true
651
+ },
652
+ "amount": {
653
+ "name": "amount",
654
+ "type": "numeric(38, 18)",
655
+ "primaryKey": false,
656
+ "notNull": true
657
+ },
658
+ "estimated_fee": {
659
+ "name": "estimated_fee",
660
+ "type": "numeric(38, 18)",
661
+ "primaryKey": false,
662
+ "notNull": true
663
+ },
664
+ "external_id": {
665
+ "name": "external_id",
666
+ "type": "text",
667
+ "primaryKey": false,
668
+ "notNull": false
669
+ },
670
+ "pool_ref": {
671
+ "name": "pool_ref",
672
+ "type": "text",
673
+ "primaryKey": false,
674
+ "notNull": false
675
+ },
676
+ "tx_hash": {
677
+ "name": "tx_hash",
678
+ "type": "text",
679
+ "primaryKey": false,
680
+ "notNull": false
681
+ },
682
+ "status": {
683
+ "name": "status",
684
+ "type": "wallet_custody_sweep_status",
685
+ "typeSchema": "public",
686
+ "primaryKey": false,
687
+ "notNull": true,
688
+ "default": "'pending'"
689
+ },
690
+ "run_id": {
691
+ "name": "run_id",
692
+ "type": "uuid",
693
+ "primaryKey": false,
694
+ "notNull": false
695
+ },
696
+ "created_at": {
697
+ "name": "created_at",
698
+ "type": "timestamp with time zone",
699
+ "primaryKey": false,
700
+ "notNull": true,
701
+ "default": "now()"
702
+ },
703
+ "updated_at": {
704
+ "name": "updated_at",
705
+ "type": "timestamp with time zone",
706
+ "primaryKey": false,
707
+ "notNull": true,
708
+ "default": "now()"
709
+ }
710
+ },
711
+ "indexes": {
712
+ "wallet_custody_sweep_user_id_currency_network_idx": {
713
+ "name": "wallet_custody_sweep_user_id_currency_network_idx",
714
+ "columns": [
715
+ {
716
+ "expression": "user_id",
717
+ "isExpression": false,
718
+ "asc": true,
719
+ "nulls": "last"
720
+ },
721
+ {
722
+ "expression": "currency",
723
+ "isExpression": false,
724
+ "asc": true,
725
+ "nulls": "last"
726
+ },
727
+ {
728
+ "expression": "network",
729
+ "isExpression": false,
730
+ "asc": true,
731
+ "nulls": "last"
732
+ }
733
+ ],
734
+ "isUnique": true,
735
+ "where": "status IN ('pending','processing','unknown')",
736
+ "concurrently": false,
737
+ "method": "btree",
738
+ "with": {}
739
+ },
740
+ "wallet_custody_sweep_external_id_idx": {
741
+ "name": "wallet_custody_sweep_external_id_idx",
742
+ "columns": [
743
+ {
744
+ "expression": "external_id",
745
+ "isExpression": false,
746
+ "asc": true,
747
+ "nulls": "last"
748
+ }
749
+ ],
750
+ "isUnique": true,
751
+ "where": "\"wallet_custody_sweep\".\"external_id\" IS NOT NULL",
752
+ "concurrently": false,
753
+ "method": "btree",
754
+ "with": {}
755
+ },
756
+ "wallet_custody_sweep_status_created_at_idx": {
757
+ "name": "wallet_custody_sweep_status_created_at_idx",
758
+ "columns": [
759
+ {
760
+ "expression": "status",
761
+ "isExpression": false,
762
+ "asc": true,
763
+ "nulls": "last"
764
+ },
765
+ {
766
+ "expression": "created_at",
767
+ "isExpression": false,
768
+ "asc": true,
769
+ "nulls": "last"
770
+ }
771
+ ],
772
+ "isUnique": false,
773
+ "concurrently": false,
774
+ "method": "btree",
775
+ "with": {}
776
+ },
777
+ "wallet_custody_sweep_provider_name_created_at_idx": {
778
+ "name": "wallet_custody_sweep_provider_name_created_at_idx",
779
+ "columns": [
780
+ {
781
+ "expression": "provider_name",
782
+ "isExpression": false,
783
+ "asc": true,
784
+ "nulls": "last"
785
+ },
786
+ {
787
+ "expression": "created_at",
788
+ "isExpression": false,
789
+ "asc": true,
790
+ "nulls": "last"
791
+ }
792
+ ],
793
+ "isUnique": false,
794
+ "concurrently": false,
795
+ "method": "btree",
796
+ "with": {}
797
+ }
798
+ },
799
+ "foreignKeys": {},
800
+ "compositePrimaryKeys": {},
801
+ "uniqueConstraints": {},
802
+ "policies": {},
803
+ "checkConstraints": {},
804
+ "isRLSEnabled": false
805
+ },
806
+ "public.wallet_deposit_address": {
807
+ "name": "wallet_deposit_address",
808
+ "schema": "",
809
+ "columns": {
810
+ "id": {
811
+ "name": "id",
812
+ "type": "uuid",
813
+ "primaryKey": true,
814
+ "notNull": true,
815
+ "default": "gen_random_uuid()"
816
+ },
817
+ "user_id": {
818
+ "name": "user_id",
819
+ "type": "uuid",
820
+ "primaryKey": false,
821
+ "notNull": true
822
+ },
823
+ "currency": {
824
+ "name": "currency",
825
+ "type": "text",
826
+ "primaryKey": false,
827
+ "notNull": true
828
+ },
829
+ "network": {
830
+ "name": "network",
831
+ "type": "text",
832
+ "primaryKey": false,
833
+ "notNull": false
834
+ },
835
+ "address": {
836
+ "name": "address",
837
+ "type": "text",
838
+ "primaryKey": false,
839
+ "notNull": true
840
+ },
841
+ "tag": {
842
+ "name": "tag",
843
+ "type": "text",
844
+ "primaryKey": false,
845
+ "notNull": false
846
+ },
847
+ "provider_name": {
848
+ "name": "provider_name",
849
+ "type": "text",
850
+ "primaryKey": false,
851
+ "notNull": true
852
+ },
853
+ "created_at": {
854
+ "name": "created_at",
855
+ "type": "timestamp with time zone",
856
+ "primaryKey": false,
857
+ "notNull": true,
858
+ "default": "now()"
859
+ }
860
+ },
861
+ "indexes": {
862
+ "wallet_deposit_address_user_id_currency_network_idx": {
863
+ "name": "wallet_deposit_address_user_id_currency_network_idx",
864
+ "columns": [
865
+ {
866
+ "expression": "user_id",
867
+ "isExpression": false,
868
+ "asc": true,
869
+ "nulls": "last"
870
+ },
871
+ {
872
+ "expression": "currency",
873
+ "isExpression": false,
874
+ "asc": true,
875
+ "nulls": "last"
876
+ },
877
+ {
878
+ "expression": "network",
879
+ "isExpression": false,
880
+ "asc": true,
881
+ "nulls": "last"
882
+ }
883
+ ],
884
+ "isUnique": true,
885
+ "where": "\"wallet_deposit_address\".\"network\" IS NOT NULL",
886
+ "concurrently": false,
887
+ "method": "btree",
888
+ "with": {}
889
+ },
890
+ "wallet_deposit_address_user_id_currency_idx": {
891
+ "name": "wallet_deposit_address_user_id_currency_idx",
892
+ "columns": [
893
+ {
894
+ "expression": "user_id",
895
+ "isExpression": false,
896
+ "asc": true,
897
+ "nulls": "last"
898
+ },
899
+ {
900
+ "expression": "currency",
901
+ "isExpression": false,
902
+ "asc": true,
903
+ "nulls": "last"
904
+ }
905
+ ],
906
+ "isUnique": true,
907
+ "where": "\"wallet_deposit_address\".\"network\" IS NULL",
908
+ "concurrently": false,
909
+ "method": "btree",
910
+ "with": {}
911
+ },
912
+ "wallet_deposit_address_address_tag_idx": {
913
+ "name": "wallet_deposit_address_address_tag_idx",
914
+ "columns": [
915
+ {
916
+ "expression": "address",
917
+ "isExpression": false,
918
+ "asc": true,
919
+ "nulls": "last"
920
+ },
921
+ {
922
+ "expression": "tag",
923
+ "isExpression": false,
924
+ "asc": true,
925
+ "nulls": "last"
926
+ }
927
+ ],
928
+ "isUnique": true,
929
+ "where": "\"wallet_deposit_address\".\"tag\" IS NOT NULL",
930
+ "concurrently": false,
931
+ "method": "btree",
932
+ "with": {}
933
+ },
934
+ "wallet_deposit_address_address_network_currency_idx": {
935
+ "name": "wallet_deposit_address_address_network_currency_idx",
936
+ "columns": [
937
+ {
938
+ "expression": "address",
939
+ "isExpression": false,
940
+ "asc": true,
941
+ "nulls": "last"
942
+ },
943
+ {
944
+ "expression": "network",
945
+ "isExpression": false,
946
+ "asc": true,
947
+ "nulls": "last"
948
+ },
949
+ {
950
+ "expression": "currency",
951
+ "isExpression": false,
952
+ "asc": true,
953
+ "nulls": "last"
954
+ }
955
+ ],
956
+ "isUnique": true,
957
+ "where": "\"wallet_deposit_address\".\"tag\" IS NULL AND \"wallet_deposit_address\".\"network\" IS NOT NULL",
958
+ "concurrently": false,
959
+ "method": "btree",
960
+ "with": {}
961
+ },
962
+ "wallet_deposit_address_address_idx": {
963
+ "name": "wallet_deposit_address_address_idx",
964
+ "columns": [
965
+ {
966
+ "expression": "address",
967
+ "isExpression": false,
968
+ "asc": true,
969
+ "nulls": "last"
970
+ }
971
+ ],
972
+ "isUnique": false,
973
+ "concurrently": false,
974
+ "method": "btree",
975
+ "with": {}
976
+ }
977
+ },
978
+ "foreignKeys": {},
979
+ "compositePrimaryKeys": {},
980
+ "uniqueConstraints": {},
981
+ "policies": {},
982
+ "checkConstraints": {},
983
+ "isRLSEnabled": false
984
+ },
985
+ "public.wallet_job_run": {
986
+ "name": "wallet_job_run",
987
+ "schema": "",
988
+ "columns": {
989
+ "id": {
990
+ "name": "id",
991
+ "type": "uuid",
992
+ "primaryKey": true,
993
+ "notNull": true,
994
+ "default": "gen_random_uuid()"
995
+ },
996
+ "job_name": {
997
+ "name": "job_name",
998
+ "type": "text",
999
+ "primaryKey": false,
1000
+ "notNull": true
1001
+ },
1002
+ "run_id": {
1003
+ "name": "run_id",
1004
+ "type": "uuid",
1005
+ "primaryKey": false,
1006
+ "notNull": true
1007
+ },
1008
+ "started_at": {
1009
+ "name": "started_at",
1010
+ "type": "timestamp with time zone",
1011
+ "primaryKey": false,
1012
+ "notNull": true,
1013
+ "default": "now()"
1014
+ },
1015
+ "finished_at": {
1016
+ "name": "finished_at",
1017
+ "type": "timestamp with time zone",
1018
+ "primaryKey": false,
1019
+ "notNull": false
1020
+ },
1021
+ "status": {
1022
+ "name": "status",
1023
+ "type": "wallet_job_run_status",
1024
+ "typeSchema": "public",
1025
+ "primaryKey": false,
1026
+ "notNull": true,
1027
+ "default": "'running'"
1028
+ },
1029
+ "summary": {
1030
+ "name": "summary",
1031
+ "type": "jsonb",
1032
+ "primaryKey": false,
1033
+ "notNull": false
1034
+ },
1035
+ "created_at": {
1036
+ "name": "created_at",
1037
+ "type": "timestamp with time zone",
1038
+ "primaryKey": false,
1039
+ "notNull": true,
1040
+ "default": "now()"
1041
+ }
1042
+ },
1043
+ "indexes": {
1044
+ "wallet_job_run_job_name_idx": {
1045
+ "name": "wallet_job_run_job_name_idx",
1046
+ "columns": [
1047
+ {
1048
+ "expression": "job_name",
1049
+ "isExpression": false,
1050
+ "asc": true,
1051
+ "nulls": "last"
1052
+ }
1053
+ ],
1054
+ "isUnique": true,
1055
+ "where": "\"wallet_job_run\".\"finished_at\" IS NULL",
1056
+ "concurrently": false,
1057
+ "method": "btree",
1058
+ "with": {}
1059
+ },
1060
+ "wallet_job_run_job_name_started_at_idx": {
1061
+ "name": "wallet_job_run_job_name_started_at_idx",
1062
+ "columns": [
1063
+ {
1064
+ "expression": "job_name",
1065
+ "isExpression": false,
1066
+ "asc": true,
1067
+ "nulls": "last"
1068
+ },
1069
+ {
1070
+ "expression": "started_at",
1071
+ "isExpression": false,
1072
+ "asc": true,
1073
+ "nulls": "last"
1074
+ }
1075
+ ],
1076
+ "isUnique": false,
1077
+ "concurrently": false,
1078
+ "method": "btree",
1079
+ "with": {}
1080
+ }
1081
+ },
1082
+ "foreignKeys": {},
1083
+ "compositePrimaryKeys": {},
1084
+ "uniqueConstraints": {},
1085
+ "policies": {},
1086
+ "checkConstraints": {},
1087
+ "isRLSEnabled": false
1088
+ },
1089
+ "public.wallet_provider_vault": {
1090
+ "name": "wallet_provider_vault",
1091
+ "schema": "",
1092
+ "columns": {
1093
+ "id": {
1094
+ "name": "id",
1095
+ "type": "uuid",
1096
+ "primaryKey": true,
1097
+ "notNull": true,
1098
+ "default": "gen_random_uuid()"
1099
+ },
1100
+ "user_id": {
1101
+ "name": "user_id",
1102
+ "type": "uuid",
1103
+ "primaryKey": false,
1104
+ "notNull": true
1105
+ },
1106
+ "provider_name": {
1107
+ "name": "provider_name",
1108
+ "type": "text",
1109
+ "primaryKey": false,
1110
+ "notNull": true
1111
+ },
1112
+ "vault_account_id": {
1113
+ "name": "vault_account_id",
1114
+ "type": "text",
1115
+ "primaryKey": false,
1116
+ "notNull": true
1117
+ },
1118
+ "created_at": {
1119
+ "name": "created_at",
1120
+ "type": "timestamp with time zone",
1121
+ "primaryKey": false,
1122
+ "notNull": true,
1123
+ "default": "now()"
1124
+ }
1125
+ },
1126
+ "indexes": {
1127
+ "wallet_provider_vault_user_id_provider_name_idx": {
1128
+ "name": "wallet_provider_vault_user_id_provider_name_idx",
1129
+ "columns": [
1130
+ {
1131
+ "expression": "user_id",
1132
+ "isExpression": false,
1133
+ "asc": true,
1134
+ "nulls": "last"
1135
+ },
1136
+ {
1137
+ "expression": "provider_name",
1138
+ "isExpression": false,
1139
+ "asc": true,
1140
+ "nulls": "last"
1141
+ }
1142
+ ],
1143
+ "isUnique": true,
1144
+ "concurrently": false,
1145
+ "method": "btree",
1146
+ "with": {}
1147
+ },
1148
+ "wallet_provider_vault_provider_name_vault_account_id_idx": {
1149
+ "name": "wallet_provider_vault_provider_name_vault_account_id_idx",
1150
+ "columns": [
1151
+ {
1152
+ "expression": "provider_name",
1153
+ "isExpression": false,
1154
+ "asc": true,
1155
+ "nulls": "last"
1156
+ },
1157
+ {
1158
+ "expression": "vault_account_id",
1159
+ "isExpression": false,
1160
+ "asc": true,
1161
+ "nulls": "last"
1162
+ }
1163
+ ],
1164
+ "isUnique": true,
1165
+ "concurrently": false,
1166
+ "method": "btree",
1167
+ "with": {}
1168
+ }
1169
+ },
1170
+ "foreignKeys": {},
1171
+ "compositePrimaryKeys": {},
1172
+ "uniqueConstraints": {},
1173
+ "policies": {},
1174
+ "checkConstraints": {},
1175
+ "isRLSEnabled": false
1176
+ },
1177
+ "public.wallet_reconciliation_finding": {
1178
+ "name": "wallet_reconciliation_finding",
1179
+ "schema": "",
1180
+ "columns": {
1181
+ "id": {
1182
+ "name": "id",
1183
+ "type": "uuid",
1184
+ "primaryKey": true,
1185
+ "notNull": true,
1186
+ "default": "gen_random_uuid()"
1187
+ },
1188
+ "run_id": {
1189
+ "name": "run_id",
1190
+ "type": "uuid",
1191
+ "primaryKey": false,
1192
+ "notNull": true
1193
+ },
1194
+ "provider_name": {
1195
+ "name": "provider_name",
1196
+ "type": "text",
1197
+ "primaryKey": false,
1198
+ "notNull": true
1199
+ },
1200
+ "kind": {
1201
+ "name": "kind",
1202
+ "type": "wallet_reconciliation_finding_kind",
1203
+ "typeSchema": "public",
1204
+ "primaryKey": false,
1205
+ "notNull": true
1206
+ },
1207
+ "currency": {
1208
+ "name": "currency",
1209
+ "type": "text",
1210
+ "primaryKey": false,
1211
+ "notNull": false
1212
+ },
1213
+ "network": {
1214
+ "name": "network",
1215
+ "type": "text",
1216
+ "primaryKey": false,
1217
+ "notNull": false
1218
+ },
1219
+ "amount": {
1220
+ "name": "amount",
1221
+ "type": "numeric(38, 18)",
1222
+ "primaryKey": false,
1223
+ "notNull": false
1224
+ },
1225
+ "address": {
1226
+ "name": "address",
1227
+ "type": "text",
1228
+ "primaryKey": false,
1229
+ "notNull": false
1230
+ },
1231
+ "tag": {
1232
+ "name": "tag",
1233
+ "type": "text",
1234
+ "primaryKey": false,
1235
+ "notNull": false
1236
+ },
1237
+ "tx_hash": {
1238
+ "name": "tx_hash",
1239
+ "type": "text",
1240
+ "primaryKey": false,
1241
+ "notNull": false
1242
+ },
1243
+ "external_id": {
1244
+ "name": "external_id",
1245
+ "type": "text",
1246
+ "primaryKey": false,
1247
+ "notNull": false
1248
+ },
1249
+ "transaction_id": {
1250
+ "name": "transaction_id",
1251
+ "type": "uuid",
1252
+ "primaryKey": false,
1253
+ "notNull": false
1254
+ },
1255
+ "detail": {
1256
+ "name": "detail",
1257
+ "type": "text",
1258
+ "primaryKey": false,
1259
+ "notNull": false
1260
+ },
1261
+ "status": {
1262
+ "name": "status",
1263
+ "type": "wallet_reconciliation_finding_status",
1264
+ "typeSchema": "public",
1265
+ "primaryKey": false,
1266
+ "notNull": true,
1267
+ "default": "'open'"
1268
+ },
1269
+ "resolved_by": {
1270
+ "name": "resolved_by",
1271
+ "type": "uuid",
1272
+ "primaryKey": false,
1273
+ "notNull": false
1274
+ },
1275
+ "resolved_at": {
1276
+ "name": "resolved_at",
1277
+ "type": "timestamp with time zone",
1278
+ "primaryKey": false,
1279
+ "notNull": false
1280
+ },
1281
+ "resolution_note": {
1282
+ "name": "resolution_note",
1283
+ "type": "text",
1284
+ "primaryKey": false,
1285
+ "notNull": false
1286
+ },
1287
+ "created_at": {
1288
+ "name": "created_at",
1289
+ "type": "timestamp with time zone",
1290
+ "primaryKey": false,
1291
+ "notNull": true,
1292
+ "default": "now()"
1293
+ }
1294
+ },
1295
+ "indexes": {
1296
+ "wallet_reconciliation_finding_kind_provider_external_id_idx": {
1297
+ "name": "wallet_reconciliation_finding_kind_provider_external_id_idx",
1298
+ "columns": [
1299
+ {
1300
+ "expression": "kind",
1301
+ "isExpression": false,
1302
+ "asc": true,
1303
+ "nulls": "last"
1304
+ },
1305
+ {
1306
+ "expression": "provider_name",
1307
+ "isExpression": false,
1308
+ "asc": true,
1309
+ "nulls": "last"
1310
+ },
1311
+ {
1312
+ "expression": "external_id",
1313
+ "isExpression": false,
1314
+ "asc": true,
1315
+ "nulls": "last"
1316
+ }
1317
+ ],
1318
+ "isUnique": true,
1319
+ "where": "\"wallet_reconciliation_finding\".\"external_id\" IS NOT NULL",
1320
+ "concurrently": false,
1321
+ "method": "btree",
1322
+ "with": {}
1323
+ },
1324
+ "wallet_reconciliation_finding_status_created_at_idx": {
1325
+ "name": "wallet_reconciliation_finding_status_created_at_idx",
1326
+ "columns": [
1327
+ {
1328
+ "expression": "status",
1329
+ "isExpression": false,
1330
+ "asc": true,
1331
+ "nulls": "last"
1332
+ },
1333
+ {
1334
+ "expression": "created_at",
1335
+ "isExpression": false,
1336
+ "asc": true,
1337
+ "nulls": "last"
1338
+ }
1339
+ ],
1340
+ "isUnique": false,
1341
+ "concurrently": false,
1342
+ "method": "btree",
1343
+ "with": {}
1344
+ },
1345
+ "wallet_reconciliation_finding_run_id_idx": {
1346
+ "name": "wallet_reconciliation_finding_run_id_idx",
1347
+ "columns": [
1348
+ {
1349
+ "expression": "run_id",
1350
+ "isExpression": false,
1351
+ "asc": true,
1352
+ "nulls": "last"
1353
+ }
1354
+ ],
1355
+ "isUnique": false,
1356
+ "concurrently": false,
1357
+ "method": "btree",
1358
+ "with": {}
1359
+ }
1360
+ },
1361
+ "foreignKeys": {},
1362
+ "compositePrimaryKeys": {},
1363
+ "uniqueConstraints": {},
1364
+ "policies": {},
1365
+ "checkConstraints": {},
1366
+ "isRLSEnabled": false
1367
+ },
1368
+ "public.wallet_transaction": {
1369
+ "name": "wallet_transaction",
1370
+ "schema": "",
1371
+ "columns": {
1372
+ "id": {
1373
+ "name": "id",
1374
+ "type": "uuid",
1375
+ "primaryKey": true,
1376
+ "notNull": true,
1377
+ "default": "gen_random_uuid()"
1378
+ },
1379
+ "wallet_id": {
1380
+ "name": "wallet_id",
1381
+ "type": "uuid",
1382
+ "primaryKey": false,
1383
+ "notNull": true
1384
+ },
1385
+ "type": {
1386
+ "name": "type",
1387
+ "type": "wallet_transaction_type",
1388
+ "typeSchema": "public",
1389
+ "primaryKey": false,
1390
+ "notNull": true
1391
+ },
1392
+ "amount": {
1393
+ "name": "amount",
1394
+ "type": "numeric(38, 18)",
1395
+ "primaryKey": false,
1396
+ "notNull": true
1397
+ },
1398
+ "currency": {
1399
+ "name": "currency",
1400
+ "type": "text",
1401
+ "primaryKey": false,
1402
+ "notNull": true
1403
+ },
1404
+ "network": {
1405
+ "name": "network",
1406
+ "type": "text",
1407
+ "primaryKey": false,
1408
+ "notNull": false
1409
+ },
1410
+ "status": {
1411
+ "name": "status",
1412
+ "type": "wallet_transaction_status",
1413
+ "typeSchema": "public",
1414
+ "primaryKey": false,
1415
+ "notNull": true,
1416
+ "default": "'pending'"
1417
+ },
1418
+ "rail": {
1419
+ "name": "rail",
1420
+ "type": "wallet_rail",
1421
+ "typeSchema": "public",
1422
+ "primaryKey": false,
1423
+ "notNull": false
1424
+ },
1425
+ "direction": {
1426
+ "name": "direction",
1427
+ "type": "wallet_transaction_direction",
1428
+ "typeSchema": "public",
1429
+ "primaryKey": false,
1430
+ "notNull": false
1431
+ },
1432
+ "reviewed_by": {
1433
+ "name": "reviewed_by",
1434
+ "type": "uuid",
1435
+ "primaryKey": false,
1436
+ "notNull": false
1437
+ },
1438
+ "reviewed_at": {
1439
+ "name": "reviewed_at",
1440
+ "type": "timestamp with time zone",
1441
+ "primaryKey": false,
1442
+ "notNull": false
1443
+ },
1444
+ "review_reason": {
1445
+ "name": "review_reason",
1446
+ "type": "text",
1447
+ "primaryKey": false,
1448
+ "notNull": false
1449
+ },
1450
+ "auto_approval_pivot_amount": {
1451
+ "name": "auto_approval_pivot_amount",
1452
+ "type": "numeric(38, 18)",
1453
+ "primaryKey": false,
1454
+ "notNull": false
1455
+ },
1456
+ "reference_currency": {
1457
+ "name": "reference_currency",
1458
+ "type": "text",
1459
+ "primaryKey": false,
1460
+ "notNull": false
1461
+ },
1462
+ "reference_amount": {
1463
+ "name": "reference_amount",
1464
+ "type": "numeric(38, 18)",
1465
+ "primaryKey": false,
1466
+ "notNull": false
1467
+ },
1468
+ "reference_rate": {
1469
+ "name": "reference_rate",
1470
+ "type": "numeric(38, 18)",
1471
+ "primaryKey": false,
1472
+ "notNull": false
1473
+ },
1474
+ "reference_rate_as_of": {
1475
+ "name": "reference_rate_as_of",
1476
+ "type": "timestamp with time zone",
1477
+ "primaryKey": false,
1478
+ "notNull": false
1479
+ },
1480
+ "fee": {
1481
+ "name": "fee",
1482
+ "type": "numeric(38, 18)",
1483
+ "primaryKey": false,
1484
+ "notNull": false
1485
+ },
1486
+ "provider_name": {
1487
+ "name": "provider_name",
1488
+ "type": "text",
1489
+ "primaryKey": false,
1490
+ "notNull": false
1491
+ },
1492
+ "provider_ref_id": {
1493
+ "name": "provider_ref_id",
1494
+ "type": "text",
1495
+ "primaryKey": false,
1496
+ "notNull": false
1497
+ },
1498
+ "external_round_id": {
1499
+ "name": "external_round_id",
1500
+ "type": "text",
1501
+ "primaryKey": false,
1502
+ "notNull": false
1503
+ },
1504
+ "destination_address": {
1505
+ "name": "destination_address",
1506
+ "type": "text",
1507
+ "primaryKey": false,
1508
+ "notNull": false
1509
+ },
1510
+ "destination_tag": {
1511
+ "name": "destination_tag",
1512
+ "type": "text",
1513
+ "primaryKey": false,
1514
+ "notNull": false
1515
+ },
1516
+ "destination_wallet_id": {
1517
+ "name": "destination_wallet_id",
1518
+ "type": "text",
1519
+ "primaryKey": false,
1520
+ "notNull": false
1521
+ },
1522
+ "tx_hash": {
1523
+ "name": "tx_hash",
1524
+ "type": "text",
1525
+ "primaryKey": false,
1526
+ "notNull": false
1527
+ },
1528
+ "metadata": {
1529
+ "name": "metadata",
1530
+ "type": "text",
1531
+ "primaryKey": false,
1532
+ "notNull": false
1533
+ },
1534
+ "idempotency_key": {
1535
+ "name": "idempotency_key",
1536
+ "type": "uuid",
1537
+ "primaryKey": false,
1538
+ "notNull": false
1539
+ },
1540
+ "created_at": {
1541
+ "name": "created_at",
1542
+ "type": "timestamp with time zone",
1543
+ "primaryKey": false,
1544
+ "notNull": true,
1545
+ "default": "now()"
1546
+ }
1547
+ },
1548
+ "indexes": {
1549
+ "wallet_transaction_wallet_id_idx": {
1550
+ "name": "wallet_transaction_wallet_id_idx",
1551
+ "columns": [
1552
+ {
1553
+ "expression": "wallet_id",
1554
+ "isExpression": false,
1555
+ "asc": true,
1556
+ "nulls": "last"
1557
+ }
1558
+ ],
1559
+ "isUnique": false,
1560
+ "concurrently": false,
1561
+ "method": "btree",
1562
+ "with": {}
1563
+ },
1564
+ "wallet_transaction_created_at_idx": {
1565
+ "name": "wallet_transaction_created_at_idx",
1566
+ "columns": [
1567
+ {
1568
+ "expression": "created_at",
1569
+ "isExpression": false,
1570
+ "asc": true,
1571
+ "nulls": "last"
1572
+ }
1573
+ ],
1574
+ "isUnique": false,
1575
+ "concurrently": false,
1576
+ "method": "btree",
1577
+ "with": {}
1578
+ },
1579
+ "wallet_transaction_type_idx": {
1580
+ "name": "wallet_transaction_type_idx",
1581
+ "columns": [
1582
+ {
1583
+ "expression": "type",
1584
+ "isExpression": false,
1585
+ "asc": true,
1586
+ "nulls": "last"
1587
+ }
1588
+ ],
1589
+ "isUnique": false,
1590
+ "concurrently": false,
1591
+ "method": "btree",
1592
+ "with": {}
1593
+ },
1594
+ "wallet_transaction_status_idx": {
1595
+ "name": "wallet_transaction_status_idx",
1596
+ "columns": [
1597
+ {
1598
+ "expression": "status",
1599
+ "isExpression": false,
1600
+ "asc": true,
1601
+ "nulls": "last"
1602
+ }
1603
+ ],
1604
+ "isUnique": false,
1605
+ "concurrently": false,
1606
+ "method": "btree",
1607
+ "with": {}
1608
+ },
1609
+ "wallet_transaction_rail_idx": {
1610
+ "name": "wallet_transaction_rail_idx",
1611
+ "columns": [
1612
+ {
1613
+ "expression": "rail",
1614
+ "isExpression": false,
1615
+ "asc": true,
1616
+ "nulls": "last"
1617
+ }
1618
+ ],
1619
+ "isUnique": false,
1620
+ "concurrently": false,
1621
+ "method": "btree",
1622
+ "with": {}
1623
+ },
1624
+ "wallet_transaction_currency_idx": {
1625
+ "name": "wallet_transaction_currency_idx",
1626
+ "columns": [
1627
+ {
1628
+ "expression": "currency",
1629
+ "isExpression": false,
1630
+ "asc": true,
1631
+ "nulls": "last"
1632
+ }
1633
+ ],
1634
+ "isUnique": false,
1635
+ "concurrently": false,
1636
+ "method": "btree",
1637
+ "with": {}
1638
+ },
1639
+ "wallet_transaction_currency_network_idx": {
1640
+ "name": "wallet_transaction_currency_network_idx",
1641
+ "columns": [
1642
+ {
1643
+ "expression": "currency",
1644
+ "isExpression": false,
1645
+ "asc": true,
1646
+ "nulls": "last"
1647
+ },
1648
+ {
1649
+ "expression": "network",
1650
+ "isExpression": false,
1651
+ "asc": true,
1652
+ "nulls": "last"
1653
+ }
1654
+ ],
1655
+ "isUnique": false,
1656
+ "concurrently": false,
1657
+ "method": "btree",
1658
+ "with": {}
1659
+ },
1660
+ "wallet_transaction_tx_hash_idx": {
1661
+ "name": "wallet_transaction_tx_hash_idx",
1662
+ "columns": [
1663
+ {
1664
+ "expression": "tx_hash",
1665
+ "isExpression": false,
1666
+ "asc": true,
1667
+ "nulls": "last"
1668
+ }
1669
+ ],
1670
+ "isUnique": false,
1671
+ "concurrently": false,
1672
+ "method": "btree",
1673
+ "with": {}
1674
+ },
1675
+ "wallet_transaction_destination_address_idx": {
1676
+ "name": "wallet_transaction_destination_address_idx",
1677
+ "columns": [
1678
+ {
1679
+ "expression": "lower(\"destination_address\")",
1680
+ "asc": true,
1681
+ "isExpression": true,
1682
+ "nulls": "last"
1683
+ }
1684
+ ],
1685
+ "isUnique": false,
1686
+ "concurrently": false,
1687
+ "method": "btree",
1688
+ "with": {}
1689
+ },
1690
+ "wallet_transaction_provider_ref_idx": {
1691
+ "name": "wallet_transaction_provider_ref_idx",
1692
+ "columns": [
1693
+ {
1694
+ "expression": "provider_ref_id",
1695
+ "isExpression": false,
1696
+ "asc": true,
1697
+ "nulls": "last"
1698
+ }
1699
+ ],
1700
+ "isUnique": false,
1701
+ "concurrently": false,
1702
+ "method": "btree",
1703
+ "with": {}
1704
+ },
1705
+ "wallet_transaction_status_type_created_at_idx": {
1706
+ "name": "wallet_transaction_status_type_created_at_idx",
1707
+ "columns": [
1708
+ {
1709
+ "expression": "status",
1710
+ "isExpression": false,
1711
+ "asc": true,
1712
+ "nulls": "last"
1713
+ },
1714
+ {
1715
+ "expression": "type",
1716
+ "isExpression": false,
1717
+ "asc": true,
1718
+ "nulls": "last"
1719
+ },
1720
+ {
1721
+ "expression": "created_at",
1722
+ "isExpression": false,
1723
+ "asc": true,
1724
+ "nulls": "last"
1725
+ }
1726
+ ],
1727
+ "isUnique": false,
1728
+ "concurrently": false,
1729
+ "method": "btree",
1730
+ "with": {}
1731
+ },
1732
+ "wallet_transaction_wallet_id_type_status_idx": {
1733
+ "name": "wallet_transaction_wallet_id_type_status_idx",
1734
+ "columns": [
1735
+ {
1736
+ "expression": "wallet_id",
1737
+ "isExpression": false,
1738
+ "asc": true,
1739
+ "nulls": "last"
1740
+ },
1741
+ {
1742
+ "expression": "type",
1743
+ "isExpression": false,
1744
+ "asc": true,
1745
+ "nulls": "last"
1746
+ },
1747
+ {
1748
+ "expression": "status",
1749
+ "isExpression": false,
1750
+ "asc": true,
1751
+ "nulls": "last"
1752
+ }
1753
+ ],
1754
+ "isUnique": false,
1755
+ "concurrently": false,
1756
+ "method": "btree",
1757
+ "with": {}
1758
+ },
1759
+ "wallet_transaction_wallet_id_status_created_at_idx": {
1760
+ "name": "wallet_transaction_wallet_id_status_created_at_idx",
1761
+ "columns": [
1762
+ {
1763
+ "expression": "wallet_id",
1764
+ "isExpression": false,
1765
+ "asc": true,
1766
+ "nulls": "last"
1767
+ },
1768
+ {
1769
+ "expression": "status",
1770
+ "isExpression": false,
1771
+ "asc": true,
1772
+ "nulls": "last"
1773
+ },
1774
+ {
1775
+ "expression": "created_at",
1776
+ "isExpression": false,
1777
+ "asc": true,
1778
+ "nulls": "last"
1779
+ }
1780
+ ],
1781
+ "isUnique": false,
1782
+ "concurrently": false,
1783
+ "method": "btree",
1784
+ "with": {}
1785
+ },
1786
+ "wallet_transaction_provider_ref_id_idx": {
1787
+ "name": "wallet_transaction_provider_ref_id_idx",
1788
+ "columns": [
1789
+ {
1790
+ "expression": "provider_name",
1791
+ "isExpression": false,
1792
+ "asc": true,
1793
+ "nulls": "last"
1794
+ },
1795
+ {
1796
+ "expression": "provider_ref_id",
1797
+ "isExpression": false,
1798
+ "asc": true,
1799
+ "nulls": "last"
1800
+ }
1801
+ ],
1802
+ "isUnique": true,
1803
+ "where": "\"wallet_transaction\".\"provider_ref_id\" IS NOT NULL",
1804
+ "concurrently": false,
1805
+ "method": "btree",
1806
+ "with": {}
1807
+ },
1808
+ "wallet_transaction_external_round_id_idx": {
1809
+ "name": "wallet_transaction_external_round_id_idx",
1810
+ "columns": [
1811
+ {
1812
+ "expression": "external_round_id",
1813
+ "isExpression": false,
1814
+ "asc": true,
1815
+ "nulls": "last"
1816
+ }
1817
+ ],
1818
+ "isUnique": false,
1819
+ "concurrently": false,
1820
+ "method": "btree",
1821
+ "with": {}
1822
+ },
1823
+ "wallet_transaction_wallet_id_idempotency_key_idx": {
1824
+ "name": "wallet_transaction_wallet_id_idempotency_key_idx",
1825
+ "columns": [
1826
+ {
1827
+ "expression": "wallet_id",
1828
+ "isExpression": false,
1829
+ "asc": true,
1830
+ "nulls": "last"
1831
+ },
1832
+ {
1833
+ "expression": "idempotency_key",
1834
+ "isExpression": false,
1835
+ "asc": true,
1836
+ "nulls": "last"
1837
+ }
1838
+ ],
1839
+ "isUnique": true,
1840
+ "where": "\"wallet_transaction\".\"idempotency_key\" IS NOT NULL",
1841
+ "concurrently": false,
1842
+ "method": "btree",
1843
+ "with": {}
1844
+ }
1845
+ },
1846
+ "foreignKeys": {
1847
+ "wallet_transaction_wallet_id_wallet_id_fk": {
1848
+ "name": "wallet_transaction_wallet_id_wallet_id_fk",
1849
+ "tableFrom": "wallet_transaction",
1850
+ "tableTo": "wallet",
1851
+ "columnsFrom": ["wallet_id"],
1852
+ "columnsTo": ["id"],
1853
+ "onDelete": "no action",
1854
+ "onUpdate": "no action"
1855
+ }
1856
+ },
1857
+ "compositePrimaryKeys": {},
1858
+ "uniqueConstraints": {},
1859
+ "policies": {},
1860
+ "checkConstraints": {},
1861
+ "isRLSEnabled": false
1862
+ },
1863
+ "public.wallet_withdrawal_address": {
1864
+ "name": "wallet_withdrawal_address",
1865
+ "schema": "",
1866
+ "columns": {
1867
+ "id": {
1868
+ "name": "id",
1869
+ "type": "uuid",
1870
+ "primaryKey": true,
1871
+ "notNull": true,
1872
+ "default": "gen_random_uuid()"
1873
+ },
1874
+ "user_id": {
1875
+ "name": "user_id",
1876
+ "type": "uuid",
1877
+ "primaryKey": false,
1878
+ "notNull": true
1879
+ },
1880
+ "label": {
1881
+ "name": "label",
1882
+ "type": "text",
1883
+ "primaryKey": false,
1884
+ "notNull": true
1885
+ },
1886
+ "currency": {
1887
+ "name": "currency",
1888
+ "type": "text",
1889
+ "primaryKey": false,
1890
+ "notNull": true
1891
+ },
1892
+ "network": {
1893
+ "name": "network",
1894
+ "type": "text",
1895
+ "primaryKey": false,
1896
+ "notNull": true
1897
+ },
1898
+ "address": {
1899
+ "name": "address",
1900
+ "type": "text",
1901
+ "primaryKey": false,
1902
+ "notNull": true
1903
+ },
1904
+ "destination_tag": {
1905
+ "name": "destination_tag",
1906
+ "type": "text",
1907
+ "primaryKey": false,
1908
+ "notNull": false
1909
+ },
1910
+ "provider_name": {
1911
+ "name": "provider_name",
1912
+ "type": "text",
1913
+ "primaryKey": false,
1914
+ "notNull": false
1915
+ },
1916
+ "provider_wallet_id": {
1917
+ "name": "provider_wallet_id",
1918
+ "type": "text",
1919
+ "primaryKey": false,
1920
+ "notNull": false
1921
+ },
1922
+ "created_at": {
1923
+ "name": "created_at",
1924
+ "type": "timestamp with time zone",
1925
+ "primaryKey": false,
1926
+ "notNull": true,
1927
+ "default": "now()"
1928
+ }
1929
+ },
1930
+ "indexes": {
1931
+ "wallet_withdrawal_address_user_id_currency_network_address_idx": {
1932
+ "name": "wallet_withdrawal_address_user_id_currency_network_address_idx",
1933
+ "columns": [
1934
+ {
1935
+ "expression": "user_id",
1936
+ "isExpression": false,
1937
+ "asc": true,
1938
+ "nulls": "last"
1939
+ },
1940
+ {
1941
+ "expression": "currency",
1942
+ "isExpression": false,
1943
+ "asc": true,
1944
+ "nulls": "last"
1945
+ },
1946
+ {
1947
+ "expression": "network",
1948
+ "isExpression": false,
1949
+ "asc": true,
1950
+ "nulls": "last"
1951
+ },
1952
+ {
1953
+ "expression": "address",
1954
+ "isExpression": false,
1955
+ "asc": true,
1956
+ "nulls": "last"
1957
+ },
1958
+ {
1959
+ "expression": "coalesce(\"destination_tag\", '')",
1960
+ "asc": true,
1961
+ "isExpression": true,
1962
+ "nulls": "last"
1963
+ }
1964
+ ],
1965
+ "isUnique": true,
1966
+ "concurrently": false,
1967
+ "method": "btree",
1968
+ "with": {}
1969
+ },
1970
+ "wallet_withdrawal_address_user_id_created_at_idx": {
1971
+ "name": "wallet_withdrawal_address_user_id_created_at_idx",
1972
+ "columns": [
1973
+ {
1974
+ "expression": "user_id",
1975
+ "isExpression": false,
1976
+ "asc": true,
1977
+ "nulls": "last"
1978
+ },
1979
+ {
1980
+ "expression": "created_at",
1981
+ "isExpression": false,
1982
+ "asc": true,
1983
+ "nulls": "last"
1984
+ }
1985
+ ],
1986
+ "isUnique": false,
1987
+ "concurrently": false,
1988
+ "method": "btree",
1989
+ "with": {}
1990
+ }
1991
+ },
1992
+ "foreignKeys": {},
1993
+ "compositePrimaryKeys": {},
1994
+ "uniqueConstraints": {},
1995
+ "policies": {},
1996
+ "checkConstraints": {},
1997
+ "isRLSEnabled": false
1998
+ }
1999
+ },
2000
+ "enums": {
2001
+ "public.wallet_bonus_credit_source_type": {
2002
+ "name": "wallet_bonus_credit_source_type",
2003
+ "schema": "public",
2004
+ "values": ["gift", "rain"]
2005
+ },
2006
+ "public.wallet_bonus_credit_status": {
2007
+ "name": "wallet_bonus_credit_status",
2008
+ "schema": "public",
2009
+ "values": ["active", "completed"]
2010
+ },
2011
+ "public.wallet_custody_sweep_status": {
2012
+ "name": "wallet_custody_sweep_status",
2013
+ "schema": "public",
2014
+ "values": ["pending", "processing", "completed", "failed", "unknown"]
2015
+ },
2016
+ "public.wallet_job_run_status": {
2017
+ "name": "wallet_job_run_status",
2018
+ "schema": "public",
2019
+ "values": ["running", "completed", "skipped", "failed", "abandoned"]
2020
+ },
2021
+ "public.wallet_rail": {
2022
+ "name": "wallet_rail",
2023
+ "schema": "public",
2024
+ "values": ["crypto", "fiat"]
2025
+ },
2026
+ "public.wallet_reconciliation_finding_kind": {
2027
+ "name": "wallet_reconciliation_finding_kind",
2028
+ "schema": "public",
2029
+ "values": [
2030
+ "missing_deposit",
2031
+ "unattributed_deposit",
2032
+ "amount_mismatch",
2033
+ "currency_mismatch",
2034
+ "status_mismatch",
2035
+ "unknown_at_provider",
2036
+ "unconfigured_asset",
2037
+ "stuck_sweep",
2038
+ "rg_limit_breach",
2039
+ "stuck_swap",
2040
+ "held_deposit"
2041
+ ]
2042
+ },
2043
+ "public.wallet_reconciliation_finding_status": {
2044
+ "name": "wallet_reconciliation_finding_status",
2045
+ "schema": "public",
2046
+ "values": ["open", "resolved"]
2047
+ },
2048
+ "public.wallet_transaction_direction": {
2049
+ "name": "wallet_transaction_direction",
2050
+ "schema": "public",
2051
+ "values": ["credit", "debit"]
2052
+ },
2053
+ "public.wallet_transaction_status": {
2054
+ "name": "wallet_transaction_status",
2055
+ "schema": "public",
2056
+ "values": [
2057
+ "pending",
2058
+ "processing",
2059
+ "completed",
2060
+ "failed",
2061
+ "rejected",
2062
+ "on_hold",
2063
+ "cancelled",
2064
+ "refunded"
2065
+ ]
2066
+ },
2067
+ "public.wallet_transaction_type": {
2068
+ "name": "wallet_transaction_type",
2069
+ "schema": "public",
2070
+ "values": [
2071
+ "deposit",
2072
+ "withdrawal",
2073
+ "bet",
2074
+ "win",
2075
+ "loss",
2076
+ "bonus",
2077
+ "tip",
2078
+ "gift",
2079
+ "rain",
2080
+ "manual_credit",
2081
+ "manual_debit",
2082
+ "swap_out",
2083
+ "swap_in",
2084
+ "bet_reversal",
2085
+ "cashback"
2086
+ ]
2087
+ }
2088
+ },
2089
+ "schemas": {},
2090
+ "sequences": {},
2091
+ "roles": {},
2092
+ "policies": {},
2093
+ "views": {},
2094
+ "_meta": {
2095
+ "columns": {},
2096
+ "schemas": {},
2097
+ "tables": {}
2098
+ }
2099
+ }