@openora/core 0.4.1-canary.75 → 0.4.1-canary.76

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 (50) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/analytics/contract/financial.d.ts +1 -2
  3. package/dist/analytics/contract/financial.d.ts.map +1 -1
  4. package/dist/analytics/contract/financial.js +2 -4
  5. package/dist/analytics/contract/financial.js.map +1 -1
  6. package/dist/contracts/schemas/__tests__/common-schemas.test.js +6 -3
  7. package/dist/contracts/schemas/__tests__/common-schemas.test.js.map +1 -1
  8. package/dist/contracts/schemas/common.d.ts +2 -0
  9. package/dist/contracts/schemas/common.d.ts.map +1 -1
  10. package/dist/contracts/schemas/common.js +8 -2
  11. package/dist/contracts/schemas/common.js.map +1 -1
  12. package/dist/engagement/social-transfers/drizzle/migrations/0001_fearless_molecule_man.sql +5 -0
  13. package/dist/engagement/social-transfers/drizzle/migrations/meta/0001_snapshot.json +287 -0
  14. package/dist/engagement/social-transfers/drizzle/migrations/meta/_journal.json +7 -0
  15. package/dist/engagement/social-transfers/schema/index.d.ts.map +1 -1
  16. package/dist/engagement/social-transfers/schema/index.js +6 -5
  17. package/dist/engagement/social-transfers/schema/index.js.map +1 -1
  18. package/dist/pam/tag/__tests__/tag.service.int.test.js +5 -0
  19. package/dist/pam/tag/__tests__/tag.service.int.test.js.map +1 -1
  20. package/dist/server/db/__tests__/query-helpers.test.js +12 -1
  21. package/dist/server/db/__tests__/query-helpers.test.js.map +1 -1
  22. package/dist/server/db/index.d.ts +1 -1
  23. package/dist/server/db/index.d.ts.map +1 -1
  24. package/dist/server/db/index.js +1 -1
  25. package/dist/server/db/index.js.map +1 -1
  26. package/dist/server/db/query-helpers.d.ts +1 -0
  27. package/dist/server/db/query-helpers.d.ts.map +1 -1
  28. package/dist/server/db/query-helpers.js +12 -0
  29. package/dist/server/db/query-helpers.js.map +1 -1
  30. package/dist/wallet/__tests__/wallet-auto-rule.router.int.test.js +7 -3
  31. package/dist/wallet/__tests__/wallet-auto-rule.router.int.test.js.map +1 -1
  32. package/dist/wallet/__tests__/wallet-auto-withdrawal-config.router.int.test.js +12 -9
  33. package/dist/wallet/__tests__/wallet-auto-withdrawal-config.router.int.test.js.map +1 -1
  34. package/dist/wallet/__tests__/wallet-auto-withdrawal.int.test.js +5 -5
  35. package/dist/wallet/__tests__/wallet-auto-withdrawal.int.test.js.map +1 -1
  36. package/dist/wallet/__tests__/wallet-webhook.router.int.test.js +3 -3
  37. package/dist/wallet/__tests__/wallet-webhook.router.int.test.js.map +1 -1
  38. package/dist/wallet/__tests__/wallet.router.int.test.js +5 -2
  39. package/dist/wallet/__tests__/wallet.router.int.test.js.map +1 -1
  40. package/dist/wallet/drizzle/migrations/0007_bouncy_swordsman.sql +17 -0
  41. package/dist/wallet/drizzle/migrations/meta/0007_snapshot.json +723 -0
  42. package/dist/wallet/drizzle/migrations/meta/_journal.json +7 -0
  43. package/dist/wallet/schema/index.d.ts +109 -0
  44. package/dist/wallet/schema/index.d.ts.map +1 -1
  45. package/dist/wallet/schema/index.js +19 -6
  46. package/dist/wallet/schema/index.js.map +1 -1
  47. package/dist/wallet/service/wallet.service.d.ts.map +1 -1
  48. package/dist/wallet/service/wallet.service.js +5 -4
  49. package/dist/wallet/service/wallet.service.js.map +1 -1
  50. package/package.json +1 -1
@@ -0,0 +1,723 @@
1
+ {
2
+ "id": "e81c83ab-29ec-4f13-b8c5-803c3a568188",
3
+ "prevId": "3d78e70f-0ee9-4049-87df-137db89043d2",
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
+ "balance": {
88
+ "name": "balance",
89
+ "type": "numeric(38, 18)",
90
+ "primaryKey": false,
91
+ "notNull": true,
92
+ "default": "'0'"
93
+ },
94
+ "currency": {
95
+ "name": "currency",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": true,
99
+ "default": "'USD'"
100
+ },
101
+ "updated_at": {
102
+ "name": "updated_at",
103
+ "type": "timestamp with time zone",
104
+ "primaryKey": false,
105
+ "notNull": true
106
+ }
107
+ },
108
+ "indexes": {},
109
+ "foreignKeys": {},
110
+ "compositePrimaryKeys": {},
111
+ "uniqueConstraints": {
112
+ "wallet_user_id_unique": {
113
+ "name": "wallet_user_id_unique",
114
+ "nullsNotDistinct": false,
115
+ "columns": ["user_id"]
116
+ }
117
+ },
118
+ "policies": {},
119
+ "checkConstraints": {},
120
+ "isRLSEnabled": false
121
+ },
122
+ "public.wallet_auto_withdrawal_config": {
123
+ "name": "wallet_auto_withdrawal_config",
124
+ "schema": "",
125
+ "columns": {
126
+ "id": {
127
+ "name": "id",
128
+ "type": "uuid",
129
+ "primaryKey": true,
130
+ "notNull": true,
131
+ "default": "gen_random_uuid()"
132
+ },
133
+ "singleton_key": {
134
+ "name": "singleton_key",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "default": "'global'"
139
+ },
140
+ "fiat_threshold": {
141
+ "name": "fiat_threshold",
142
+ "type": "numeric(38, 18)",
143
+ "primaryKey": false,
144
+ "notNull": true
145
+ },
146
+ "crypto_threshold": {
147
+ "name": "crypto_threshold",
148
+ "type": "numeric(38, 18)",
149
+ "primaryKey": false,
150
+ "notNull": true
151
+ },
152
+ "exclude_risk_flags": {
153
+ "name": "exclude_risk_flags",
154
+ "type": "text[]",
155
+ "primaryKey": false,
156
+ "notNull": true,
157
+ "default": "ARRAY['high_risk','bonus_abuser','kyc_rejected','withdrawal_review','multi_account']::text[]"
158
+ },
159
+ "updated_by": {
160
+ "name": "updated_by",
161
+ "type": "uuid",
162
+ "primaryKey": false,
163
+ "notNull": false
164
+ },
165
+ "updated_at": {
166
+ "name": "updated_at",
167
+ "type": "timestamp with time zone",
168
+ "primaryKey": false,
169
+ "notNull": true
170
+ },
171
+ "created_at": {
172
+ "name": "created_at",
173
+ "type": "timestamp with time zone",
174
+ "primaryKey": false,
175
+ "notNull": true,
176
+ "default": "now()"
177
+ }
178
+ },
179
+ "indexes": {},
180
+ "foreignKeys": {},
181
+ "compositePrimaryKeys": {},
182
+ "uniqueConstraints": {
183
+ "wallet_auto_withdrawal_config_singletonKey_unique": {
184
+ "name": "wallet_auto_withdrawal_config_singletonKey_unique",
185
+ "nullsNotDistinct": false,
186
+ "columns": ["singleton_key"]
187
+ }
188
+ },
189
+ "policies": {},
190
+ "checkConstraints": {},
191
+ "isRLSEnabled": false
192
+ },
193
+ "public.wallet_balance": {
194
+ "name": "wallet_balance",
195
+ "schema": "",
196
+ "columns": {
197
+ "id": {
198
+ "name": "id",
199
+ "type": "uuid",
200
+ "primaryKey": true,
201
+ "notNull": true,
202
+ "default": "gen_random_uuid()"
203
+ },
204
+ "wallet_id": {
205
+ "name": "wallet_id",
206
+ "type": "uuid",
207
+ "primaryKey": false,
208
+ "notNull": true
209
+ },
210
+ "currency": {
211
+ "name": "currency",
212
+ "type": "text",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "amount": {
217
+ "name": "amount",
218
+ "type": "numeric(38, 18)",
219
+ "primaryKey": false,
220
+ "notNull": true,
221
+ "default": "'0'"
222
+ },
223
+ "created_at": {
224
+ "name": "created_at",
225
+ "type": "timestamp with time zone",
226
+ "primaryKey": false,
227
+ "notNull": true,
228
+ "default": "now()"
229
+ },
230
+ "updated_at": {
231
+ "name": "updated_at",
232
+ "type": "timestamp with time zone",
233
+ "primaryKey": false,
234
+ "notNull": true,
235
+ "default": "now()"
236
+ }
237
+ },
238
+ "indexes": {
239
+ "wallet_balance_wallet_id_currency_idx": {
240
+ "name": "wallet_balance_wallet_id_currency_idx",
241
+ "columns": [
242
+ {
243
+ "expression": "wallet_id",
244
+ "isExpression": false,
245
+ "asc": true,
246
+ "nulls": "last"
247
+ },
248
+ {
249
+ "expression": "currency",
250
+ "isExpression": false,
251
+ "asc": true,
252
+ "nulls": "last"
253
+ }
254
+ ],
255
+ "isUnique": true,
256
+ "concurrently": false,
257
+ "method": "btree",
258
+ "with": {}
259
+ }
260
+ },
261
+ "foreignKeys": {
262
+ "wallet_balance_wallet_id_wallet_id_fk": {
263
+ "name": "wallet_balance_wallet_id_wallet_id_fk",
264
+ "tableFrom": "wallet_balance",
265
+ "tableTo": "wallet",
266
+ "columnsFrom": ["wallet_id"],
267
+ "columnsTo": ["id"],
268
+ "onDelete": "no action",
269
+ "onUpdate": "no action"
270
+ }
271
+ },
272
+ "compositePrimaryKeys": {},
273
+ "uniqueConstraints": {},
274
+ "policies": {},
275
+ "checkConstraints": {},
276
+ "isRLSEnabled": false
277
+ },
278
+ "public.wallet_deposit_address": {
279
+ "name": "wallet_deposit_address",
280
+ "schema": "",
281
+ "columns": {
282
+ "id": {
283
+ "name": "id",
284
+ "type": "uuid",
285
+ "primaryKey": true,
286
+ "notNull": true,
287
+ "default": "gen_random_uuid()"
288
+ },
289
+ "user_id": {
290
+ "name": "user_id",
291
+ "type": "uuid",
292
+ "primaryKey": false,
293
+ "notNull": true
294
+ },
295
+ "currency": {
296
+ "name": "currency",
297
+ "type": "text",
298
+ "primaryKey": false,
299
+ "notNull": true
300
+ },
301
+ "address": {
302
+ "name": "address",
303
+ "type": "text",
304
+ "primaryKey": false,
305
+ "notNull": true
306
+ },
307
+ "provider_name": {
308
+ "name": "provider_name",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true
312
+ },
313
+ "created_at": {
314
+ "name": "created_at",
315
+ "type": "timestamp with time zone",
316
+ "primaryKey": false,
317
+ "notNull": true,
318
+ "default": "now()"
319
+ }
320
+ },
321
+ "indexes": {
322
+ "wallet_deposit_address_user_id_currency_idx": {
323
+ "name": "wallet_deposit_address_user_id_currency_idx",
324
+ "columns": [
325
+ {
326
+ "expression": "user_id",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ },
331
+ {
332
+ "expression": "currency",
333
+ "isExpression": false,
334
+ "asc": true,
335
+ "nulls": "last"
336
+ }
337
+ ],
338
+ "isUnique": true,
339
+ "concurrently": false,
340
+ "method": "btree",
341
+ "with": {}
342
+ },
343
+ "wallet_deposit_address_address_idx": {
344
+ "name": "wallet_deposit_address_address_idx",
345
+ "columns": [
346
+ {
347
+ "expression": "address",
348
+ "isExpression": false,
349
+ "asc": true,
350
+ "nulls": "last"
351
+ }
352
+ ],
353
+ "isUnique": false,
354
+ "concurrently": false,
355
+ "method": "btree",
356
+ "with": {}
357
+ }
358
+ },
359
+ "foreignKeys": {},
360
+ "compositePrimaryKeys": {},
361
+ "uniqueConstraints": {},
362
+ "policies": {},
363
+ "checkConstraints": {},
364
+ "isRLSEnabled": false
365
+ },
366
+ "public.wallet_transaction": {
367
+ "name": "wallet_transaction",
368
+ "schema": "",
369
+ "columns": {
370
+ "id": {
371
+ "name": "id",
372
+ "type": "uuid",
373
+ "primaryKey": true,
374
+ "notNull": true,
375
+ "default": "gen_random_uuid()"
376
+ },
377
+ "wallet_id": {
378
+ "name": "wallet_id",
379
+ "type": "uuid",
380
+ "primaryKey": false,
381
+ "notNull": true
382
+ },
383
+ "type": {
384
+ "name": "type",
385
+ "type": "wallet_transaction_type",
386
+ "typeSchema": "public",
387
+ "primaryKey": false,
388
+ "notNull": true
389
+ },
390
+ "amount": {
391
+ "name": "amount",
392
+ "type": "numeric(38, 18)",
393
+ "primaryKey": false,
394
+ "notNull": true
395
+ },
396
+ "currency": {
397
+ "name": "currency",
398
+ "type": "text",
399
+ "primaryKey": false,
400
+ "notNull": true
401
+ },
402
+ "status": {
403
+ "name": "status",
404
+ "type": "wallet_transaction_status",
405
+ "typeSchema": "public",
406
+ "primaryKey": false,
407
+ "notNull": true,
408
+ "default": "'pending'"
409
+ },
410
+ "rail": {
411
+ "name": "rail",
412
+ "type": "wallet_rail",
413
+ "typeSchema": "public",
414
+ "primaryKey": false,
415
+ "notNull": false
416
+ },
417
+ "reviewed_by": {
418
+ "name": "reviewed_by",
419
+ "type": "uuid",
420
+ "primaryKey": false,
421
+ "notNull": false
422
+ },
423
+ "reviewed_at": {
424
+ "name": "reviewed_at",
425
+ "type": "timestamp with time zone",
426
+ "primaryKey": false,
427
+ "notNull": false
428
+ },
429
+ "review_reason": {
430
+ "name": "review_reason",
431
+ "type": "text",
432
+ "primaryKey": false,
433
+ "notNull": false
434
+ },
435
+ "provider_name": {
436
+ "name": "provider_name",
437
+ "type": "text",
438
+ "primaryKey": false,
439
+ "notNull": false
440
+ },
441
+ "provider_ref_id": {
442
+ "name": "provider_ref_id",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": false
446
+ },
447
+ "destination_address": {
448
+ "name": "destination_address",
449
+ "type": "text",
450
+ "primaryKey": false,
451
+ "notNull": false
452
+ },
453
+ "tx_hash": {
454
+ "name": "tx_hash",
455
+ "type": "text",
456
+ "primaryKey": false,
457
+ "notNull": false
458
+ },
459
+ "metadata": {
460
+ "name": "metadata",
461
+ "type": "text",
462
+ "primaryKey": false,
463
+ "notNull": false
464
+ },
465
+ "idempotency_key": {
466
+ "name": "idempotency_key",
467
+ "type": "uuid",
468
+ "primaryKey": false,
469
+ "notNull": false
470
+ },
471
+ "created_at": {
472
+ "name": "created_at",
473
+ "type": "timestamp with time zone",
474
+ "primaryKey": false,
475
+ "notNull": true,
476
+ "default": "now()"
477
+ }
478
+ },
479
+ "indexes": {
480
+ "wallet_transaction_wallet_id_idx": {
481
+ "name": "wallet_transaction_wallet_id_idx",
482
+ "columns": [
483
+ {
484
+ "expression": "wallet_id",
485
+ "isExpression": false,
486
+ "asc": true,
487
+ "nulls": "last"
488
+ }
489
+ ],
490
+ "isUnique": false,
491
+ "concurrently": false,
492
+ "method": "btree",
493
+ "with": {}
494
+ },
495
+ "wallet_transaction_created_at_idx": {
496
+ "name": "wallet_transaction_created_at_idx",
497
+ "columns": [
498
+ {
499
+ "expression": "created_at",
500
+ "isExpression": false,
501
+ "asc": true,
502
+ "nulls": "last"
503
+ }
504
+ ],
505
+ "isUnique": false,
506
+ "concurrently": false,
507
+ "method": "btree",
508
+ "with": {}
509
+ },
510
+ "wallet_transaction_type_idx": {
511
+ "name": "wallet_transaction_type_idx",
512
+ "columns": [
513
+ {
514
+ "expression": "type",
515
+ "isExpression": false,
516
+ "asc": true,
517
+ "nulls": "last"
518
+ }
519
+ ],
520
+ "isUnique": false,
521
+ "concurrently": false,
522
+ "method": "btree",
523
+ "with": {}
524
+ },
525
+ "wallet_transaction_status_idx": {
526
+ "name": "wallet_transaction_status_idx",
527
+ "columns": [
528
+ {
529
+ "expression": "status",
530
+ "isExpression": false,
531
+ "asc": true,
532
+ "nulls": "last"
533
+ }
534
+ ],
535
+ "isUnique": false,
536
+ "concurrently": false,
537
+ "method": "btree",
538
+ "with": {}
539
+ },
540
+ "wallet_transaction_rail_idx": {
541
+ "name": "wallet_transaction_rail_idx",
542
+ "columns": [
543
+ {
544
+ "expression": "rail",
545
+ "isExpression": false,
546
+ "asc": true,
547
+ "nulls": "last"
548
+ }
549
+ ],
550
+ "isUnique": false,
551
+ "concurrently": false,
552
+ "method": "btree",
553
+ "with": {}
554
+ },
555
+ "wallet_transaction_currency_idx": {
556
+ "name": "wallet_transaction_currency_idx",
557
+ "columns": [
558
+ {
559
+ "expression": "currency",
560
+ "isExpression": false,
561
+ "asc": true,
562
+ "nulls": "last"
563
+ }
564
+ ],
565
+ "isUnique": false,
566
+ "concurrently": false,
567
+ "method": "btree",
568
+ "with": {}
569
+ },
570
+ "wallet_transaction_tx_hash_idx": {
571
+ "name": "wallet_transaction_tx_hash_idx",
572
+ "columns": [
573
+ {
574
+ "expression": "tx_hash",
575
+ "isExpression": false,
576
+ "asc": true,
577
+ "nulls": "last"
578
+ }
579
+ ],
580
+ "isUnique": false,
581
+ "concurrently": false,
582
+ "method": "btree",
583
+ "with": {}
584
+ },
585
+ "wallet_transaction_status_type_created_at_idx": {
586
+ "name": "wallet_transaction_status_type_created_at_idx",
587
+ "columns": [
588
+ {
589
+ "expression": "status",
590
+ "isExpression": false,
591
+ "asc": true,
592
+ "nulls": "last"
593
+ },
594
+ {
595
+ "expression": "type",
596
+ "isExpression": false,
597
+ "asc": true,
598
+ "nulls": "last"
599
+ },
600
+ {
601
+ "expression": "created_at",
602
+ "isExpression": false,
603
+ "asc": true,
604
+ "nulls": "last"
605
+ }
606
+ ],
607
+ "isUnique": false,
608
+ "concurrently": false,
609
+ "method": "btree",
610
+ "with": {}
611
+ },
612
+ "wallet_transaction_wallet_id_type_status_idx": {
613
+ "name": "wallet_transaction_wallet_id_type_status_idx",
614
+ "columns": [
615
+ {
616
+ "expression": "wallet_id",
617
+ "isExpression": false,
618
+ "asc": true,
619
+ "nulls": "last"
620
+ },
621
+ {
622
+ "expression": "type",
623
+ "isExpression": false,
624
+ "asc": true,
625
+ "nulls": "last"
626
+ },
627
+ {
628
+ "expression": "status",
629
+ "isExpression": false,
630
+ "asc": true,
631
+ "nulls": "last"
632
+ }
633
+ ],
634
+ "isUnique": false,
635
+ "concurrently": false,
636
+ "method": "btree",
637
+ "with": {}
638
+ },
639
+ "wallet_transaction_provider_ref_id_idx": {
640
+ "name": "wallet_transaction_provider_ref_id_idx",
641
+ "columns": [
642
+ {
643
+ "expression": "provider_ref_id",
644
+ "isExpression": false,
645
+ "asc": true,
646
+ "nulls": "last"
647
+ }
648
+ ],
649
+ "isUnique": true,
650
+ "where": "\"wallet_transaction\".\"provider_ref_id\" IS NOT NULL",
651
+ "concurrently": false,
652
+ "method": "btree",
653
+ "with": {}
654
+ },
655
+ "wallet_transaction_wallet_id_idempotency_key_idx": {
656
+ "name": "wallet_transaction_wallet_id_idempotency_key_idx",
657
+ "columns": [
658
+ {
659
+ "expression": "wallet_id",
660
+ "isExpression": false,
661
+ "asc": true,
662
+ "nulls": "last"
663
+ },
664
+ {
665
+ "expression": "idempotency_key",
666
+ "isExpression": false,
667
+ "asc": true,
668
+ "nulls": "last"
669
+ }
670
+ ],
671
+ "isUnique": true,
672
+ "where": "\"wallet_transaction\".\"idempotency_key\" IS NOT NULL",
673
+ "concurrently": false,
674
+ "method": "btree",
675
+ "with": {}
676
+ }
677
+ },
678
+ "foreignKeys": {
679
+ "wallet_transaction_wallet_id_wallet_id_fk": {
680
+ "name": "wallet_transaction_wallet_id_wallet_id_fk",
681
+ "tableFrom": "wallet_transaction",
682
+ "tableTo": "wallet",
683
+ "columnsFrom": ["wallet_id"],
684
+ "columnsTo": ["id"],
685
+ "onDelete": "no action",
686
+ "onUpdate": "no action"
687
+ }
688
+ },
689
+ "compositePrimaryKeys": {},
690
+ "uniqueConstraints": {},
691
+ "policies": {},
692
+ "checkConstraints": {},
693
+ "isRLSEnabled": false
694
+ }
695
+ },
696
+ "enums": {
697
+ "public.wallet_rail": {
698
+ "name": "wallet_rail",
699
+ "schema": "public",
700
+ "values": ["crypto", "fiat"]
701
+ },
702
+ "public.wallet_transaction_status": {
703
+ "name": "wallet_transaction_status",
704
+ "schema": "public",
705
+ "values": ["pending", "processing", "completed", "failed", "rejected", "on_hold", "cancelled"]
706
+ },
707
+ "public.wallet_transaction_type": {
708
+ "name": "wallet_transaction_type",
709
+ "schema": "public",
710
+ "values": ["deposit", "withdrawal", "bet", "win", "loss", "bonus", "tip", "gift", "rain"]
711
+ }
712
+ },
713
+ "schemas": {},
714
+ "sequences": {},
715
+ "roles": {},
716
+ "policies": {},
717
+ "views": {},
718
+ "_meta": {
719
+ "columns": {},
720
+ "schemas": {},
721
+ "tables": {}
722
+ }
723
+ }