@morpho-dev/router 0.9.0 → 0.10.0

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.
@@ -0,0 +1,1619 @@
1
+ {
2
+ "id": "5ad8ab3f-c473-4386-952a-d2438e0c84ed",
3
+ "prevId": "62cf8e33-a383-471f-a75f-3344cb566e84",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "router_v1.11.callbacks": {
8
+ "name": "callbacks",
9
+ "schema": "router_v1.11",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "varchar(66)",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "position_chain_id": {
18
+ "name": "position_chain_id",
19
+ "type": "bigint",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "position_contract": {
24
+ "name": "position_contract",
25
+ "type": "varchar(42)",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "position_user": {
30
+ "name": "position_user",
31
+ "type": "varchar(42)",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "position_type_id": {
36
+ "name": "position_type_id",
37
+ "type": "integer",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "amount": {
42
+ "name": "amount",
43
+ "type": "numeric(78, 0)",
44
+ "primaryKey": false,
45
+ "notNull": false
46
+ }
47
+ },
48
+ "indexes": {},
49
+ "foreignKeys": {
50
+ "callbacks_position_type_id_position_types_id_fk": {
51
+ "name": "callbacks_position_type_id_position_types_id_fk",
52
+ "tableFrom": "callbacks",
53
+ "tableTo": "position_types",
54
+ "schemaTo": "router_v1.11",
55
+ "columnsFrom": ["position_type_id"],
56
+ "columnsTo": ["id"],
57
+ "onDelete": "no action",
58
+ "onUpdate": "no action"
59
+ }
60
+ },
61
+ "compositePrimaryKeys": {},
62
+ "uniqueConstraints": {},
63
+ "policies": {},
64
+ "checkConstraints": {},
65
+ "isRLSEnabled": false
66
+ },
67
+ "router_v1.11.chains": {
68
+ "name": "chains",
69
+ "schema": "router_v1.11",
70
+ "columns": {
71
+ "chain_id": {
72
+ "name": "chain_id",
73
+ "type": "bigint",
74
+ "primaryKey": false,
75
+ "notNull": true
76
+ },
77
+ "block_number": {
78
+ "name": "block_number",
79
+ "type": "bigint",
80
+ "primaryKey": false,
81
+ "notNull": true
82
+ },
83
+ "epoch": {
84
+ "name": "epoch",
85
+ "type": "numeric(78, 0)",
86
+ "primaryKey": false,
87
+ "notNull": true,
88
+ "default": "'0'"
89
+ },
90
+ "updated_at": {
91
+ "name": "updated_at",
92
+ "type": "timestamp",
93
+ "primaryKey": false,
94
+ "notNull": true,
95
+ "default": "now()"
96
+ }
97
+ },
98
+ "indexes": {
99
+ "chains_chain_id_idx": {
100
+ "name": "chains_chain_id_idx",
101
+ "columns": [
102
+ {
103
+ "expression": "chain_id",
104
+ "isExpression": false,
105
+ "asc": true,
106
+ "nulls": "last"
107
+ }
108
+ ],
109
+ "isUnique": true,
110
+ "concurrently": false,
111
+ "method": "btree",
112
+ "with": {}
113
+ }
114
+ },
115
+ "foreignKeys": {},
116
+ "compositePrimaryKeys": {},
117
+ "uniqueConstraints": {},
118
+ "policies": {},
119
+ "checkConstraints": {},
120
+ "isRLSEnabled": false
121
+ },
122
+ "router_v1.11.collectors": {
123
+ "name": "collectors",
124
+ "schema": "router_v1.11",
125
+ "columns": {
126
+ "chain_id": {
127
+ "name": "chain_id",
128
+ "type": "bigint",
129
+ "primaryKey": false,
130
+ "notNull": true
131
+ },
132
+ "name": {
133
+ "name": "name",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "block_number": {
139
+ "name": "block_number",
140
+ "type": "bigint",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "epoch": {
145
+ "name": "epoch",
146
+ "type": "numeric(78, 0)",
147
+ "primaryKey": false,
148
+ "notNull": true,
149
+ "default": "'0'"
150
+ },
151
+ "updated_at": {
152
+ "name": "updated_at",
153
+ "type": "timestamp",
154
+ "primaryKey": false,
155
+ "notNull": true,
156
+ "default": "now()"
157
+ }
158
+ },
159
+ "indexes": {
160
+ "collectors_chain_name_idx": {
161
+ "name": "collectors_chain_name_idx",
162
+ "columns": [
163
+ {
164
+ "expression": "chain_id",
165
+ "isExpression": false,
166
+ "asc": true,
167
+ "nulls": "last"
168
+ },
169
+ {
170
+ "expression": "name",
171
+ "isExpression": false,
172
+ "asc": true,
173
+ "nulls": "last"
174
+ }
175
+ ],
176
+ "isUnique": true,
177
+ "concurrently": false,
178
+ "method": "btree",
179
+ "with": {}
180
+ }
181
+ },
182
+ "foreignKeys": {
183
+ "collectors_chain_id_chains_chain_id_fk": {
184
+ "name": "collectors_chain_id_chains_chain_id_fk",
185
+ "tableFrom": "collectors",
186
+ "tableTo": "chains",
187
+ "schemaTo": "router_v1.11",
188
+ "columnsFrom": ["chain_id"],
189
+ "columnsTo": ["chain_id"],
190
+ "onDelete": "no action",
191
+ "onUpdate": "no action"
192
+ }
193
+ },
194
+ "compositePrimaryKeys": {},
195
+ "uniqueConstraints": {},
196
+ "policies": {},
197
+ "checkConstraints": {},
198
+ "isRLSEnabled": false
199
+ },
200
+ "router_v1.11.consumed_events": {
201
+ "name": "consumed_events",
202
+ "schema": "router_v1.11",
203
+ "columns": {
204
+ "event_id": {
205
+ "name": "event_id",
206
+ "type": "varchar(128)",
207
+ "primaryKey": true,
208
+ "notNull": true
209
+ },
210
+ "chain_id": {
211
+ "name": "chain_id",
212
+ "type": "bigint",
213
+ "primaryKey": false,
214
+ "notNull": true
215
+ },
216
+ "maker": {
217
+ "name": "maker",
218
+ "type": "varchar(42)",
219
+ "primaryKey": false,
220
+ "notNull": true
221
+ },
222
+ "group": {
223
+ "name": "group",
224
+ "type": "varchar(66)",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "amount": {
229
+ "name": "amount",
230
+ "type": "numeric(78, 0)",
231
+ "primaryKey": false,
232
+ "notNull": true
233
+ },
234
+ "block_number": {
235
+ "name": "block_number",
236
+ "type": "bigint",
237
+ "primaryKey": false,
238
+ "notNull": true
239
+ },
240
+ "created_at": {
241
+ "name": "created_at",
242
+ "type": "timestamp",
243
+ "primaryKey": false,
244
+ "notNull": true,
245
+ "default": "now()"
246
+ }
247
+ },
248
+ "indexes": {
249
+ "consumed_events_group_idx": {
250
+ "name": "consumed_events_group_idx",
251
+ "columns": [
252
+ {
253
+ "expression": "chain_id",
254
+ "isExpression": false,
255
+ "asc": true,
256
+ "nulls": "last"
257
+ },
258
+ {
259
+ "expression": "maker",
260
+ "isExpression": false,
261
+ "asc": true,
262
+ "nulls": "last"
263
+ },
264
+ {
265
+ "expression": "group",
266
+ "isExpression": false,
267
+ "asc": true,
268
+ "nulls": "last"
269
+ }
270
+ ],
271
+ "isUnique": false,
272
+ "concurrently": false,
273
+ "method": "btree",
274
+ "with": {}
275
+ },
276
+ "consumed_events_block_number_idx": {
277
+ "name": "consumed_events_block_number_idx",
278
+ "columns": [
279
+ {
280
+ "expression": "block_number",
281
+ "isExpression": false,
282
+ "asc": true,
283
+ "nulls": "last"
284
+ }
285
+ ],
286
+ "isUnique": false,
287
+ "concurrently": false,
288
+ "method": "btree",
289
+ "with": {}
290
+ }
291
+ },
292
+ "foreignKeys": {
293
+ "consumed_events_groups_fk": {
294
+ "name": "consumed_events_groups_fk",
295
+ "tableFrom": "consumed_events",
296
+ "tableTo": "groups",
297
+ "schemaTo": "router_v1.11",
298
+ "columnsFrom": ["chain_id", "maker", "group"],
299
+ "columnsTo": ["chain_id", "maker", "group"],
300
+ "onDelete": "cascade",
301
+ "onUpdate": "no action"
302
+ }
303
+ },
304
+ "compositePrimaryKeys": {},
305
+ "uniqueConstraints": {},
306
+ "policies": {},
307
+ "checkConstraints": {},
308
+ "isRLSEnabled": false
309
+ },
310
+ "router_v1.11.groups": {
311
+ "name": "groups",
312
+ "schema": "router_v1.11",
313
+ "columns": {
314
+ "chain_id": {
315
+ "name": "chain_id",
316
+ "type": "bigint",
317
+ "primaryKey": false,
318
+ "notNull": true
319
+ },
320
+ "maker": {
321
+ "name": "maker",
322
+ "type": "varchar(42)",
323
+ "primaryKey": false,
324
+ "notNull": true
325
+ },
326
+ "group": {
327
+ "name": "group",
328
+ "type": "varchar(66)",
329
+ "primaryKey": false,
330
+ "notNull": true
331
+ },
332
+ "consumed": {
333
+ "name": "consumed",
334
+ "type": "numeric(78, 0)",
335
+ "primaryKey": false,
336
+ "notNull": true
337
+ },
338
+ "block_number": {
339
+ "name": "block_number",
340
+ "type": "bigint",
341
+ "primaryKey": false,
342
+ "notNull": true
343
+ },
344
+ "updated_at": {
345
+ "name": "updated_at",
346
+ "type": "timestamp",
347
+ "primaryKey": false,
348
+ "notNull": true,
349
+ "default": "now()"
350
+ }
351
+ },
352
+ "indexes": {
353
+ "groups_chain_id_maker_group_consumed_idx": {
354
+ "name": "groups_chain_id_maker_group_consumed_idx",
355
+ "columns": [
356
+ {
357
+ "expression": "chain_id",
358
+ "isExpression": false,
359
+ "asc": true,
360
+ "nulls": "last"
361
+ },
362
+ {
363
+ "expression": "maker",
364
+ "isExpression": false,
365
+ "asc": true,
366
+ "nulls": "last"
367
+ },
368
+ {
369
+ "expression": "group",
370
+ "isExpression": false,
371
+ "asc": true,
372
+ "nulls": "last"
373
+ },
374
+ {
375
+ "expression": "consumed",
376
+ "isExpression": false,
377
+ "asc": true,
378
+ "nulls": "last"
379
+ }
380
+ ],
381
+ "isUnique": false,
382
+ "concurrently": false,
383
+ "method": "btree",
384
+ "with": {}
385
+ }
386
+ },
387
+ "foreignKeys": {},
388
+ "compositePrimaryKeys": {
389
+ "groups_pk": {
390
+ "name": "groups_pk",
391
+ "columns": ["chain_id", "maker", "group"]
392
+ }
393
+ },
394
+ "uniqueConstraints": {},
395
+ "policies": {},
396
+ "checkConstraints": {},
397
+ "isRLSEnabled": false
398
+ },
399
+ "router_v1.11.lots": {
400
+ "name": "lots",
401
+ "schema": "router_v1.11",
402
+ "columns": {
403
+ "chain_id": {
404
+ "name": "chain_id",
405
+ "type": "bigint",
406
+ "primaryKey": false,
407
+ "notNull": true
408
+ },
409
+ "user": {
410
+ "name": "user",
411
+ "type": "varchar(42)",
412
+ "primaryKey": false,
413
+ "notNull": true
414
+ },
415
+ "contract": {
416
+ "name": "contract",
417
+ "type": "varchar(42)",
418
+ "primaryKey": false,
419
+ "notNull": true
420
+ },
421
+ "group": {
422
+ "name": "group",
423
+ "type": "varchar(66)",
424
+ "primaryKey": false,
425
+ "notNull": true
426
+ },
427
+ "obligation_id": {
428
+ "name": "obligation_id",
429
+ "type": "varchar(66)",
430
+ "primaryKey": false,
431
+ "notNull": true
432
+ },
433
+ "lower": {
434
+ "name": "lower",
435
+ "type": "numeric(78, 0)",
436
+ "primaryKey": false,
437
+ "notNull": true
438
+ },
439
+ "upper": {
440
+ "name": "upper",
441
+ "type": "numeric(78, 0)",
442
+ "primaryKey": false,
443
+ "notNull": true
444
+ }
445
+ },
446
+ "indexes": {},
447
+ "foreignKeys": {
448
+ "lots_lots_positions_fk": {
449
+ "name": "lots_lots_positions_fk",
450
+ "tableFrom": "lots",
451
+ "tableTo": "lots_positions",
452
+ "schemaTo": "router_v1.11",
453
+ "columnsFrom": ["chain_id", "contract", "user"],
454
+ "columnsTo": ["chain_id", "contract", "user"],
455
+ "onDelete": "cascade",
456
+ "onUpdate": "no action"
457
+ },
458
+ "lots_groups_fk": {
459
+ "name": "lots_groups_fk",
460
+ "tableFrom": "lots",
461
+ "tableTo": "groups",
462
+ "schemaTo": "router_v1.11",
463
+ "columnsFrom": ["chain_id", "user", "group"],
464
+ "columnsTo": ["chain_id", "maker", "group"],
465
+ "onDelete": "cascade",
466
+ "onUpdate": "no action"
467
+ }
468
+ },
469
+ "compositePrimaryKeys": {
470
+ "lots_pk": {
471
+ "name": "lots_pk",
472
+ "columns": ["chain_id", "user", "contract", "group", "obligation_id"]
473
+ }
474
+ },
475
+ "uniqueConstraints": {},
476
+ "policies": {},
477
+ "checkConstraints": {},
478
+ "isRLSEnabled": false
479
+ },
480
+ "router_v1.11.lots_positions": {
481
+ "name": "lots_positions",
482
+ "schema": "router_v1.11",
483
+ "columns": {
484
+ "chain_id": {
485
+ "name": "chain_id",
486
+ "type": "bigint",
487
+ "primaryKey": false,
488
+ "notNull": true
489
+ },
490
+ "contract": {
491
+ "name": "contract",
492
+ "type": "varchar(42)",
493
+ "primaryKey": false,
494
+ "notNull": true
495
+ },
496
+ "user": {
497
+ "name": "user",
498
+ "type": "varchar(42)",
499
+ "primaryKey": false,
500
+ "notNull": true
501
+ },
502
+ "position_type_id": {
503
+ "name": "position_type_id",
504
+ "type": "integer",
505
+ "primaryKey": false,
506
+ "notNull": true
507
+ }
508
+ },
509
+ "indexes": {},
510
+ "foreignKeys": {
511
+ "lots_positions_position_type_id_position_types_id_fk": {
512
+ "name": "lots_positions_position_type_id_position_types_id_fk",
513
+ "tableFrom": "lots_positions",
514
+ "tableTo": "position_types",
515
+ "schemaTo": "router_v1.11",
516
+ "columnsFrom": ["position_type_id"],
517
+ "columnsTo": ["id"],
518
+ "onDelete": "no action",
519
+ "onUpdate": "no action"
520
+ }
521
+ },
522
+ "compositePrimaryKeys": {
523
+ "lots_positions_pk": {
524
+ "name": "lots_positions_pk",
525
+ "columns": ["chain_id", "contract", "user"]
526
+ }
527
+ },
528
+ "uniqueConstraints": {},
529
+ "policies": {},
530
+ "checkConstraints": {},
531
+ "isRLSEnabled": false
532
+ },
533
+ "router_v1.11.merkle_paths": {
534
+ "name": "merkle_paths",
535
+ "schema": "router_v1.11",
536
+ "columns": {
537
+ "offer_hash": {
538
+ "name": "offer_hash",
539
+ "type": "varchar(66)",
540
+ "primaryKey": true,
541
+ "notNull": true
542
+ },
543
+ "tree_root": {
544
+ "name": "tree_root",
545
+ "type": "varchar(66)",
546
+ "primaryKey": false,
547
+ "notNull": true
548
+ },
549
+ "proof_nodes": {
550
+ "name": "proof_nodes",
551
+ "type": "text",
552
+ "primaryKey": false,
553
+ "notNull": true
554
+ },
555
+ "created_at": {
556
+ "name": "created_at",
557
+ "type": "timestamp",
558
+ "primaryKey": false,
559
+ "notNull": true,
560
+ "default": "now()"
561
+ }
562
+ },
563
+ "indexes": {
564
+ "merkle_paths_tree_root_idx": {
565
+ "name": "merkle_paths_tree_root_idx",
566
+ "columns": [
567
+ {
568
+ "expression": "tree_root",
569
+ "isExpression": false,
570
+ "asc": true,
571
+ "nulls": "last"
572
+ }
573
+ ],
574
+ "isUnique": false,
575
+ "concurrently": false,
576
+ "method": "btree",
577
+ "with": {}
578
+ }
579
+ },
580
+ "foreignKeys": {
581
+ "merkle_paths_offer_hash_offers_hash_fk": {
582
+ "name": "merkle_paths_offer_hash_offers_hash_fk",
583
+ "tableFrom": "merkle_paths",
584
+ "tableTo": "offers",
585
+ "schemaTo": "router_v1.11",
586
+ "columnsFrom": ["offer_hash"],
587
+ "columnsTo": ["hash"],
588
+ "onDelete": "cascade",
589
+ "onUpdate": "no action"
590
+ },
591
+ "merkle_paths_tree_root_trees_root_fk": {
592
+ "name": "merkle_paths_tree_root_trees_root_fk",
593
+ "tableFrom": "merkle_paths",
594
+ "tableTo": "trees",
595
+ "schemaTo": "router_v1.11",
596
+ "columnsFrom": ["tree_root"],
597
+ "columnsTo": ["root"],
598
+ "onDelete": "cascade",
599
+ "onUpdate": "no action"
600
+ }
601
+ },
602
+ "compositePrimaryKeys": {},
603
+ "uniqueConstraints": {},
604
+ "policies": {},
605
+ "checkConstraints": {},
606
+ "isRLSEnabled": false
607
+ },
608
+ "router_v1.11.obligation_collaterals_v2": {
609
+ "name": "obligation_collaterals_v2",
610
+ "schema": "router_v1.11",
611
+ "columns": {
612
+ "obligation_key": {
613
+ "name": "obligation_key",
614
+ "type": "varchar(66)",
615
+ "primaryKey": false,
616
+ "notNull": true
617
+ },
618
+ "asset": {
619
+ "name": "asset",
620
+ "type": "varchar(42)",
621
+ "primaryKey": false,
622
+ "notNull": true
623
+ },
624
+ "oracle_address": {
625
+ "name": "oracle_address",
626
+ "type": "varchar(42)",
627
+ "primaryKey": false,
628
+ "notNull": true
629
+ },
630
+ "lltv": {
631
+ "name": "lltv",
632
+ "type": "bigint",
633
+ "primaryKey": false,
634
+ "notNull": true
635
+ },
636
+ "collateral_index": {
637
+ "name": "collateral_index",
638
+ "type": "integer",
639
+ "primaryKey": false,
640
+ "notNull": true
641
+ },
642
+ "updated_at": {
643
+ "name": "updated_at",
644
+ "type": "timestamp",
645
+ "primaryKey": false,
646
+ "notNull": true,
647
+ "default": "now()"
648
+ }
649
+ },
650
+ "indexes": {
651
+ "obligation_collaterals_v2_obligation_key_idx": {
652
+ "name": "obligation_collaterals_v2_obligation_key_idx",
653
+ "columns": [
654
+ {
655
+ "expression": "obligation_key",
656
+ "isExpression": false,
657
+ "asc": true,
658
+ "nulls": "last"
659
+ }
660
+ ],
661
+ "isUnique": false,
662
+ "concurrently": false,
663
+ "method": "btree",
664
+ "with": {}
665
+ },
666
+ "obligation_collaterals_v2_oracle_address_idx": {
667
+ "name": "obligation_collaterals_v2_oracle_address_idx",
668
+ "columns": [
669
+ {
670
+ "expression": "oracle_address",
671
+ "isExpression": false,
672
+ "asc": true,
673
+ "nulls": "last"
674
+ }
675
+ ],
676
+ "isUnique": false,
677
+ "concurrently": false,
678
+ "method": "btree",
679
+ "with": {}
680
+ }
681
+ },
682
+ "foreignKeys": {
683
+ "obligation_collaterals_v2_obligation_key_obligations_obligation_key_fk": {
684
+ "name": "obligation_collaterals_v2_obligation_key_obligations_obligation_key_fk",
685
+ "tableFrom": "obligation_collaterals_v2",
686
+ "tableTo": "obligations",
687
+ "schemaTo": "router_v1.11",
688
+ "columnsFrom": ["obligation_key"],
689
+ "columnsTo": ["obligation_key"],
690
+ "onDelete": "cascade",
691
+ "onUpdate": "no action"
692
+ }
693
+ },
694
+ "compositePrimaryKeys": {
695
+ "obligation_collaterals_v2_pk": {
696
+ "name": "obligation_collaterals_v2_pk",
697
+ "columns": ["obligation_key", "asset"]
698
+ }
699
+ },
700
+ "uniqueConstraints": {},
701
+ "policies": {},
702
+ "checkConstraints": {},
703
+ "isRLSEnabled": false
704
+ },
705
+ "router_v1.11.obligation_id_keys": {
706
+ "name": "obligation_id_keys",
707
+ "schema": "router_v1.11",
708
+ "columns": {
709
+ "obligation_id": {
710
+ "name": "obligation_id",
711
+ "type": "varchar(66)",
712
+ "primaryKey": true,
713
+ "notNull": true
714
+ },
715
+ "obligation_key": {
716
+ "name": "obligation_key",
717
+ "type": "varchar(66)",
718
+ "primaryKey": false,
719
+ "notNull": true
720
+ },
721
+ "chain_id": {
722
+ "name": "chain_id",
723
+ "type": "bigint",
724
+ "primaryKey": false,
725
+ "notNull": true
726
+ },
727
+ "morpho_v2": {
728
+ "name": "morpho_v2",
729
+ "type": "varchar(42)",
730
+ "primaryKey": false,
731
+ "notNull": true
732
+ }
733
+ },
734
+ "indexes": {
735
+ "obligation_id_keys_obligation_key_idx": {
736
+ "name": "obligation_id_keys_obligation_key_idx",
737
+ "columns": [
738
+ {
739
+ "expression": "obligation_key",
740
+ "isExpression": false,
741
+ "asc": true,
742
+ "nulls": "last"
743
+ }
744
+ ],
745
+ "isUnique": false,
746
+ "concurrently": false,
747
+ "method": "btree",
748
+ "with": {}
749
+ },
750
+ "obligation_id_keys_chain_id_idx": {
751
+ "name": "obligation_id_keys_chain_id_idx",
752
+ "columns": [
753
+ {
754
+ "expression": "chain_id",
755
+ "isExpression": false,
756
+ "asc": true,
757
+ "nulls": "last"
758
+ }
759
+ ],
760
+ "isUnique": false,
761
+ "concurrently": false,
762
+ "method": "btree",
763
+ "with": {}
764
+ }
765
+ },
766
+ "foreignKeys": {
767
+ "obligation_id_keys_obligation_key_obligations_obligation_key_fk": {
768
+ "name": "obligation_id_keys_obligation_key_obligations_obligation_key_fk",
769
+ "tableFrom": "obligation_id_keys",
770
+ "tableTo": "obligations",
771
+ "schemaTo": "router_v1.11",
772
+ "columnsFrom": ["obligation_key"],
773
+ "columnsTo": ["obligation_key"],
774
+ "onDelete": "cascade",
775
+ "onUpdate": "no action"
776
+ }
777
+ },
778
+ "compositePrimaryKeys": {},
779
+ "uniqueConstraints": {},
780
+ "policies": {},
781
+ "checkConstraints": {},
782
+ "isRLSEnabled": false
783
+ },
784
+ "router_v1.11.obligations": {
785
+ "name": "obligations",
786
+ "schema": "router_v1.11",
787
+ "columns": {
788
+ "obligation_key": {
789
+ "name": "obligation_key",
790
+ "type": "varchar(66)",
791
+ "primaryKey": true,
792
+ "notNull": true
793
+ },
794
+ "loan_token": {
795
+ "name": "loan_token",
796
+ "type": "varchar(42)",
797
+ "primaryKey": false,
798
+ "notNull": true
799
+ },
800
+ "maturity": {
801
+ "name": "maturity",
802
+ "type": "integer",
803
+ "primaryKey": false,
804
+ "notNull": true
805
+ }
806
+ },
807
+ "indexes": {},
808
+ "foreignKeys": {},
809
+ "compositePrimaryKeys": {},
810
+ "uniqueConstraints": {},
811
+ "policies": {},
812
+ "checkConstraints": {},
813
+ "isRLSEnabled": false
814
+ },
815
+ "router_v1.11.offers": {
816
+ "name": "offers",
817
+ "schema": "router_v1.11",
818
+ "columns": {
819
+ "hash": {
820
+ "name": "hash",
821
+ "type": "varchar(66)",
822
+ "primaryKey": true,
823
+ "notNull": true
824
+ },
825
+ "obligation_id": {
826
+ "name": "obligation_id",
827
+ "type": "varchar(66)",
828
+ "primaryKey": false,
829
+ "notNull": true
830
+ },
831
+ "assets": {
832
+ "name": "assets",
833
+ "type": "numeric(78, 0)",
834
+ "primaryKey": false,
835
+ "notNull": true
836
+ },
837
+ "obligation_units": {
838
+ "name": "obligation_units",
839
+ "type": "numeric(78, 0)",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "default": "'0'"
843
+ },
844
+ "obligation_shares": {
845
+ "name": "obligation_shares",
846
+ "type": "numeric(78, 0)",
847
+ "primaryKey": false,
848
+ "notNull": true,
849
+ "default": "'0'"
850
+ },
851
+ "tick": {
852
+ "name": "tick",
853
+ "type": "integer",
854
+ "primaryKey": false,
855
+ "notNull": true
856
+ },
857
+ "maturity": {
858
+ "name": "maturity",
859
+ "type": "integer",
860
+ "primaryKey": false,
861
+ "notNull": true
862
+ },
863
+ "expiry": {
864
+ "name": "expiry",
865
+ "type": "integer",
866
+ "primaryKey": false,
867
+ "notNull": true
868
+ },
869
+ "start": {
870
+ "name": "start",
871
+ "type": "integer",
872
+ "primaryKey": false,
873
+ "notNull": true
874
+ },
875
+ "group_chain_id": {
876
+ "name": "group_chain_id",
877
+ "type": "bigint",
878
+ "primaryKey": false,
879
+ "notNull": true
880
+ },
881
+ "group_maker": {
882
+ "name": "group_maker",
883
+ "type": "varchar(42)",
884
+ "primaryKey": false,
885
+ "notNull": true
886
+ },
887
+ "group_group": {
888
+ "name": "group_group",
889
+ "type": "varchar(66)",
890
+ "primaryKey": false,
891
+ "notNull": true
892
+ },
893
+ "session": {
894
+ "name": "session",
895
+ "type": "varchar(66)",
896
+ "primaryKey": false,
897
+ "notNull": true
898
+ },
899
+ "buy": {
900
+ "name": "buy",
901
+ "type": "boolean",
902
+ "primaryKey": false,
903
+ "notNull": true
904
+ },
905
+ "callback_address": {
906
+ "name": "callback_address",
907
+ "type": "varchar(42)",
908
+ "primaryKey": false,
909
+ "notNull": true
910
+ },
911
+ "callback_data": {
912
+ "name": "callback_data",
913
+ "type": "text",
914
+ "primaryKey": false,
915
+ "notNull": true
916
+ },
917
+ "receiver_if_maker_is_seller": {
918
+ "name": "receiver_if_maker_is_seller",
919
+ "type": "varchar(42)",
920
+ "primaryKey": false,
921
+ "notNull": false
922
+ },
923
+ "block_number": {
924
+ "name": "block_number",
925
+ "type": "bigint",
926
+ "primaryKey": false,
927
+ "notNull": true
928
+ },
929
+ "updated_at": {
930
+ "name": "updated_at",
931
+ "type": "timestamp",
932
+ "primaryKey": false,
933
+ "notNull": true,
934
+ "default": "now()"
935
+ }
936
+ },
937
+ "indexes": {
938
+ "offers_group_fk_idx": {
939
+ "name": "offers_group_fk_idx",
940
+ "columns": [
941
+ {
942
+ "expression": "group_chain_id",
943
+ "isExpression": false,
944
+ "asc": true,
945
+ "nulls": "last"
946
+ },
947
+ {
948
+ "expression": "group_maker",
949
+ "isExpression": false,
950
+ "asc": true,
951
+ "nulls": "last"
952
+ },
953
+ {
954
+ "expression": "group_group",
955
+ "isExpression": false,
956
+ "asc": true,
957
+ "nulls": "last"
958
+ }
959
+ ],
960
+ "isUnique": false,
961
+ "concurrently": false,
962
+ "method": "btree",
963
+ "with": {}
964
+ },
965
+ "offers_group_and_hash_idx": {
966
+ "name": "offers_group_and_hash_idx",
967
+ "columns": [
968
+ {
969
+ "expression": "group_chain_id",
970
+ "isExpression": false,
971
+ "asc": true,
972
+ "nulls": "last"
973
+ },
974
+ {
975
+ "expression": "group_maker",
976
+ "isExpression": false,
977
+ "asc": true,
978
+ "nulls": "last"
979
+ },
980
+ {
981
+ "expression": "group_group",
982
+ "isExpression": false,
983
+ "asc": true,
984
+ "nulls": "last"
985
+ },
986
+ {
987
+ "expression": "hash",
988
+ "isExpression": false,
989
+ "asc": true,
990
+ "nulls": "last"
991
+ }
992
+ ],
993
+ "isUnique": false,
994
+ "concurrently": false,
995
+ "method": "btree",
996
+ "with": {}
997
+ },
998
+ "offers_obligation_id_side_idx": {
999
+ "name": "offers_obligation_id_side_idx",
1000
+ "columns": [
1001
+ {
1002
+ "expression": "obligation_id",
1003
+ "isExpression": false,
1004
+ "asc": true,
1005
+ "nulls": "last"
1006
+ },
1007
+ {
1008
+ "expression": "buy",
1009
+ "isExpression": false,
1010
+ "asc": true,
1011
+ "nulls": "last"
1012
+ }
1013
+ ],
1014
+ "isUnique": false,
1015
+ "concurrently": false,
1016
+ "method": "btree",
1017
+ "with": {}
1018
+ }
1019
+ },
1020
+ "foreignKeys": {
1021
+ "offers_obligation_id_obligation_id_keys_obligation_id_fk": {
1022
+ "name": "offers_obligation_id_obligation_id_keys_obligation_id_fk",
1023
+ "tableFrom": "offers",
1024
+ "tableTo": "obligation_id_keys",
1025
+ "schemaTo": "router_v1.11",
1026
+ "columnsFrom": ["obligation_id"],
1027
+ "columnsTo": ["obligation_id"],
1028
+ "onDelete": "cascade",
1029
+ "onUpdate": "no action"
1030
+ },
1031
+ "offers_groups_fk": {
1032
+ "name": "offers_groups_fk",
1033
+ "tableFrom": "offers",
1034
+ "tableTo": "groups",
1035
+ "schemaTo": "router_v1.11",
1036
+ "columnsFrom": ["group_chain_id", "group_maker", "group_group"],
1037
+ "columnsTo": ["chain_id", "maker", "group"],
1038
+ "onDelete": "cascade",
1039
+ "onUpdate": "no action"
1040
+ }
1041
+ },
1042
+ "compositePrimaryKeys": {},
1043
+ "uniqueConstraints": {},
1044
+ "policies": {},
1045
+ "checkConstraints": {},
1046
+ "isRLSEnabled": false
1047
+ },
1048
+ "router_v1.11.offers_callbacks": {
1049
+ "name": "offers_callbacks",
1050
+ "schema": "router_v1.11",
1051
+ "columns": {
1052
+ "offer_hash": {
1053
+ "name": "offer_hash",
1054
+ "type": "varchar(66)",
1055
+ "primaryKey": false,
1056
+ "notNull": true
1057
+ },
1058
+ "callback_id": {
1059
+ "name": "callback_id",
1060
+ "type": "varchar(66)",
1061
+ "primaryKey": false,
1062
+ "notNull": false
1063
+ }
1064
+ },
1065
+ "indexes": {},
1066
+ "foreignKeys": {
1067
+ "offers_callbacks_offer_hash_offers_hash_fk": {
1068
+ "name": "offers_callbacks_offer_hash_offers_hash_fk",
1069
+ "tableFrom": "offers_callbacks",
1070
+ "tableTo": "offers",
1071
+ "schemaTo": "router_v1.11",
1072
+ "columnsFrom": ["offer_hash"],
1073
+ "columnsTo": ["hash"],
1074
+ "onDelete": "cascade",
1075
+ "onUpdate": "no action"
1076
+ }
1077
+ },
1078
+ "compositePrimaryKeys": {
1079
+ "offers_callbacks_pk": {
1080
+ "name": "offers_callbacks_pk",
1081
+ "columns": ["offer_hash", "callback_id"]
1082
+ }
1083
+ },
1084
+ "uniqueConstraints": {},
1085
+ "policies": {},
1086
+ "checkConstraints": {},
1087
+ "isRLSEnabled": false
1088
+ },
1089
+ "router_v1.11.offsets": {
1090
+ "name": "offsets",
1091
+ "schema": "router_v1.11",
1092
+ "columns": {
1093
+ "chain_id": {
1094
+ "name": "chain_id",
1095
+ "type": "bigint",
1096
+ "primaryKey": false,
1097
+ "notNull": true
1098
+ },
1099
+ "user": {
1100
+ "name": "user",
1101
+ "type": "varchar(42)",
1102
+ "primaryKey": false,
1103
+ "notNull": true
1104
+ },
1105
+ "contract": {
1106
+ "name": "contract",
1107
+ "type": "varchar(42)",
1108
+ "primaryKey": false,
1109
+ "notNull": true
1110
+ },
1111
+ "group": {
1112
+ "name": "group",
1113
+ "type": "varchar(66)",
1114
+ "primaryKey": false,
1115
+ "notNull": true
1116
+ },
1117
+ "obligation_id": {
1118
+ "name": "obligation_id",
1119
+ "type": "varchar(66)",
1120
+ "primaryKey": false,
1121
+ "notNull": true
1122
+ },
1123
+ "value": {
1124
+ "name": "value",
1125
+ "type": "numeric(78, 0)",
1126
+ "primaryKey": false,
1127
+ "notNull": true
1128
+ }
1129
+ },
1130
+ "indexes": {},
1131
+ "foreignKeys": {
1132
+ "offsets_lots_positions_fk": {
1133
+ "name": "offsets_lots_positions_fk",
1134
+ "tableFrom": "offsets",
1135
+ "tableTo": "lots_positions",
1136
+ "schemaTo": "router_v1.11",
1137
+ "columnsFrom": ["chain_id", "contract", "user"],
1138
+ "columnsTo": ["chain_id", "contract", "user"],
1139
+ "onDelete": "cascade",
1140
+ "onUpdate": "no action"
1141
+ }
1142
+ },
1143
+ "compositePrimaryKeys": {
1144
+ "offsets_pk": {
1145
+ "name": "offsets_pk",
1146
+ "columns": ["chain_id", "user", "contract", "group", "obligation_id"]
1147
+ }
1148
+ },
1149
+ "uniqueConstraints": {},
1150
+ "policies": {},
1151
+ "checkConstraints": {},
1152
+ "isRLSEnabled": false
1153
+ },
1154
+ "router_v1.11.oracles": {
1155
+ "name": "oracles",
1156
+ "schema": "router_v1.11",
1157
+ "columns": {
1158
+ "chain_id": {
1159
+ "name": "chain_id",
1160
+ "type": "bigint",
1161
+ "primaryKey": false,
1162
+ "notNull": true
1163
+ },
1164
+ "address": {
1165
+ "name": "address",
1166
+ "type": "varchar(42)",
1167
+ "primaryKey": false,
1168
+ "notNull": true
1169
+ },
1170
+ "price": {
1171
+ "name": "price",
1172
+ "type": "numeric(78, 0)",
1173
+ "primaryKey": false,
1174
+ "notNull": false
1175
+ },
1176
+ "block_number": {
1177
+ "name": "block_number",
1178
+ "type": "bigint",
1179
+ "primaryKey": false,
1180
+ "notNull": true
1181
+ },
1182
+ "updated_at": {
1183
+ "name": "updated_at",
1184
+ "type": "timestamp",
1185
+ "primaryKey": false,
1186
+ "notNull": true,
1187
+ "default": "now()"
1188
+ }
1189
+ },
1190
+ "indexes": {},
1191
+ "foreignKeys": {},
1192
+ "compositePrimaryKeys": {
1193
+ "oracles_pk": {
1194
+ "name": "oracles_pk",
1195
+ "columns": ["chain_id", "address"]
1196
+ }
1197
+ },
1198
+ "uniqueConstraints": {},
1199
+ "policies": {},
1200
+ "checkConstraints": {},
1201
+ "isRLSEnabled": false
1202
+ },
1203
+ "router_v1.11.position_types": {
1204
+ "name": "position_types",
1205
+ "schema": "router_v1.11",
1206
+ "columns": {
1207
+ "id": {
1208
+ "name": "id",
1209
+ "type": "serial",
1210
+ "primaryKey": true,
1211
+ "notNull": true
1212
+ },
1213
+ "type": {
1214
+ "name": "type",
1215
+ "type": "position_type",
1216
+ "typeSchema": "router_v1.11",
1217
+ "primaryKey": false,
1218
+ "notNull": true
1219
+ }
1220
+ },
1221
+ "indexes": {},
1222
+ "foreignKeys": {},
1223
+ "compositePrimaryKeys": {},
1224
+ "uniqueConstraints": {},
1225
+ "policies": {},
1226
+ "checkConstraints": {},
1227
+ "isRLSEnabled": false
1228
+ },
1229
+ "router_v1.11.positions": {
1230
+ "name": "positions",
1231
+ "schema": "router_v1.11",
1232
+ "columns": {
1233
+ "chain_id": {
1234
+ "name": "chain_id",
1235
+ "type": "bigint",
1236
+ "primaryKey": false,
1237
+ "notNull": true
1238
+ },
1239
+ "contract": {
1240
+ "name": "contract",
1241
+ "type": "varchar(66)",
1242
+ "primaryKey": false,
1243
+ "notNull": true
1244
+ },
1245
+ "user": {
1246
+ "name": "user",
1247
+ "type": "varchar(42)",
1248
+ "primaryKey": false,
1249
+ "notNull": true
1250
+ },
1251
+ "position_type_id": {
1252
+ "name": "position_type_id",
1253
+ "type": "integer",
1254
+ "primaryKey": false,
1255
+ "notNull": true
1256
+ },
1257
+ "balance": {
1258
+ "name": "balance",
1259
+ "type": "numeric(78, 0)",
1260
+ "primaryKey": false,
1261
+ "notNull": false
1262
+ },
1263
+ "asset": {
1264
+ "name": "asset",
1265
+ "type": "varchar(42)",
1266
+ "primaryKey": false,
1267
+ "notNull": true
1268
+ },
1269
+ "block_number": {
1270
+ "name": "block_number",
1271
+ "type": "bigint",
1272
+ "primaryKey": false,
1273
+ "notNull": true
1274
+ },
1275
+ "updated_at": {
1276
+ "name": "updated_at",
1277
+ "type": "timestamp",
1278
+ "primaryKey": false,
1279
+ "notNull": true,
1280
+ "default": "now()"
1281
+ }
1282
+ },
1283
+ "indexes": {},
1284
+ "foreignKeys": {
1285
+ "positions_position_type_id_position_types_id_fk": {
1286
+ "name": "positions_position_type_id_position_types_id_fk",
1287
+ "tableFrom": "positions",
1288
+ "tableTo": "position_types",
1289
+ "schemaTo": "router_v1.11",
1290
+ "columnsFrom": ["position_type_id"],
1291
+ "columnsTo": ["id"],
1292
+ "onDelete": "no action",
1293
+ "onUpdate": "no action"
1294
+ }
1295
+ },
1296
+ "compositePrimaryKeys": {
1297
+ "positions_pk": {
1298
+ "name": "positions_pk",
1299
+ "columns": ["chain_id", "contract", "user", "position_type_id", "asset"]
1300
+ }
1301
+ },
1302
+ "uniqueConstraints": {},
1303
+ "policies": {},
1304
+ "checkConstraints": {},
1305
+ "isRLSEnabled": false
1306
+ },
1307
+ "router_v1.11.status": {
1308
+ "name": "status",
1309
+ "schema": "router_v1.11",
1310
+ "columns": {
1311
+ "id": {
1312
+ "name": "id",
1313
+ "type": "serial",
1314
+ "primaryKey": true,
1315
+ "notNull": true
1316
+ },
1317
+ "code": {
1318
+ "name": "code",
1319
+ "type": "status_code",
1320
+ "typeSchema": "router_v1.11",
1321
+ "primaryKey": false,
1322
+ "notNull": false
1323
+ }
1324
+ },
1325
+ "indexes": {},
1326
+ "foreignKeys": {},
1327
+ "compositePrimaryKeys": {},
1328
+ "uniqueConstraints": {
1329
+ "status_code_unique": {
1330
+ "name": "status_code_unique",
1331
+ "nullsNotDistinct": false,
1332
+ "columns": ["code"]
1333
+ }
1334
+ },
1335
+ "policies": {},
1336
+ "checkConstraints": {},
1337
+ "isRLSEnabled": false
1338
+ },
1339
+ "router_v1.11.transfers": {
1340
+ "name": "transfers",
1341
+ "schema": "router_v1.11",
1342
+ "columns": {
1343
+ "event_id": {
1344
+ "name": "event_id",
1345
+ "type": "varchar(128)",
1346
+ "primaryKey": true,
1347
+ "notNull": true
1348
+ },
1349
+ "chain_id": {
1350
+ "name": "chain_id",
1351
+ "type": "bigint",
1352
+ "primaryKey": false,
1353
+ "notNull": true
1354
+ },
1355
+ "contract": {
1356
+ "name": "contract",
1357
+ "type": "varchar(66)",
1358
+ "primaryKey": false,
1359
+ "notNull": true
1360
+ },
1361
+ "from": {
1362
+ "name": "from",
1363
+ "type": "varchar(42)",
1364
+ "primaryKey": false,
1365
+ "notNull": true
1366
+ },
1367
+ "to": {
1368
+ "name": "to",
1369
+ "type": "varchar(42)",
1370
+ "primaryKey": false,
1371
+ "notNull": true
1372
+ },
1373
+ "value": {
1374
+ "name": "value",
1375
+ "type": "numeric(78, 0)",
1376
+ "primaryKey": false,
1377
+ "notNull": true
1378
+ },
1379
+ "position_type_id": {
1380
+ "name": "position_type_id",
1381
+ "type": "integer",
1382
+ "primaryKey": false,
1383
+ "notNull": true
1384
+ },
1385
+ "asset": {
1386
+ "name": "asset",
1387
+ "type": "varchar(42)",
1388
+ "primaryKey": false,
1389
+ "notNull": true
1390
+ },
1391
+ "block_number": {
1392
+ "name": "block_number",
1393
+ "type": "bigint",
1394
+ "primaryKey": false,
1395
+ "notNull": true
1396
+ },
1397
+ "created_at": {
1398
+ "name": "created_at",
1399
+ "type": "timestamp",
1400
+ "primaryKey": false,
1401
+ "notNull": true,
1402
+ "default": "now()"
1403
+ }
1404
+ },
1405
+ "indexes": {
1406
+ "transfers_chain_contract_user_idx": {
1407
+ "name": "transfers_chain_contract_user_idx",
1408
+ "columns": [
1409
+ {
1410
+ "expression": "chain_id",
1411
+ "isExpression": false,
1412
+ "asc": true,
1413
+ "nulls": "last"
1414
+ },
1415
+ {
1416
+ "expression": "contract",
1417
+ "isExpression": false,
1418
+ "asc": true,
1419
+ "nulls": "last"
1420
+ },
1421
+ {
1422
+ "expression": "from",
1423
+ "isExpression": false,
1424
+ "asc": true,
1425
+ "nulls": "last"
1426
+ },
1427
+ {
1428
+ "expression": "to",
1429
+ "isExpression": false,
1430
+ "asc": true,
1431
+ "nulls": "last"
1432
+ },
1433
+ {
1434
+ "expression": "block_number",
1435
+ "isExpression": false,
1436
+ "asc": true,
1437
+ "nulls": "last"
1438
+ }
1439
+ ],
1440
+ "isUnique": false,
1441
+ "concurrently": false,
1442
+ "method": "btree",
1443
+ "with": {}
1444
+ },
1445
+ "transfers_chain_type_block_idx": {
1446
+ "name": "transfers_chain_type_block_idx",
1447
+ "columns": [
1448
+ {
1449
+ "expression": "chain_id",
1450
+ "isExpression": false,
1451
+ "asc": true,
1452
+ "nulls": "last"
1453
+ },
1454
+ {
1455
+ "expression": "position_type_id",
1456
+ "isExpression": false,
1457
+ "asc": true,
1458
+ "nulls": "last"
1459
+ },
1460
+ {
1461
+ "expression": "block_number",
1462
+ "isExpression": false,
1463
+ "asc": true,
1464
+ "nulls": "last"
1465
+ }
1466
+ ],
1467
+ "isUnique": false,
1468
+ "concurrently": false,
1469
+ "method": "btree",
1470
+ "with": {}
1471
+ }
1472
+ },
1473
+ "foreignKeys": {
1474
+ "transfers_position_type_id_position_types_id_fk": {
1475
+ "name": "transfers_position_type_id_position_types_id_fk",
1476
+ "tableFrom": "transfers",
1477
+ "tableTo": "position_types",
1478
+ "schemaTo": "router_v1.11",
1479
+ "columnsFrom": ["position_type_id"],
1480
+ "columnsTo": ["id"],
1481
+ "onDelete": "no action",
1482
+ "onUpdate": "no action"
1483
+ },
1484
+ "transfers_positions_from_fk": {
1485
+ "name": "transfers_positions_from_fk",
1486
+ "tableFrom": "transfers",
1487
+ "tableTo": "positions",
1488
+ "schemaTo": "router_v1.11",
1489
+ "columnsFrom": ["chain_id", "contract", "from", "position_type_id", "asset"],
1490
+ "columnsTo": ["chain_id", "contract", "user", "position_type_id", "asset"],
1491
+ "onDelete": "cascade",
1492
+ "onUpdate": "no action"
1493
+ },
1494
+ "transfers_positions_to_fk": {
1495
+ "name": "transfers_positions_to_fk",
1496
+ "tableFrom": "transfers",
1497
+ "tableTo": "positions",
1498
+ "schemaTo": "router_v1.11",
1499
+ "columnsFrom": ["chain_id", "contract", "to", "position_type_id", "asset"],
1500
+ "columnsTo": ["chain_id", "contract", "user", "position_type_id", "asset"],
1501
+ "onDelete": "cascade",
1502
+ "onUpdate": "no action"
1503
+ }
1504
+ },
1505
+ "compositePrimaryKeys": {},
1506
+ "uniqueConstraints": {},
1507
+ "policies": {},
1508
+ "checkConstraints": {},
1509
+ "isRLSEnabled": false
1510
+ },
1511
+ "router_v1.11.trees": {
1512
+ "name": "trees",
1513
+ "schema": "router_v1.11",
1514
+ "columns": {
1515
+ "root": {
1516
+ "name": "root",
1517
+ "type": "varchar(66)",
1518
+ "primaryKey": true,
1519
+ "notNull": true
1520
+ },
1521
+ "root_signature": {
1522
+ "name": "root_signature",
1523
+ "type": "varchar(132)",
1524
+ "primaryKey": false,
1525
+ "notNull": true
1526
+ },
1527
+ "created_at": {
1528
+ "name": "created_at",
1529
+ "type": "timestamp",
1530
+ "primaryKey": false,
1531
+ "notNull": true,
1532
+ "default": "now()"
1533
+ }
1534
+ },
1535
+ "indexes": {},
1536
+ "foreignKeys": {},
1537
+ "compositePrimaryKeys": {},
1538
+ "uniqueConstraints": {},
1539
+ "policies": {},
1540
+ "checkConstraints": {},
1541
+ "isRLSEnabled": false
1542
+ },
1543
+ "router_v1.11.validations": {
1544
+ "name": "validations",
1545
+ "schema": "router_v1.11",
1546
+ "columns": {
1547
+ "offer_hash": {
1548
+ "name": "offer_hash",
1549
+ "type": "varchar(66)",
1550
+ "primaryKey": true,
1551
+ "notNull": true
1552
+ },
1553
+ "status_id": {
1554
+ "name": "status_id",
1555
+ "type": "integer",
1556
+ "primaryKey": false,
1557
+ "notNull": true
1558
+ },
1559
+ "updated_at": {
1560
+ "name": "updated_at",
1561
+ "type": "timestamp",
1562
+ "primaryKey": false,
1563
+ "notNull": true,
1564
+ "default": "now()"
1565
+ }
1566
+ },
1567
+ "indexes": {},
1568
+ "foreignKeys": {
1569
+ "validations_offer_hash_offers_hash_fk": {
1570
+ "name": "validations_offer_hash_offers_hash_fk",
1571
+ "tableFrom": "validations",
1572
+ "tableTo": "offers",
1573
+ "schemaTo": "router_v1.11",
1574
+ "columnsFrom": ["offer_hash"],
1575
+ "columnsTo": ["hash"],
1576
+ "onDelete": "cascade",
1577
+ "onUpdate": "no action"
1578
+ },
1579
+ "validations_status_id_status_id_fk": {
1580
+ "name": "validations_status_id_status_id_fk",
1581
+ "tableFrom": "validations",
1582
+ "tableTo": "status",
1583
+ "schemaTo": "router_v1.11",
1584
+ "columnsFrom": ["status_id"],
1585
+ "columnsTo": ["id"],
1586
+ "onDelete": "no action",
1587
+ "onUpdate": "no action"
1588
+ }
1589
+ },
1590
+ "compositePrimaryKeys": {},
1591
+ "uniqueConstraints": {},
1592
+ "policies": {},
1593
+ "checkConstraints": {},
1594
+ "isRLSEnabled": false
1595
+ }
1596
+ },
1597
+ "enums": {
1598
+ "router_v1.11.position_type": {
1599
+ "name": "position_type",
1600
+ "schema": "router_v1.11",
1601
+ "values": ["erc20", "vault_v1", "debtOf", "collateralOf"]
1602
+ },
1603
+ "router_v1.11.status_code": {
1604
+ "name": "status_code",
1605
+ "schema": "router_v1.11",
1606
+ "values": ["VALID", "SIMULATION_ERROR"]
1607
+ }
1608
+ },
1609
+ "schemas": {},
1610
+ "sequences": {},
1611
+ "roles": {},
1612
+ "policies": {},
1613
+ "views": {},
1614
+ "_meta": {
1615
+ "columns": {},
1616
+ "schemas": {},
1617
+ "tables": {}
1618
+ }
1619
+ }