@hogsend/db 0.0.1 → 0.2.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,2482 @@
1
+ {
2
+ "id": "68c5ea9c-4424-4cd2-a575-e724a8e5be33",
3
+ "prevId": "e1baa516-09d7-4789-8196-d08d5af393d1",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.alert_history": {
8
+ "name": "alert_history",
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
+ "alert_rule_id": {
19
+ "name": "alert_rule_id",
20
+ "type": "uuid",
21
+ "primaryKey": false,
22
+ "notNull": true
23
+ },
24
+ "payload": {
25
+ "name": "payload",
26
+ "type": "jsonb",
27
+ "primaryKey": false,
28
+ "notNull": false
29
+ },
30
+ "delivery_status": {
31
+ "name": "delivery_status",
32
+ "type": "text",
33
+ "primaryKey": false,
34
+ "notNull": true
35
+ },
36
+ "error": {
37
+ "name": "error",
38
+ "type": "text",
39
+ "primaryKey": false,
40
+ "notNull": false
41
+ },
42
+ "created_at": {
43
+ "name": "created_at",
44
+ "type": "timestamp with time zone",
45
+ "primaryKey": false,
46
+ "notNull": true,
47
+ "default": "now()"
48
+ },
49
+ "updated_at": {
50
+ "name": "updated_at",
51
+ "type": "timestamp with time zone",
52
+ "primaryKey": false,
53
+ "notNull": true,
54
+ "default": "now()"
55
+ }
56
+ },
57
+ "indexes": {
58
+ "alert_history_rule_id_idx": {
59
+ "name": "alert_history_rule_id_idx",
60
+ "columns": [
61
+ {
62
+ "expression": "alert_rule_id",
63
+ "isExpression": false,
64
+ "asc": true,
65
+ "nulls": "last"
66
+ }
67
+ ],
68
+ "isUnique": false,
69
+ "concurrently": false,
70
+ "method": "btree",
71
+ "with": {}
72
+ },
73
+ "alert_history_created_at_idx": {
74
+ "name": "alert_history_created_at_idx",
75
+ "columns": [
76
+ {
77
+ "expression": "created_at",
78
+ "isExpression": false,
79
+ "asc": true,
80
+ "nulls": "last"
81
+ }
82
+ ],
83
+ "isUnique": false,
84
+ "concurrently": false,
85
+ "method": "btree",
86
+ "with": {}
87
+ }
88
+ },
89
+ "foreignKeys": {
90
+ "alert_history_alert_rule_id_alert_rules_id_fk": {
91
+ "name": "alert_history_alert_rule_id_alert_rules_id_fk",
92
+ "tableFrom": "alert_history",
93
+ "tableTo": "alert_rules",
94
+ "columnsFrom": [
95
+ "alert_rule_id"
96
+ ],
97
+ "columnsTo": [
98
+ "id"
99
+ ],
100
+ "onDelete": "no action",
101
+ "onUpdate": "no action"
102
+ }
103
+ },
104
+ "compositePrimaryKeys": {},
105
+ "uniqueConstraints": {},
106
+ "policies": {},
107
+ "checkConstraints": {},
108
+ "isRLSEnabled": false
109
+ },
110
+ "public.alert_rules": {
111
+ "name": "alert_rules",
112
+ "schema": "",
113
+ "columns": {
114
+ "id": {
115
+ "name": "id",
116
+ "type": "uuid",
117
+ "primaryKey": true,
118
+ "notNull": true,
119
+ "default": "gen_random_uuid()"
120
+ },
121
+ "name": {
122
+ "name": "name",
123
+ "type": "text",
124
+ "primaryKey": false,
125
+ "notNull": true
126
+ },
127
+ "type": {
128
+ "name": "type",
129
+ "type": "alert_rule_type",
130
+ "typeSchema": "public",
131
+ "primaryKey": false,
132
+ "notNull": true
133
+ },
134
+ "threshold": {
135
+ "name": "threshold",
136
+ "type": "jsonb",
137
+ "primaryKey": false,
138
+ "notNull": true
139
+ },
140
+ "channel": {
141
+ "name": "channel",
142
+ "type": "alert_channel",
143
+ "typeSchema": "public",
144
+ "primaryKey": false,
145
+ "notNull": true
146
+ },
147
+ "channel_config": {
148
+ "name": "channel_config",
149
+ "type": "jsonb",
150
+ "primaryKey": false,
151
+ "notNull": true
152
+ },
153
+ "enabled": {
154
+ "name": "enabled",
155
+ "type": "boolean",
156
+ "primaryKey": false,
157
+ "notNull": true,
158
+ "default": true
159
+ },
160
+ "cooldown_minutes": {
161
+ "name": "cooldown_minutes",
162
+ "type": "integer",
163
+ "primaryKey": false,
164
+ "notNull": true,
165
+ "default": 60
166
+ },
167
+ "last_fired_at": {
168
+ "name": "last_fired_at",
169
+ "type": "timestamp with time zone",
170
+ "primaryKey": false,
171
+ "notNull": false
172
+ },
173
+ "created_at": {
174
+ "name": "created_at",
175
+ "type": "timestamp with time zone",
176
+ "primaryKey": false,
177
+ "notNull": true,
178
+ "default": "now()"
179
+ },
180
+ "updated_at": {
181
+ "name": "updated_at",
182
+ "type": "timestamp with time zone",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "default": "now()"
186
+ }
187
+ },
188
+ "indexes": {
189
+ "alert_rules_type_idx": {
190
+ "name": "alert_rules_type_idx",
191
+ "columns": [
192
+ {
193
+ "expression": "type",
194
+ "isExpression": false,
195
+ "asc": true,
196
+ "nulls": "last"
197
+ }
198
+ ],
199
+ "isUnique": false,
200
+ "concurrently": false,
201
+ "method": "btree",
202
+ "with": {}
203
+ },
204
+ "alert_rules_enabled_idx": {
205
+ "name": "alert_rules_enabled_idx",
206
+ "columns": [
207
+ {
208
+ "expression": "enabled",
209
+ "isExpression": false,
210
+ "asc": true,
211
+ "nulls": "last"
212
+ }
213
+ ],
214
+ "isUnique": false,
215
+ "concurrently": false,
216
+ "method": "btree",
217
+ "with": {}
218
+ }
219
+ },
220
+ "foreignKeys": {},
221
+ "compositePrimaryKeys": {},
222
+ "uniqueConstraints": {},
223
+ "policies": {},
224
+ "checkConstraints": {},
225
+ "isRLSEnabled": false
226
+ },
227
+ "public.api_keys": {
228
+ "name": "api_keys",
229
+ "schema": "",
230
+ "columns": {
231
+ "id": {
232
+ "name": "id",
233
+ "type": "uuid",
234
+ "primaryKey": true,
235
+ "notNull": true,
236
+ "default": "gen_random_uuid()"
237
+ },
238
+ "organization_id": {
239
+ "name": "organization_id",
240
+ "type": "text",
241
+ "primaryKey": false,
242
+ "notNull": false
243
+ },
244
+ "name": {
245
+ "name": "name",
246
+ "type": "text",
247
+ "primaryKey": false,
248
+ "notNull": true
249
+ },
250
+ "key_prefix": {
251
+ "name": "key_prefix",
252
+ "type": "text",
253
+ "primaryKey": false,
254
+ "notNull": true
255
+ },
256
+ "key_hash": {
257
+ "name": "key_hash",
258
+ "type": "text",
259
+ "primaryKey": false,
260
+ "notNull": true
261
+ },
262
+ "scopes": {
263
+ "name": "scopes",
264
+ "type": "jsonb",
265
+ "primaryKey": false,
266
+ "notNull": true,
267
+ "default": "'[\"read\"]'::jsonb"
268
+ },
269
+ "created_by": {
270
+ "name": "created_by",
271
+ "type": "text",
272
+ "primaryKey": false,
273
+ "notNull": false
274
+ },
275
+ "last_used_at": {
276
+ "name": "last_used_at",
277
+ "type": "timestamp with time zone",
278
+ "primaryKey": false,
279
+ "notNull": false
280
+ },
281
+ "revoked_at": {
282
+ "name": "revoked_at",
283
+ "type": "timestamp with time zone",
284
+ "primaryKey": false,
285
+ "notNull": false
286
+ },
287
+ "expires_at": {
288
+ "name": "expires_at",
289
+ "type": "timestamp with time zone",
290
+ "primaryKey": false,
291
+ "notNull": false
292
+ },
293
+ "created_at": {
294
+ "name": "created_at",
295
+ "type": "timestamp with time zone",
296
+ "primaryKey": false,
297
+ "notNull": true,
298
+ "default": "now()"
299
+ },
300
+ "updated_at": {
301
+ "name": "updated_at",
302
+ "type": "timestamp with time zone",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "default": "now()"
306
+ }
307
+ },
308
+ "indexes": {
309
+ "api_keys_key_hash_idx": {
310
+ "name": "api_keys_key_hash_idx",
311
+ "columns": [
312
+ {
313
+ "expression": "key_hash",
314
+ "isExpression": false,
315
+ "asc": true,
316
+ "nulls": "last"
317
+ }
318
+ ],
319
+ "isUnique": false,
320
+ "concurrently": false,
321
+ "method": "btree",
322
+ "with": {}
323
+ },
324
+ "api_keys_revoked_at_idx": {
325
+ "name": "api_keys_revoked_at_idx",
326
+ "columns": [
327
+ {
328
+ "expression": "revoked_at",
329
+ "isExpression": false,
330
+ "asc": true,
331
+ "nulls": "last"
332
+ }
333
+ ],
334
+ "isUnique": false,
335
+ "concurrently": false,
336
+ "method": "btree",
337
+ "with": {}
338
+ }
339
+ },
340
+ "foreignKeys": {},
341
+ "compositePrimaryKeys": {},
342
+ "uniqueConstraints": {
343
+ "api_keys_key_hash_unique": {
344
+ "name": "api_keys_key_hash_unique",
345
+ "nullsNotDistinct": false,
346
+ "columns": [
347
+ "key_hash"
348
+ ]
349
+ }
350
+ },
351
+ "policies": {},
352
+ "checkConstraints": {},
353
+ "isRLSEnabled": false
354
+ },
355
+ "public.audit_logs": {
356
+ "name": "audit_logs",
357
+ "schema": "",
358
+ "columns": {
359
+ "id": {
360
+ "name": "id",
361
+ "type": "uuid",
362
+ "primaryKey": true,
363
+ "notNull": true,
364
+ "default": "gen_random_uuid()"
365
+ },
366
+ "actor": {
367
+ "name": "actor",
368
+ "type": "text",
369
+ "primaryKey": false,
370
+ "notNull": true
371
+ },
372
+ "actor_key_id": {
373
+ "name": "actor_key_id",
374
+ "type": "uuid",
375
+ "primaryKey": false,
376
+ "notNull": false
377
+ },
378
+ "action": {
379
+ "name": "action",
380
+ "type": "text",
381
+ "primaryKey": false,
382
+ "notNull": true
383
+ },
384
+ "resource": {
385
+ "name": "resource",
386
+ "type": "text",
387
+ "primaryKey": false,
388
+ "notNull": true
389
+ },
390
+ "resource_id": {
391
+ "name": "resource_id",
392
+ "type": "text",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ },
396
+ "detail": {
397
+ "name": "detail",
398
+ "type": "jsonb",
399
+ "primaryKey": false,
400
+ "notNull": false
401
+ },
402
+ "ip_address": {
403
+ "name": "ip_address",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false
407
+ },
408
+ "created_at": {
409
+ "name": "created_at",
410
+ "type": "timestamp with time zone",
411
+ "primaryKey": false,
412
+ "notNull": true,
413
+ "default": "now()"
414
+ },
415
+ "updated_at": {
416
+ "name": "updated_at",
417
+ "type": "timestamp with time zone",
418
+ "primaryKey": false,
419
+ "notNull": true,
420
+ "default": "now()"
421
+ }
422
+ },
423
+ "indexes": {
424
+ "audit_logs_actor_idx": {
425
+ "name": "audit_logs_actor_idx",
426
+ "columns": [
427
+ {
428
+ "expression": "actor",
429
+ "isExpression": false,
430
+ "asc": true,
431
+ "nulls": "last"
432
+ }
433
+ ],
434
+ "isUnique": false,
435
+ "concurrently": false,
436
+ "method": "btree",
437
+ "with": {}
438
+ },
439
+ "audit_logs_resource_idx": {
440
+ "name": "audit_logs_resource_idx",
441
+ "columns": [
442
+ {
443
+ "expression": "resource",
444
+ "isExpression": false,
445
+ "asc": true,
446
+ "nulls": "last"
447
+ },
448
+ {
449
+ "expression": "resource_id",
450
+ "isExpression": false,
451
+ "asc": true,
452
+ "nulls": "last"
453
+ }
454
+ ],
455
+ "isUnique": false,
456
+ "concurrently": false,
457
+ "method": "btree",
458
+ "with": {}
459
+ },
460
+ "audit_logs_created_at_idx": {
461
+ "name": "audit_logs_created_at_idx",
462
+ "columns": [
463
+ {
464
+ "expression": "created_at",
465
+ "isExpression": false,
466
+ "asc": true,
467
+ "nulls": "last"
468
+ }
469
+ ],
470
+ "isUnique": false,
471
+ "concurrently": false,
472
+ "method": "btree",
473
+ "with": {}
474
+ }
475
+ },
476
+ "foreignKeys": {},
477
+ "compositePrimaryKeys": {},
478
+ "uniqueConstraints": {},
479
+ "policies": {},
480
+ "checkConstraints": {},
481
+ "isRLSEnabled": false
482
+ },
483
+ "public.account": {
484
+ "name": "account",
485
+ "schema": "",
486
+ "columns": {
487
+ "id": {
488
+ "name": "id",
489
+ "type": "text",
490
+ "primaryKey": true,
491
+ "notNull": true
492
+ },
493
+ "account_id": {
494
+ "name": "account_id",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": true
498
+ },
499
+ "provider_id": {
500
+ "name": "provider_id",
501
+ "type": "text",
502
+ "primaryKey": false,
503
+ "notNull": true
504
+ },
505
+ "user_id": {
506
+ "name": "user_id",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": true
510
+ },
511
+ "access_token": {
512
+ "name": "access_token",
513
+ "type": "text",
514
+ "primaryKey": false,
515
+ "notNull": false
516
+ },
517
+ "refresh_token": {
518
+ "name": "refresh_token",
519
+ "type": "text",
520
+ "primaryKey": false,
521
+ "notNull": false
522
+ },
523
+ "id_token": {
524
+ "name": "id_token",
525
+ "type": "text",
526
+ "primaryKey": false,
527
+ "notNull": false
528
+ },
529
+ "access_token_expires_at": {
530
+ "name": "access_token_expires_at",
531
+ "type": "timestamp with time zone",
532
+ "primaryKey": false,
533
+ "notNull": false
534
+ },
535
+ "refresh_token_expires_at": {
536
+ "name": "refresh_token_expires_at",
537
+ "type": "timestamp with time zone",
538
+ "primaryKey": false,
539
+ "notNull": false
540
+ },
541
+ "scope": {
542
+ "name": "scope",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false
546
+ },
547
+ "password": {
548
+ "name": "password",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": false
552
+ },
553
+ "created_at": {
554
+ "name": "created_at",
555
+ "type": "timestamp with time zone",
556
+ "primaryKey": false,
557
+ "notNull": true,
558
+ "default": "now()"
559
+ },
560
+ "updated_at": {
561
+ "name": "updated_at",
562
+ "type": "timestamp with time zone",
563
+ "primaryKey": false,
564
+ "notNull": true,
565
+ "default": "now()"
566
+ }
567
+ },
568
+ "indexes": {},
569
+ "foreignKeys": {
570
+ "account_user_id_user_id_fk": {
571
+ "name": "account_user_id_user_id_fk",
572
+ "tableFrom": "account",
573
+ "tableTo": "user",
574
+ "columnsFrom": [
575
+ "user_id"
576
+ ],
577
+ "columnsTo": [
578
+ "id"
579
+ ],
580
+ "onDelete": "cascade",
581
+ "onUpdate": "no action"
582
+ }
583
+ },
584
+ "compositePrimaryKeys": {},
585
+ "uniqueConstraints": {},
586
+ "policies": {},
587
+ "checkConstraints": {},
588
+ "isRLSEnabled": false
589
+ },
590
+ "public.invitation": {
591
+ "name": "invitation",
592
+ "schema": "",
593
+ "columns": {
594
+ "id": {
595
+ "name": "id",
596
+ "type": "text",
597
+ "primaryKey": true,
598
+ "notNull": true
599
+ },
600
+ "organization_id": {
601
+ "name": "organization_id",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": true
605
+ },
606
+ "email": {
607
+ "name": "email",
608
+ "type": "text",
609
+ "primaryKey": false,
610
+ "notNull": true
611
+ },
612
+ "role": {
613
+ "name": "role",
614
+ "type": "text",
615
+ "primaryKey": false,
616
+ "notNull": false
617
+ },
618
+ "status": {
619
+ "name": "status",
620
+ "type": "text",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "default": "'pending'"
624
+ },
625
+ "expires_at": {
626
+ "name": "expires_at",
627
+ "type": "timestamp with time zone",
628
+ "primaryKey": false,
629
+ "notNull": true
630
+ },
631
+ "inviter_id": {
632
+ "name": "inviter_id",
633
+ "type": "text",
634
+ "primaryKey": false,
635
+ "notNull": true
636
+ },
637
+ "created_at": {
638
+ "name": "created_at",
639
+ "type": "timestamp with time zone",
640
+ "primaryKey": false,
641
+ "notNull": true,
642
+ "default": "now()"
643
+ },
644
+ "updated_at": {
645
+ "name": "updated_at",
646
+ "type": "timestamp with time zone",
647
+ "primaryKey": false,
648
+ "notNull": true,
649
+ "default": "now()"
650
+ }
651
+ },
652
+ "indexes": {},
653
+ "foreignKeys": {
654
+ "invitation_organization_id_organization_id_fk": {
655
+ "name": "invitation_organization_id_organization_id_fk",
656
+ "tableFrom": "invitation",
657
+ "tableTo": "organization",
658
+ "columnsFrom": [
659
+ "organization_id"
660
+ ],
661
+ "columnsTo": [
662
+ "id"
663
+ ],
664
+ "onDelete": "cascade",
665
+ "onUpdate": "no action"
666
+ },
667
+ "invitation_inviter_id_user_id_fk": {
668
+ "name": "invitation_inviter_id_user_id_fk",
669
+ "tableFrom": "invitation",
670
+ "tableTo": "user",
671
+ "columnsFrom": [
672
+ "inviter_id"
673
+ ],
674
+ "columnsTo": [
675
+ "id"
676
+ ],
677
+ "onDelete": "cascade",
678
+ "onUpdate": "no action"
679
+ }
680
+ },
681
+ "compositePrimaryKeys": {},
682
+ "uniqueConstraints": {},
683
+ "policies": {},
684
+ "checkConstraints": {},
685
+ "isRLSEnabled": false
686
+ },
687
+ "public.member": {
688
+ "name": "member",
689
+ "schema": "",
690
+ "columns": {
691
+ "id": {
692
+ "name": "id",
693
+ "type": "text",
694
+ "primaryKey": true,
695
+ "notNull": true
696
+ },
697
+ "organization_id": {
698
+ "name": "organization_id",
699
+ "type": "text",
700
+ "primaryKey": false,
701
+ "notNull": true
702
+ },
703
+ "user_id": {
704
+ "name": "user_id",
705
+ "type": "text",
706
+ "primaryKey": false,
707
+ "notNull": true
708
+ },
709
+ "role": {
710
+ "name": "role",
711
+ "type": "text",
712
+ "primaryKey": false,
713
+ "notNull": true,
714
+ "default": "'member'"
715
+ },
716
+ "created_at": {
717
+ "name": "created_at",
718
+ "type": "timestamp with time zone",
719
+ "primaryKey": false,
720
+ "notNull": true,
721
+ "default": "now()"
722
+ },
723
+ "updated_at": {
724
+ "name": "updated_at",
725
+ "type": "timestamp with time zone",
726
+ "primaryKey": false,
727
+ "notNull": true,
728
+ "default": "now()"
729
+ }
730
+ },
731
+ "indexes": {},
732
+ "foreignKeys": {
733
+ "member_organization_id_organization_id_fk": {
734
+ "name": "member_organization_id_organization_id_fk",
735
+ "tableFrom": "member",
736
+ "tableTo": "organization",
737
+ "columnsFrom": [
738
+ "organization_id"
739
+ ],
740
+ "columnsTo": [
741
+ "id"
742
+ ],
743
+ "onDelete": "cascade",
744
+ "onUpdate": "no action"
745
+ },
746
+ "member_user_id_user_id_fk": {
747
+ "name": "member_user_id_user_id_fk",
748
+ "tableFrom": "member",
749
+ "tableTo": "user",
750
+ "columnsFrom": [
751
+ "user_id"
752
+ ],
753
+ "columnsTo": [
754
+ "id"
755
+ ],
756
+ "onDelete": "cascade",
757
+ "onUpdate": "no action"
758
+ }
759
+ },
760
+ "compositePrimaryKeys": {},
761
+ "uniqueConstraints": {},
762
+ "policies": {},
763
+ "checkConstraints": {},
764
+ "isRLSEnabled": false
765
+ },
766
+ "public.organization": {
767
+ "name": "organization",
768
+ "schema": "",
769
+ "columns": {
770
+ "id": {
771
+ "name": "id",
772
+ "type": "text",
773
+ "primaryKey": true,
774
+ "notNull": true
775
+ },
776
+ "name": {
777
+ "name": "name",
778
+ "type": "text",
779
+ "primaryKey": false,
780
+ "notNull": true
781
+ },
782
+ "slug": {
783
+ "name": "slug",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": false
787
+ },
788
+ "logo": {
789
+ "name": "logo",
790
+ "type": "text",
791
+ "primaryKey": false,
792
+ "notNull": false
793
+ },
794
+ "metadata": {
795
+ "name": "metadata",
796
+ "type": "text",
797
+ "primaryKey": false,
798
+ "notNull": false
799
+ },
800
+ "created_at": {
801
+ "name": "created_at",
802
+ "type": "timestamp with time zone",
803
+ "primaryKey": false,
804
+ "notNull": true,
805
+ "default": "now()"
806
+ },
807
+ "updated_at": {
808
+ "name": "updated_at",
809
+ "type": "timestamp with time zone",
810
+ "primaryKey": false,
811
+ "notNull": true,
812
+ "default": "now()"
813
+ }
814
+ },
815
+ "indexes": {},
816
+ "foreignKeys": {},
817
+ "compositePrimaryKeys": {},
818
+ "uniqueConstraints": {
819
+ "organization_slug_unique": {
820
+ "name": "organization_slug_unique",
821
+ "nullsNotDistinct": false,
822
+ "columns": [
823
+ "slug"
824
+ ]
825
+ }
826
+ },
827
+ "policies": {},
828
+ "checkConstraints": {},
829
+ "isRLSEnabled": false
830
+ },
831
+ "public.session": {
832
+ "name": "session",
833
+ "schema": "",
834
+ "columns": {
835
+ "id": {
836
+ "name": "id",
837
+ "type": "text",
838
+ "primaryKey": true,
839
+ "notNull": true
840
+ },
841
+ "expires_at": {
842
+ "name": "expires_at",
843
+ "type": "timestamp with time zone",
844
+ "primaryKey": false,
845
+ "notNull": true
846
+ },
847
+ "token": {
848
+ "name": "token",
849
+ "type": "text",
850
+ "primaryKey": false,
851
+ "notNull": true
852
+ },
853
+ "ip_address": {
854
+ "name": "ip_address",
855
+ "type": "text",
856
+ "primaryKey": false,
857
+ "notNull": false
858
+ },
859
+ "user_agent": {
860
+ "name": "user_agent",
861
+ "type": "text",
862
+ "primaryKey": false,
863
+ "notNull": false
864
+ },
865
+ "user_id": {
866
+ "name": "user_id",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": true
870
+ },
871
+ "active_organization_id": {
872
+ "name": "active_organization_id",
873
+ "type": "text",
874
+ "primaryKey": false,
875
+ "notNull": false
876
+ },
877
+ "created_at": {
878
+ "name": "created_at",
879
+ "type": "timestamp with time zone",
880
+ "primaryKey": false,
881
+ "notNull": true,
882
+ "default": "now()"
883
+ },
884
+ "updated_at": {
885
+ "name": "updated_at",
886
+ "type": "timestamp with time zone",
887
+ "primaryKey": false,
888
+ "notNull": true,
889
+ "default": "now()"
890
+ }
891
+ },
892
+ "indexes": {},
893
+ "foreignKeys": {
894
+ "session_user_id_user_id_fk": {
895
+ "name": "session_user_id_user_id_fk",
896
+ "tableFrom": "session",
897
+ "tableTo": "user",
898
+ "columnsFrom": [
899
+ "user_id"
900
+ ],
901
+ "columnsTo": [
902
+ "id"
903
+ ],
904
+ "onDelete": "cascade",
905
+ "onUpdate": "no action"
906
+ }
907
+ },
908
+ "compositePrimaryKeys": {},
909
+ "uniqueConstraints": {
910
+ "session_token_unique": {
911
+ "name": "session_token_unique",
912
+ "nullsNotDistinct": false,
913
+ "columns": [
914
+ "token"
915
+ ]
916
+ }
917
+ },
918
+ "policies": {},
919
+ "checkConstraints": {},
920
+ "isRLSEnabled": false
921
+ },
922
+ "public.user": {
923
+ "name": "user",
924
+ "schema": "",
925
+ "columns": {
926
+ "id": {
927
+ "name": "id",
928
+ "type": "text",
929
+ "primaryKey": true,
930
+ "notNull": true
931
+ },
932
+ "name": {
933
+ "name": "name",
934
+ "type": "text",
935
+ "primaryKey": false,
936
+ "notNull": true
937
+ },
938
+ "email": {
939
+ "name": "email",
940
+ "type": "text",
941
+ "primaryKey": false,
942
+ "notNull": true
943
+ },
944
+ "email_verified": {
945
+ "name": "email_verified",
946
+ "type": "boolean",
947
+ "primaryKey": false,
948
+ "notNull": true,
949
+ "default": false
950
+ },
951
+ "image": {
952
+ "name": "image",
953
+ "type": "text",
954
+ "primaryKey": false,
955
+ "notNull": false
956
+ },
957
+ "created_at": {
958
+ "name": "created_at",
959
+ "type": "timestamp with time zone",
960
+ "primaryKey": false,
961
+ "notNull": true,
962
+ "default": "now()"
963
+ },
964
+ "updated_at": {
965
+ "name": "updated_at",
966
+ "type": "timestamp with time zone",
967
+ "primaryKey": false,
968
+ "notNull": true,
969
+ "default": "now()"
970
+ }
971
+ },
972
+ "indexes": {},
973
+ "foreignKeys": {},
974
+ "compositePrimaryKeys": {},
975
+ "uniqueConstraints": {
976
+ "user_email_unique": {
977
+ "name": "user_email_unique",
978
+ "nullsNotDistinct": false,
979
+ "columns": [
980
+ "email"
981
+ ]
982
+ }
983
+ },
984
+ "policies": {},
985
+ "checkConstraints": {},
986
+ "isRLSEnabled": false
987
+ },
988
+ "public.verification": {
989
+ "name": "verification",
990
+ "schema": "",
991
+ "columns": {
992
+ "id": {
993
+ "name": "id",
994
+ "type": "text",
995
+ "primaryKey": true,
996
+ "notNull": true
997
+ },
998
+ "identifier": {
999
+ "name": "identifier",
1000
+ "type": "text",
1001
+ "primaryKey": false,
1002
+ "notNull": true
1003
+ },
1004
+ "value": {
1005
+ "name": "value",
1006
+ "type": "text",
1007
+ "primaryKey": false,
1008
+ "notNull": true
1009
+ },
1010
+ "expires_at": {
1011
+ "name": "expires_at",
1012
+ "type": "timestamp with time zone",
1013
+ "primaryKey": false,
1014
+ "notNull": true
1015
+ },
1016
+ "created_at": {
1017
+ "name": "created_at",
1018
+ "type": "timestamp with time zone",
1019
+ "primaryKey": false,
1020
+ "notNull": true,
1021
+ "default": "now()"
1022
+ },
1023
+ "updated_at": {
1024
+ "name": "updated_at",
1025
+ "type": "timestamp with time zone",
1026
+ "primaryKey": false,
1027
+ "notNull": true,
1028
+ "default": "now()"
1029
+ }
1030
+ },
1031
+ "indexes": {},
1032
+ "foreignKeys": {},
1033
+ "compositePrimaryKeys": {},
1034
+ "uniqueConstraints": {},
1035
+ "policies": {},
1036
+ "checkConstraints": {},
1037
+ "isRLSEnabled": false
1038
+ },
1039
+ "public.contacts": {
1040
+ "name": "contacts",
1041
+ "schema": "",
1042
+ "columns": {
1043
+ "id": {
1044
+ "name": "id",
1045
+ "type": "uuid",
1046
+ "primaryKey": true,
1047
+ "notNull": true,
1048
+ "default": "gen_random_uuid()"
1049
+ },
1050
+ "organization_id": {
1051
+ "name": "organization_id",
1052
+ "type": "text",
1053
+ "primaryKey": false,
1054
+ "notNull": false
1055
+ },
1056
+ "external_id": {
1057
+ "name": "external_id",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true
1061
+ },
1062
+ "email": {
1063
+ "name": "email",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": false
1067
+ },
1068
+ "timezone": {
1069
+ "name": "timezone",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": false
1073
+ },
1074
+ "properties": {
1075
+ "name": "properties",
1076
+ "type": "jsonb",
1077
+ "primaryKey": false,
1078
+ "notNull": false,
1079
+ "default": "'{}'::jsonb"
1080
+ },
1081
+ "first_seen_at": {
1082
+ "name": "first_seen_at",
1083
+ "type": "timestamp with time zone",
1084
+ "primaryKey": false,
1085
+ "notNull": true,
1086
+ "default": "now()"
1087
+ },
1088
+ "last_seen_at": {
1089
+ "name": "last_seen_at",
1090
+ "type": "timestamp with time zone",
1091
+ "primaryKey": false,
1092
+ "notNull": true,
1093
+ "default": "now()"
1094
+ },
1095
+ "deleted_at": {
1096
+ "name": "deleted_at",
1097
+ "type": "timestamp with time zone",
1098
+ "primaryKey": false,
1099
+ "notNull": false
1100
+ },
1101
+ "created_at": {
1102
+ "name": "created_at",
1103
+ "type": "timestamp with time zone",
1104
+ "primaryKey": false,
1105
+ "notNull": true,
1106
+ "default": "now()"
1107
+ },
1108
+ "updated_at": {
1109
+ "name": "updated_at",
1110
+ "type": "timestamp with time zone",
1111
+ "primaryKey": false,
1112
+ "notNull": true,
1113
+ "default": "now()"
1114
+ }
1115
+ },
1116
+ "indexes": {
1117
+ "contacts_email_idx": {
1118
+ "name": "contacts_email_idx",
1119
+ "columns": [
1120
+ {
1121
+ "expression": "email",
1122
+ "isExpression": false,
1123
+ "asc": true,
1124
+ "nulls": "last"
1125
+ }
1126
+ ],
1127
+ "isUnique": false,
1128
+ "concurrently": false,
1129
+ "method": "btree",
1130
+ "with": {}
1131
+ }
1132
+ },
1133
+ "foreignKeys": {},
1134
+ "compositePrimaryKeys": {},
1135
+ "uniqueConstraints": {
1136
+ "contacts_external_id_unique": {
1137
+ "name": "contacts_external_id_unique",
1138
+ "nullsNotDistinct": false,
1139
+ "columns": [
1140
+ "external_id"
1141
+ ]
1142
+ }
1143
+ },
1144
+ "policies": {},
1145
+ "checkConstraints": {},
1146
+ "isRLSEnabled": false
1147
+ },
1148
+ "public.dead_letter_queue": {
1149
+ "name": "dead_letter_queue",
1150
+ "schema": "",
1151
+ "columns": {
1152
+ "id": {
1153
+ "name": "id",
1154
+ "type": "uuid",
1155
+ "primaryKey": true,
1156
+ "notNull": true,
1157
+ "default": "gen_random_uuid()"
1158
+ },
1159
+ "source": {
1160
+ "name": "source",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true
1164
+ },
1165
+ "source_id": {
1166
+ "name": "source_id",
1167
+ "type": "text",
1168
+ "primaryKey": false,
1169
+ "notNull": false
1170
+ },
1171
+ "payload": {
1172
+ "name": "payload",
1173
+ "type": "jsonb",
1174
+ "primaryKey": false,
1175
+ "notNull": true
1176
+ },
1177
+ "error": {
1178
+ "name": "error",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": true
1182
+ },
1183
+ "retry_count": {
1184
+ "name": "retry_count",
1185
+ "type": "integer",
1186
+ "primaryKey": false,
1187
+ "notNull": true,
1188
+ "default": 0
1189
+ },
1190
+ "status": {
1191
+ "name": "status",
1192
+ "type": "dlq_status",
1193
+ "typeSchema": "public",
1194
+ "primaryKey": false,
1195
+ "notNull": true,
1196
+ "default": "'pending'"
1197
+ },
1198
+ "retried_at": {
1199
+ "name": "retried_at",
1200
+ "type": "timestamp with time zone",
1201
+ "primaryKey": false,
1202
+ "notNull": false
1203
+ },
1204
+ "created_at": {
1205
+ "name": "created_at",
1206
+ "type": "timestamp with time zone",
1207
+ "primaryKey": false,
1208
+ "notNull": true,
1209
+ "default": "now()"
1210
+ },
1211
+ "updated_at": {
1212
+ "name": "updated_at",
1213
+ "type": "timestamp with time zone",
1214
+ "primaryKey": false,
1215
+ "notNull": true,
1216
+ "default": "now()"
1217
+ }
1218
+ },
1219
+ "indexes": {
1220
+ "dlq_source_idx": {
1221
+ "name": "dlq_source_idx",
1222
+ "columns": [
1223
+ {
1224
+ "expression": "source",
1225
+ "isExpression": false,
1226
+ "asc": true,
1227
+ "nulls": "last"
1228
+ }
1229
+ ],
1230
+ "isUnique": false,
1231
+ "concurrently": false,
1232
+ "method": "btree",
1233
+ "with": {}
1234
+ },
1235
+ "dlq_status_idx": {
1236
+ "name": "dlq_status_idx",
1237
+ "columns": [
1238
+ {
1239
+ "expression": "status",
1240
+ "isExpression": false,
1241
+ "asc": true,
1242
+ "nulls": "last"
1243
+ }
1244
+ ],
1245
+ "isUnique": false,
1246
+ "concurrently": false,
1247
+ "method": "btree",
1248
+ "with": {}
1249
+ },
1250
+ "dlq_created_at_idx": {
1251
+ "name": "dlq_created_at_idx",
1252
+ "columns": [
1253
+ {
1254
+ "expression": "created_at",
1255
+ "isExpression": false,
1256
+ "asc": true,
1257
+ "nulls": "last"
1258
+ }
1259
+ ],
1260
+ "isUnique": false,
1261
+ "concurrently": false,
1262
+ "method": "btree",
1263
+ "with": {}
1264
+ }
1265
+ },
1266
+ "foreignKeys": {},
1267
+ "compositePrimaryKeys": {},
1268
+ "uniqueConstraints": {},
1269
+ "policies": {},
1270
+ "checkConstraints": {},
1271
+ "isRLSEnabled": false
1272
+ },
1273
+ "public.email_preferences": {
1274
+ "name": "email_preferences",
1275
+ "schema": "",
1276
+ "columns": {
1277
+ "id": {
1278
+ "name": "id",
1279
+ "type": "uuid",
1280
+ "primaryKey": true,
1281
+ "notNull": true,
1282
+ "default": "gen_random_uuid()"
1283
+ },
1284
+ "user_id": {
1285
+ "name": "user_id",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": true
1289
+ },
1290
+ "email": {
1291
+ "name": "email",
1292
+ "type": "text",
1293
+ "primaryKey": false,
1294
+ "notNull": true
1295
+ },
1296
+ "unsubscribed_all": {
1297
+ "name": "unsubscribed_all",
1298
+ "type": "boolean",
1299
+ "primaryKey": false,
1300
+ "notNull": true,
1301
+ "default": false
1302
+ },
1303
+ "suppressed": {
1304
+ "name": "suppressed",
1305
+ "type": "boolean",
1306
+ "primaryKey": false,
1307
+ "notNull": true,
1308
+ "default": false
1309
+ },
1310
+ "bounce_count": {
1311
+ "name": "bounce_count",
1312
+ "type": "integer",
1313
+ "primaryKey": false,
1314
+ "notNull": true,
1315
+ "default": 0
1316
+ },
1317
+ "categories": {
1318
+ "name": "categories",
1319
+ "type": "jsonb",
1320
+ "primaryKey": false,
1321
+ "notNull": false,
1322
+ "default": "'{}'::jsonb"
1323
+ },
1324
+ "suppressed_at": {
1325
+ "name": "suppressed_at",
1326
+ "type": "timestamp with time zone",
1327
+ "primaryKey": false,
1328
+ "notNull": false
1329
+ },
1330
+ "last_bounce_at": {
1331
+ "name": "last_bounce_at",
1332
+ "type": "timestamp with time zone",
1333
+ "primaryKey": false,
1334
+ "notNull": false
1335
+ },
1336
+ "created_at": {
1337
+ "name": "created_at",
1338
+ "type": "timestamp with time zone",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "default": "now()"
1342
+ },
1343
+ "updated_at": {
1344
+ "name": "updated_at",
1345
+ "type": "timestamp with time zone",
1346
+ "primaryKey": false,
1347
+ "notNull": true,
1348
+ "default": "now()"
1349
+ }
1350
+ },
1351
+ "indexes": {
1352
+ "email_preferences_user_email_idx": {
1353
+ "name": "email_preferences_user_email_idx",
1354
+ "columns": [
1355
+ {
1356
+ "expression": "user_id",
1357
+ "isExpression": false,
1358
+ "asc": true,
1359
+ "nulls": "last"
1360
+ },
1361
+ {
1362
+ "expression": "email",
1363
+ "isExpression": false,
1364
+ "asc": true,
1365
+ "nulls": "last"
1366
+ }
1367
+ ],
1368
+ "isUnique": true,
1369
+ "concurrently": false,
1370
+ "method": "btree",
1371
+ "with": {}
1372
+ }
1373
+ },
1374
+ "foreignKeys": {},
1375
+ "compositePrimaryKeys": {},
1376
+ "uniqueConstraints": {},
1377
+ "policies": {},
1378
+ "checkConstraints": {},
1379
+ "isRLSEnabled": false
1380
+ },
1381
+ "public.email_sends": {
1382
+ "name": "email_sends",
1383
+ "schema": "",
1384
+ "columns": {
1385
+ "id": {
1386
+ "name": "id",
1387
+ "type": "uuid",
1388
+ "primaryKey": true,
1389
+ "notNull": true,
1390
+ "default": "gen_random_uuid()"
1391
+ },
1392
+ "organization_id": {
1393
+ "name": "organization_id",
1394
+ "type": "text",
1395
+ "primaryKey": false,
1396
+ "notNull": false
1397
+ },
1398
+ "journey_state_id": {
1399
+ "name": "journey_state_id",
1400
+ "type": "uuid",
1401
+ "primaryKey": false,
1402
+ "notNull": false
1403
+ },
1404
+ "template_key": {
1405
+ "name": "template_key",
1406
+ "type": "text",
1407
+ "primaryKey": false,
1408
+ "notNull": false
1409
+ },
1410
+ "resend_id": {
1411
+ "name": "resend_id",
1412
+ "type": "text",
1413
+ "primaryKey": false,
1414
+ "notNull": false
1415
+ },
1416
+ "from_email": {
1417
+ "name": "from_email",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true
1421
+ },
1422
+ "to_email": {
1423
+ "name": "to_email",
1424
+ "type": "text",
1425
+ "primaryKey": false,
1426
+ "notNull": true
1427
+ },
1428
+ "subject": {
1429
+ "name": "subject",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": true
1433
+ },
1434
+ "category": {
1435
+ "name": "category",
1436
+ "type": "text",
1437
+ "primaryKey": false,
1438
+ "notNull": false
1439
+ },
1440
+ "status": {
1441
+ "name": "status",
1442
+ "type": "email_send_status",
1443
+ "typeSchema": "public",
1444
+ "primaryKey": false,
1445
+ "notNull": true,
1446
+ "default": "'queued'"
1447
+ },
1448
+ "sent_at": {
1449
+ "name": "sent_at",
1450
+ "type": "timestamp with time zone",
1451
+ "primaryKey": false,
1452
+ "notNull": false
1453
+ },
1454
+ "delivered_at": {
1455
+ "name": "delivered_at",
1456
+ "type": "timestamp with time zone",
1457
+ "primaryKey": false,
1458
+ "notNull": false
1459
+ },
1460
+ "opened_at": {
1461
+ "name": "opened_at",
1462
+ "type": "timestamp with time zone",
1463
+ "primaryKey": false,
1464
+ "notNull": false
1465
+ },
1466
+ "clicked_at": {
1467
+ "name": "clicked_at",
1468
+ "type": "timestamp with time zone",
1469
+ "primaryKey": false,
1470
+ "notNull": false
1471
+ },
1472
+ "bounced_at": {
1473
+ "name": "bounced_at",
1474
+ "type": "timestamp with time zone",
1475
+ "primaryKey": false,
1476
+ "notNull": false
1477
+ },
1478
+ "complained_at": {
1479
+ "name": "complained_at",
1480
+ "type": "timestamp with time zone",
1481
+ "primaryKey": false,
1482
+ "notNull": false
1483
+ },
1484
+ "created_at": {
1485
+ "name": "created_at",
1486
+ "type": "timestamp with time zone",
1487
+ "primaryKey": false,
1488
+ "notNull": true,
1489
+ "default": "now()"
1490
+ },
1491
+ "updated_at": {
1492
+ "name": "updated_at",
1493
+ "type": "timestamp with time zone",
1494
+ "primaryKey": false,
1495
+ "notNull": true,
1496
+ "default": "now()"
1497
+ }
1498
+ },
1499
+ "indexes": {
1500
+ "email_sends_to_email_idx": {
1501
+ "name": "email_sends_to_email_idx",
1502
+ "columns": [
1503
+ {
1504
+ "expression": "to_email",
1505
+ "isExpression": false,
1506
+ "asc": true,
1507
+ "nulls": "last"
1508
+ }
1509
+ ],
1510
+ "isUnique": false,
1511
+ "concurrently": false,
1512
+ "method": "btree",
1513
+ "with": {}
1514
+ },
1515
+ "email_sends_template_key_idx": {
1516
+ "name": "email_sends_template_key_idx",
1517
+ "columns": [
1518
+ {
1519
+ "expression": "template_key",
1520
+ "isExpression": false,
1521
+ "asc": true,
1522
+ "nulls": "last"
1523
+ }
1524
+ ],
1525
+ "isUnique": false,
1526
+ "concurrently": false,
1527
+ "method": "btree",
1528
+ "with": {}
1529
+ },
1530
+ "email_sends_status_idx": {
1531
+ "name": "email_sends_status_idx",
1532
+ "columns": [
1533
+ {
1534
+ "expression": "status",
1535
+ "isExpression": false,
1536
+ "asc": true,
1537
+ "nulls": "last"
1538
+ }
1539
+ ],
1540
+ "isUnique": false,
1541
+ "concurrently": false,
1542
+ "method": "btree",
1543
+ "with": {}
1544
+ },
1545
+ "email_sends_created_at_idx": {
1546
+ "name": "email_sends_created_at_idx",
1547
+ "columns": [
1548
+ {
1549
+ "expression": "created_at",
1550
+ "isExpression": false,
1551
+ "asc": true,
1552
+ "nulls": "last"
1553
+ }
1554
+ ],
1555
+ "isUnique": false,
1556
+ "concurrently": false,
1557
+ "method": "btree",
1558
+ "with": {}
1559
+ },
1560
+ "email_sends_journey_state_id_idx": {
1561
+ "name": "email_sends_journey_state_id_idx",
1562
+ "columns": [
1563
+ {
1564
+ "expression": "journey_state_id",
1565
+ "isExpression": false,
1566
+ "asc": true,
1567
+ "nulls": "last"
1568
+ }
1569
+ ],
1570
+ "isUnique": false,
1571
+ "concurrently": false,
1572
+ "method": "btree",
1573
+ "with": {}
1574
+ },
1575
+ "email_sends_freq_cap_idx": {
1576
+ "name": "email_sends_freq_cap_idx",
1577
+ "columns": [
1578
+ {
1579
+ "expression": "to_email",
1580
+ "isExpression": false,
1581
+ "asc": true,
1582
+ "nulls": "last"
1583
+ },
1584
+ {
1585
+ "expression": "created_at",
1586
+ "isExpression": false,
1587
+ "asc": true,
1588
+ "nulls": "last"
1589
+ },
1590
+ {
1591
+ "expression": "category",
1592
+ "isExpression": false,
1593
+ "asc": true,
1594
+ "nulls": "last"
1595
+ }
1596
+ ],
1597
+ "isUnique": false,
1598
+ "concurrently": false,
1599
+ "method": "btree",
1600
+ "with": {}
1601
+ }
1602
+ },
1603
+ "foreignKeys": {
1604
+ "email_sends_journey_state_id_journey_states_id_fk": {
1605
+ "name": "email_sends_journey_state_id_journey_states_id_fk",
1606
+ "tableFrom": "email_sends",
1607
+ "tableTo": "journey_states",
1608
+ "columnsFrom": [
1609
+ "journey_state_id"
1610
+ ],
1611
+ "columnsTo": [
1612
+ "id"
1613
+ ],
1614
+ "onDelete": "no action",
1615
+ "onUpdate": "no action"
1616
+ }
1617
+ },
1618
+ "compositePrimaryKeys": {},
1619
+ "uniqueConstraints": {},
1620
+ "policies": {},
1621
+ "checkConstraints": {},
1622
+ "isRLSEnabled": false
1623
+ },
1624
+ "public.import_jobs": {
1625
+ "name": "import_jobs",
1626
+ "schema": "",
1627
+ "columns": {
1628
+ "id": {
1629
+ "name": "id",
1630
+ "type": "uuid",
1631
+ "primaryKey": true,
1632
+ "notNull": true,
1633
+ "default": "gen_random_uuid()"
1634
+ },
1635
+ "file_name": {
1636
+ "name": "file_name",
1637
+ "type": "text",
1638
+ "primaryKey": false,
1639
+ "notNull": false
1640
+ },
1641
+ "format": {
1642
+ "name": "format",
1643
+ "type": "text",
1644
+ "primaryKey": false,
1645
+ "notNull": true
1646
+ },
1647
+ "status": {
1648
+ "name": "status",
1649
+ "type": "import_job_status",
1650
+ "typeSchema": "public",
1651
+ "primaryKey": false,
1652
+ "notNull": true,
1653
+ "default": "'pending'"
1654
+ },
1655
+ "total_rows": {
1656
+ "name": "total_rows",
1657
+ "type": "integer",
1658
+ "primaryKey": false,
1659
+ "notNull": false
1660
+ },
1661
+ "processed_rows": {
1662
+ "name": "processed_rows",
1663
+ "type": "integer",
1664
+ "primaryKey": false,
1665
+ "notNull": true,
1666
+ "default": 0
1667
+ },
1668
+ "failed_rows": {
1669
+ "name": "failed_rows",
1670
+ "type": "integer",
1671
+ "primaryKey": false,
1672
+ "notNull": true,
1673
+ "default": 0
1674
+ },
1675
+ "errors": {
1676
+ "name": "errors",
1677
+ "type": "jsonb",
1678
+ "primaryKey": false,
1679
+ "notNull": false
1680
+ },
1681
+ "created_at": {
1682
+ "name": "created_at",
1683
+ "type": "timestamp with time zone",
1684
+ "primaryKey": false,
1685
+ "notNull": true,
1686
+ "default": "now()"
1687
+ },
1688
+ "updated_at": {
1689
+ "name": "updated_at",
1690
+ "type": "timestamp with time zone",
1691
+ "primaryKey": false,
1692
+ "notNull": true,
1693
+ "default": "now()"
1694
+ }
1695
+ },
1696
+ "indexes": {
1697
+ "import_jobs_status_idx": {
1698
+ "name": "import_jobs_status_idx",
1699
+ "columns": [
1700
+ {
1701
+ "expression": "status",
1702
+ "isExpression": false,
1703
+ "asc": true,
1704
+ "nulls": "last"
1705
+ }
1706
+ ],
1707
+ "isUnique": false,
1708
+ "concurrently": false,
1709
+ "method": "btree",
1710
+ "with": {}
1711
+ }
1712
+ },
1713
+ "foreignKeys": {},
1714
+ "compositePrimaryKeys": {},
1715
+ "uniqueConstraints": {},
1716
+ "policies": {},
1717
+ "checkConstraints": {},
1718
+ "isRLSEnabled": false
1719
+ },
1720
+ "public.journey_configs": {
1721
+ "name": "journey_configs",
1722
+ "schema": "",
1723
+ "columns": {
1724
+ "id": {
1725
+ "name": "id",
1726
+ "type": "uuid",
1727
+ "primaryKey": true,
1728
+ "notNull": true,
1729
+ "default": "gen_random_uuid()"
1730
+ },
1731
+ "journey_id": {
1732
+ "name": "journey_id",
1733
+ "type": "text",
1734
+ "primaryKey": false,
1735
+ "notNull": true
1736
+ },
1737
+ "enabled": {
1738
+ "name": "enabled",
1739
+ "type": "boolean",
1740
+ "primaryKey": false,
1741
+ "notNull": true,
1742
+ "default": true
1743
+ },
1744
+ "created_at": {
1745
+ "name": "created_at",
1746
+ "type": "timestamp with time zone",
1747
+ "primaryKey": false,
1748
+ "notNull": true,
1749
+ "default": "now()"
1750
+ },
1751
+ "updated_at": {
1752
+ "name": "updated_at",
1753
+ "type": "timestamp with time zone",
1754
+ "primaryKey": false,
1755
+ "notNull": true,
1756
+ "default": "now()"
1757
+ }
1758
+ },
1759
+ "indexes": {
1760
+ "journey_configs_journey_id_idx": {
1761
+ "name": "journey_configs_journey_id_idx",
1762
+ "columns": [
1763
+ {
1764
+ "expression": "journey_id",
1765
+ "isExpression": false,
1766
+ "asc": true,
1767
+ "nulls": "last"
1768
+ }
1769
+ ],
1770
+ "isUnique": true,
1771
+ "concurrently": false,
1772
+ "method": "btree",
1773
+ "with": {}
1774
+ }
1775
+ },
1776
+ "foreignKeys": {},
1777
+ "compositePrimaryKeys": {},
1778
+ "uniqueConstraints": {},
1779
+ "policies": {},
1780
+ "checkConstraints": {},
1781
+ "isRLSEnabled": false
1782
+ },
1783
+ "public.journey_logs": {
1784
+ "name": "journey_logs",
1785
+ "schema": "",
1786
+ "columns": {
1787
+ "id": {
1788
+ "name": "id",
1789
+ "type": "uuid",
1790
+ "primaryKey": true,
1791
+ "notNull": true,
1792
+ "default": "gen_random_uuid()"
1793
+ },
1794
+ "journey_state_id": {
1795
+ "name": "journey_state_id",
1796
+ "type": "uuid",
1797
+ "primaryKey": false,
1798
+ "notNull": true
1799
+ },
1800
+ "from_node_id": {
1801
+ "name": "from_node_id",
1802
+ "type": "text",
1803
+ "primaryKey": false,
1804
+ "notNull": false
1805
+ },
1806
+ "to_node_id": {
1807
+ "name": "to_node_id",
1808
+ "type": "text",
1809
+ "primaryKey": false,
1810
+ "notNull": false
1811
+ },
1812
+ "action": {
1813
+ "name": "action",
1814
+ "type": "text",
1815
+ "primaryKey": false,
1816
+ "notNull": true
1817
+ },
1818
+ "detail": {
1819
+ "name": "detail",
1820
+ "type": "jsonb",
1821
+ "primaryKey": false,
1822
+ "notNull": false
1823
+ },
1824
+ "created_at": {
1825
+ "name": "created_at",
1826
+ "type": "timestamp with time zone",
1827
+ "primaryKey": false,
1828
+ "notNull": true,
1829
+ "default": "now()"
1830
+ },
1831
+ "updated_at": {
1832
+ "name": "updated_at",
1833
+ "type": "timestamp with time zone",
1834
+ "primaryKey": false,
1835
+ "notNull": true,
1836
+ "default": "now()"
1837
+ }
1838
+ },
1839
+ "indexes": {
1840
+ "journey_logs_journey_state_id_idx": {
1841
+ "name": "journey_logs_journey_state_id_idx",
1842
+ "columns": [
1843
+ {
1844
+ "expression": "journey_state_id",
1845
+ "isExpression": false,
1846
+ "asc": true,
1847
+ "nulls": "last"
1848
+ }
1849
+ ],
1850
+ "isUnique": false,
1851
+ "concurrently": false,
1852
+ "method": "btree",
1853
+ "with": {}
1854
+ }
1855
+ },
1856
+ "foreignKeys": {
1857
+ "journey_logs_journey_state_id_journey_states_id_fk": {
1858
+ "name": "journey_logs_journey_state_id_journey_states_id_fk",
1859
+ "tableFrom": "journey_logs",
1860
+ "tableTo": "journey_states",
1861
+ "columnsFrom": [
1862
+ "journey_state_id"
1863
+ ],
1864
+ "columnsTo": [
1865
+ "id"
1866
+ ],
1867
+ "onDelete": "cascade",
1868
+ "onUpdate": "no action"
1869
+ }
1870
+ },
1871
+ "compositePrimaryKeys": {},
1872
+ "uniqueConstraints": {},
1873
+ "policies": {},
1874
+ "checkConstraints": {},
1875
+ "isRLSEnabled": false
1876
+ },
1877
+ "public.journey_states": {
1878
+ "name": "journey_states",
1879
+ "schema": "",
1880
+ "columns": {
1881
+ "id": {
1882
+ "name": "id",
1883
+ "type": "uuid",
1884
+ "primaryKey": true,
1885
+ "notNull": true,
1886
+ "default": "gen_random_uuid()"
1887
+ },
1888
+ "organization_id": {
1889
+ "name": "organization_id",
1890
+ "type": "text",
1891
+ "primaryKey": false,
1892
+ "notNull": false
1893
+ },
1894
+ "user_id": {
1895
+ "name": "user_id",
1896
+ "type": "text",
1897
+ "primaryKey": false,
1898
+ "notNull": true
1899
+ },
1900
+ "user_email": {
1901
+ "name": "user_email",
1902
+ "type": "text",
1903
+ "primaryKey": false,
1904
+ "notNull": true
1905
+ },
1906
+ "journey_id": {
1907
+ "name": "journey_id",
1908
+ "type": "text",
1909
+ "primaryKey": false,
1910
+ "notNull": true
1911
+ },
1912
+ "current_node_id": {
1913
+ "name": "current_node_id",
1914
+ "type": "text",
1915
+ "primaryKey": false,
1916
+ "notNull": true
1917
+ },
1918
+ "status": {
1919
+ "name": "status",
1920
+ "type": "journey_status",
1921
+ "typeSchema": "public",
1922
+ "primaryKey": false,
1923
+ "notNull": true,
1924
+ "default": "'active'"
1925
+ },
1926
+ "hatchet_run_id": {
1927
+ "name": "hatchet_run_id",
1928
+ "type": "text",
1929
+ "primaryKey": false,
1930
+ "notNull": false
1931
+ },
1932
+ "context": {
1933
+ "name": "context",
1934
+ "type": "jsonb",
1935
+ "primaryKey": false,
1936
+ "notNull": false,
1937
+ "default": "'{}'::jsonb"
1938
+ },
1939
+ "error_message": {
1940
+ "name": "error_message",
1941
+ "type": "text",
1942
+ "primaryKey": false,
1943
+ "notNull": false
1944
+ },
1945
+ "entry_count": {
1946
+ "name": "entry_count",
1947
+ "type": "integer",
1948
+ "primaryKey": false,
1949
+ "notNull": true,
1950
+ "default": 1
1951
+ },
1952
+ "completed_at": {
1953
+ "name": "completed_at",
1954
+ "type": "timestamp with time zone",
1955
+ "primaryKey": false,
1956
+ "notNull": false
1957
+ },
1958
+ "exited_at": {
1959
+ "name": "exited_at",
1960
+ "type": "timestamp with time zone",
1961
+ "primaryKey": false,
1962
+ "notNull": false
1963
+ },
1964
+ "deleted_at": {
1965
+ "name": "deleted_at",
1966
+ "type": "timestamp with time zone",
1967
+ "primaryKey": false,
1968
+ "notNull": false
1969
+ },
1970
+ "created_at": {
1971
+ "name": "created_at",
1972
+ "type": "timestamp with time zone",
1973
+ "primaryKey": false,
1974
+ "notNull": true,
1975
+ "default": "now()"
1976
+ },
1977
+ "updated_at": {
1978
+ "name": "updated_at",
1979
+ "type": "timestamp with time zone",
1980
+ "primaryKey": false,
1981
+ "notNull": true,
1982
+ "default": "now()"
1983
+ }
1984
+ },
1985
+ "indexes": {
1986
+ "uq_user_journey_active": {
1987
+ "name": "uq_user_journey_active",
1988
+ "columns": [
1989
+ {
1990
+ "expression": "user_id",
1991
+ "isExpression": false,
1992
+ "asc": true,
1993
+ "nulls": "last"
1994
+ },
1995
+ {
1996
+ "expression": "journey_id",
1997
+ "isExpression": false,
1998
+ "asc": true,
1999
+ "nulls": "last"
2000
+ },
2001
+ {
2002
+ "expression": "status",
2003
+ "isExpression": false,
2004
+ "asc": true,
2005
+ "nulls": "last"
2006
+ }
2007
+ ],
2008
+ "isUnique": true,
2009
+ "concurrently": false,
2010
+ "method": "btree",
2011
+ "with": {}
2012
+ },
2013
+ "journey_states_status_idx": {
2014
+ "name": "journey_states_status_idx",
2015
+ "columns": [
2016
+ {
2017
+ "expression": "status",
2018
+ "isExpression": false,
2019
+ "asc": true,
2020
+ "nulls": "last"
2021
+ }
2022
+ ],
2023
+ "isUnique": false,
2024
+ "concurrently": false,
2025
+ "method": "btree",
2026
+ "with": {}
2027
+ },
2028
+ "journey_states_hatchet_run_idx": {
2029
+ "name": "journey_states_hatchet_run_idx",
2030
+ "columns": [
2031
+ {
2032
+ "expression": "hatchet_run_id",
2033
+ "isExpression": false,
2034
+ "asc": true,
2035
+ "nulls": "last"
2036
+ }
2037
+ ],
2038
+ "isUnique": false,
2039
+ "concurrently": false,
2040
+ "method": "btree",
2041
+ "with": {}
2042
+ },
2043
+ "journey_states_user_id_idx": {
2044
+ "name": "journey_states_user_id_idx",
2045
+ "columns": [
2046
+ {
2047
+ "expression": "user_id",
2048
+ "isExpression": false,
2049
+ "asc": true,
2050
+ "nulls": "last"
2051
+ }
2052
+ ],
2053
+ "isUnique": false,
2054
+ "concurrently": false,
2055
+ "method": "btree",
2056
+ "with": {}
2057
+ },
2058
+ "journey_states_journey_id_status_idx": {
2059
+ "name": "journey_states_journey_id_status_idx",
2060
+ "columns": [
2061
+ {
2062
+ "expression": "journey_id",
2063
+ "isExpression": false,
2064
+ "asc": true,
2065
+ "nulls": "last"
2066
+ },
2067
+ {
2068
+ "expression": "status",
2069
+ "isExpression": false,
2070
+ "asc": true,
2071
+ "nulls": "last"
2072
+ }
2073
+ ],
2074
+ "isUnique": false,
2075
+ "concurrently": false,
2076
+ "method": "btree",
2077
+ "with": {}
2078
+ }
2079
+ },
2080
+ "foreignKeys": {},
2081
+ "compositePrimaryKeys": {},
2082
+ "uniqueConstraints": {},
2083
+ "policies": {},
2084
+ "checkConstraints": {},
2085
+ "isRLSEnabled": false
2086
+ },
2087
+ "public.link_clicks": {
2088
+ "name": "link_clicks",
2089
+ "schema": "",
2090
+ "columns": {
2091
+ "id": {
2092
+ "name": "id",
2093
+ "type": "uuid",
2094
+ "primaryKey": true,
2095
+ "notNull": true,
2096
+ "default": "gen_random_uuid()"
2097
+ },
2098
+ "tracked_link_id": {
2099
+ "name": "tracked_link_id",
2100
+ "type": "uuid",
2101
+ "primaryKey": false,
2102
+ "notNull": true
2103
+ },
2104
+ "ip_address": {
2105
+ "name": "ip_address",
2106
+ "type": "text",
2107
+ "primaryKey": false,
2108
+ "notNull": false
2109
+ },
2110
+ "user_agent": {
2111
+ "name": "user_agent",
2112
+ "type": "text",
2113
+ "primaryKey": false,
2114
+ "notNull": false
2115
+ },
2116
+ "clicked_at": {
2117
+ "name": "clicked_at",
2118
+ "type": "timestamp with time zone",
2119
+ "primaryKey": false,
2120
+ "notNull": true,
2121
+ "default": "now()"
2122
+ }
2123
+ },
2124
+ "indexes": {
2125
+ "link_clicks_tracked_link_id_idx": {
2126
+ "name": "link_clicks_tracked_link_id_idx",
2127
+ "columns": [
2128
+ {
2129
+ "expression": "tracked_link_id",
2130
+ "isExpression": false,
2131
+ "asc": true,
2132
+ "nulls": "last"
2133
+ }
2134
+ ],
2135
+ "isUnique": false,
2136
+ "concurrently": false,
2137
+ "method": "btree",
2138
+ "with": {}
2139
+ },
2140
+ "link_clicks_clicked_at_idx": {
2141
+ "name": "link_clicks_clicked_at_idx",
2142
+ "columns": [
2143
+ {
2144
+ "expression": "clicked_at",
2145
+ "isExpression": false,
2146
+ "asc": true,
2147
+ "nulls": "last"
2148
+ }
2149
+ ],
2150
+ "isUnique": false,
2151
+ "concurrently": false,
2152
+ "method": "btree",
2153
+ "with": {}
2154
+ }
2155
+ },
2156
+ "foreignKeys": {
2157
+ "link_clicks_tracked_link_id_tracked_links_id_fk": {
2158
+ "name": "link_clicks_tracked_link_id_tracked_links_id_fk",
2159
+ "tableFrom": "link_clicks",
2160
+ "tableTo": "tracked_links",
2161
+ "columnsFrom": [
2162
+ "tracked_link_id"
2163
+ ],
2164
+ "columnsTo": [
2165
+ "id"
2166
+ ],
2167
+ "onDelete": "cascade",
2168
+ "onUpdate": "no action"
2169
+ }
2170
+ },
2171
+ "compositePrimaryKeys": {},
2172
+ "uniqueConstraints": {},
2173
+ "policies": {},
2174
+ "checkConstraints": {},
2175
+ "isRLSEnabled": false
2176
+ },
2177
+ "public.tracked_links": {
2178
+ "name": "tracked_links",
2179
+ "schema": "",
2180
+ "columns": {
2181
+ "id": {
2182
+ "name": "id",
2183
+ "type": "uuid",
2184
+ "primaryKey": true,
2185
+ "notNull": true,
2186
+ "default": "gen_random_uuid()"
2187
+ },
2188
+ "email_send_id": {
2189
+ "name": "email_send_id",
2190
+ "type": "uuid",
2191
+ "primaryKey": false,
2192
+ "notNull": true
2193
+ },
2194
+ "original_url": {
2195
+ "name": "original_url",
2196
+ "type": "text",
2197
+ "primaryKey": false,
2198
+ "notNull": true
2199
+ },
2200
+ "click_count": {
2201
+ "name": "click_count",
2202
+ "type": "integer",
2203
+ "primaryKey": false,
2204
+ "notNull": true,
2205
+ "default": 0
2206
+ },
2207
+ "created_at": {
2208
+ "name": "created_at",
2209
+ "type": "timestamp with time zone",
2210
+ "primaryKey": false,
2211
+ "notNull": true,
2212
+ "default": "now()"
2213
+ },
2214
+ "updated_at": {
2215
+ "name": "updated_at",
2216
+ "type": "timestamp with time zone",
2217
+ "primaryKey": false,
2218
+ "notNull": true,
2219
+ "default": "now()"
2220
+ }
2221
+ },
2222
+ "indexes": {
2223
+ "tracked_links_email_send_id_idx": {
2224
+ "name": "tracked_links_email_send_id_idx",
2225
+ "columns": [
2226
+ {
2227
+ "expression": "email_send_id",
2228
+ "isExpression": false,
2229
+ "asc": true,
2230
+ "nulls": "last"
2231
+ }
2232
+ ],
2233
+ "isUnique": false,
2234
+ "concurrently": false,
2235
+ "method": "btree",
2236
+ "with": {}
2237
+ }
2238
+ },
2239
+ "foreignKeys": {
2240
+ "tracked_links_email_send_id_email_sends_id_fk": {
2241
+ "name": "tracked_links_email_send_id_email_sends_id_fk",
2242
+ "tableFrom": "tracked_links",
2243
+ "tableTo": "email_sends",
2244
+ "columnsFrom": [
2245
+ "email_send_id"
2246
+ ],
2247
+ "columnsTo": [
2248
+ "id"
2249
+ ],
2250
+ "onDelete": "cascade",
2251
+ "onUpdate": "no action"
2252
+ }
2253
+ },
2254
+ "compositePrimaryKeys": {},
2255
+ "uniqueConstraints": {},
2256
+ "policies": {},
2257
+ "checkConstraints": {},
2258
+ "isRLSEnabled": false
2259
+ },
2260
+ "public.user_events": {
2261
+ "name": "user_events",
2262
+ "schema": "",
2263
+ "columns": {
2264
+ "id": {
2265
+ "name": "id",
2266
+ "type": "uuid",
2267
+ "primaryKey": true,
2268
+ "notNull": true,
2269
+ "default": "gen_random_uuid()"
2270
+ },
2271
+ "organization_id": {
2272
+ "name": "organization_id",
2273
+ "type": "text",
2274
+ "primaryKey": false,
2275
+ "notNull": false
2276
+ },
2277
+ "user_id": {
2278
+ "name": "user_id",
2279
+ "type": "text",
2280
+ "primaryKey": false,
2281
+ "notNull": true
2282
+ },
2283
+ "event": {
2284
+ "name": "event",
2285
+ "type": "text",
2286
+ "primaryKey": false,
2287
+ "notNull": true
2288
+ },
2289
+ "properties": {
2290
+ "name": "properties",
2291
+ "type": "jsonb",
2292
+ "primaryKey": false,
2293
+ "notNull": false
2294
+ },
2295
+ "idempotency_key": {
2296
+ "name": "idempotency_key",
2297
+ "type": "text",
2298
+ "primaryKey": false,
2299
+ "notNull": false
2300
+ },
2301
+ "occurred_at": {
2302
+ "name": "occurred_at",
2303
+ "type": "timestamp with time zone",
2304
+ "primaryKey": false,
2305
+ "notNull": true,
2306
+ "default": "now()"
2307
+ }
2308
+ },
2309
+ "indexes": {
2310
+ "user_events_user_id_idx": {
2311
+ "name": "user_events_user_id_idx",
2312
+ "columns": [
2313
+ {
2314
+ "expression": "user_id",
2315
+ "isExpression": false,
2316
+ "asc": true,
2317
+ "nulls": "last"
2318
+ }
2319
+ ],
2320
+ "isUnique": false,
2321
+ "concurrently": false,
2322
+ "method": "btree",
2323
+ "with": {}
2324
+ },
2325
+ "user_events_event_idx": {
2326
+ "name": "user_events_event_idx",
2327
+ "columns": [
2328
+ {
2329
+ "expression": "event",
2330
+ "isExpression": false,
2331
+ "asc": true,
2332
+ "nulls": "last"
2333
+ }
2334
+ ],
2335
+ "isUnique": false,
2336
+ "concurrently": false,
2337
+ "method": "btree",
2338
+ "with": {}
2339
+ },
2340
+ "user_events_occurred_at_idx": {
2341
+ "name": "user_events_occurred_at_idx",
2342
+ "columns": [
2343
+ {
2344
+ "expression": "occurred_at",
2345
+ "isExpression": false,
2346
+ "asc": true,
2347
+ "nulls": "last"
2348
+ }
2349
+ ],
2350
+ "isUnique": false,
2351
+ "concurrently": false,
2352
+ "method": "btree",
2353
+ "with": {}
2354
+ },
2355
+ "user_events_user_event_occurred_idx": {
2356
+ "name": "user_events_user_event_occurred_idx",
2357
+ "columns": [
2358
+ {
2359
+ "expression": "user_id",
2360
+ "isExpression": false,
2361
+ "asc": true,
2362
+ "nulls": "last"
2363
+ },
2364
+ {
2365
+ "expression": "event",
2366
+ "isExpression": false,
2367
+ "asc": true,
2368
+ "nulls": "last"
2369
+ },
2370
+ {
2371
+ "expression": "occurred_at",
2372
+ "isExpression": false,
2373
+ "asc": true,
2374
+ "nulls": "last"
2375
+ }
2376
+ ],
2377
+ "isUnique": false,
2378
+ "concurrently": false,
2379
+ "method": "btree",
2380
+ "with": {}
2381
+ },
2382
+ "user_events_idempotency_key_idx": {
2383
+ "name": "user_events_idempotency_key_idx",
2384
+ "columns": [
2385
+ {
2386
+ "expression": "idempotency_key",
2387
+ "isExpression": false,
2388
+ "asc": true,
2389
+ "nulls": "last"
2390
+ }
2391
+ ],
2392
+ "isUnique": true,
2393
+ "concurrently": false,
2394
+ "method": "btree",
2395
+ "with": {}
2396
+ }
2397
+ },
2398
+ "foreignKeys": {},
2399
+ "compositePrimaryKeys": {},
2400
+ "uniqueConstraints": {},
2401
+ "policies": {},
2402
+ "checkConstraints": {},
2403
+ "isRLSEnabled": false
2404
+ }
2405
+ },
2406
+ "enums": {
2407
+ "public.alert_channel": {
2408
+ "name": "alert_channel",
2409
+ "schema": "public",
2410
+ "values": [
2411
+ "webhook",
2412
+ "slack",
2413
+ "email"
2414
+ ]
2415
+ },
2416
+ "public.alert_rule_type": {
2417
+ "name": "alert_rule_type",
2418
+ "schema": "public",
2419
+ "values": [
2420
+ "bounce_rate_exceeded",
2421
+ "journey_failure_spike",
2422
+ "delivery_issue",
2423
+ "high_complaint_rate"
2424
+ ]
2425
+ },
2426
+ "public.dlq_status": {
2427
+ "name": "dlq_status",
2428
+ "schema": "public",
2429
+ "values": [
2430
+ "pending",
2431
+ "retried",
2432
+ "discarded"
2433
+ ]
2434
+ },
2435
+ "public.email_send_status": {
2436
+ "name": "email_send_status",
2437
+ "schema": "public",
2438
+ "values": [
2439
+ "queued",
2440
+ "rendered",
2441
+ "sent",
2442
+ "delivered",
2443
+ "opened",
2444
+ "clicked",
2445
+ "bounced",
2446
+ "complained",
2447
+ "failed"
2448
+ ]
2449
+ },
2450
+ "public.import_job_status": {
2451
+ "name": "import_job_status",
2452
+ "schema": "public",
2453
+ "values": [
2454
+ "pending",
2455
+ "processing",
2456
+ "completed",
2457
+ "failed"
2458
+ ]
2459
+ },
2460
+ "public.journey_status": {
2461
+ "name": "journey_status",
2462
+ "schema": "public",
2463
+ "values": [
2464
+ "active",
2465
+ "waiting",
2466
+ "completed",
2467
+ "failed",
2468
+ "exited"
2469
+ ]
2470
+ }
2471
+ },
2472
+ "schemas": {},
2473
+ "sequences": {},
2474
+ "roles": {},
2475
+ "policies": {},
2476
+ "views": {},
2477
+ "_meta": {
2478
+ "columns": {},
2479
+ "schemas": {},
2480
+ "tables": {}
2481
+ }
2482
+ }