@agentbadge/database 0.2.0 → 0.4.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.
@@ -4,6 +4,10 @@
4
4
  "target": "postgres",
5
5
  "profileHash": "3916f444a8a17ad749191acf9e08dad97d1a327b88c2f1d45d12f240296aa8b2",
6
6
  "roots": {
7
+ "agentWallet": {
8
+ "model": "AgentWallet",
9
+ "namespace": "public"
10
+ },
7
11
  "chatSubscription": {
8
12
  "model": "ChatSubscription",
9
13
  "namespace": "public"
@@ -15,12 +19,149 @@
15
19
  "scanResult": {
16
20
  "model": "ScanResult",
17
21
  "namespace": "public"
22
+ },
23
+ "spendEvent": {
24
+ "model": "SpendEvent",
25
+ "namespace": "public"
26
+ },
27
+ "venueJob": {
28
+ "model": "VenueJob",
29
+ "namespace": "public"
30
+ },
31
+ "venueMeta": {
32
+ "model": "VenueMeta",
33
+ "namespace": "public"
34
+ },
35
+ "venueOffer": {
36
+ "model": "VenueOffer",
37
+ "namespace": "public"
18
38
  }
19
39
  },
20
40
  "domain": {
21
41
  "namespaces": {
22
42
  "public": {
23
43
  "models": {
44
+ "AgentWallet": {
45
+ "fields": {
46
+ "active": {
47
+ "nullable": false,
48
+ "type": {
49
+ "codecId": "pg/bool@1",
50
+ "kind": "scalar"
51
+ }
52
+ },
53
+ "address": {
54
+ "nullable": false,
55
+ "type": {
56
+ "codecId": "pg/text@1",
57
+ "kind": "scalar"
58
+ }
59
+ },
60
+ "agentId": {
61
+ "nullable": true,
62
+ "type": {
63
+ "codecId": "pg/text@1",
64
+ "kind": "scalar"
65
+ }
66
+ },
67
+ "createdAt": {
68
+ "nullable": false,
69
+ "type": {
70
+ "codecId": "pg/timestamptz-string@1",
71
+ "kind": "scalar"
72
+ }
73
+ },
74
+ "id": {
75
+ "nullable": false,
76
+ "type": {
77
+ "codecId": "pg/text@1",
78
+ "kind": "scalar"
79
+ }
80
+ },
81
+ "kind": {
82
+ "nullable": false,
83
+ "type": {
84
+ "codecId": "pg/text@1",
85
+ "kind": "scalar"
86
+ }
87
+ },
88
+ "label": {
89
+ "nullable": false,
90
+ "type": {
91
+ "codecId": "pg/text@1",
92
+ "kind": "scalar"
93
+ }
94
+ },
95
+ "payload": {
96
+ "nullable": false,
97
+ "type": {
98
+ "codecId": "pg/json@1",
99
+ "kind": "scalar"
100
+ }
101
+ },
102
+ "registeredBy": {
103
+ "nullable": false,
104
+ "type": {
105
+ "codecId": "pg/text@1",
106
+ "kind": "scalar"
107
+ }
108
+ },
109
+ "updatedAt": {
110
+ "nullable": false,
111
+ "type": {
112
+ "codecId": "pg/timestamptz-string@1",
113
+ "kind": "scalar"
114
+ }
115
+ },
116
+ "venueId": {
117
+ "nullable": true,
118
+ "type": {
119
+ "codecId": "pg/text@1",
120
+ "kind": "scalar"
121
+ }
122
+ }
123
+ },
124
+ "relations": {},
125
+ "storage": {
126
+ "fields": {
127
+ "active": {
128
+ "column": "active"
129
+ },
130
+ "address": {
131
+ "column": "address"
132
+ },
133
+ "agentId": {
134
+ "column": "agentId"
135
+ },
136
+ "createdAt": {
137
+ "column": "createdAt"
138
+ },
139
+ "id": {
140
+ "column": "id"
141
+ },
142
+ "kind": {
143
+ "column": "kind"
144
+ },
145
+ "label": {
146
+ "column": "label"
147
+ },
148
+ "payload": {
149
+ "column": "payload"
150
+ },
151
+ "registeredBy": {
152
+ "column": "registeredBy"
153
+ },
154
+ "updatedAt": {
155
+ "column": "updatedAt"
156
+ },
157
+ "venueId": {
158
+ "column": "venueId"
159
+ }
160
+ },
161
+ "namespaceId": "public",
162
+ "table": "agentWallet"
163
+ }
164
+ },
24
165
  "ChatSubscription": {
25
166
  "fields": {
26
167
  "chatId": {
@@ -243,115 +384,774 @@
243
384
  "namespaceId": "public",
244
385
  "table": "scanResult"
245
386
  }
246
- }
247
- }
248
- }
249
- }
250
- },
251
- "storage": {
252
- "namespaces": {
253
- "public": {
254
- "entries": {
255
- "table": {
256
- "chatSubscription": {
257
- "columns": {
258
- "chatId": {
387
+ },
388
+ "SpendEvent": {
389
+ "fields": {
390
+ "amountUsd": {
391
+ "nullable": false,
392
+ "type": {
393
+ "codecId": "pg/numeric@1",
394
+ "kind": "scalar"
395
+ }
396
+ },
397
+ "at": {
398
+ "nullable": false,
399
+ "type": {
259
400
  "codecId": "pg/int8@1",
260
- "nativeType": "int8",
261
- "nullable": false
262
- },
263
- "createdAt": {
401
+ "kind": "scalar"
402
+ }
403
+ },
404
+ "createdAt": {
405
+ "nullable": false,
406
+ "type": {
264
407
  "codecId": "pg/timestamptz-string@1",
265
- "default": {
266
- "expression": "now()",
267
- "kind": "function"
268
- },
269
- "nativeType": "timestamptz",
270
- "nullable": false
271
- },
272
- "id": {
408
+ "kind": "scalar"
409
+ }
410
+ },
411
+ "denialReason": {
412
+ "nullable": true,
413
+ "type": {
273
414
  "codecId": "pg/text@1",
274
- "nativeType": "text",
275
- "nullable": false
276
- },
277
- "updatedAt": {
278
- "codecId": "pg/timestamptz-string@1",
279
- "nativeType": "timestamptz",
280
- "nullable": false
281
- },
282
- "username": {
415
+ "kind": "scalar"
416
+ }
417
+ },
418
+ "id": {
419
+ "nullable": false,
420
+ "type": {
283
421
  "codecId": "pg/text@1",
284
- "nativeType": "text",
285
- "nullable": false
422
+ "kind": "scalar"
286
423
  }
287
424
  },
288
- "foreignKeys": [],
289
- "indexes": [],
290
- "primaryKey": {
291
- "columns": [
292
- "id"
293
- ]
425
+ "kind": {
426
+ "nullable": false,
427
+ "type": {
428
+ "codecId": "pg/text@1",
429
+ "kind": "scalar"
430
+ }
294
431
  },
295
- "uniques": [
296
- {
297
- "columns": [
298
- "chatId"
299
- ]
300
- },
301
- {
302
- "columns": [
303
- "username"
304
- ]
432
+ "payload": {
433
+ "nullable": false,
434
+ "type": {
435
+ "codecId": "pg/json@1",
436
+ "kind": "scalar"
305
437
  }
306
- ]
307
- },
308
- "event": {
309
- "columns": {
310
- "createdAt": {
311
- "codecId": "pg/timestamptz-string@1",
312
- "default": {
313
- "expression": "now()",
314
- "kind": "function"
315
- },
316
- "nativeType": "timestamptz",
317
- "nullable": false
318
- },
319
- "id": {
438
+ },
439
+ "refId": {
440
+ "nullable": false,
441
+ "type": {
320
442
  "codecId": "pg/text@1",
321
- "nativeType": "text",
322
- "nullable": false
323
- },
324
- "payload": {
325
- "codecId": "pg/json@1",
326
- "nativeType": "json",
327
- "nullable": false
328
- },
329
- "source": {
443
+ "kind": "scalar"
444
+ }
445
+ },
446
+ "sourceChain": {
447
+ "nullable": true,
448
+ "type": {
330
449
  "codecId": "pg/text@1",
331
- "nativeType": "text",
332
- "nullable": true
333
- },
450
+ "kind": "scalar"
451
+ }
452
+ },
453
+ "state": {
454
+ "nullable": false,
334
455
  "type": {
335
456
  "codecId": "pg/text@1",
336
- "nativeType": "text",
337
- "nullable": false
338
- },
339
- "updatedAt": {
340
- "codecId": "pg/timestamptz-string@1",
341
- "nativeType": "timestamptz",
342
- "nullable": false
457
+ "kind": "scalar"
343
458
  }
344
459
  },
345
- "foreignKeys": [],
346
- "indexes": [
347
- {
348
- "columns": [
349
- "type",
350
- "createdAt"
351
- ],
352
- "name": "event_type_createdAt_idx_00d94001",
353
- "prefix": "event_type_createdAt_idx",
354
- "unique": false
460
+ "txHash": {
461
+ "nullable": true,
462
+ "type": {
463
+ "codecId": "pg/text@1",
464
+ "kind": "scalar"
465
+ }
466
+ },
467
+ "updatedAt": {
468
+ "nullable": false,
469
+ "type": {
470
+ "codecId": "pg/timestamptz-string@1",
471
+ "kind": "scalar"
472
+ }
473
+ },
474
+ "venueId": {
475
+ "nullable": true,
476
+ "type": {
477
+ "codecId": "pg/text@1",
478
+ "kind": "scalar"
479
+ }
480
+ },
481
+ "wallet": {
482
+ "nullable": false,
483
+ "type": {
484
+ "codecId": "pg/text@1",
485
+ "kind": "scalar"
486
+ }
487
+ }
488
+ },
489
+ "relations": {},
490
+ "storage": {
491
+ "fields": {
492
+ "amountUsd": {
493
+ "column": "amountUsd"
494
+ },
495
+ "at": {
496
+ "column": "at"
497
+ },
498
+ "createdAt": {
499
+ "column": "createdAt"
500
+ },
501
+ "denialReason": {
502
+ "column": "denialReason"
503
+ },
504
+ "id": {
505
+ "column": "id"
506
+ },
507
+ "kind": {
508
+ "column": "kind"
509
+ },
510
+ "payload": {
511
+ "column": "payload"
512
+ },
513
+ "refId": {
514
+ "column": "refId"
515
+ },
516
+ "sourceChain": {
517
+ "column": "sourceChain"
518
+ },
519
+ "state": {
520
+ "column": "state"
521
+ },
522
+ "txHash": {
523
+ "column": "txHash"
524
+ },
525
+ "updatedAt": {
526
+ "column": "updatedAt"
527
+ },
528
+ "venueId": {
529
+ "column": "venueId"
530
+ },
531
+ "wallet": {
532
+ "column": "wallet"
533
+ }
534
+ },
535
+ "namespaceId": "public",
536
+ "table": "spendEvent"
537
+ }
538
+ },
539
+ "VenueJob": {
540
+ "fields": {
541
+ "client": {
542
+ "nullable": false,
543
+ "type": {
544
+ "codecId": "pg/text@1",
545
+ "kind": "scalar"
546
+ }
547
+ },
548
+ "createdAt": {
549
+ "nullable": false,
550
+ "type": {
551
+ "codecId": "pg/timestamptz-string@1",
552
+ "kind": "scalar"
553
+ }
554
+ },
555
+ "id": {
556
+ "nullable": false,
557
+ "type": {
558
+ "codecId": "pg/text@1",
559
+ "kind": "scalar"
560
+ }
561
+ },
562
+ "jobId": {
563
+ "nullable": false,
564
+ "type": {
565
+ "codecId": "pg/text@1",
566
+ "kind": "scalar"
567
+ }
568
+ },
569
+ "payload": {
570
+ "nullable": false,
571
+ "type": {
572
+ "codecId": "pg/json@1",
573
+ "kind": "scalar"
574
+ }
575
+ },
576
+ "provider": {
577
+ "nullable": true,
578
+ "type": {
579
+ "codecId": "pg/text@1",
580
+ "kind": "scalar"
581
+ }
582
+ },
583
+ "status": {
584
+ "nullable": false,
585
+ "type": {
586
+ "codecId": "pg/text@1",
587
+ "kind": "scalar"
588
+ }
589
+ },
590
+ "updatedAt": {
591
+ "nullable": false,
592
+ "type": {
593
+ "codecId": "pg/timestamptz-string@1",
594
+ "kind": "scalar"
595
+ }
596
+ }
597
+ },
598
+ "relations": {},
599
+ "storage": {
600
+ "fields": {
601
+ "client": {
602
+ "column": "client"
603
+ },
604
+ "createdAt": {
605
+ "column": "createdAt"
606
+ },
607
+ "id": {
608
+ "column": "id"
609
+ },
610
+ "jobId": {
611
+ "column": "jobId"
612
+ },
613
+ "payload": {
614
+ "column": "payload"
615
+ },
616
+ "provider": {
617
+ "column": "provider"
618
+ },
619
+ "status": {
620
+ "column": "status"
621
+ },
622
+ "updatedAt": {
623
+ "column": "updatedAt"
624
+ }
625
+ },
626
+ "namespaceId": "public",
627
+ "table": "venueJob"
628
+ }
629
+ },
630
+ "VenueMeta": {
631
+ "fields": {
632
+ "key": {
633
+ "nullable": false,
634
+ "type": {
635
+ "codecId": "pg/text@1",
636
+ "kind": "scalar"
637
+ }
638
+ },
639
+ "updatedAt": {
640
+ "nullable": false,
641
+ "type": {
642
+ "codecId": "pg/timestamptz-string@1",
643
+ "kind": "scalar"
644
+ }
645
+ },
646
+ "value": {
647
+ "nullable": false,
648
+ "type": {
649
+ "codecId": "pg/json@1",
650
+ "kind": "scalar"
651
+ }
652
+ }
653
+ },
654
+ "relations": {},
655
+ "storage": {
656
+ "fields": {
657
+ "key": {
658
+ "column": "key"
659
+ },
660
+ "updatedAt": {
661
+ "column": "updatedAt"
662
+ },
663
+ "value": {
664
+ "column": "value"
665
+ }
666
+ },
667
+ "namespaceId": "public",
668
+ "table": "venueMeta"
669
+ }
670
+ },
671
+ "VenueOffer": {
672
+ "fields": {
673
+ "active": {
674
+ "nullable": false,
675
+ "type": {
676
+ "codecId": "pg/bool@1",
677
+ "kind": "scalar"
678
+ }
679
+ },
680
+ "createdAt": {
681
+ "nullable": false,
682
+ "type": {
683
+ "codecId": "pg/timestamptz-string@1",
684
+ "kind": "scalar"
685
+ }
686
+ },
687
+ "id": {
688
+ "nullable": false,
689
+ "type": {
690
+ "codecId": "pg/text@1",
691
+ "kind": "scalar"
692
+ }
693
+ },
694
+ "payload": {
695
+ "nullable": false,
696
+ "type": {
697
+ "codecId": "pg/json@1",
698
+ "kind": "scalar"
699
+ }
700
+ },
701
+ "providerAddress": {
702
+ "nullable": false,
703
+ "type": {
704
+ "codecId": "pg/text@1",
705
+ "kind": "scalar"
706
+ }
707
+ },
708
+ "updatedAt": {
709
+ "nullable": false,
710
+ "type": {
711
+ "codecId": "pg/timestamptz-string@1",
712
+ "kind": "scalar"
713
+ }
714
+ }
715
+ },
716
+ "relations": {},
717
+ "storage": {
718
+ "fields": {
719
+ "active": {
720
+ "column": "active"
721
+ },
722
+ "createdAt": {
723
+ "column": "createdAt"
724
+ },
725
+ "id": {
726
+ "column": "id"
727
+ },
728
+ "payload": {
729
+ "column": "payload"
730
+ },
731
+ "providerAddress": {
732
+ "column": "providerAddress"
733
+ },
734
+ "updatedAt": {
735
+ "column": "updatedAt"
736
+ }
737
+ },
738
+ "namespaceId": "public",
739
+ "table": "venueOffer"
740
+ }
741
+ }
742
+ }
743
+ }
744
+ }
745
+ },
746
+ "storage": {
747
+ "namespaces": {
748
+ "public": {
749
+ "entries": {
750
+ "table": {
751
+ "agentWallet": {
752
+ "columns": {
753
+ "active": {
754
+ "codecId": "pg/bool@1",
755
+ "default": {
756
+ "kind": "literal",
757
+ "value": true
758
+ },
759
+ "nativeType": "bool",
760
+ "nullable": false
761
+ },
762
+ "address": {
763
+ "codecId": "pg/text@1",
764
+ "nativeType": "text",
765
+ "nullable": false
766
+ },
767
+ "agentId": {
768
+ "codecId": "pg/text@1",
769
+ "nativeType": "text",
770
+ "nullable": true
771
+ },
772
+ "createdAt": {
773
+ "codecId": "pg/timestamptz-string@1",
774
+ "default": {
775
+ "expression": "now()",
776
+ "kind": "function"
777
+ },
778
+ "nativeType": "timestamptz",
779
+ "nullable": false
780
+ },
781
+ "id": {
782
+ "codecId": "pg/text@1",
783
+ "nativeType": "text",
784
+ "nullable": false
785
+ },
786
+ "kind": {
787
+ "codecId": "pg/text@1",
788
+ "nativeType": "text",
789
+ "nullable": false
790
+ },
791
+ "label": {
792
+ "codecId": "pg/text@1",
793
+ "nativeType": "text",
794
+ "nullable": false
795
+ },
796
+ "payload": {
797
+ "codecId": "pg/json@1",
798
+ "nativeType": "json",
799
+ "nullable": false
800
+ },
801
+ "registeredBy": {
802
+ "codecId": "pg/text@1",
803
+ "nativeType": "text",
804
+ "nullable": false
805
+ },
806
+ "updatedAt": {
807
+ "codecId": "pg/timestamptz-string@1",
808
+ "nativeType": "timestamptz",
809
+ "nullable": false
810
+ },
811
+ "venueId": {
812
+ "codecId": "pg/text@1",
813
+ "nativeType": "text",
814
+ "nullable": true
815
+ }
816
+ },
817
+ "foreignKeys": [],
818
+ "indexes": [
819
+ {
820
+ "columns": [
821
+ "active",
822
+ "createdAt"
823
+ ],
824
+ "name": "agentWallet_active_createdAt_idx_7cd57621",
825
+ "prefix": "agentWallet_active_createdAt_idx",
826
+ "unique": false
827
+ },
828
+ {
829
+ "columns": [
830
+ "agentId"
831
+ ],
832
+ "name": "agentWallet_agentId_idx_8d0ba4f0",
833
+ "prefix": "agentWallet_agentId_idx",
834
+ "unique": false
835
+ },
836
+ {
837
+ "columns": [
838
+ "venueId",
839
+ "active"
840
+ ],
841
+ "name": "agentWallet_venueId_active_idx_51915f5b",
842
+ "prefix": "agentWallet_venueId_active_idx",
843
+ "unique": false
844
+ }
845
+ ],
846
+ "primaryKey": {
847
+ "columns": [
848
+ "id"
849
+ ]
850
+ },
851
+ "uniques": [
852
+ {
853
+ "columns": [
854
+ "address"
855
+ ]
856
+ }
857
+ ]
858
+ },
859
+ "chatSubscription": {
860
+ "columns": {
861
+ "chatId": {
862
+ "codecId": "pg/int8@1",
863
+ "nativeType": "int8",
864
+ "nullable": false
865
+ },
866
+ "createdAt": {
867
+ "codecId": "pg/timestamptz-string@1",
868
+ "default": {
869
+ "expression": "now()",
870
+ "kind": "function"
871
+ },
872
+ "nativeType": "timestamptz",
873
+ "nullable": false
874
+ },
875
+ "id": {
876
+ "codecId": "pg/text@1",
877
+ "nativeType": "text",
878
+ "nullable": false
879
+ },
880
+ "updatedAt": {
881
+ "codecId": "pg/timestamptz-string@1",
882
+ "nativeType": "timestamptz",
883
+ "nullable": false
884
+ },
885
+ "username": {
886
+ "codecId": "pg/text@1",
887
+ "nativeType": "text",
888
+ "nullable": false
889
+ }
890
+ },
891
+ "foreignKeys": [],
892
+ "indexes": [],
893
+ "primaryKey": {
894
+ "columns": [
895
+ "id"
896
+ ]
897
+ },
898
+ "uniques": [
899
+ {
900
+ "columns": [
901
+ "chatId"
902
+ ]
903
+ },
904
+ {
905
+ "columns": [
906
+ "username"
907
+ ]
908
+ }
909
+ ]
910
+ },
911
+ "event": {
912
+ "columns": {
913
+ "createdAt": {
914
+ "codecId": "pg/timestamptz-string@1",
915
+ "default": {
916
+ "expression": "now()",
917
+ "kind": "function"
918
+ },
919
+ "nativeType": "timestamptz",
920
+ "nullable": false
921
+ },
922
+ "id": {
923
+ "codecId": "pg/text@1",
924
+ "nativeType": "text",
925
+ "nullable": false
926
+ },
927
+ "payload": {
928
+ "codecId": "pg/json@1",
929
+ "nativeType": "json",
930
+ "nullable": false
931
+ },
932
+ "source": {
933
+ "codecId": "pg/text@1",
934
+ "nativeType": "text",
935
+ "nullable": true
936
+ },
937
+ "type": {
938
+ "codecId": "pg/text@1",
939
+ "nativeType": "text",
940
+ "nullable": false
941
+ },
942
+ "updatedAt": {
943
+ "codecId": "pg/timestamptz-string@1",
944
+ "nativeType": "timestamptz",
945
+ "nullable": false
946
+ }
947
+ },
948
+ "foreignKeys": [],
949
+ "indexes": [
950
+ {
951
+ "columns": [
952
+ "type",
953
+ "createdAt"
954
+ ],
955
+ "name": "event_type_createdAt_idx_00d94001",
956
+ "prefix": "event_type_createdAt_idx",
957
+ "unique": false
958
+ }
959
+ ],
960
+ "primaryKey": {
961
+ "columns": [
962
+ "id"
963
+ ]
964
+ },
965
+ "uniques": []
966
+ },
967
+ "scanResult": {
968
+ "columns": {
969
+ "createdAt": {
970
+ "codecId": "pg/timestamptz-string@1",
971
+ "default": {
972
+ "expression": "now()",
973
+ "kind": "function"
974
+ },
975
+ "nativeType": "timestamptz",
976
+ "nullable": false
977
+ },
978
+ "domain": {
979
+ "codecId": "pg/text@1",
980
+ "nativeType": "text",
981
+ "nullable": false
982
+ },
983
+ "id": {
984
+ "codecId": "pg/text@1",
985
+ "nativeType": "text",
986
+ "nullable": false
987
+ },
988
+ "report": {
989
+ "codecId": "pg/json@1",
990
+ "nativeType": "json",
991
+ "nullable": false
992
+ },
993
+ "rulesetVersion": {
994
+ "codecId": "pg/text@1",
995
+ "nativeType": "text",
996
+ "nullable": true
997
+ },
998
+ "score": {
999
+ "codecId": "pg/int4@1",
1000
+ "nativeType": "int4",
1001
+ "nullable": true
1002
+ },
1003
+ "updatedAt": {
1004
+ "codecId": "pg/timestamptz-string@1",
1005
+ "nativeType": "timestamptz",
1006
+ "nullable": false
1007
+ },
1008
+ "url": {
1009
+ "codecId": "pg/text@1",
1010
+ "nativeType": "text",
1011
+ "nullable": false
1012
+ }
1013
+ },
1014
+ "foreignKeys": [],
1015
+ "indexes": [
1016
+ {
1017
+ "columns": [
1018
+ "domain",
1019
+ "createdAt"
1020
+ ],
1021
+ "name": "scanResult_domain_createdAt_idx_c5bd4696",
1022
+ "prefix": "scanResult_domain_createdAt_idx",
1023
+ "unique": false
1024
+ }
1025
+ ],
1026
+ "primaryKey": {
1027
+ "columns": [
1028
+ "id"
1029
+ ]
1030
+ },
1031
+ "uniques": []
1032
+ },
1033
+ "spendEvent": {
1034
+ "columns": {
1035
+ "amountUsd": {
1036
+ "codecId": "pg/numeric@1",
1037
+ "nativeType": "numeric",
1038
+ "nullable": false
1039
+ },
1040
+ "at": {
1041
+ "codecId": "pg/int8@1",
1042
+ "nativeType": "int8",
1043
+ "nullable": false
1044
+ },
1045
+ "createdAt": {
1046
+ "codecId": "pg/timestamptz-string@1",
1047
+ "default": {
1048
+ "expression": "now()",
1049
+ "kind": "function"
1050
+ },
1051
+ "nativeType": "timestamptz",
1052
+ "nullable": false
1053
+ },
1054
+ "denialReason": {
1055
+ "codecId": "pg/text@1",
1056
+ "nativeType": "text",
1057
+ "nullable": true
1058
+ },
1059
+ "id": {
1060
+ "codecId": "pg/text@1",
1061
+ "nativeType": "text",
1062
+ "nullable": false
1063
+ },
1064
+ "kind": {
1065
+ "codecId": "pg/text@1",
1066
+ "nativeType": "text",
1067
+ "nullable": false
1068
+ },
1069
+ "payload": {
1070
+ "codecId": "pg/json@1",
1071
+ "nativeType": "json",
1072
+ "nullable": false
1073
+ },
1074
+ "refId": {
1075
+ "codecId": "pg/text@1",
1076
+ "nativeType": "text",
1077
+ "nullable": false
1078
+ },
1079
+ "sourceChain": {
1080
+ "codecId": "pg/text@1",
1081
+ "nativeType": "text",
1082
+ "nullable": true
1083
+ },
1084
+ "state": {
1085
+ "codecId": "pg/text@1",
1086
+ "nativeType": "text",
1087
+ "nullable": false
1088
+ },
1089
+ "txHash": {
1090
+ "codecId": "pg/text@1",
1091
+ "nativeType": "text",
1092
+ "nullable": true
1093
+ },
1094
+ "updatedAt": {
1095
+ "codecId": "pg/timestamptz-string@1",
1096
+ "nativeType": "timestamptz",
1097
+ "nullable": false
1098
+ },
1099
+ "venueId": {
1100
+ "codecId": "pg/text@1",
1101
+ "nativeType": "text",
1102
+ "nullable": true
1103
+ },
1104
+ "wallet": {
1105
+ "codecId": "pg/text@1",
1106
+ "nativeType": "text",
1107
+ "nullable": false
1108
+ }
1109
+ },
1110
+ "foreignKeys": [],
1111
+ "indexes": [
1112
+ {
1113
+ "columns": [
1114
+ "denialReason",
1115
+ "at"
1116
+ ],
1117
+ "name": "spendEvent_denialReason_at_idx_84ea573f",
1118
+ "prefix": "spendEvent_denialReason_at_idx",
1119
+ "unique": false
1120
+ },
1121
+ {
1122
+ "columns": [
1123
+ "state",
1124
+ "at"
1125
+ ],
1126
+ "name": "spendEvent_state_at_idx_b570e6ae",
1127
+ "prefix": "spendEvent_state_at_idx",
1128
+ "unique": false
1129
+ },
1130
+ {
1131
+ "columns": [
1132
+ "txHash"
1133
+ ],
1134
+ "name": "spendEvent_txHash_idx_3fbe8b55",
1135
+ "prefix": "spendEvent_txHash_idx",
1136
+ "unique": false
1137
+ },
1138
+ {
1139
+ "columns": [
1140
+ "venueId",
1141
+ "at"
1142
+ ],
1143
+ "name": "spendEvent_venueId_at_idx_6ab90d05",
1144
+ "prefix": "spendEvent_venueId_at_idx",
1145
+ "unique": false
1146
+ },
1147
+ {
1148
+ "columns": [
1149
+ "wallet",
1150
+ "at"
1151
+ ],
1152
+ "name": "spendEvent_wallet_at_idx_b76ec1ce",
1153
+ "prefix": "spendEvent_wallet_at_idx",
1154
+ "unique": false
355
1155
  }
356
1156
  ],
357
1157
  "primaryKey": {
@@ -361,8 +1161,13 @@
361
1161
  },
362
1162
  "uniques": []
363
1163
  },
364
- "scanResult": {
1164
+ "venueJob": {
365
1165
  "columns": {
1166
+ "client": {
1167
+ "codecId": "pg/text@1",
1168
+ "nativeType": "text",
1169
+ "nullable": false
1170
+ },
366
1171
  "createdAt": {
367
1172
  "codecId": "pg/timestamptz-string@1",
368
1173
  "default": {
@@ -372,51 +1177,147 @@
372
1177
  "nativeType": "timestamptz",
373
1178
  "nullable": false
374
1179
  },
375
- "domain": {
1180
+ "id": {
376
1181
  "codecId": "pg/text@1",
377
1182
  "nativeType": "text",
378
1183
  "nullable": false
379
1184
  },
380
- "id": {
1185
+ "jobId": {
381
1186
  "codecId": "pg/text@1",
382
1187
  "nativeType": "text",
383
1188
  "nullable": false
384
1189
  },
385
- "report": {
1190
+ "payload": {
386
1191
  "codecId": "pg/json@1",
387
1192
  "nativeType": "json",
388
1193
  "nullable": false
389
1194
  },
390
- "rulesetVersion": {
1195
+ "provider": {
391
1196
  "codecId": "pg/text@1",
392
1197
  "nativeType": "text",
393
1198
  "nullable": true
394
1199
  },
395
- "score": {
396
- "codecId": "pg/int4@1",
397
- "nativeType": "int4",
398
- "nullable": true
1200
+ "status": {
1201
+ "codecId": "pg/text@1",
1202
+ "nativeType": "text",
1203
+ "nullable": false
399
1204
  },
400
1205
  "updatedAt": {
401
1206
  "codecId": "pg/timestamptz-string@1",
402
1207
  "nativeType": "timestamptz",
403
1208
  "nullable": false
1209
+ }
1210
+ },
1211
+ "foreignKeys": [],
1212
+ "indexes": [
1213
+ {
1214
+ "columns": [
1215
+ "client"
1216
+ ],
1217
+ "name": "venueJob_client_idx_135b7ce5",
1218
+ "prefix": "venueJob_client_idx",
1219
+ "unique": false
404
1220
  },
405
- "url": {
1221
+ {
1222
+ "columns": [
1223
+ "status",
1224
+ "createdAt"
1225
+ ],
1226
+ "name": "venueJob_status_createdAt_idx_58610442",
1227
+ "prefix": "venueJob_status_createdAt_idx",
1228
+ "unique": false
1229
+ }
1230
+ ],
1231
+ "primaryKey": {
1232
+ "columns": [
1233
+ "id"
1234
+ ]
1235
+ },
1236
+ "uniques": [
1237
+ {
1238
+ "columns": [
1239
+ "jobId"
1240
+ ]
1241
+ }
1242
+ ]
1243
+ },
1244
+ "venueMeta": {
1245
+ "columns": {
1246
+ "key": {
1247
+ "codecId": "pg/text@1",
1248
+ "nativeType": "text",
1249
+ "nullable": false
1250
+ },
1251
+ "updatedAt": {
1252
+ "codecId": "pg/timestamptz-string@1",
1253
+ "nativeType": "timestamptz",
1254
+ "nullable": false
1255
+ },
1256
+ "value": {
1257
+ "codecId": "pg/json@1",
1258
+ "nativeType": "json",
1259
+ "nullable": false
1260
+ }
1261
+ },
1262
+ "foreignKeys": [],
1263
+ "indexes": [],
1264
+ "primaryKey": {
1265
+ "columns": [
1266
+ "key"
1267
+ ]
1268
+ },
1269
+ "uniques": []
1270
+ },
1271
+ "venueOffer": {
1272
+ "columns": {
1273
+ "active": {
1274
+ "codecId": "pg/bool@1",
1275
+ "default": {
1276
+ "kind": "literal",
1277
+ "value": true
1278
+ },
1279
+ "nativeType": "bool",
1280
+ "nullable": false
1281
+ },
1282
+ "createdAt": {
1283
+ "codecId": "pg/timestamptz-string@1",
1284
+ "default": {
1285
+ "expression": "now()",
1286
+ "kind": "function"
1287
+ },
1288
+ "nativeType": "timestamptz",
1289
+ "nullable": false
1290
+ },
1291
+ "id": {
1292
+ "codecId": "pg/text@1",
1293
+ "nativeType": "text",
1294
+ "nullable": false
1295
+ },
1296
+ "payload": {
1297
+ "codecId": "pg/json@1",
1298
+ "nativeType": "json",
1299
+ "nullable": false
1300
+ },
1301
+ "providerAddress": {
406
1302
  "codecId": "pg/text@1",
407
1303
  "nativeType": "text",
408
1304
  "nullable": false
1305
+ },
1306
+ "updatedAt": {
1307
+ "codecId": "pg/timestamptz-string@1",
1308
+ "nativeType": "timestamptz",
1309
+ "nullable": false
409
1310
  }
410
1311
  },
411
1312
  "foreignKeys": [],
412
1313
  "indexes": [
413
1314
  {
414
1315
  "columns": [
415
- "domain",
416
- "createdAt"
1316
+ "providerAddress",
1317
+ "active"
417
1318
  ],
418
- "name": "scanResult_domain_createdAt_idx_c5bd4696",
419
- "prefix": "scanResult_domain_createdAt_idx",
1319
+ "name": "venueOffer_providerAddress_active_idx_bf5e414c",
1320
+ "prefix": "venueOffer_providerAddress_active_idx",
420
1321
  "unique": false
421
1322
  }
422
1323
  ],
@@ -433,12 +1334,38 @@
433
1334
  "kind": "postgres-schema"
434
1335
  }
435
1336
  },
436
- "storageHash": "34b23f5aeb2d36a58036b2eadcc94edf8dbcdf7644aa9eae5517ba51d66451df"
1337
+ "storageHash": "b27c2a0270b519942b2abfc77f8b0fdc532c38bbaa652b63209148514c405a64"
437
1338
  },
438
1339
  "execution": {
439
- "executionHash": "9a73be325ad1106310581a4337ffd4cb14486296a033307f46ad89116d36d6ce",
1340
+ "executionHash": "45ef075f560eb8a89eb3c9c3b8cfa9330b98008a67d01084852a871d82dce8a2",
440
1341
  "mutations": {
441
1342
  "defaults": [
1343
+ {
1344
+ "onCreate": {
1345
+ "id": "uuidv4",
1346
+ "kind": "generator"
1347
+ },
1348
+ "ref": {
1349
+ "column": "id",
1350
+ "namespace": "public",
1351
+ "table": "agentWallet"
1352
+ }
1353
+ },
1354
+ {
1355
+ "onCreate": {
1356
+ "id": "timestampNow",
1357
+ "kind": "generator"
1358
+ },
1359
+ "onUpdate": {
1360
+ "id": "timestampNow",
1361
+ "kind": "generator"
1362
+ },
1363
+ "ref": {
1364
+ "column": "updatedAt",
1365
+ "namespace": "public",
1366
+ "table": "agentWallet"
1367
+ }
1368
+ },
442
1369
  {
443
1370
  "onCreate": {
444
1371
  "id": "uuidv4",
@@ -516,6 +1443,77 @@
516
1443
  "namespace": "public",
517
1444
  "table": "scanResult"
518
1445
  }
1446
+ },
1447
+ {
1448
+ "onCreate": {
1449
+ "id": "timestampNow",
1450
+ "kind": "generator"
1451
+ },
1452
+ "onUpdate": {
1453
+ "id": "timestampNow",
1454
+ "kind": "generator"
1455
+ },
1456
+ "ref": {
1457
+ "column": "updatedAt",
1458
+ "namespace": "public",
1459
+ "table": "spendEvent"
1460
+ }
1461
+ },
1462
+ {
1463
+ "onCreate": {
1464
+ "id": "uuidv4",
1465
+ "kind": "generator"
1466
+ },
1467
+ "ref": {
1468
+ "column": "id",
1469
+ "namespace": "public",
1470
+ "table": "venueJob"
1471
+ }
1472
+ },
1473
+ {
1474
+ "onCreate": {
1475
+ "id": "timestampNow",
1476
+ "kind": "generator"
1477
+ },
1478
+ "onUpdate": {
1479
+ "id": "timestampNow",
1480
+ "kind": "generator"
1481
+ },
1482
+ "ref": {
1483
+ "column": "updatedAt",
1484
+ "namespace": "public",
1485
+ "table": "venueJob"
1486
+ }
1487
+ },
1488
+ {
1489
+ "onCreate": {
1490
+ "id": "timestampNow",
1491
+ "kind": "generator"
1492
+ },
1493
+ "onUpdate": {
1494
+ "id": "timestampNow",
1495
+ "kind": "generator"
1496
+ },
1497
+ "ref": {
1498
+ "column": "updatedAt",
1499
+ "namespace": "public",
1500
+ "table": "venueMeta"
1501
+ }
1502
+ },
1503
+ {
1504
+ "onCreate": {
1505
+ "id": "timestampNow",
1506
+ "kind": "generator"
1507
+ },
1508
+ "onUpdate": {
1509
+ "id": "timestampNow",
1510
+ "kind": "generator"
1511
+ },
1512
+ "ref": {
1513
+ "column": "updatedAt",
1514
+ "namespace": "public",
1515
+ "table": "venueOffer"
1516
+ }
519
1517
  }
520
1518
  ]
521
1519
  }