@adatechnology/meta-whatsapp-module 0.1.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,930 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "c69cbed0-199b-409a-a8ec-3d06678cc2c2",
5
+ "prevIds": [
6
+ "8f3c5b4c-cca4-4ddd-a8ff-23084baccaff"
7
+ ],
8
+ "ddl": [
9
+ {
10
+ "name": "meta_whatsapp",
11
+ "entityType": "schemas"
12
+ },
13
+ {
14
+ "isRlsEnabled": false,
15
+ "name": "flow_graphs",
16
+ "entityType": "tables",
17
+ "schema": "meta_whatsapp"
18
+ },
19
+ {
20
+ "isRlsEnabled": false,
21
+ "name": "messages",
22
+ "entityType": "tables",
23
+ "schema": "meta_whatsapp"
24
+ },
25
+ {
26
+ "isRlsEnabled": false,
27
+ "name": "sessions",
28
+ "entityType": "tables",
29
+ "schema": "meta_whatsapp"
30
+ },
31
+ {
32
+ "isRlsEnabled": false,
33
+ "name": "settings",
34
+ "entityType": "tables",
35
+ "schema": "meta_whatsapp"
36
+ },
37
+ {
38
+ "type": "uuid",
39
+ "typeSchema": null,
40
+ "notNull": true,
41
+ "dimensions": 0,
42
+ "default": "gen_random_uuid()",
43
+ "generated": null,
44
+ "identity": null,
45
+ "name": "id",
46
+ "entityType": "columns",
47
+ "schema": "meta_whatsapp",
48
+ "table": "flow_graphs"
49
+ },
50
+ {
51
+ "type": "uuid",
52
+ "typeSchema": null,
53
+ "notNull": true,
54
+ "dimensions": 0,
55
+ "default": null,
56
+ "generated": null,
57
+ "identity": null,
58
+ "name": "company_id",
59
+ "entityType": "columns",
60
+ "schema": "meta_whatsapp",
61
+ "table": "flow_graphs"
62
+ },
63
+ {
64
+ "type": "varchar(64)",
65
+ "typeSchema": null,
66
+ "notNull": true,
67
+ "dimensions": 0,
68
+ "default": null,
69
+ "generated": null,
70
+ "identity": null,
71
+ "name": "key",
72
+ "entityType": "columns",
73
+ "schema": "meta_whatsapp",
74
+ "table": "flow_graphs"
75
+ },
76
+ {
77
+ "type": "varchar(120)",
78
+ "typeSchema": null,
79
+ "notNull": true,
80
+ "dimensions": 0,
81
+ "default": null,
82
+ "generated": null,
83
+ "identity": null,
84
+ "name": "label",
85
+ "entityType": "columns",
86
+ "schema": "meta_whatsapp",
87
+ "table": "flow_graphs"
88
+ },
89
+ {
90
+ "type": "varchar(64)",
91
+ "typeSchema": null,
92
+ "notNull": true,
93
+ "dimensions": 0,
94
+ "default": null,
95
+ "generated": null,
96
+ "identity": null,
97
+ "name": "start_node_id",
98
+ "entityType": "columns",
99
+ "schema": "meta_whatsapp",
100
+ "table": "flow_graphs"
101
+ },
102
+ {
103
+ "type": "jsonb",
104
+ "typeSchema": null,
105
+ "notNull": true,
106
+ "dimensions": 0,
107
+ "default": "'{}'",
108
+ "generated": null,
109
+ "identity": null,
110
+ "name": "nodes",
111
+ "entityType": "columns",
112
+ "schema": "meta_whatsapp",
113
+ "table": "flow_graphs"
114
+ },
115
+ {
116
+ "type": "integer",
117
+ "typeSchema": null,
118
+ "notNull": true,
119
+ "dimensions": 0,
120
+ "default": "1",
121
+ "generated": null,
122
+ "identity": null,
123
+ "name": "version",
124
+ "entityType": "columns",
125
+ "schema": "meta_whatsapp",
126
+ "table": "flow_graphs"
127
+ },
128
+ {
129
+ "type": "boolean",
130
+ "typeSchema": null,
131
+ "notNull": true,
132
+ "dimensions": 0,
133
+ "default": "false",
134
+ "generated": null,
135
+ "identity": null,
136
+ "name": "show_in_menu",
137
+ "entityType": "columns",
138
+ "schema": "meta_whatsapp",
139
+ "table": "flow_graphs"
140
+ },
141
+ {
142
+ "type": "varchar(64)",
143
+ "typeSchema": null,
144
+ "notNull": false,
145
+ "dimensions": 0,
146
+ "default": null,
147
+ "generated": null,
148
+ "identity": null,
149
+ "name": "menu_option_label",
150
+ "entityType": "columns",
151
+ "schema": "meta_whatsapp",
152
+ "table": "flow_graphs"
153
+ },
154
+ {
155
+ "type": "timestamp with time zone",
156
+ "typeSchema": null,
157
+ "notNull": true,
158
+ "dimensions": 0,
159
+ "default": "now()",
160
+ "generated": null,
161
+ "identity": null,
162
+ "name": "created_at",
163
+ "entityType": "columns",
164
+ "schema": "meta_whatsapp",
165
+ "table": "flow_graphs"
166
+ },
167
+ {
168
+ "type": "timestamp with time zone",
169
+ "typeSchema": null,
170
+ "notNull": true,
171
+ "dimensions": 0,
172
+ "default": "now()",
173
+ "generated": null,
174
+ "identity": null,
175
+ "name": "updated_at",
176
+ "entityType": "columns",
177
+ "schema": "meta_whatsapp",
178
+ "table": "flow_graphs"
179
+ },
180
+ {
181
+ "type": "uuid",
182
+ "typeSchema": null,
183
+ "notNull": true,
184
+ "dimensions": 0,
185
+ "default": "gen_random_uuid()",
186
+ "generated": null,
187
+ "identity": null,
188
+ "name": "id",
189
+ "entityType": "columns",
190
+ "schema": "meta_whatsapp",
191
+ "table": "messages"
192
+ },
193
+ {
194
+ "type": "uuid",
195
+ "typeSchema": null,
196
+ "notNull": true,
197
+ "dimensions": 0,
198
+ "default": null,
199
+ "generated": null,
200
+ "identity": null,
201
+ "name": "company_id",
202
+ "entityType": "columns",
203
+ "schema": "meta_whatsapp",
204
+ "table": "messages"
205
+ },
206
+ {
207
+ "type": "uuid",
208
+ "typeSchema": null,
209
+ "notNull": true,
210
+ "dimensions": 0,
211
+ "default": null,
212
+ "generated": null,
213
+ "identity": null,
214
+ "name": "session_id",
215
+ "entityType": "columns",
216
+ "schema": "meta_whatsapp",
217
+ "table": "messages"
218
+ },
219
+ {
220
+ "type": "varchar(20)",
221
+ "typeSchema": null,
222
+ "notNull": true,
223
+ "dimensions": 0,
224
+ "default": null,
225
+ "generated": null,
226
+ "identity": null,
227
+ "name": "whatsapp_number",
228
+ "entityType": "columns",
229
+ "schema": "meta_whatsapp",
230
+ "table": "messages"
231
+ },
232
+ {
233
+ "type": "varchar(12)",
234
+ "typeSchema": null,
235
+ "notNull": true,
236
+ "dimensions": 0,
237
+ "default": null,
238
+ "generated": null,
239
+ "identity": null,
240
+ "name": "direction",
241
+ "entityType": "columns",
242
+ "schema": "meta_whatsapp",
243
+ "table": "messages"
244
+ },
245
+ {
246
+ "type": "varchar(12)",
247
+ "typeSchema": null,
248
+ "notNull": true,
249
+ "dimensions": 0,
250
+ "default": null,
251
+ "generated": null,
252
+ "identity": null,
253
+ "name": "sender",
254
+ "entityType": "columns",
255
+ "schema": "meta_whatsapp",
256
+ "table": "messages"
257
+ },
258
+ {
259
+ "type": "uuid",
260
+ "typeSchema": null,
261
+ "notNull": false,
262
+ "dimensions": 0,
263
+ "default": null,
264
+ "generated": null,
265
+ "identity": null,
266
+ "name": "agent_user_id",
267
+ "entityType": "columns",
268
+ "schema": "meta_whatsapp",
269
+ "table": "messages"
270
+ },
271
+ {
272
+ "type": "varchar(16)",
273
+ "typeSchema": null,
274
+ "notNull": true,
275
+ "dimensions": 0,
276
+ "default": "'text'",
277
+ "generated": null,
278
+ "identity": null,
279
+ "name": "type",
280
+ "entityType": "columns",
281
+ "schema": "meta_whatsapp",
282
+ "table": "messages"
283
+ },
284
+ {
285
+ "type": "text",
286
+ "typeSchema": null,
287
+ "notNull": false,
288
+ "dimensions": 0,
289
+ "default": null,
290
+ "generated": null,
291
+ "identity": null,
292
+ "name": "content",
293
+ "entityType": "columns",
294
+ "schema": "meta_whatsapp",
295
+ "table": "messages"
296
+ },
297
+ {
298
+ "type": "jsonb",
299
+ "typeSchema": null,
300
+ "notNull": false,
301
+ "dimensions": 0,
302
+ "default": null,
303
+ "generated": null,
304
+ "identity": null,
305
+ "name": "payload",
306
+ "entityType": "columns",
307
+ "schema": "meta_whatsapp",
308
+ "table": "messages"
309
+ },
310
+ {
311
+ "type": "varchar(128)",
312
+ "typeSchema": null,
313
+ "notNull": false,
314
+ "dimensions": 0,
315
+ "default": null,
316
+ "generated": null,
317
+ "identity": null,
318
+ "name": "wa_message_id",
319
+ "entityType": "columns",
320
+ "schema": "meta_whatsapp",
321
+ "table": "messages"
322
+ },
323
+ {
324
+ "type": "varchar(16)",
325
+ "typeSchema": null,
326
+ "notNull": false,
327
+ "dimensions": 0,
328
+ "default": null,
329
+ "generated": null,
330
+ "identity": null,
331
+ "name": "status",
332
+ "entityType": "columns",
333
+ "schema": "meta_whatsapp",
334
+ "table": "messages"
335
+ },
336
+ {
337
+ "type": "timestamp with time zone",
338
+ "typeSchema": null,
339
+ "notNull": false,
340
+ "dimensions": 0,
341
+ "default": null,
342
+ "generated": null,
343
+ "identity": null,
344
+ "name": "read_at",
345
+ "entityType": "columns",
346
+ "schema": "meta_whatsapp",
347
+ "table": "messages"
348
+ },
349
+ {
350
+ "type": "timestamp with time zone",
351
+ "typeSchema": null,
352
+ "notNull": true,
353
+ "dimensions": 0,
354
+ "default": "now()",
355
+ "generated": null,
356
+ "identity": null,
357
+ "name": "created_at",
358
+ "entityType": "columns",
359
+ "schema": "meta_whatsapp",
360
+ "table": "messages"
361
+ },
362
+ {
363
+ "type": "uuid",
364
+ "typeSchema": null,
365
+ "notNull": true,
366
+ "dimensions": 0,
367
+ "default": "gen_random_uuid()",
368
+ "generated": null,
369
+ "identity": null,
370
+ "name": "id",
371
+ "entityType": "columns",
372
+ "schema": "meta_whatsapp",
373
+ "table": "sessions"
374
+ },
375
+ {
376
+ "type": "uuid",
377
+ "typeSchema": null,
378
+ "notNull": true,
379
+ "dimensions": 0,
380
+ "default": null,
381
+ "generated": null,
382
+ "identity": null,
383
+ "name": "company_id",
384
+ "entityType": "columns",
385
+ "schema": "meta_whatsapp",
386
+ "table": "sessions"
387
+ },
388
+ {
389
+ "type": "varchar(20)",
390
+ "typeSchema": null,
391
+ "notNull": true,
392
+ "dimensions": 0,
393
+ "default": null,
394
+ "generated": null,
395
+ "identity": null,
396
+ "name": "whatsapp_number",
397
+ "entityType": "columns",
398
+ "schema": "meta_whatsapp",
399
+ "table": "sessions"
400
+ },
401
+ {
402
+ "type": "varchar(64)",
403
+ "typeSchema": null,
404
+ "notNull": true,
405
+ "dimensions": 0,
406
+ "default": "'start'",
407
+ "generated": null,
408
+ "identity": null,
409
+ "name": "current_state",
410
+ "entityType": "columns",
411
+ "schema": "meta_whatsapp",
412
+ "table": "sessions"
413
+ },
414
+ {
415
+ "type": "varchar(64)",
416
+ "typeSchema": null,
417
+ "notNull": false,
418
+ "dimensions": 0,
419
+ "default": null,
420
+ "generated": null,
421
+ "identity": null,
422
+ "name": "flow_key",
423
+ "entityType": "columns",
424
+ "schema": "meta_whatsapp",
425
+ "table": "sessions"
426
+ },
427
+ {
428
+ "type": "varchar(64)",
429
+ "typeSchema": null,
430
+ "notNull": false,
431
+ "dimensions": 0,
432
+ "default": null,
433
+ "generated": null,
434
+ "identity": null,
435
+ "name": "current_node_id",
436
+ "entityType": "columns",
437
+ "schema": "meta_whatsapp",
438
+ "table": "sessions"
439
+ },
440
+ {
441
+ "type": "jsonb",
442
+ "typeSchema": null,
443
+ "notNull": true,
444
+ "dimensions": 0,
445
+ "default": "'{}'",
446
+ "generated": null,
447
+ "identity": null,
448
+ "name": "context",
449
+ "entityType": "columns",
450
+ "schema": "meta_whatsapp",
451
+ "table": "sessions"
452
+ },
453
+ {
454
+ "type": "varchar(12)",
455
+ "typeSchema": null,
456
+ "notNull": true,
457
+ "dimensions": 0,
458
+ "default": "'bot'",
459
+ "generated": null,
460
+ "identity": null,
461
+ "name": "mode",
462
+ "entityType": "columns",
463
+ "schema": "meta_whatsapp",
464
+ "table": "sessions"
465
+ },
466
+ {
467
+ "type": "uuid",
468
+ "typeSchema": null,
469
+ "notNull": false,
470
+ "dimensions": 0,
471
+ "default": null,
472
+ "generated": null,
473
+ "identity": null,
474
+ "name": "assigned_user_id",
475
+ "entityType": "columns",
476
+ "schema": "meta_whatsapp",
477
+ "table": "sessions"
478
+ },
479
+ {
480
+ "type": "timestamp with time zone",
481
+ "typeSchema": null,
482
+ "notNull": false,
483
+ "dimensions": 0,
484
+ "default": null,
485
+ "generated": null,
486
+ "identity": null,
487
+ "name": "human_requested_at",
488
+ "entityType": "columns",
489
+ "schema": "meta_whatsapp",
490
+ "table": "sessions"
491
+ },
492
+ {
493
+ "type": "timestamp with time zone",
494
+ "typeSchema": null,
495
+ "notNull": false,
496
+ "dimensions": 0,
497
+ "default": null,
498
+ "generated": null,
499
+ "identity": null,
500
+ "name": "last_inbound_at",
501
+ "entityType": "columns",
502
+ "schema": "meta_whatsapp",
503
+ "table": "sessions"
504
+ },
505
+ {
506
+ "type": "timestamp with time zone",
507
+ "typeSchema": null,
508
+ "notNull": false,
509
+ "dimensions": 0,
510
+ "default": null,
511
+ "generated": null,
512
+ "identity": null,
513
+ "name": "last_agent_read_at",
514
+ "entityType": "columns",
515
+ "schema": "meta_whatsapp",
516
+ "table": "sessions"
517
+ },
518
+ {
519
+ "type": "timestamp with time zone",
520
+ "typeSchema": null,
521
+ "notNull": true,
522
+ "dimensions": 0,
523
+ "default": "now()",
524
+ "generated": null,
525
+ "identity": null,
526
+ "name": "last_activity",
527
+ "entityType": "columns",
528
+ "schema": "meta_whatsapp",
529
+ "table": "sessions"
530
+ },
531
+ {
532
+ "type": "timestamp with time zone",
533
+ "typeSchema": null,
534
+ "notNull": true,
535
+ "dimensions": 0,
536
+ "default": "now()",
537
+ "generated": null,
538
+ "identity": null,
539
+ "name": "created_at",
540
+ "entityType": "columns",
541
+ "schema": "meta_whatsapp",
542
+ "table": "sessions"
543
+ },
544
+ {
545
+ "type": "timestamp with time zone",
546
+ "typeSchema": null,
547
+ "notNull": true,
548
+ "dimensions": 0,
549
+ "default": "now()",
550
+ "generated": null,
551
+ "identity": null,
552
+ "name": "updated_at",
553
+ "entityType": "columns",
554
+ "schema": "meta_whatsapp",
555
+ "table": "sessions"
556
+ },
557
+ {
558
+ "type": "uuid",
559
+ "typeSchema": null,
560
+ "notNull": true,
561
+ "dimensions": 0,
562
+ "default": null,
563
+ "generated": null,
564
+ "identity": null,
565
+ "name": "company_id",
566
+ "entityType": "columns",
567
+ "schema": "meta_whatsapp",
568
+ "table": "settings"
569
+ },
570
+ {
571
+ "type": "varchar(128)",
572
+ "typeSchema": null,
573
+ "notNull": false,
574
+ "dimensions": 0,
575
+ "default": null,
576
+ "generated": null,
577
+ "identity": null,
578
+ "name": "template_name",
579
+ "entityType": "columns",
580
+ "schema": "meta_whatsapp",
581
+ "table": "settings"
582
+ },
583
+ {
584
+ "type": "varchar(16)",
585
+ "typeSchema": null,
586
+ "notNull": true,
587
+ "dimensions": 0,
588
+ "default": "'pt_BR'",
589
+ "generated": null,
590
+ "identity": null,
591
+ "name": "template_language",
592
+ "entityType": "columns",
593
+ "schema": "meta_whatsapp",
594
+ "table": "settings"
595
+ },
596
+ {
597
+ "type": "jsonb",
598
+ "typeSchema": null,
599
+ "notNull": true,
600
+ "dimensions": 0,
601
+ "default": "'[]'",
602
+ "generated": null,
603
+ "identity": null,
604
+ "name": "template_variables",
605
+ "entityType": "columns",
606
+ "schema": "meta_whatsapp",
607
+ "table": "settings"
608
+ },
609
+ {
610
+ "type": "text",
611
+ "typeSchema": null,
612
+ "notNull": false,
613
+ "dimensions": 0,
614
+ "default": null,
615
+ "generated": null,
616
+ "identity": null,
617
+ "name": "welcome_message",
618
+ "entityType": "columns",
619
+ "schema": "meta_whatsapp",
620
+ "table": "settings"
621
+ },
622
+ {
623
+ "type": "text",
624
+ "typeSchema": null,
625
+ "notNull": false,
626
+ "dimensions": 0,
627
+ "default": null,
628
+ "generated": null,
629
+ "identity": null,
630
+ "name": "farewell_message",
631
+ "entityType": "columns",
632
+ "schema": "meta_whatsapp",
633
+ "table": "settings"
634
+ },
635
+ {
636
+ "type": "timestamp with time zone",
637
+ "typeSchema": null,
638
+ "notNull": true,
639
+ "dimensions": 0,
640
+ "default": "now()",
641
+ "generated": null,
642
+ "identity": null,
643
+ "name": "created_at",
644
+ "entityType": "columns",
645
+ "schema": "meta_whatsapp",
646
+ "table": "settings"
647
+ },
648
+ {
649
+ "type": "timestamp with time zone",
650
+ "typeSchema": null,
651
+ "notNull": true,
652
+ "dimensions": 0,
653
+ "default": "now()",
654
+ "generated": null,
655
+ "identity": null,
656
+ "name": "updated_at",
657
+ "entityType": "columns",
658
+ "schema": "meta_whatsapp",
659
+ "table": "settings"
660
+ },
661
+ {
662
+ "nameExplicit": true,
663
+ "columns": [
664
+ {
665
+ "value": "company_id",
666
+ "isExpression": false,
667
+ "asc": true,
668
+ "nullsFirst": false,
669
+ "opclass": null
670
+ },
671
+ {
672
+ "value": "key",
673
+ "isExpression": false,
674
+ "asc": true,
675
+ "nullsFirst": false,
676
+ "opclass": null
677
+ }
678
+ ],
679
+ "isUnique": true,
680
+ "where": null,
681
+ "with": "",
682
+ "method": "btree",
683
+ "concurrently": false,
684
+ "name": "idx_flow_graphs_company_key",
685
+ "entityType": "indexes",
686
+ "schema": "meta_whatsapp",
687
+ "table": "flow_graphs"
688
+ },
689
+ {
690
+ "nameExplicit": true,
691
+ "columns": [
692
+ {
693
+ "value": "session_id",
694
+ "isExpression": false,
695
+ "asc": true,
696
+ "nullsFirst": false,
697
+ "opclass": null
698
+ },
699
+ {
700
+ "value": "created_at",
701
+ "isExpression": false,
702
+ "asc": true,
703
+ "nullsFirst": false,
704
+ "opclass": null
705
+ }
706
+ ],
707
+ "isUnique": false,
708
+ "where": null,
709
+ "with": "",
710
+ "method": "btree",
711
+ "concurrently": false,
712
+ "name": "idx_messages_session_created",
713
+ "entityType": "indexes",
714
+ "schema": "meta_whatsapp",
715
+ "table": "messages"
716
+ },
717
+ {
718
+ "nameExplicit": true,
719
+ "columns": [
720
+ {
721
+ "value": "company_id",
722
+ "isExpression": false,
723
+ "asc": true,
724
+ "nullsFirst": false,
725
+ "opclass": null
726
+ },
727
+ {
728
+ "value": "whatsapp_number",
729
+ "isExpression": false,
730
+ "asc": true,
731
+ "nullsFirst": false,
732
+ "opclass": null
733
+ },
734
+ {
735
+ "value": "created_at",
736
+ "isExpression": false,
737
+ "asc": true,
738
+ "nullsFirst": false,
739
+ "opclass": null
740
+ }
741
+ ],
742
+ "isUnique": false,
743
+ "where": null,
744
+ "with": "",
745
+ "method": "btree",
746
+ "concurrently": false,
747
+ "name": "idx_messages_company_number_created",
748
+ "entityType": "indexes",
749
+ "schema": "meta_whatsapp",
750
+ "table": "messages"
751
+ },
752
+ {
753
+ "nameExplicit": true,
754
+ "columns": [
755
+ {
756
+ "value": "company_id",
757
+ "isExpression": false,
758
+ "asc": true,
759
+ "nullsFirst": false,
760
+ "opclass": null
761
+ },
762
+ {
763
+ "value": "wa_message_id",
764
+ "isExpression": false,
765
+ "asc": true,
766
+ "nullsFirst": false,
767
+ "opclass": null
768
+ }
769
+ ],
770
+ "isUnique": true,
771
+ "where": "\"wa_message_id\" is not null",
772
+ "with": "",
773
+ "method": "btree",
774
+ "concurrently": false,
775
+ "name": "idx_messages_company_wa_message_id",
776
+ "entityType": "indexes",
777
+ "schema": "meta_whatsapp",
778
+ "table": "messages"
779
+ },
780
+ {
781
+ "nameExplicit": true,
782
+ "columns": [
783
+ {
784
+ "value": "company_id",
785
+ "isExpression": false,
786
+ "asc": true,
787
+ "nullsFirst": false,
788
+ "opclass": null
789
+ },
790
+ {
791
+ "value": "whatsapp_number",
792
+ "isExpression": false,
793
+ "asc": true,
794
+ "nullsFirst": false,
795
+ "opclass": null
796
+ }
797
+ ],
798
+ "isUnique": true,
799
+ "where": null,
800
+ "with": "",
801
+ "method": "btree",
802
+ "concurrently": false,
803
+ "name": "idx_sessions_company_number",
804
+ "entityType": "indexes",
805
+ "schema": "meta_whatsapp",
806
+ "table": "sessions"
807
+ },
808
+ {
809
+ "nameExplicit": true,
810
+ "columns": [
811
+ {
812
+ "value": "company_id",
813
+ "isExpression": false,
814
+ "asc": true,
815
+ "nullsFirst": false,
816
+ "opclass": null
817
+ },
818
+ {
819
+ "value": "mode",
820
+ "isExpression": false,
821
+ "asc": true,
822
+ "nullsFirst": false,
823
+ "opclass": null
824
+ }
825
+ ],
826
+ "isUnique": false,
827
+ "where": null,
828
+ "with": "",
829
+ "method": "btree",
830
+ "concurrently": false,
831
+ "name": "idx_sessions_company_mode",
832
+ "entityType": "indexes",
833
+ "schema": "meta_whatsapp",
834
+ "table": "sessions"
835
+ },
836
+ {
837
+ "nameExplicit": true,
838
+ "columns": [
839
+ {
840
+ "value": "company_id",
841
+ "isExpression": false,
842
+ "asc": true,
843
+ "nullsFirst": false,
844
+ "opclass": null
845
+ },
846
+ {
847
+ "value": "flow_key",
848
+ "isExpression": false,
849
+ "asc": true,
850
+ "nullsFirst": false,
851
+ "opclass": null
852
+ },
853
+ {
854
+ "value": "current_node_id",
855
+ "isExpression": false,
856
+ "asc": true,
857
+ "nullsFirst": false,
858
+ "opclass": null
859
+ }
860
+ ],
861
+ "isUnique": false,
862
+ "where": null,
863
+ "with": "",
864
+ "method": "btree",
865
+ "concurrently": false,
866
+ "name": "idx_sessions_company_flow_node",
867
+ "entityType": "indexes",
868
+ "schema": "meta_whatsapp",
869
+ "table": "sessions"
870
+ },
871
+ {
872
+ "nameExplicit": false,
873
+ "columns": [
874
+ "session_id"
875
+ ],
876
+ "schemaTo": "meta_whatsapp",
877
+ "tableTo": "sessions",
878
+ "columnsTo": [
879
+ "id"
880
+ ],
881
+ "onUpdate": "NO ACTION",
882
+ "onDelete": "CASCADE",
883
+ "name": "messages_session_id_sessions_id_fkey",
884
+ "entityType": "fks",
885
+ "schema": "meta_whatsapp",
886
+ "table": "messages"
887
+ },
888
+ {
889
+ "columns": [
890
+ "id"
891
+ ],
892
+ "nameExplicit": false,
893
+ "name": "flow_graphs_pkey",
894
+ "schema": "meta_whatsapp",
895
+ "table": "flow_graphs",
896
+ "entityType": "pks"
897
+ },
898
+ {
899
+ "columns": [
900
+ "id"
901
+ ],
902
+ "nameExplicit": false,
903
+ "name": "messages_pkey",
904
+ "schema": "meta_whatsapp",
905
+ "table": "messages",
906
+ "entityType": "pks"
907
+ },
908
+ {
909
+ "columns": [
910
+ "id"
911
+ ],
912
+ "nameExplicit": false,
913
+ "name": "sessions_pkey",
914
+ "schema": "meta_whatsapp",
915
+ "table": "sessions",
916
+ "entityType": "pks"
917
+ },
918
+ {
919
+ "columns": [
920
+ "company_id"
921
+ ],
922
+ "nameExplicit": false,
923
+ "name": "settings_pkey",
924
+ "schema": "meta_whatsapp",
925
+ "table": "settings",
926
+ "entityType": "pks"
927
+ }
928
+ ],
929
+ "renames": []
930
+ }