@openora/core 0.4.1-canary.173 → 0.4.1-canary.175

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 (84) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/admin-console/contract/index.d.ts +57 -0
  3. package/dist/admin-console/contract/index.d.ts.map +1 -1
  4. package/dist/admin-console/contract/index.js +27 -1
  5. package/dist/admin-console/contract/index.js.map +1 -1
  6. package/dist/admin-console/router/index.d.ts +24 -0
  7. package/dist/admin-console/router/index.d.ts.map +1 -1
  8. package/dist/admin-console/router/index.js +5 -1
  9. package/dist/admin-console/router/index.js.map +1 -1
  10. package/dist/admin-console/service/backoffice.service.d.ts +8 -1
  11. package/dist/admin-console/service/backoffice.service.d.ts.map +1 -1
  12. package/dist/admin-console/service/backoffice.service.js +31 -1
  13. package/dist/admin-console/service/backoffice.service.js.map +1 -1
  14. package/dist/audit/__tests__/map-event.test.js +17 -0
  15. package/dist/audit/__tests__/map-event.test.js.map +1 -1
  16. package/dist/audit/plugin.d.ts.map +1 -1
  17. package/dist/audit/plugin.js +11 -0
  18. package/dist/audit/plugin.js.map +1 -1
  19. package/dist/casino/gaming/__tests__/admin-reporting.int.test.js +134 -0
  20. package/dist/casino/gaming/__tests__/admin-reporting.int.test.js.map +1 -1
  21. package/dist/casino/gaming/__tests__/game-catalog-reader.service.int.test.js +2 -0
  22. package/dist/casino/gaming/__tests__/game-catalog-reader.service.int.test.js.map +1 -1
  23. package/dist/casino/gaming/__tests__/gaming-catalog-admin.router.int.test.js +36 -2
  24. package/dist/casino/gaming/__tests__/gaming-catalog-admin.router.int.test.js.map +1 -1
  25. package/dist/casino/gaming/__tests__/gaming-migration.int.test.js +4 -9
  26. package/dist/casino/gaming/__tests__/gaming-migration.int.test.js.map +1 -1
  27. package/dist/casino/gaming/__tests__/gaming.service.int.test.js +58 -0
  28. package/dist/casino/gaming/__tests__/gaming.service.int.test.js.map +1 -1
  29. package/dist/casino/gaming/admin-reporting.d.ts +2 -1
  30. package/dist/casino/gaming/admin-reporting.d.ts.map +1 -1
  31. package/dist/casino/gaming/admin-reporting.js +64 -0
  32. package/dist/casino/gaming/admin-reporting.js.map +1 -1
  33. package/dist/casino/gaming/contract/index.d.ts +9 -0
  34. package/dist/casino/gaming/contract/index.d.ts.map +1 -1
  35. package/dist/casino/gaming/contract/index.js +5 -1
  36. package/dist/casino/gaming/contract/index.js.map +1 -1
  37. package/dist/casino/gaming/drizzle/migrations/0007_flowery_toad.sql +1 -0
  38. package/dist/casino/gaming/drizzle/migrations/meta/0007_snapshot.json +892 -0
  39. package/dist/casino/gaming/drizzle/migrations/meta/_journal.json +7 -0
  40. package/dist/casino/gaming/plugin.d.ts.map +1 -1
  41. package/dist/casino/gaming/plugin.js +1 -0
  42. package/dist/casino/gaming/plugin.js.map +1 -1
  43. package/dist/casino/gaming/router/index.d.ts +6 -0
  44. package/dist/casino/gaming/router/index.d.ts.map +1 -1
  45. package/dist/casino/gaming/schema/index.d.ts +17 -0
  46. package/dist/casino/gaming/schema/index.d.ts.map +1 -1
  47. package/dist/casino/gaming/schema/index.js +1 -0
  48. package/dist/casino/gaming/schema/index.js.map +1 -1
  49. package/dist/casino/gaming/service/gaming.service.d.ts +9 -1
  50. package/dist/casino/gaming/service/gaming.service.d.ts.map +1 -1
  51. package/dist/casino/gaming/service/gaming.service.js +27 -2
  52. package/dist/casino/gaming/service/gaming.service.js.map +1 -1
  53. package/dist/casino/shared/game-catalog.d.ts +1 -1
  54. package/dist/casino/shared/game-catalog.d.ts.map +1 -1
  55. package/dist/casino/shared/game-catalog.js +5 -4
  56. package/dist/casino/shared/game-catalog.js.map +1 -1
  57. package/dist/contracts/adapters/admin-game-reporting.d.ts +31 -0
  58. package/dist/contracts/adapters/admin-game-reporting.d.ts.map +1 -1
  59. package/dist/contracts/adapters/admin-game-reporting.js.map +1 -1
  60. package/dist/contracts/adapters/game-catalog-reader.d.ts +4 -3
  61. package/dist/contracts/adapters/game-catalog-reader.d.ts.map +1 -1
  62. package/dist/contracts/adapters/game-catalog-reader.js +4 -3
  63. package/dist/contracts/adapters/game-catalog-reader.js.map +1 -1
  64. package/dist/contracts/adapters/gaming-commands.d.ts +11 -0
  65. package/dist/contracts/adapters/gaming-commands.d.ts.map +1 -1
  66. package/dist/contracts/adapters/gaming-commands.js.map +1 -1
  67. package/dist/contracts/adapters/index.d.ts +2 -2
  68. package/dist/contracts/adapters/index.d.ts.map +1 -1
  69. package/dist/contracts/adapters/index.js.map +1 -1
  70. package/dist/contracts/schemas/__tests__/reporting-schemas.test.d.ts +2 -0
  71. package/dist/contracts/schemas/__tests__/reporting-schemas.test.d.ts.map +1 -0
  72. package/dist/contracts/schemas/__tests__/reporting-schemas.test.js +21 -0
  73. package/dist/contracts/schemas/__tests__/reporting-schemas.test.js.map +1 -0
  74. package/dist/contracts/schemas/events.d.ts +9 -0
  75. package/dist/contracts/schemas/events.d.ts.map +1 -1
  76. package/dist/contracts/schemas/events.js +5 -0
  77. package/dist/contracts/schemas/events.js.map +1 -1
  78. package/dist/contracts/schemas/reporting.d.ts +5 -0
  79. package/dist/contracts/schemas/reporting.d.ts.map +1 -1
  80. package/dist/contracts/schemas/reporting.js +19 -0
  81. package/dist/contracts/schemas/reporting.js.map +1 -1
  82. package/dist/engagement/social/contract/index.d.ts +3 -3
  83. package/dist/engagement/social/router/index.d.ts +1 -1
  84. package/package.json +1 -1
@@ -0,0 +1,892 @@
1
+ {
2
+ "id": "50b573ae-98ba-48fb-95f2-d41444758d28",
3
+ "prevId": "5e5cb720-6741-4f98-9423-9cb49c769105",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.game": {
8
+ "name": "game",
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
+ "name": {
19
+ "name": "name",
20
+ "type": "text",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "slug": {
25
+ "name": "slug",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": true
29
+ },
30
+ "provider_id": {
31
+ "name": "provider_id",
32
+ "type": "uuid",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "aggregator": {
37
+ "name": "aggregator",
38
+ "type": "text",
39
+ "primaryKey": false,
40
+ "notNull": true
41
+ },
42
+ "game_type": {
43
+ "name": "game_type",
44
+ "type": "game_type",
45
+ "typeSchema": "public",
46
+ "primaryKey": false,
47
+ "notNull": true,
48
+ "default": "'casino'"
49
+ },
50
+ "thumbnail_url": {
51
+ "name": "thumbnail_url",
52
+ "type": "text",
53
+ "primaryKey": false,
54
+ "notNull": false
55
+ },
56
+ "is_active": {
57
+ "name": "is_active",
58
+ "type": "boolean",
59
+ "primaryKey": false,
60
+ "notNull": true,
61
+ "default": false
62
+ },
63
+ "is_unavailable": {
64
+ "name": "is_unavailable",
65
+ "type": "boolean",
66
+ "primaryKey": false,
67
+ "notNull": true,
68
+ "default": false
69
+ },
70
+ "metadata": {
71
+ "name": "metadata",
72
+ "type": "jsonb",
73
+ "primaryKey": false,
74
+ "notNull": false
75
+ },
76
+ "created_at": {
77
+ "name": "created_at",
78
+ "type": "timestamp with time zone",
79
+ "primaryKey": false,
80
+ "notNull": true,
81
+ "default": "now()"
82
+ },
83
+ "provider": {
84
+ "name": "provider",
85
+ "type": "text",
86
+ "primaryKey": false,
87
+ "notNull": false
88
+ },
89
+ "category": {
90
+ "name": "category",
91
+ "type": "text",
92
+ "primaryKey": false,
93
+ "notNull": false
94
+ }
95
+ },
96
+ "indexes": {
97
+ "game_slug_key": {
98
+ "name": "game_slug_key",
99
+ "columns": [
100
+ {
101
+ "expression": "slug",
102
+ "isExpression": false,
103
+ "asc": true,
104
+ "nulls": "last"
105
+ }
106
+ ],
107
+ "isUnique": true,
108
+ "concurrently": false,
109
+ "method": "btree",
110
+ "with": {}
111
+ },
112
+ "game_provider_id_idx": {
113
+ "name": "game_provider_id_idx",
114
+ "columns": [
115
+ {
116
+ "expression": "provider_id",
117
+ "isExpression": false,
118
+ "asc": true,
119
+ "nulls": "last"
120
+ }
121
+ ],
122
+ "isUnique": false,
123
+ "concurrently": false,
124
+ "method": "btree",
125
+ "with": {}
126
+ },
127
+ "game_aggregator_idx": {
128
+ "name": "game_aggregator_idx",
129
+ "columns": [
130
+ {
131
+ "expression": "aggregator",
132
+ "isExpression": false,
133
+ "asc": true,
134
+ "nulls": "last"
135
+ }
136
+ ],
137
+ "isUnique": false,
138
+ "concurrently": false,
139
+ "method": "btree",
140
+ "with": {}
141
+ }
142
+ },
143
+ "foreignKeys": {
144
+ "game_provider_id_game_provider_id_fk": {
145
+ "name": "game_provider_id_game_provider_id_fk",
146
+ "tableFrom": "game",
147
+ "tableTo": "game_provider",
148
+ "columnsFrom": ["provider_id"],
149
+ "columnsTo": ["id"],
150
+ "onDelete": "no action",
151
+ "onUpdate": "no action"
152
+ }
153
+ },
154
+ "compositePrimaryKeys": {},
155
+ "uniqueConstraints": {},
156
+ "policies": {},
157
+ "checkConstraints": {},
158
+ "isRLSEnabled": false
159
+ },
160
+ "public.game_category": {
161
+ "name": "game_category",
162
+ "schema": "",
163
+ "columns": {
164
+ "id": {
165
+ "name": "id",
166
+ "type": "uuid",
167
+ "primaryKey": true,
168
+ "notNull": true,
169
+ "default": "gen_random_uuid()"
170
+ },
171
+ "slug": {
172
+ "name": "slug",
173
+ "type": "text",
174
+ "primaryKey": false,
175
+ "notNull": true
176
+ },
177
+ "name": {
178
+ "name": "name",
179
+ "type": "text",
180
+ "primaryKey": false,
181
+ "notNull": true
182
+ },
183
+ "translations": {
184
+ "name": "translations",
185
+ "type": "jsonb",
186
+ "primaryKey": false,
187
+ "notNull": true,
188
+ "default": "'{}'::jsonb"
189
+ },
190
+ "icon": {
191
+ "name": "icon",
192
+ "type": "text",
193
+ "primaryKey": false,
194
+ "notNull": false
195
+ },
196
+ "sort_order": {
197
+ "name": "sort_order",
198
+ "type": "integer",
199
+ "primaryKey": false,
200
+ "notNull": true,
201
+ "default": 0
202
+ },
203
+ "is_active": {
204
+ "name": "is_active",
205
+ "type": "boolean",
206
+ "primaryKey": false,
207
+ "notNull": true,
208
+ "default": true
209
+ },
210
+ "updated_at": {
211
+ "name": "updated_at",
212
+ "type": "timestamp with time zone",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "created_at": {
217
+ "name": "created_at",
218
+ "type": "timestamp with time zone",
219
+ "primaryKey": false,
220
+ "notNull": true,
221
+ "default": "now()"
222
+ }
223
+ },
224
+ "indexes": {
225
+ "game_category_slug_key": {
226
+ "name": "game_category_slug_key",
227
+ "columns": [
228
+ {
229
+ "expression": "slug",
230
+ "isExpression": false,
231
+ "asc": true,
232
+ "nulls": "last"
233
+ }
234
+ ],
235
+ "isUnique": true,
236
+ "concurrently": false,
237
+ "method": "btree",
238
+ "with": {}
239
+ }
240
+ },
241
+ "foreignKeys": {},
242
+ "compositePrimaryKeys": {},
243
+ "uniqueConstraints": {},
244
+ "policies": {},
245
+ "checkConstraints": {},
246
+ "isRLSEnabled": false
247
+ },
248
+ "public.game_category_game": {
249
+ "name": "game_category_game",
250
+ "schema": "",
251
+ "columns": {
252
+ "id": {
253
+ "name": "id",
254
+ "type": "uuid",
255
+ "primaryKey": true,
256
+ "notNull": true,
257
+ "default": "gen_random_uuid()"
258
+ },
259
+ "game_id": {
260
+ "name": "game_id",
261
+ "type": "uuid",
262
+ "primaryKey": false,
263
+ "notNull": true
264
+ },
265
+ "category_id": {
266
+ "name": "category_id",
267
+ "type": "uuid",
268
+ "primaryKey": false,
269
+ "notNull": true
270
+ }
271
+ },
272
+ "indexes": {
273
+ "game_category_game_key": {
274
+ "name": "game_category_game_key",
275
+ "columns": [
276
+ {
277
+ "expression": "game_id",
278
+ "isExpression": false,
279
+ "asc": true,
280
+ "nulls": "last"
281
+ },
282
+ {
283
+ "expression": "category_id",
284
+ "isExpression": false,
285
+ "asc": true,
286
+ "nulls": "last"
287
+ }
288
+ ],
289
+ "isUnique": true,
290
+ "concurrently": false,
291
+ "method": "btree",
292
+ "with": {}
293
+ },
294
+ "game_category_game_category_id_idx": {
295
+ "name": "game_category_game_category_id_idx",
296
+ "columns": [
297
+ {
298
+ "expression": "category_id",
299
+ "isExpression": false,
300
+ "asc": true,
301
+ "nulls": "last"
302
+ }
303
+ ],
304
+ "isUnique": false,
305
+ "concurrently": false,
306
+ "method": "btree",
307
+ "with": {}
308
+ }
309
+ },
310
+ "foreignKeys": {
311
+ "game_category_game_game_id_game_id_fk": {
312
+ "name": "game_category_game_game_id_game_id_fk",
313
+ "tableFrom": "game_category_game",
314
+ "tableTo": "game",
315
+ "columnsFrom": ["game_id"],
316
+ "columnsTo": ["id"],
317
+ "onDelete": "cascade",
318
+ "onUpdate": "no action"
319
+ },
320
+ "game_category_game_category_id_game_category_id_fk": {
321
+ "name": "game_category_game_category_id_game_category_id_fk",
322
+ "tableFrom": "game_category_game",
323
+ "tableTo": "game_category",
324
+ "columnsFrom": ["category_id"],
325
+ "columnsTo": ["id"],
326
+ "onDelete": "cascade",
327
+ "onUpdate": "no action"
328
+ }
329
+ },
330
+ "compositePrimaryKeys": {},
331
+ "uniqueConstraints": {},
332
+ "policies": {},
333
+ "checkConstraints": {},
334
+ "isRLSEnabled": false
335
+ },
336
+ "public.game_provider": {
337
+ "name": "game_provider",
338
+ "schema": "",
339
+ "columns": {
340
+ "id": {
341
+ "name": "id",
342
+ "type": "uuid",
343
+ "primaryKey": true,
344
+ "notNull": true,
345
+ "default": "gen_random_uuid()"
346
+ },
347
+ "slug": {
348
+ "name": "slug",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": true
352
+ },
353
+ "name": {
354
+ "name": "name",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": true
358
+ },
359
+ "logo_url": {
360
+ "name": "logo_url",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": false
364
+ },
365
+ "is_active": {
366
+ "name": "is_active",
367
+ "type": "boolean",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "default": false
371
+ },
372
+ "metadata": {
373
+ "name": "metadata",
374
+ "type": "jsonb",
375
+ "primaryKey": false,
376
+ "notNull": false
377
+ },
378
+ "updated_at": {
379
+ "name": "updated_at",
380
+ "type": "timestamp with time zone",
381
+ "primaryKey": false,
382
+ "notNull": true
383
+ },
384
+ "created_at": {
385
+ "name": "created_at",
386
+ "type": "timestamp with time zone",
387
+ "primaryKey": false,
388
+ "notNull": true,
389
+ "default": "now()"
390
+ }
391
+ },
392
+ "indexes": {
393
+ "game_provider_slug_key": {
394
+ "name": "game_provider_slug_key",
395
+ "columns": [
396
+ {
397
+ "expression": "slug",
398
+ "isExpression": false,
399
+ "asc": true,
400
+ "nulls": "last"
401
+ }
402
+ ],
403
+ "isUnique": true,
404
+ "concurrently": false,
405
+ "method": "btree",
406
+ "with": {}
407
+ }
408
+ },
409
+ "foreignKeys": {},
410
+ "compositePrimaryKeys": {},
411
+ "uniqueConstraints": {},
412
+ "policies": {},
413
+ "checkConstraints": {},
414
+ "isRLSEnabled": false
415
+ },
416
+ "public.game_provider_aggregator_mapping": {
417
+ "name": "game_provider_aggregator_mapping",
418
+ "schema": "",
419
+ "columns": {
420
+ "id": {
421
+ "name": "id",
422
+ "type": "uuid",
423
+ "primaryKey": true,
424
+ "notNull": true,
425
+ "default": "gen_random_uuid()"
426
+ },
427
+ "provider_id": {
428
+ "name": "provider_id",
429
+ "type": "uuid",
430
+ "primaryKey": false,
431
+ "notNull": true
432
+ },
433
+ "aggregator": {
434
+ "name": "aggregator",
435
+ "type": "text",
436
+ "primaryKey": false,
437
+ "notNull": true
438
+ },
439
+ "vendor_id": {
440
+ "name": "vendor_id",
441
+ "type": "text",
442
+ "primaryKey": false,
443
+ "notNull": true
444
+ }
445
+ },
446
+ "indexes": {
447
+ "game_provider_aggregator_mapping_provider_aggregator_key": {
448
+ "name": "game_provider_aggregator_mapping_provider_aggregator_key",
449
+ "columns": [
450
+ {
451
+ "expression": "provider_id",
452
+ "isExpression": false,
453
+ "asc": true,
454
+ "nulls": "last"
455
+ },
456
+ {
457
+ "expression": "aggregator",
458
+ "isExpression": false,
459
+ "asc": true,
460
+ "nulls": "last"
461
+ }
462
+ ],
463
+ "isUnique": true,
464
+ "concurrently": false,
465
+ "method": "btree",
466
+ "with": {}
467
+ },
468
+ "game_provider_aggregator_mapping_aggregator_vendor_id_key": {
469
+ "name": "game_provider_aggregator_mapping_aggregator_vendor_id_key",
470
+ "columns": [
471
+ {
472
+ "expression": "aggregator",
473
+ "isExpression": false,
474
+ "asc": true,
475
+ "nulls": "last"
476
+ },
477
+ {
478
+ "expression": "vendor_id",
479
+ "isExpression": false,
480
+ "asc": true,
481
+ "nulls": "last"
482
+ }
483
+ ],
484
+ "isUnique": true,
485
+ "concurrently": false,
486
+ "method": "btree",
487
+ "with": {}
488
+ }
489
+ },
490
+ "foreignKeys": {
491
+ "game_provider_aggregator_mapping_provider_id_game_provider_id_fk": {
492
+ "name": "game_provider_aggregator_mapping_provider_id_game_provider_id_fk",
493
+ "tableFrom": "game_provider_aggregator_mapping",
494
+ "tableTo": "game_provider",
495
+ "columnsFrom": ["provider_id"],
496
+ "columnsTo": ["id"],
497
+ "onDelete": "cascade",
498
+ "onUpdate": "no action"
499
+ }
500
+ },
501
+ "compositePrimaryKeys": {},
502
+ "uniqueConstraints": {},
503
+ "policies": {},
504
+ "checkConstraints": {},
505
+ "isRLSEnabled": false
506
+ },
507
+ "public.game_round": {
508
+ "name": "game_round",
509
+ "schema": "",
510
+ "columns": {
511
+ "id": {
512
+ "name": "id",
513
+ "type": "uuid",
514
+ "primaryKey": true,
515
+ "notNull": true,
516
+ "default": "gen_random_uuid()"
517
+ },
518
+ "game_id": {
519
+ "name": "game_id",
520
+ "type": "uuid",
521
+ "primaryKey": false,
522
+ "notNull": true
523
+ },
524
+ "user_id": {
525
+ "name": "user_id",
526
+ "type": "uuid",
527
+ "primaryKey": false,
528
+ "notNull": true
529
+ },
530
+ "status": {
531
+ "name": "status",
532
+ "type": "game_round_status",
533
+ "typeSchema": "public",
534
+ "primaryKey": false,
535
+ "notNull": true,
536
+ "default": "'active'"
537
+ },
538
+ "bet_amount": {
539
+ "name": "bet_amount",
540
+ "type": "numeric(38, 18)",
541
+ "primaryKey": false,
542
+ "notNull": true,
543
+ "default": "'0'"
544
+ },
545
+ "win_amount": {
546
+ "name": "win_amount",
547
+ "type": "numeric(38, 18)",
548
+ "primaryKey": false,
549
+ "notNull": true,
550
+ "default": "'0'"
551
+ },
552
+ "currency": {
553
+ "name": "currency",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": true
557
+ },
558
+ "started_at": {
559
+ "name": "started_at",
560
+ "type": "timestamp with time zone",
561
+ "primaryKey": false,
562
+ "notNull": true,
563
+ "default": "now()"
564
+ },
565
+ "ended_at": {
566
+ "name": "ended_at",
567
+ "type": "timestamp with time zone",
568
+ "primaryKey": false,
569
+ "notNull": false
570
+ },
571
+ "external_round_id": {
572
+ "name": "external_round_id",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": false
576
+ }
577
+ },
578
+ "indexes": {
579
+ "game_round_user_id_idx": {
580
+ "name": "game_round_user_id_idx",
581
+ "columns": [
582
+ {
583
+ "expression": "user_id",
584
+ "isExpression": false,
585
+ "asc": true,
586
+ "nulls": "last"
587
+ }
588
+ ],
589
+ "isUnique": false,
590
+ "concurrently": false,
591
+ "method": "btree",
592
+ "with": {}
593
+ },
594
+ "game_round_game_id_started_at_idx": {
595
+ "name": "game_round_game_id_started_at_idx",
596
+ "columns": [
597
+ {
598
+ "expression": "game_id",
599
+ "isExpression": false,
600
+ "asc": true,
601
+ "nulls": "last"
602
+ },
603
+ {
604
+ "expression": "started_at",
605
+ "isExpression": false,
606
+ "asc": true,
607
+ "nulls": "last"
608
+ }
609
+ ],
610
+ "isUnique": false,
611
+ "concurrently": false,
612
+ "method": "btree",
613
+ "with": {}
614
+ },
615
+ "game_round_started_at_idx": {
616
+ "name": "game_round_started_at_idx",
617
+ "columns": [
618
+ {
619
+ "expression": "started_at",
620
+ "isExpression": false,
621
+ "asc": true,
622
+ "nulls": "last"
623
+ }
624
+ ],
625
+ "isUnique": false,
626
+ "concurrently": false,
627
+ "method": "btree",
628
+ "with": {}
629
+ },
630
+ "game_round_external_round_id_idx": {
631
+ "name": "game_round_external_round_id_idx",
632
+ "columns": [
633
+ {
634
+ "expression": "external_round_id",
635
+ "isExpression": false,
636
+ "asc": true,
637
+ "nulls": "last"
638
+ }
639
+ ],
640
+ "isUnique": true,
641
+ "where": "\"game_round\".\"external_round_id\" IS NOT NULL",
642
+ "concurrently": false,
643
+ "method": "btree",
644
+ "with": {}
645
+ }
646
+ },
647
+ "foreignKeys": {
648
+ "game_round_game_id_game_id_fk": {
649
+ "name": "game_round_game_id_game_id_fk",
650
+ "tableFrom": "game_round",
651
+ "tableTo": "game",
652
+ "columnsFrom": ["game_id"],
653
+ "columnsTo": ["id"],
654
+ "onDelete": "no action",
655
+ "onUpdate": "no action"
656
+ }
657
+ },
658
+ "compositePrimaryKeys": {},
659
+ "uniqueConstraints": {},
660
+ "policies": {},
661
+ "checkConstraints": {},
662
+ "isRLSEnabled": false
663
+ },
664
+ "public.game_tag": {
665
+ "name": "game_tag",
666
+ "schema": "",
667
+ "columns": {
668
+ "id": {
669
+ "name": "id",
670
+ "type": "uuid",
671
+ "primaryKey": true,
672
+ "notNull": true,
673
+ "default": "gen_random_uuid()"
674
+ },
675
+ "name": {
676
+ "name": "name",
677
+ "type": "text",
678
+ "primaryKey": false,
679
+ "notNull": true
680
+ },
681
+ "type": {
682
+ "name": "type",
683
+ "type": "game_tag_type",
684
+ "typeSchema": "public",
685
+ "primaryKey": false,
686
+ "notNull": true,
687
+ "default": "'custom'"
688
+ },
689
+ "visibility": {
690
+ "name": "visibility",
691
+ "type": "game_tag_visibility",
692
+ "typeSchema": "public",
693
+ "primaryKey": false,
694
+ "notNull": true,
695
+ "default": "'invisible'"
696
+ },
697
+ "metadata": {
698
+ "name": "metadata",
699
+ "type": "jsonb",
700
+ "primaryKey": false,
701
+ "notNull": false
702
+ },
703
+ "updated_at": {
704
+ "name": "updated_at",
705
+ "type": "timestamp with time zone",
706
+ "primaryKey": false,
707
+ "notNull": true
708
+ },
709
+ "created_at": {
710
+ "name": "created_at",
711
+ "type": "timestamp with time zone",
712
+ "primaryKey": false,
713
+ "notNull": true,
714
+ "default": "now()"
715
+ }
716
+ },
717
+ "indexes": {
718
+ "game_tag_name_key": {
719
+ "name": "game_tag_name_key",
720
+ "columns": [
721
+ {
722
+ "expression": "name",
723
+ "isExpression": false,
724
+ "asc": true,
725
+ "nulls": "last"
726
+ }
727
+ ],
728
+ "isUnique": true,
729
+ "concurrently": false,
730
+ "method": "btree",
731
+ "with": {}
732
+ },
733
+ "game_tag_type_idx": {
734
+ "name": "game_tag_type_idx",
735
+ "columns": [
736
+ {
737
+ "expression": "type",
738
+ "isExpression": false,
739
+ "asc": true,
740
+ "nulls": "last"
741
+ }
742
+ ],
743
+ "isUnique": false,
744
+ "concurrently": false,
745
+ "method": "btree",
746
+ "with": {}
747
+ },
748
+ "game_tag_visibility_idx": {
749
+ "name": "game_tag_visibility_idx",
750
+ "columns": [
751
+ {
752
+ "expression": "visibility",
753
+ "isExpression": false,
754
+ "asc": true,
755
+ "nulls": "last"
756
+ }
757
+ ],
758
+ "isUnique": false,
759
+ "concurrently": false,
760
+ "method": "btree",
761
+ "with": {}
762
+ }
763
+ },
764
+ "foreignKeys": {},
765
+ "compositePrimaryKeys": {},
766
+ "uniqueConstraints": {},
767
+ "policies": {},
768
+ "checkConstraints": {},
769
+ "isRLSEnabled": false
770
+ },
771
+ "public.game_tag_game": {
772
+ "name": "game_tag_game",
773
+ "schema": "",
774
+ "columns": {
775
+ "id": {
776
+ "name": "id",
777
+ "type": "uuid",
778
+ "primaryKey": true,
779
+ "notNull": true,
780
+ "default": "gen_random_uuid()"
781
+ },
782
+ "game_id": {
783
+ "name": "game_id",
784
+ "type": "uuid",
785
+ "primaryKey": false,
786
+ "notNull": true
787
+ },
788
+ "tag_id": {
789
+ "name": "tag_id",
790
+ "type": "uuid",
791
+ "primaryKey": false,
792
+ "notNull": true
793
+ }
794
+ },
795
+ "indexes": {
796
+ "game_tag_game_key": {
797
+ "name": "game_tag_game_key",
798
+ "columns": [
799
+ {
800
+ "expression": "game_id",
801
+ "isExpression": false,
802
+ "asc": true,
803
+ "nulls": "last"
804
+ },
805
+ {
806
+ "expression": "tag_id",
807
+ "isExpression": false,
808
+ "asc": true,
809
+ "nulls": "last"
810
+ }
811
+ ],
812
+ "isUnique": true,
813
+ "concurrently": false,
814
+ "method": "btree",
815
+ "with": {}
816
+ },
817
+ "game_tag_game_tag_id_idx": {
818
+ "name": "game_tag_game_tag_id_idx",
819
+ "columns": [
820
+ {
821
+ "expression": "tag_id",
822
+ "isExpression": false,
823
+ "asc": true,
824
+ "nulls": "last"
825
+ }
826
+ ],
827
+ "isUnique": false,
828
+ "concurrently": false,
829
+ "method": "btree",
830
+ "with": {}
831
+ }
832
+ },
833
+ "foreignKeys": {
834
+ "game_tag_game_game_id_game_id_fk": {
835
+ "name": "game_tag_game_game_id_game_id_fk",
836
+ "tableFrom": "game_tag_game",
837
+ "tableTo": "game",
838
+ "columnsFrom": ["game_id"],
839
+ "columnsTo": ["id"],
840
+ "onDelete": "cascade",
841
+ "onUpdate": "no action"
842
+ },
843
+ "game_tag_game_tag_id_game_tag_id_fk": {
844
+ "name": "game_tag_game_tag_id_game_tag_id_fk",
845
+ "tableFrom": "game_tag_game",
846
+ "tableTo": "game_tag",
847
+ "columnsFrom": ["tag_id"],
848
+ "columnsTo": ["id"],
849
+ "onDelete": "cascade",
850
+ "onUpdate": "no action"
851
+ }
852
+ },
853
+ "compositePrimaryKeys": {},
854
+ "uniqueConstraints": {},
855
+ "policies": {},
856
+ "checkConstraints": {},
857
+ "isRLSEnabled": false
858
+ }
859
+ },
860
+ "enums": {
861
+ "public.game_round_status": {
862
+ "name": "game_round_status",
863
+ "schema": "public",
864
+ "values": ["active", "completed", "cancelled"]
865
+ },
866
+ "public.game_tag_type": {
867
+ "name": "game_tag_type",
868
+ "schema": "public",
869
+ "values": ["system", "custom"]
870
+ },
871
+ "public.game_tag_visibility": {
872
+ "name": "game_tag_visibility",
873
+ "schema": "public",
874
+ "values": ["visible", "invisible"]
875
+ },
876
+ "public.game_type": {
877
+ "name": "game_type",
878
+ "schema": "public",
879
+ "values": ["original", "casino", "sportsbook"]
880
+ }
881
+ },
882
+ "schemas": {},
883
+ "sequences": {},
884
+ "roles": {},
885
+ "policies": {},
886
+ "views": {},
887
+ "_meta": {
888
+ "columns": {},
889
+ "schemas": {},
890
+ "tables": {}
891
+ }
892
+ }