@automagik/omni 2.260409.6 → 2.260421.3
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.
- package/db/drizzle/0018_supreme_puma.sql +6 -0
- package/db/drizzle/0019_idle_chat_follow_up.sql +23 -0
- package/db/drizzle/0020_follow_up_config.sql +2 -0
- package/db/drizzle/0021_idle_follow_up_seed.sql +51 -0
- package/db/drizzle/0022_idle_follow_up_prompt_v2.sql +34 -0
- package/db/drizzle/0023_dispatcher_inbound_age.sql +8 -0
- package/db/drizzle/0024_quiet_gabe_jones.sql +23 -0
- package/db/drizzle/0025_panoramic_sinister_six.sql +5 -0
- package/db/drizzle/0026_agent_key_profiles.sql +19 -0
- package/db/drizzle/0027_bridge_tmux_session.sql +13 -0
- package/db/drizzle/meta/{0014_snapshot.json → 0018_snapshot.json} +678 -430
- package/db/drizzle/meta/{0013_snapshot.json → 0019_snapshot.json} +919 -445
- package/db/drizzle/meta/0020_snapshot.json +7240 -0
- package/db/drizzle/meta/0021_snapshot.json +7240 -0
- package/db/drizzle/meta/0024_snapshot.json +7240 -0
- package/db/drizzle/meta/0025_snapshot.json +7240 -0
- package/db/drizzle/meta/0026_snapshot.json +7274 -0
- package/db/drizzle/meta/_journal.json +70 -0
- package/dist/__tests__/mock-api.d.ts +24 -0
- package/dist/__tests__/mock-api.d.ts.map +1 -1
- package/dist/commands/agents.d.ts +2 -0
- package/dist/commands/agents.d.ts.map +1 -1
- package/dist/commands/doctor.d.ts +24 -15
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/events.d.ts +25 -0
- package/dist/commands/events.d.ts.map +1 -1
- package/dist/commands/follow-up.d.ts +13 -0
- package/dist/commands/follow-up.d.ts.map +1 -0
- package/dist/commands/install.d.ts +28 -29
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/instances.d.ts.map +1 -1
- package/dist/commands/keys.d.ts +43 -0
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/update.d.ts +12 -0
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/voice.d.ts +11 -0
- package/dist/commands/voice.d.ts.map +1 -0
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/index.js +94536 -65466
- package/dist/install-helpers.d.ts +32 -0
- package/dist/install-helpers.d.ts.map +1 -0
- package/dist/nats-install.d.ts +11 -0
- package/dist/nats-install.d.ts.map +1 -0
- package/dist/output.d.ts +14 -5
- package/dist/output.d.ts.map +1 -1
- package/dist/pm2.d.ts +46 -0
- package/dist/pm2.d.ts.map +1 -1
- package/dist/server/davey.linux-x64-gnu-vevevdy2.node +0 -0
- package/dist/server/davey.linux-x64-musl-3vkb94zg.node +0 -0
- package/dist/server/index.js +97148 -13518
- package/package.json +10 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
3
|
-
"prevId": "
|
|
2
|
+
"id": "3269d455-1aa4-4d4c-b947-43817969639b",
|
|
3
|
+
"prevId": "599bcbb5-2b34-48e0-a862-31f62eafc5a0",
|
|
4
4
|
"version": "7",
|
|
5
5
|
"dialect": "postgresql",
|
|
6
6
|
"tables": {
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
}
|
|
118
118
|
],
|
|
119
119
|
"isUnique": false,
|
|
120
|
-
"
|
|
120
|
+
"with": {},
|
|
121
121
|
"method": "btree",
|
|
122
|
-
"
|
|
122
|
+
"concurrently": false
|
|
123
123
|
},
|
|
124
124
|
"access_rules_phone_idx": {
|
|
125
125
|
"name": "access_rules_phone_idx",
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
}
|
|
133
133
|
],
|
|
134
134
|
"isUnique": false,
|
|
135
|
-
"
|
|
135
|
+
"with": {},
|
|
136
136
|
"method": "btree",
|
|
137
|
-
"
|
|
137
|
+
"concurrently": false
|
|
138
138
|
},
|
|
139
139
|
"access_rules_type_idx": {
|
|
140
140
|
"name": "access_rules_type_idx",
|
|
@@ -147,9 +147,9 @@
|
|
|
147
147
|
}
|
|
148
148
|
],
|
|
149
149
|
"isUnique": false,
|
|
150
|
-
"
|
|
150
|
+
"with": {},
|
|
151
151
|
"method": "btree",
|
|
152
|
-
"
|
|
152
|
+
"concurrently": false
|
|
153
153
|
},
|
|
154
154
|
"access_rules_unique_idx": {
|
|
155
155
|
"name": "access_rules_unique_idx",
|
|
@@ -174,9 +174,9 @@
|
|
|
174
174
|
}
|
|
175
175
|
],
|
|
176
176
|
"isUnique": true,
|
|
177
|
-
"
|
|
177
|
+
"with": {},
|
|
178
178
|
"method": "btree",
|
|
179
|
-
"
|
|
179
|
+
"concurrently": false
|
|
180
180
|
},
|
|
181
181
|
"idx_access_rules_pairing": {
|
|
182
182
|
"name": "idx_access_rules_pairing",
|
|
@@ -201,29 +201,29 @@
|
|
|
201
201
|
}
|
|
202
202
|
],
|
|
203
203
|
"isUnique": false,
|
|
204
|
-
"
|
|
204
|
+
"with": {},
|
|
205
205
|
"method": "btree",
|
|
206
|
-
"
|
|
206
|
+
"concurrently": false
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"foreignKeys": {
|
|
210
210
|
"access_rules_instance_id_instances_id_fk": {
|
|
211
211
|
"name": "access_rules_instance_id_instances_id_fk",
|
|
212
212
|
"tableFrom": "access_rules",
|
|
213
|
-
"tableTo": "instances",
|
|
214
213
|
"columnsFrom": ["instance_id"],
|
|
214
|
+
"tableTo": "instances",
|
|
215
215
|
"columnsTo": ["id"],
|
|
216
|
-
"
|
|
217
|
-
"
|
|
216
|
+
"onUpdate": "no action",
|
|
217
|
+
"onDelete": "cascade"
|
|
218
218
|
},
|
|
219
219
|
"access_rules_person_id_persons_id_fk": {
|
|
220
220
|
"name": "access_rules_person_id_persons_id_fk",
|
|
221
221
|
"tableFrom": "access_rules",
|
|
222
|
-
"tableTo": "persons",
|
|
223
222
|
"columnsFrom": ["person_id"],
|
|
223
|
+
"tableTo": "persons",
|
|
224
224
|
"columnsTo": ["id"],
|
|
225
|
-
"
|
|
226
|
-
"
|
|
225
|
+
"onUpdate": "no action",
|
|
226
|
+
"onDelete": "cascade"
|
|
227
227
|
}
|
|
228
228
|
},
|
|
229
229
|
"compositePrimaryKeys": {},
|
|
@@ -380,9 +380,9 @@
|
|
|
380
380
|
}
|
|
381
381
|
],
|
|
382
382
|
"isUnique": false,
|
|
383
|
-
"
|
|
383
|
+
"with": {},
|
|
384
384
|
"method": "btree",
|
|
385
|
-
"
|
|
385
|
+
"concurrently": false
|
|
386
386
|
},
|
|
387
387
|
"agent_providers_schema_idx": {
|
|
388
388
|
"name": "agent_providers_schema_idx",
|
|
@@ -395,9 +395,9 @@
|
|
|
395
395
|
}
|
|
396
396
|
],
|
|
397
397
|
"isUnique": false,
|
|
398
|
-
"
|
|
398
|
+
"with": {},
|
|
399
399
|
"method": "btree",
|
|
400
|
-
"
|
|
400
|
+
"concurrently": false
|
|
401
401
|
},
|
|
402
402
|
"agent_providers_active_idx": {
|
|
403
403
|
"name": "agent_providers_active_idx",
|
|
@@ -410,9 +410,9 @@
|
|
|
410
410
|
}
|
|
411
411
|
],
|
|
412
412
|
"isUnique": false,
|
|
413
|
-
"
|
|
413
|
+
"with": {},
|
|
414
414
|
"method": "btree",
|
|
415
|
-
"
|
|
415
|
+
"concurrently": false
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
"foreignKeys": {},
|
|
@@ -420,8 +420,8 @@
|
|
|
420
420
|
"uniqueConstraints": {
|
|
421
421
|
"agent_providers_name_unique": {
|
|
422
422
|
"name": "agent_providers_name_unique",
|
|
423
|
-
"
|
|
424
|
-
"
|
|
423
|
+
"columns": ["name"],
|
|
424
|
+
"nullsNotDistinct": false
|
|
425
425
|
}
|
|
426
426
|
},
|
|
427
427
|
"policies": {},
|
|
@@ -672,9 +672,9 @@
|
|
|
672
672
|
}
|
|
673
673
|
],
|
|
674
674
|
"isUnique": true,
|
|
675
|
-
"
|
|
675
|
+
"with": {},
|
|
676
676
|
"method": "btree",
|
|
677
|
-
"
|
|
677
|
+
"concurrently": false
|
|
678
678
|
},
|
|
679
679
|
"agent_routes_unique_user_route": {
|
|
680
680
|
"name": "agent_routes_unique_user_route",
|
|
@@ -693,9 +693,9 @@
|
|
|
693
693
|
}
|
|
694
694
|
],
|
|
695
695
|
"isUnique": true,
|
|
696
|
-
"
|
|
696
|
+
"with": {},
|
|
697
697
|
"method": "btree",
|
|
698
|
-
"
|
|
698
|
+
"concurrently": false
|
|
699
699
|
},
|
|
700
700
|
"agent_routes_instance_idx": {
|
|
701
701
|
"name": "agent_routes_instance_idx",
|
|
@@ -708,9 +708,9 @@
|
|
|
708
708
|
}
|
|
709
709
|
],
|
|
710
710
|
"isUnique": false,
|
|
711
|
-
"
|
|
711
|
+
"with": {},
|
|
712
712
|
"method": "btree",
|
|
713
|
-
"
|
|
713
|
+
"concurrently": false
|
|
714
714
|
},
|
|
715
715
|
"agent_routes_chat_idx": {
|
|
716
716
|
"name": "agent_routes_chat_idx",
|
|
@@ -723,9 +723,9 @@
|
|
|
723
723
|
}
|
|
724
724
|
],
|
|
725
725
|
"isUnique": false,
|
|
726
|
-
"
|
|
726
|
+
"with": {},
|
|
727
727
|
"method": "btree",
|
|
728
|
-
"
|
|
728
|
+
"concurrently": false
|
|
729
729
|
},
|
|
730
730
|
"agent_routes_person_idx": {
|
|
731
731
|
"name": "agent_routes_person_idx",
|
|
@@ -738,9 +738,9 @@
|
|
|
738
738
|
}
|
|
739
739
|
],
|
|
740
740
|
"isUnique": false,
|
|
741
|
-
"
|
|
741
|
+
"with": {},
|
|
742
742
|
"method": "btree",
|
|
743
|
-
"
|
|
743
|
+
"concurrently": false
|
|
744
744
|
},
|
|
745
745
|
"agent_routes_active_idx": {
|
|
746
746
|
"name": "agent_routes_active_idx",
|
|
@@ -759,9 +759,9 @@
|
|
|
759
759
|
}
|
|
760
760
|
],
|
|
761
761
|
"isUnique": false,
|
|
762
|
-
"
|
|
762
|
+
"with": {},
|
|
763
763
|
"method": "btree",
|
|
764
|
-
"
|
|
764
|
+
"concurrently": false
|
|
765
765
|
},
|
|
766
766
|
"agent_routes_agent_id_idx": {
|
|
767
767
|
"name": "agent_routes_agent_id_idx",
|
|
@@ -774,47 +774,47 @@
|
|
|
774
774
|
}
|
|
775
775
|
],
|
|
776
776
|
"isUnique": false,
|
|
777
|
-
"
|
|
777
|
+
"with": {},
|
|
778
778
|
"method": "btree",
|
|
779
|
-
"
|
|
779
|
+
"concurrently": false
|
|
780
780
|
}
|
|
781
781
|
},
|
|
782
782
|
"foreignKeys": {
|
|
783
783
|
"agent_routes_instance_id_instances_id_fk": {
|
|
784
784
|
"name": "agent_routes_instance_id_instances_id_fk",
|
|
785
785
|
"tableFrom": "agent_routes",
|
|
786
|
-
"tableTo": "instances",
|
|
787
786
|
"columnsFrom": ["instance_id"],
|
|
787
|
+
"tableTo": "instances",
|
|
788
788
|
"columnsTo": ["id"],
|
|
789
|
-
"
|
|
790
|
-
"
|
|
789
|
+
"onUpdate": "no action",
|
|
790
|
+
"onDelete": "cascade"
|
|
791
791
|
},
|
|
792
792
|
"agent_routes_chat_id_chats_id_fk": {
|
|
793
793
|
"name": "agent_routes_chat_id_chats_id_fk",
|
|
794
794
|
"tableFrom": "agent_routes",
|
|
795
|
-
"tableTo": "chats",
|
|
796
795
|
"columnsFrom": ["chat_id"],
|
|
796
|
+
"tableTo": "chats",
|
|
797
797
|
"columnsTo": ["id"],
|
|
798
|
-
"
|
|
799
|
-
"
|
|
798
|
+
"onUpdate": "no action",
|
|
799
|
+
"onDelete": "cascade"
|
|
800
800
|
},
|
|
801
801
|
"agent_routes_person_id_persons_id_fk": {
|
|
802
802
|
"name": "agent_routes_person_id_persons_id_fk",
|
|
803
803
|
"tableFrom": "agent_routes",
|
|
804
|
-
"tableTo": "persons",
|
|
805
804
|
"columnsFrom": ["person_id"],
|
|
805
|
+
"tableTo": "persons",
|
|
806
806
|
"columnsTo": ["id"],
|
|
807
|
-
"
|
|
808
|
-
"
|
|
807
|
+
"onUpdate": "no action",
|
|
808
|
+
"onDelete": "cascade"
|
|
809
809
|
},
|
|
810
810
|
"agent_routes_agent_id_agents_id_fk": {
|
|
811
811
|
"name": "agent_routes_agent_id_agents_id_fk",
|
|
812
812
|
"tableFrom": "agent_routes",
|
|
813
|
-
"tableTo": "agents",
|
|
814
813
|
"columnsFrom": ["agent_id"],
|
|
814
|
+
"tableTo": "agents",
|
|
815
815
|
"columnsTo": ["id"],
|
|
816
|
-
"
|
|
817
|
-
"
|
|
816
|
+
"onUpdate": "no action",
|
|
817
|
+
"onDelete": "set null"
|
|
818
818
|
}
|
|
819
819
|
},
|
|
820
820
|
"compositePrimaryKeys": {},
|
|
@@ -903,9 +903,9 @@
|
|
|
903
903
|
}
|
|
904
904
|
],
|
|
905
905
|
"isUnique": true,
|
|
906
|
-
"
|
|
906
|
+
"with": {},
|
|
907
907
|
"method": "btree",
|
|
908
|
-
"
|
|
908
|
+
"concurrently": false
|
|
909
909
|
},
|
|
910
910
|
"agent_sessions_expires_idx": {
|
|
911
911
|
"name": "agent_sessions_expires_idx",
|
|
@@ -918,9 +918,9 @@
|
|
|
918
918
|
}
|
|
919
919
|
],
|
|
920
920
|
"isUnique": false,
|
|
921
|
-
"
|
|
921
|
+
"with": {},
|
|
922
922
|
"method": "btree",
|
|
923
|
-
"
|
|
923
|
+
"concurrently": false
|
|
924
924
|
},
|
|
925
925
|
"agent_sessions_last_used_idx": {
|
|
926
926
|
"name": "agent_sessions_last_used_idx",
|
|
@@ -933,20 +933,20 @@
|
|
|
933
933
|
}
|
|
934
934
|
],
|
|
935
935
|
"isUnique": false,
|
|
936
|
-
"
|
|
936
|
+
"with": {},
|
|
937
937
|
"method": "btree",
|
|
938
|
-
"
|
|
938
|
+
"concurrently": false
|
|
939
939
|
}
|
|
940
940
|
},
|
|
941
941
|
"foreignKeys": {
|
|
942
942
|
"agent_sessions_instance_id_instances_id_fk": {
|
|
943
943
|
"name": "agent_sessions_instance_id_instances_id_fk",
|
|
944
944
|
"tableFrom": "agent_sessions",
|
|
945
|
-
"tableTo": "instances",
|
|
946
945
|
"columnsFrom": ["instance_id"],
|
|
946
|
+
"tableTo": "instances",
|
|
947
947
|
"columnsTo": ["id"],
|
|
948
|
-
"
|
|
949
|
-
"
|
|
948
|
+
"onUpdate": "no action",
|
|
949
|
+
"onDelete": "cascade"
|
|
950
950
|
}
|
|
951
951
|
},
|
|
952
952
|
"compositePrimaryKeys": {},
|
|
@@ -1100,9 +1100,9 @@
|
|
|
1100
1100
|
}
|
|
1101
1101
|
],
|
|
1102
1102
|
"isUnique": false,
|
|
1103
|
-
"
|
|
1103
|
+
"with": {},
|
|
1104
1104
|
"method": "btree",
|
|
1105
|
-
"
|
|
1105
|
+
"concurrently": false
|
|
1106
1106
|
},
|
|
1107
1107
|
"agent_tasks_chat_id_idx": {
|
|
1108
1108
|
"name": "agent_tasks_chat_id_idx",
|
|
@@ -1115,9 +1115,9 @@
|
|
|
1115
1115
|
}
|
|
1116
1116
|
],
|
|
1117
1117
|
"isUnique": false,
|
|
1118
|
-
"
|
|
1118
|
+
"with": {},
|
|
1119
1119
|
"method": "btree",
|
|
1120
|
-
"
|
|
1120
|
+
"concurrently": false
|
|
1121
1121
|
},
|
|
1122
1122
|
"agent_tasks_conversation_id_idx": {
|
|
1123
1123
|
"name": "agent_tasks_conversation_id_idx",
|
|
@@ -1130,9 +1130,9 @@
|
|
|
1130
1130
|
}
|
|
1131
1131
|
],
|
|
1132
1132
|
"isUnique": false,
|
|
1133
|
-
"
|
|
1133
|
+
"with": {},
|
|
1134
1134
|
"method": "btree",
|
|
1135
|
-
"
|
|
1135
|
+
"concurrently": false
|
|
1136
1136
|
},
|
|
1137
1137
|
"agent_tasks_parent_task_id_idx": {
|
|
1138
1138
|
"name": "agent_tasks_parent_task_id_idx",
|
|
@@ -1145,9 +1145,9 @@
|
|
|
1145
1145
|
}
|
|
1146
1146
|
],
|
|
1147
1147
|
"isUnique": false,
|
|
1148
|
-
"
|
|
1148
|
+
"with": {},
|
|
1149
1149
|
"method": "btree",
|
|
1150
|
-
"
|
|
1150
|
+
"concurrently": false
|
|
1151
1151
|
},
|
|
1152
1152
|
"agent_tasks_status_idx": {
|
|
1153
1153
|
"name": "agent_tasks_status_idx",
|
|
@@ -1160,9 +1160,9 @@
|
|
|
1160
1160
|
}
|
|
1161
1161
|
],
|
|
1162
1162
|
"isUnique": false,
|
|
1163
|
-
"
|
|
1163
|
+
"with": {},
|
|
1164
1164
|
"method": "btree",
|
|
1165
|
-
"
|
|
1165
|
+
"concurrently": false
|
|
1166
1166
|
},
|
|
1167
1167
|
"agent_tasks_agent_chat_idx": {
|
|
1168
1168
|
"name": "agent_tasks_agent_chat_idx",
|
|
@@ -1181,9 +1181,9 @@
|
|
|
1181
1181
|
}
|
|
1182
1182
|
],
|
|
1183
1183
|
"isUnique": false,
|
|
1184
|
-
"
|
|
1184
|
+
"with": {},
|
|
1185
1185
|
"method": "btree",
|
|
1186
|
-
"
|
|
1186
|
+
"concurrently": false
|
|
1187
1187
|
},
|
|
1188
1188
|
"agent_tasks_agent_status_idx": {
|
|
1189
1189
|
"name": "agent_tasks_agent_status_idx",
|
|
@@ -1202,56 +1202,56 @@
|
|
|
1202
1202
|
}
|
|
1203
1203
|
],
|
|
1204
1204
|
"isUnique": false,
|
|
1205
|
-
"
|
|
1205
|
+
"with": {},
|
|
1206
1206
|
"method": "btree",
|
|
1207
|
-
"
|
|
1207
|
+
"concurrently": false
|
|
1208
1208
|
}
|
|
1209
1209
|
},
|
|
1210
1210
|
"foreignKeys": {
|
|
1211
1211
|
"agent_tasks_agent_id_agents_id_fk": {
|
|
1212
1212
|
"name": "agent_tasks_agent_id_agents_id_fk",
|
|
1213
1213
|
"tableFrom": "agent_tasks",
|
|
1214
|
-
"tableTo": "agents",
|
|
1215
1214
|
"columnsFrom": ["agent_id"],
|
|
1215
|
+
"tableTo": "agents",
|
|
1216
1216
|
"columnsTo": ["id"],
|
|
1217
|
-
"
|
|
1218
|
-
"
|
|
1217
|
+
"onUpdate": "no action",
|
|
1218
|
+
"onDelete": "cascade"
|
|
1219
1219
|
},
|
|
1220
1220
|
"agent_tasks_chat_id_chats_id_fk": {
|
|
1221
1221
|
"name": "agent_tasks_chat_id_chats_id_fk",
|
|
1222
1222
|
"tableFrom": "agent_tasks",
|
|
1223
|
-
"tableTo": "chats",
|
|
1224
1223
|
"columnsFrom": ["chat_id"],
|
|
1224
|
+
"tableTo": "chats",
|
|
1225
1225
|
"columnsTo": ["id"],
|
|
1226
|
-
"
|
|
1227
|
-
"
|
|
1226
|
+
"onUpdate": "no action",
|
|
1227
|
+
"onDelete": "cascade"
|
|
1228
1228
|
},
|
|
1229
1229
|
"agent_tasks_conversation_id_conversations_id_fk": {
|
|
1230
1230
|
"name": "agent_tasks_conversation_id_conversations_id_fk",
|
|
1231
1231
|
"tableFrom": "agent_tasks",
|
|
1232
|
-
"tableTo": "conversations",
|
|
1233
1232
|
"columnsFrom": ["conversation_id"],
|
|
1233
|
+
"tableTo": "conversations",
|
|
1234
1234
|
"columnsTo": ["id"],
|
|
1235
|
-
"
|
|
1236
|
-
"
|
|
1235
|
+
"onUpdate": "no action",
|
|
1236
|
+
"onDelete": "set null"
|
|
1237
1237
|
},
|
|
1238
1238
|
"agent_tasks_message_id_messages_id_fk": {
|
|
1239
1239
|
"name": "agent_tasks_message_id_messages_id_fk",
|
|
1240
1240
|
"tableFrom": "agent_tasks",
|
|
1241
|
-
"tableTo": "messages",
|
|
1242
1241
|
"columnsFrom": ["message_id"],
|
|
1242
|
+
"tableTo": "messages",
|
|
1243
1243
|
"columnsTo": ["id"],
|
|
1244
|
-
"
|
|
1245
|
-
"
|
|
1244
|
+
"onUpdate": "no action",
|
|
1245
|
+
"onDelete": "set null"
|
|
1246
1246
|
},
|
|
1247
1247
|
"agent_tasks_parent_task_id_agent_tasks_id_fk": {
|
|
1248
1248
|
"name": "agent_tasks_parent_task_id_agent_tasks_id_fk",
|
|
1249
1249
|
"tableFrom": "agent_tasks",
|
|
1250
|
-
"tableTo": "agent_tasks",
|
|
1251
1250
|
"columnsFrom": ["parent_task_id"],
|
|
1251
|
+
"tableTo": "agent_tasks",
|
|
1252
1252
|
"columnsTo": ["id"],
|
|
1253
|
-
"
|
|
1254
|
-
"
|
|
1253
|
+
"onUpdate": "no action",
|
|
1254
|
+
"onDelete": "set null"
|
|
1255
1255
|
}
|
|
1256
1256
|
},
|
|
1257
1257
|
"compositePrimaryKeys": {},
|
|
@@ -1374,9 +1374,9 @@
|
|
|
1374
1374
|
}
|
|
1375
1375
|
],
|
|
1376
1376
|
"isUnique": false,
|
|
1377
|
-
"
|
|
1377
|
+
"with": {},
|
|
1378
1378
|
"method": "btree",
|
|
1379
|
-
"
|
|
1379
|
+
"concurrently": false
|
|
1380
1380
|
},
|
|
1381
1381
|
"agents_owner_idx": {
|
|
1382
1382
|
"name": "agents_owner_idx",
|
|
@@ -1389,9 +1389,9 @@
|
|
|
1389
1389
|
}
|
|
1390
1390
|
],
|
|
1391
1391
|
"isUnique": false,
|
|
1392
|
-
"
|
|
1392
|
+
"with": {},
|
|
1393
1393
|
"method": "btree",
|
|
1394
|
-
"
|
|
1394
|
+
"concurrently": false
|
|
1395
1395
|
},
|
|
1396
1396
|
"agents_provider_idx": {
|
|
1397
1397
|
"name": "agents_provider_idx",
|
|
@@ -1404,9 +1404,9 @@
|
|
|
1404
1404
|
}
|
|
1405
1405
|
],
|
|
1406
1406
|
"isUnique": false,
|
|
1407
|
-
"
|
|
1407
|
+
"with": {},
|
|
1408
1408
|
"method": "btree",
|
|
1409
|
-
"
|
|
1409
|
+
"concurrently": false
|
|
1410
1410
|
},
|
|
1411
1411
|
"agents_active_idx": {
|
|
1412
1412
|
"name": "agents_active_idx",
|
|
@@ -1419,29 +1419,29 @@
|
|
|
1419
1419
|
}
|
|
1420
1420
|
],
|
|
1421
1421
|
"isUnique": false,
|
|
1422
|
-
"
|
|
1422
|
+
"with": {},
|
|
1423
1423
|
"method": "btree",
|
|
1424
|
-
"
|
|
1424
|
+
"concurrently": false
|
|
1425
1425
|
}
|
|
1426
1426
|
},
|
|
1427
1427
|
"foreignKeys": {
|
|
1428
1428
|
"agents_owner_id_persons_id_fk": {
|
|
1429
1429
|
"name": "agents_owner_id_persons_id_fk",
|
|
1430
1430
|
"tableFrom": "agents",
|
|
1431
|
-
"tableTo": "persons",
|
|
1432
1431
|
"columnsFrom": ["owner_id"],
|
|
1432
|
+
"tableTo": "persons",
|
|
1433
1433
|
"columnsTo": ["id"],
|
|
1434
|
-
"
|
|
1435
|
-
"
|
|
1434
|
+
"onUpdate": "no action",
|
|
1435
|
+
"onDelete": "set null"
|
|
1436
1436
|
},
|
|
1437
1437
|
"agents_agent_provider_id_agent_providers_id_fk": {
|
|
1438
1438
|
"name": "agents_agent_provider_id_agent_providers_id_fk",
|
|
1439
1439
|
"tableFrom": "agents",
|
|
1440
|
-
"tableTo": "agent_providers",
|
|
1441
1440
|
"columnsFrom": ["agent_provider_id"],
|
|
1441
|
+
"tableTo": "agent_providers",
|
|
1442
1442
|
"columnsTo": ["id"],
|
|
1443
|
-
"
|
|
1444
|
-
"
|
|
1443
|
+
"onUpdate": "no action",
|
|
1444
|
+
"onDelete": "set null"
|
|
1445
1445
|
}
|
|
1446
1446
|
},
|
|
1447
1447
|
"compositePrimaryKeys": {},
|
|
@@ -1523,9 +1523,9 @@
|
|
|
1523
1523
|
}
|
|
1524
1524
|
],
|
|
1525
1525
|
"isUnique": false,
|
|
1526
|
-
"
|
|
1526
|
+
"with": {},
|
|
1527
1527
|
"method": "btree",
|
|
1528
|
-
"
|
|
1528
|
+
"concurrently": false
|
|
1529
1529
|
},
|
|
1530
1530
|
"api_key_audit_logs_timestamp_idx": {
|
|
1531
1531
|
"name": "api_key_audit_logs_timestamp_idx",
|
|
@@ -1538,9 +1538,9 @@
|
|
|
1538
1538
|
}
|
|
1539
1539
|
],
|
|
1540
1540
|
"isUnique": false,
|
|
1541
|
-
"
|
|
1541
|
+
"with": {},
|
|
1542
1542
|
"method": "btree",
|
|
1543
|
-
"
|
|
1543
|
+
"concurrently": false
|
|
1544
1544
|
},
|
|
1545
1545
|
"api_key_audit_logs_path_idx": {
|
|
1546
1546
|
"name": "api_key_audit_logs_path_idx",
|
|
@@ -1553,20 +1553,20 @@
|
|
|
1553
1553
|
}
|
|
1554
1554
|
],
|
|
1555
1555
|
"isUnique": false,
|
|
1556
|
-
"
|
|
1556
|
+
"with": {},
|
|
1557
1557
|
"method": "btree",
|
|
1558
|
-
"
|
|
1558
|
+
"concurrently": false
|
|
1559
1559
|
}
|
|
1560
1560
|
},
|
|
1561
1561
|
"foreignKeys": {
|
|
1562
1562
|
"api_key_audit_logs_api_key_id_api_keys_id_fk": {
|
|
1563
1563
|
"name": "api_key_audit_logs_api_key_id_api_keys_id_fk",
|
|
1564
1564
|
"tableFrom": "api_key_audit_logs",
|
|
1565
|
-
"tableTo": "api_keys",
|
|
1566
1565
|
"columnsFrom": ["api_key_id"],
|
|
1566
|
+
"tableTo": "api_keys",
|
|
1567
1567
|
"columnsTo": ["id"],
|
|
1568
|
-
"
|
|
1569
|
-
"
|
|
1568
|
+
"onUpdate": "no action",
|
|
1569
|
+
"onDelete": "cascade"
|
|
1570
1570
|
}
|
|
1571
1571
|
},
|
|
1572
1572
|
"compositePrimaryKeys": {},
|
|
@@ -1741,9 +1741,9 @@
|
|
|
1741
1741
|
}
|
|
1742
1742
|
],
|
|
1743
1743
|
"isUnique": false,
|
|
1744
|
-
"
|
|
1744
|
+
"with": {},
|
|
1745
1745
|
"method": "btree",
|
|
1746
|
-
"
|
|
1746
|
+
"concurrently": false
|
|
1747
1747
|
},
|
|
1748
1748
|
"api_keys_key_hash_idx": {
|
|
1749
1749
|
"name": "api_keys_key_hash_idx",
|
|
@@ -1756,9 +1756,9 @@
|
|
|
1756
1756
|
}
|
|
1757
1757
|
],
|
|
1758
1758
|
"isUnique": true,
|
|
1759
|
-
"
|
|
1759
|
+
"with": {},
|
|
1760
1760
|
"method": "btree",
|
|
1761
|
-
"
|
|
1761
|
+
"concurrently": false
|
|
1762
1762
|
},
|
|
1763
1763
|
"api_keys_status_idx": {
|
|
1764
1764
|
"name": "api_keys_status_idx",
|
|
@@ -1771,9 +1771,9 @@
|
|
|
1771
1771
|
}
|
|
1772
1772
|
],
|
|
1773
1773
|
"isUnique": false,
|
|
1774
|
-
"
|
|
1774
|
+
"with": {},
|
|
1775
1775
|
"method": "btree",
|
|
1776
|
-
"
|
|
1776
|
+
"concurrently": false
|
|
1777
1777
|
},
|
|
1778
1778
|
"api_keys_expires_at_idx": {
|
|
1779
1779
|
"name": "api_keys_expires_at_idx",
|
|
@@ -1786,9 +1786,9 @@
|
|
|
1786
1786
|
}
|
|
1787
1787
|
],
|
|
1788
1788
|
"isUnique": false,
|
|
1789
|
-
"
|
|
1789
|
+
"with": {},
|
|
1790
1790
|
"method": "btree",
|
|
1791
|
-
"
|
|
1791
|
+
"concurrently": false
|
|
1792
1792
|
}
|
|
1793
1793
|
},
|
|
1794
1794
|
"foreignKeys": {},
|
|
@@ -1871,9 +1871,9 @@
|
|
|
1871
1871
|
}
|
|
1872
1872
|
],
|
|
1873
1873
|
"isUnique": false,
|
|
1874
|
-
"
|
|
1874
|
+
"with": {},
|
|
1875
1875
|
"method": "btree",
|
|
1876
|
-
"
|
|
1876
|
+
"concurrently": false
|
|
1877
1877
|
},
|
|
1878
1878
|
"automation_logs_event_id_idx": {
|
|
1879
1879
|
"name": "automation_logs_event_id_idx",
|
|
@@ -1886,9 +1886,9 @@
|
|
|
1886
1886
|
}
|
|
1887
1887
|
],
|
|
1888
1888
|
"isUnique": false,
|
|
1889
|
-
"
|
|
1889
|
+
"with": {},
|
|
1890
1890
|
"method": "btree",
|
|
1891
|
-
"
|
|
1891
|
+
"concurrently": false
|
|
1892
1892
|
},
|
|
1893
1893
|
"automation_logs_status_idx": {
|
|
1894
1894
|
"name": "automation_logs_status_idx",
|
|
@@ -1901,9 +1901,9 @@
|
|
|
1901
1901
|
}
|
|
1902
1902
|
],
|
|
1903
1903
|
"isUnique": false,
|
|
1904
|
-
"
|
|
1904
|
+
"with": {},
|
|
1905
1905
|
"method": "btree",
|
|
1906
|
-
"
|
|
1906
|
+
"concurrently": false
|
|
1907
1907
|
},
|
|
1908
1908
|
"automation_logs_created_at_idx": {
|
|
1909
1909
|
"name": "automation_logs_created_at_idx",
|
|
@@ -1916,20 +1916,20 @@
|
|
|
1916
1916
|
}
|
|
1917
1917
|
],
|
|
1918
1918
|
"isUnique": false,
|
|
1919
|
-
"
|
|
1919
|
+
"with": {},
|
|
1920
1920
|
"method": "btree",
|
|
1921
|
-
"
|
|
1921
|
+
"concurrently": false
|
|
1922
1922
|
}
|
|
1923
1923
|
},
|
|
1924
1924
|
"foreignKeys": {
|
|
1925
1925
|
"automation_logs_automation_id_automations_id_fk": {
|
|
1926
1926
|
"name": "automation_logs_automation_id_automations_id_fk",
|
|
1927
1927
|
"tableFrom": "automation_logs",
|
|
1928
|
-
"tableTo": "automations",
|
|
1929
1928
|
"columnsFrom": ["automation_id"],
|
|
1929
|
+
"tableTo": "automations",
|
|
1930
1930
|
"columnsTo": ["id"],
|
|
1931
|
-
"
|
|
1932
|
-
"
|
|
1931
|
+
"onUpdate": "no action",
|
|
1932
|
+
"onDelete": "cascade"
|
|
1933
1933
|
}
|
|
1934
1934
|
},
|
|
1935
1935
|
"compositePrimaryKeys": {},
|
|
@@ -2033,9 +2033,9 @@
|
|
|
2033
2033
|
}
|
|
2034
2034
|
],
|
|
2035
2035
|
"isUnique": false,
|
|
2036
|
-
"
|
|
2036
|
+
"with": {},
|
|
2037
2037
|
"method": "btree",
|
|
2038
|
-
"
|
|
2038
|
+
"concurrently": false
|
|
2039
2039
|
},
|
|
2040
2040
|
"automations_trigger_idx": {
|
|
2041
2041
|
"name": "automations_trigger_idx",
|
|
@@ -2048,9 +2048,9 @@
|
|
|
2048
2048
|
}
|
|
2049
2049
|
],
|
|
2050
2050
|
"isUnique": false,
|
|
2051
|
-
"
|
|
2051
|
+
"with": {},
|
|
2052
2052
|
"method": "btree",
|
|
2053
|
-
"
|
|
2053
|
+
"concurrently": false
|
|
2054
2054
|
},
|
|
2055
2055
|
"automations_enabled_idx": {
|
|
2056
2056
|
"name": "automations_enabled_idx",
|
|
@@ -2063,9 +2063,9 @@
|
|
|
2063
2063
|
}
|
|
2064
2064
|
],
|
|
2065
2065
|
"isUnique": false,
|
|
2066
|
-
"
|
|
2066
|
+
"with": {},
|
|
2067
2067
|
"method": "btree",
|
|
2068
|
-
"
|
|
2068
|
+
"concurrently": false
|
|
2069
2069
|
},
|
|
2070
2070
|
"automations_priority_idx": {
|
|
2071
2071
|
"name": "automations_priority_idx",
|
|
@@ -2078,9 +2078,9 @@
|
|
|
2078
2078
|
}
|
|
2079
2079
|
],
|
|
2080
2080
|
"isUnique": false,
|
|
2081
|
-
"
|
|
2081
|
+
"with": {},
|
|
2082
2082
|
"method": "btree",
|
|
2083
|
-
"
|
|
2083
|
+
"concurrently": false
|
|
2084
2084
|
}
|
|
2085
2085
|
},
|
|
2086
2086
|
"foreignKeys": {},
|
|
@@ -2216,9 +2216,9 @@
|
|
|
2216
2216
|
}
|
|
2217
2217
|
],
|
|
2218
2218
|
"isUnique": false,
|
|
2219
|
-
"
|
|
2219
|
+
"with": {},
|
|
2220
2220
|
"method": "btree",
|
|
2221
|
-
"
|
|
2221
|
+
"concurrently": false
|
|
2222
2222
|
},
|
|
2223
2223
|
"batch_jobs_instance_idx": {
|
|
2224
2224
|
"name": "batch_jobs_instance_idx",
|
|
@@ -2231,9 +2231,9 @@
|
|
|
2231
2231
|
}
|
|
2232
2232
|
],
|
|
2233
2233
|
"isUnique": false,
|
|
2234
|
-
"
|
|
2234
|
+
"with": {},
|
|
2235
2235
|
"method": "btree",
|
|
2236
|
-
"
|
|
2236
|
+
"concurrently": false
|
|
2237
2237
|
},
|
|
2238
2238
|
"batch_jobs_created_at_idx": {
|
|
2239
2239
|
"name": "batch_jobs_created_at_idx",
|
|
@@ -2246,20 +2246,20 @@
|
|
|
2246
2246
|
}
|
|
2247
2247
|
],
|
|
2248
2248
|
"isUnique": false,
|
|
2249
|
-
"
|
|
2249
|
+
"with": {},
|
|
2250
2250
|
"method": "btree",
|
|
2251
|
-
"
|
|
2251
|
+
"concurrently": false
|
|
2252
2252
|
}
|
|
2253
2253
|
},
|
|
2254
2254
|
"foreignKeys": {
|
|
2255
2255
|
"batch_jobs_instance_id_instances_id_fk": {
|
|
2256
2256
|
"name": "batch_jobs_instance_id_instances_id_fk",
|
|
2257
2257
|
"tableFrom": "batch_jobs",
|
|
2258
|
-
"tableTo": "instances",
|
|
2259
2258
|
"columnsFrom": ["instance_id"],
|
|
2259
|
+
"tableTo": "instances",
|
|
2260
2260
|
"columnsTo": ["id"],
|
|
2261
|
-
"
|
|
2262
|
-
"
|
|
2261
|
+
"onUpdate": "no action",
|
|
2262
|
+
"onDelete": "set null"
|
|
2263
2263
|
}
|
|
2264
2264
|
},
|
|
2265
2265
|
"compositePrimaryKeys": {},
|
|
@@ -2329,9 +2329,9 @@
|
|
|
2329
2329
|
}
|
|
2330
2330
|
],
|
|
2331
2331
|
"isUnique": true,
|
|
2332
|
-
"
|
|
2332
|
+
"with": {},
|
|
2333
2333
|
"method": "btree",
|
|
2334
|
-
"
|
|
2334
|
+
"concurrently": false
|
|
2335
2335
|
},
|
|
2336
2336
|
"chat_id_mappings_instance_phone_idx": {
|
|
2337
2337
|
"name": "chat_id_mappings_instance_phone_idx",
|
|
@@ -2350,20 +2350,20 @@
|
|
|
2350
2350
|
}
|
|
2351
2351
|
],
|
|
2352
2352
|
"isUnique": false,
|
|
2353
|
-
"
|
|
2353
|
+
"with": {},
|
|
2354
2354
|
"method": "btree",
|
|
2355
|
-
"
|
|
2355
|
+
"concurrently": false
|
|
2356
2356
|
}
|
|
2357
2357
|
},
|
|
2358
2358
|
"foreignKeys": {
|
|
2359
2359
|
"chat_id_mappings_instance_id_instances_id_fk": {
|
|
2360
2360
|
"name": "chat_id_mappings_instance_id_instances_id_fk",
|
|
2361
2361
|
"tableFrom": "chat_id_mappings",
|
|
2362
|
-
"tableTo": "instances",
|
|
2363
2362
|
"columnsFrom": ["instance_id"],
|
|
2363
|
+
"tableTo": "instances",
|
|
2364
2364
|
"columnsTo": ["id"],
|
|
2365
|
-
"
|
|
2366
|
-
"
|
|
2365
|
+
"onUpdate": "no action",
|
|
2366
|
+
"onDelete": "cascade"
|
|
2367
2367
|
}
|
|
2368
2368
|
},
|
|
2369
2369
|
"compositePrimaryKeys": {},
|
|
@@ -2497,9 +2497,9 @@
|
|
|
2497
2497
|
}
|
|
2498
2498
|
],
|
|
2499
2499
|
"isUnique": true,
|
|
2500
|
-
"
|
|
2500
|
+
"with": {},
|
|
2501
2501
|
"method": "btree",
|
|
2502
|
-
"
|
|
2502
|
+
"concurrently": false
|
|
2503
2503
|
},
|
|
2504
2504
|
"chat_participants_chat_idx": {
|
|
2505
2505
|
"name": "chat_participants_chat_idx",
|
|
@@ -2512,9 +2512,9 @@
|
|
|
2512
2512
|
}
|
|
2513
2513
|
],
|
|
2514
2514
|
"isUnique": false,
|
|
2515
|
-
"
|
|
2515
|
+
"with": {},
|
|
2516
2516
|
"method": "btree",
|
|
2517
|
-
"
|
|
2517
|
+
"concurrently": false
|
|
2518
2518
|
},
|
|
2519
2519
|
"chat_participants_person_idx": {
|
|
2520
2520
|
"name": "chat_participants_person_idx",
|
|
@@ -2527,9 +2527,9 @@
|
|
|
2527
2527
|
}
|
|
2528
2528
|
],
|
|
2529
2529
|
"isUnique": false,
|
|
2530
|
-
"
|
|
2530
|
+
"with": {},
|
|
2531
2531
|
"method": "btree",
|
|
2532
|
-
"
|
|
2532
|
+
"concurrently": false
|
|
2533
2533
|
},
|
|
2534
2534
|
"chat_participants_platform_identity_idx": {
|
|
2535
2535
|
"name": "chat_participants_platform_identity_idx",
|
|
@@ -2542,9 +2542,9 @@
|
|
|
2542
2542
|
}
|
|
2543
2543
|
],
|
|
2544
2544
|
"isUnique": false,
|
|
2545
|
-
"
|
|
2545
|
+
"with": {},
|
|
2546
2546
|
"method": "btree",
|
|
2547
|
-
"
|
|
2547
|
+
"concurrently": false
|
|
2548
2548
|
},
|
|
2549
2549
|
"chat_participants_role_idx": {
|
|
2550
2550
|
"name": "chat_participants_role_idx",
|
|
@@ -2557,38 +2557,38 @@
|
|
|
2557
2557
|
}
|
|
2558
2558
|
],
|
|
2559
2559
|
"isUnique": false,
|
|
2560
|
-
"
|
|
2560
|
+
"with": {},
|
|
2561
2561
|
"method": "btree",
|
|
2562
|
-
"
|
|
2562
|
+
"concurrently": false
|
|
2563
2563
|
}
|
|
2564
2564
|
},
|
|
2565
2565
|
"foreignKeys": {
|
|
2566
2566
|
"chat_participants_chat_id_chats_id_fk": {
|
|
2567
2567
|
"name": "chat_participants_chat_id_chats_id_fk",
|
|
2568
2568
|
"tableFrom": "chat_participants",
|
|
2569
|
-
"tableTo": "chats",
|
|
2570
2569
|
"columnsFrom": ["chat_id"],
|
|
2570
|
+
"tableTo": "chats",
|
|
2571
2571
|
"columnsTo": ["id"],
|
|
2572
|
-
"
|
|
2573
|
-
"
|
|
2572
|
+
"onUpdate": "no action",
|
|
2573
|
+
"onDelete": "cascade"
|
|
2574
2574
|
},
|
|
2575
2575
|
"chat_participants_person_id_persons_id_fk": {
|
|
2576
2576
|
"name": "chat_participants_person_id_persons_id_fk",
|
|
2577
2577
|
"tableFrom": "chat_participants",
|
|
2578
|
-
"tableTo": "persons",
|
|
2579
2578
|
"columnsFrom": ["person_id"],
|
|
2579
|
+
"tableTo": "persons",
|
|
2580
2580
|
"columnsTo": ["id"],
|
|
2581
|
-
"
|
|
2582
|
-
"
|
|
2581
|
+
"onUpdate": "no action",
|
|
2582
|
+
"onDelete": "set null"
|
|
2583
2583
|
},
|
|
2584
2584
|
"chat_participants_platform_identity_id_platform_identities_id_fk": {
|
|
2585
2585
|
"name": "chat_participants_platform_identity_id_platform_identities_id_fk",
|
|
2586
2586
|
"tableFrom": "chat_participants",
|
|
2587
|
-
"tableTo": "platform_identities",
|
|
2588
2587
|
"columnsFrom": ["platform_identity_id"],
|
|
2588
|
+
"tableTo": "platform_identities",
|
|
2589
2589
|
"columnsTo": ["id"],
|
|
2590
|
-
"
|
|
2591
|
-
"
|
|
2590
|
+
"onUpdate": "no action",
|
|
2591
|
+
"onDelete": "set null"
|
|
2592
2592
|
}
|
|
2593
2593
|
},
|
|
2594
2594
|
"compositePrimaryKeys": {},
|
|
@@ -2778,9 +2778,9 @@
|
|
|
2778
2778
|
}
|
|
2779
2779
|
],
|
|
2780
2780
|
"isUnique": true,
|
|
2781
|
-
"
|
|
2781
|
+
"with": {},
|
|
2782
2782
|
"method": "btree",
|
|
2783
|
-
"
|
|
2783
|
+
"concurrently": false
|
|
2784
2784
|
},
|
|
2785
2785
|
"chats_canonical_id_idx": {
|
|
2786
2786
|
"name": "chats_canonical_id_idx",
|
|
@@ -2793,9 +2793,9 @@
|
|
|
2793
2793
|
}
|
|
2794
2794
|
],
|
|
2795
2795
|
"isUnique": false,
|
|
2796
|
-
"
|
|
2796
|
+
"with": {},
|
|
2797
2797
|
"method": "btree",
|
|
2798
|
-
"
|
|
2798
|
+
"concurrently": false
|
|
2799
2799
|
},
|
|
2800
2800
|
"chats_instance_canonical_unique_idx": {
|
|
2801
2801
|
"name": "chats_instance_canonical_unique_idx",
|
|
@@ -2814,10 +2814,10 @@
|
|
|
2814
2814
|
}
|
|
2815
2815
|
],
|
|
2816
2816
|
"isUnique": true,
|
|
2817
|
-
"
|
|
2818
|
-
"concurrently": false,
|
|
2817
|
+
"with": {},
|
|
2819
2818
|
"method": "btree",
|
|
2820
|
-
"
|
|
2819
|
+
"where": "\"chats\".\"canonical_id\" IS NOT NULL",
|
|
2820
|
+
"concurrently": false
|
|
2821
2821
|
},
|
|
2822
2822
|
"chats_type_idx": {
|
|
2823
2823
|
"name": "chats_type_idx",
|
|
@@ -2830,9 +2830,9 @@
|
|
|
2830
2830
|
}
|
|
2831
2831
|
],
|
|
2832
2832
|
"isUnique": false,
|
|
2833
|
-
"
|
|
2833
|
+
"with": {},
|
|
2834
2834
|
"method": "btree",
|
|
2835
|
-
"
|
|
2835
|
+
"concurrently": false
|
|
2836
2836
|
},
|
|
2837
2837
|
"chats_channel_idx": {
|
|
2838
2838
|
"name": "chats_channel_idx",
|
|
@@ -2845,9 +2845,9 @@
|
|
|
2845
2845
|
}
|
|
2846
2846
|
],
|
|
2847
2847
|
"isUnique": false,
|
|
2848
|
-
"
|
|
2848
|
+
"with": {},
|
|
2849
2849
|
"method": "btree",
|
|
2850
|
-
"
|
|
2850
|
+
"concurrently": false
|
|
2851
2851
|
},
|
|
2852
2852
|
"chats_parent_idx": {
|
|
2853
2853
|
"name": "chats_parent_idx",
|
|
@@ -2860,9 +2860,9 @@
|
|
|
2860
2860
|
}
|
|
2861
2861
|
],
|
|
2862
2862
|
"isUnique": false,
|
|
2863
|
-
"
|
|
2863
|
+
"with": {},
|
|
2864
2864
|
"method": "btree",
|
|
2865
|
-
"
|
|
2865
|
+
"concurrently": false
|
|
2866
2866
|
},
|
|
2867
2867
|
"chats_last_message_idx": {
|
|
2868
2868
|
"name": "chats_last_message_idx",
|
|
@@ -2875,9 +2875,9 @@
|
|
|
2875
2875
|
}
|
|
2876
2876
|
],
|
|
2877
2877
|
"isUnique": false,
|
|
2878
|
-
"
|
|
2878
|
+
"with": {},
|
|
2879
2879
|
"method": "btree",
|
|
2880
|
-
"
|
|
2880
|
+
"concurrently": false
|
|
2881
2881
|
},
|
|
2882
2882
|
"chats_conversation_id_idx": {
|
|
2883
2883
|
"name": "chats_conversation_id_idx",
|
|
@@ -2890,29 +2890,29 @@
|
|
|
2890
2890
|
}
|
|
2891
2891
|
],
|
|
2892
2892
|
"isUnique": false,
|
|
2893
|
-
"
|
|
2893
|
+
"with": {},
|
|
2894
2894
|
"method": "btree",
|
|
2895
|
-
"
|
|
2895
|
+
"concurrently": false
|
|
2896
2896
|
}
|
|
2897
2897
|
},
|
|
2898
2898
|
"foreignKeys": {
|
|
2899
2899
|
"chats_instance_id_instances_id_fk": {
|
|
2900
2900
|
"name": "chats_instance_id_instances_id_fk",
|
|
2901
2901
|
"tableFrom": "chats",
|
|
2902
|
-
"tableTo": "instances",
|
|
2903
2902
|
"columnsFrom": ["instance_id"],
|
|
2903
|
+
"tableTo": "instances",
|
|
2904
2904
|
"columnsTo": ["id"],
|
|
2905
|
-
"
|
|
2906
|
-
"
|
|
2905
|
+
"onUpdate": "no action",
|
|
2906
|
+
"onDelete": "cascade"
|
|
2907
2907
|
},
|
|
2908
2908
|
"chats_conversation_id_conversations_id_fk": {
|
|
2909
2909
|
"name": "chats_conversation_id_conversations_id_fk",
|
|
2910
2910
|
"tableFrom": "chats",
|
|
2911
|
-
"tableTo": "conversations",
|
|
2912
2911
|
"columnsFrom": ["conversation_id"],
|
|
2912
|
+
"tableTo": "conversations",
|
|
2913
2913
|
"columnsTo": ["id"],
|
|
2914
|
-
"
|
|
2915
|
-
"
|
|
2914
|
+
"onUpdate": "no action",
|
|
2915
|
+
"onDelete": "set null"
|
|
2916
2916
|
}
|
|
2917
2917
|
},
|
|
2918
2918
|
"compositePrimaryKeys": {},
|
|
@@ -3022,9 +3022,9 @@
|
|
|
3022
3022
|
}
|
|
3023
3023
|
],
|
|
3024
3024
|
"isUnique": false,
|
|
3025
|
-
"
|
|
3025
|
+
"with": {},
|
|
3026
3026
|
"method": "btree",
|
|
3027
|
-
"
|
|
3027
|
+
"concurrently": false
|
|
3028
3028
|
},
|
|
3029
3029
|
"conversations_updated_at_idx": {
|
|
3030
3030
|
"name": "conversations_updated_at_idx",
|
|
@@ -3037,9 +3037,9 @@
|
|
|
3037
3037
|
}
|
|
3038
3038
|
],
|
|
3039
3039
|
"isUnique": false,
|
|
3040
|
-
"
|
|
3040
|
+
"with": {},
|
|
3041
3041
|
"method": "btree",
|
|
3042
|
-
"
|
|
3042
|
+
"concurrently": false
|
|
3043
3043
|
}
|
|
3044
3044
|
},
|
|
3045
3045
|
"foreignKeys": {},
|
|
@@ -3161,9 +3161,9 @@
|
|
|
3161
3161
|
}
|
|
3162
3162
|
],
|
|
3163
3163
|
"isUnique": false,
|
|
3164
|
-
"
|
|
3164
|
+
"with": {},
|
|
3165
3165
|
"method": "btree",
|
|
3166
|
-
"
|
|
3166
|
+
"concurrently": false
|
|
3167
3167
|
},
|
|
3168
3168
|
"dead_letter_events_event_type_idx": {
|
|
3169
3169
|
"name": "dead_letter_events_event_type_idx",
|
|
@@ -3176,9 +3176,9 @@
|
|
|
3176
3176
|
}
|
|
3177
3177
|
],
|
|
3178
3178
|
"isUnique": false,
|
|
3179
|
-
"
|
|
3179
|
+
"with": {},
|
|
3180
3180
|
"method": "btree",
|
|
3181
|
-
"
|
|
3181
|
+
"concurrently": false
|
|
3182
3182
|
},
|
|
3183
3183
|
"dead_letter_events_status_idx": {
|
|
3184
3184
|
"name": "dead_letter_events_status_idx",
|
|
@@ -3191,9 +3191,9 @@
|
|
|
3191
3191
|
}
|
|
3192
3192
|
],
|
|
3193
3193
|
"isUnique": false,
|
|
3194
|
-
"
|
|
3194
|
+
"with": {},
|
|
3195
3195
|
"method": "btree",
|
|
3196
|
-
"
|
|
3196
|
+
"concurrently": false
|
|
3197
3197
|
},
|
|
3198
3198
|
"dead_letter_events_created_at_idx": {
|
|
3199
3199
|
"name": "dead_letter_events_created_at_idx",
|
|
@@ -3206,9 +3206,9 @@
|
|
|
3206
3206
|
}
|
|
3207
3207
|
],
|
|
3208
3208
|
"isUnique": false,
|
|
3209
|
-
"
|
|
3209
|
+
"with": {},
|
|
3210
3210
|
"method": "btree",
|
|
3211
|
-
"
|
|
3211
|
+
"concurrently": false
|
|
3212
3212
|
},
|
|
3213
3213
|
"dead_letter_events_next_retry_idx": {
|
|
3214
3214
|
"name": "dead_letter_events_next_retry_idx",
|
|
@@ -3221,9 +3221,9 @@
|
|
|
3221
3221
|
}
|
|
3222
3222
|
],
|
|
3223
3223
|
"isUnique": false,
|
|
3224
|
-
"
|
|
3224
|
+
"with": {},
|
|
3225
3225
|
"method": "btree",
|
|
3226
|
-
"
|
|
3226
|
+
"concurrently": false
|
|
3227
3227
|
}
|
|
3228
3228
|
},
|
|
3229
3229
|
"foreignKeys": {},
|
|
@@ -3332,9 +3332,9 @@
|
|
|
3332
3332
|
}
|
|
3333
3333
|
],
|
|
3334
3334
|
"isUnique": false,
|
|
3335
|
-
"
|
|
3335
|
+
"with": {},
|
|
3336
3336
|
"method": "btree",
|
|
3337
|
-
"
|
|
3337
|
+
"concurrently": false
|
|
3338
3338
|
},
|
|
3339
3339
|
"event_payloads_event_type_idx": {
|
|
3340
3340
|
"name": "event_payloads_event_type_idx",
|
|
@@ -3347,9 +3347,9 @@
|
|
|
3347
3347
|
}
|
|
3348
3348
|
],
|
|
3349
3349
|
"isUnique": false,
|
|
3350
|
-
"
|
|
3350
|
+
"with": {},
|
|
3351
3351
|
"method": "btree",
|
|
3352
|
-
"
|
|
3352
|
+
"concurrently": false
|
|
3353
3353
|
},
|
|
3354
3354
|
"event_payloads_stage_idx": {
|
|
3355
3355
|
"name": "event_payloads_stage_idx",
|
|
@@ -3362,9 +3362,9 @@
|
|
|
3362
3362
|
}
|
|
3363
3363
|
],
|
|
3364
3364
|
"isUnique": false,
|
|
3365
|
-
"
|
|
3365
|
+
"with": {},
|
|
3366
3366
|
"method": "btree",
|
|
3367
|
-
"
|
|
3367
|
+
"concurrently": false
|
|
3368
3368
|
},
|
|
3369
3369
|
"event_payloads_timestamp_idx": {
|
|
3370
3370
|
"name": "event_payloads_timestamp_idx",
|
|
@@ -3377,9 +3377,9 @@
|
|
|
3377
3377
|
}
|
|
3378
3378
|
],
|
|
3379
3379
|
"isUnique": false,
|
|
3380
|
-
"
|
|
3380
|
+
"with": {},
|
|
3381
3381
|
"method": "btree",
|
|
3382
|
-
"
|
|
3382
|
+
"concurrently": false
|
|
3383
3383
|
},
|
|
3384
3384
|
"event_payloads_deleted_at_idx": {
|
|
3385
3385
|
"name": "event_payloads_deleted_at_idx",
|
|
@@ -3392,9 +3392,9 @@
|
|
|
3392
3392
|
}
|
|
3393
3393
|
],
|
|
3394
3394
|
"isUnique": false,
|
|
3395
|
-
"
|
|
3395
|
+
"with": {},
|
|
3396
3396
|
"method": "btree",
|
|
3397
|
-
"
|
|
3397
|
+
"concurrently": false
|
|
3398
3398
|
},
|
|
3399
3399
|
"event_payloads_event_stage_idx": {
|
|
3400
3400
|
"name": "event_payloads_event_stage_idx",
|
|
@@ -3413,9 +3413,9 @@
|
|
|
3413
3413
|
}
|
|
3414
3414
|
],
|
|
3415
3415
|
"isUnique": false,
|
|
3416
|
-
"
|
|
3416
|
+
"with": {},
|
|
3417
3417
|
"method": "btree",
|
|
3418
|
-
"
|
|
3418
|
+
"concurrently": false
|
|
3419
3419
|
}
|
|
3420
3420
|
},
|
|
3421
3421
|
"foreignKeys": {},
|
|
@@ -3532,9 +3532,9 @@
|
|
|
3532
3532
|
}
|
|
3533
3533
|
],
|
|
3534
3534
|
"isUnique": true,
|
|
3535
|
-
"
|
|
3535
|
+
"with": {},
|
|
3536
3536
|
"method": "btree",
|
|
3537
|
-
"
|
|
3537
|
+
"concurrently": false
|
|
3538
3538
|
},
|
|
3539
3539
|
"global_settings_category_idx": {
|
|
3540
3540
|
"name": "global_settings_category_idx",
|
|
@@ -3547,9 +3547,9 @@
|
|
|
3547
3547
|
}
|
|
3548
3548
|
],
|
|
3549
3549
|
"isUnique": false,
|
|
3550
|
-
"
|
|
3550
|
+
"with": {},
|
|
3551
3551
|
"method": "btree",
|
|
3552
|
-
"
|
|
3552
|
+
"concurrently": false
|
|
3553
3553
|
}
|
|
3554
3554
|
},
|
|
3555
3555
|
"foreignKeys": {},
|
|
@@ -3557,8 +3557,8 @@
|
|
|
3557
3557
|
"uniqueConstraints": {
|
|
3558
3558
|
"global_settings_key_unique": {
|
|
3559
3559
|
"name": "global_settings_key_unique",
|
|
3560
|
-
"
|
|
3561
|
-
"
|
|
3560
|
+
"columns": ["key"],
|
|
3561
|
+
"nullsNotDistinct": false
|
|
3562
3562
|
}
|
|
3563
3563
|
},
|
|
3564
3564
|
"policies": {},
|
|
@@ -4051,6 +4051,13 @@
|
|
|
4051
4051
|
"primaryKey": false,
|
|
4052
4052
|
"notNull": false
|
|
4053
4053
|
},
|
|
4054
|
+
"agent_stalled_timeout_ms": {
|
|
4055
|
+
"name": "agent_stalled_timeout_ms",
|
|
4056
|
+
"type": "integer",
|
|
4057
|
+
"primaryKey": false,
|
|
4058
|
+
"notNull": true,
|
|
4059
|
+
"default": 600000
|
|
4060
|
+
},
|
|
4054
4061
|
"agent_chain_to_instance_id": {
|
|
4055
4062
|
"name": "agent_chain_to_instance_id",
|
|
4056
4063
|
"type": "uuid",
|
|
@@ -4091,9 +4098,9 @@
|
|
|
4091
4098
|
}
|
|
4092
4099
|
],
|
|
4093
4100
|
"isUnique": true,
|
|
4094
|
-
"
|
|
4101
|
+
"with": {},
|
|
4095
4102
|
"method": "btree",
|
|
4096
|
-
"
|
|
4103
|
+
"concurrently": false
|
|
4097
4104
|
},
|
|
4098
4105
|
"instances_channel_idx": {
|
|
4099
4106
|
"name": "instances_channel_idx",
|
|
@@ -4106,9 +4113,9 @@
|
|
|
4106
4113
|
}
|
|
4107
4114
|
],
|
|
4108
4115
|
"isUnique": false,
|
|
4109
|
-
"
|
|
4116
|
+
"with": {},
|
|
4110
4117
|
"method": "btree",
|
|
4111
|
-
"
|
|
4118
|
+
"concurrently": false
|
|
4112
4119
|
},
|
|
4113
4120
|
"instances_is_active_idx": {
|
|
4114
4121
|
"name": "instances_is_active_idx",
|
|
@@ -4121,9 +4128,9 @@
|
|
|
4121
4128
|
}
|
|
4122
4129
|
],
|
|
4123
4130
|
"isUnique": false,
|
|
4124
|
-
"
|
|
4131
|
+
"with": {},
|
|
4125
4132
|
"method": "btree",
|
|
4126
|
-
"
|
|
4133
|
+
"concurrently": false
|
|
4127
4134
|
},
|
|
4128
4135
|
"instances_is_default_idx": {
|
|
4129
4136
|
"name": "instances_is_default_idx",
|
|
@@ -4136,9 +4143,9 @@
|
|
|
4136
4143
|
}
|
|
4137
4144
|
],
|
|
4138
4145
|
"isUnique": false,
|
|
4139
|
-
"
|
|
4146
|
+
"with": {},
|
|
4140
4147
|
"method": "btree",
|
|
4141
|
-
"
|
|
4148
|
+
"concurrently": false
|
|
4142
4149
|
},
|
|
4143
4150
|
"instances_agent_id_idx": {
|
|
4144
4151
|
"name": "instances_agent_id_idx",
|
|
@@ -4151,37 +4158,37 @@
|
|
|
4151
4158
|
}
|
|
4152
4159
|
],
|
|
4153
4160
|
"isUnique": false,
|
|
4154
|
-
"
|
|
4161
|
+
"with": {},
|
|
4155
4162
|
"method": "btree",
|
|
4156
|
-
"
|
|
4163
|
+
"concurrently": false
|
|
4157
4164
|
}
|
|
4158
4165
|
},
|
|
4159
4166
|
"foreignKeys": {
|
|
4160
4167
|
"instances_agent_id_agents_id_fk": {
|
|
4161
4168
|
"name": "instances_agent_id_agents_id_fk",
|
|
4162
4169
|
"tableFrom": "instances",
|
|
4163
|
-
"tableTo": "agents",
|
|
4164
4170
|
"columnsFrom": ["agent_id"],
|
|
4171
|
+
"tableTo": "agents",
|
|
4165
4172
|
"columnsTo": ["id"],
|
|
4166
|
-
"
|
|
4167
|
-
"
|
|
4173
|
+
"onUpdate": "no action",
|
|
4174
|
+
"onDelete": "set null"
|
|
4168
4175
|
},
|
|
4169
4176
|
"instances_agent_chain_to_instance_id_instances_id_fk": {
|
|
4170
4177
|
"name": "instances_agent_chain_to_instance_id_instances_id_fk",
|
|
4171
4178
|
"tableFrom": "instances",
|
|
4172
|
-
"tableTo": "instances",
|
|
4173
4179
|
"columnsFrom": ["agent_chain_to_instance_id"],
|
|
4180
|
+
"tableTo": "instances",
|
|
4174
4181
|
"columnsTo": ["id"],
|
|
4175
|
-
"
|
|
4176
|
-
"
|
|
4182
|
+
"onUpdate": "no action",
|
|
4183
|
+
"onDelete": "set null"
|
|
4177
4184
|
}
|
|
4178
4185
|
},
|
|
4179
4186
|
"compositePrimaryKeys": {},
|
|
4180
4187
|
"uniqueConstraints": {
|
|
4181
4188
|
"instances_name_unique": {
|
|
4182
4189
|
"name": "instances_name_unique",
|
|
4183
|
-
"
|
|
4184
|
-
"
|
|
4190
|
+
"columns": ["name"],
|
|
4191
|
+
"nullsNotDistinct": false
|
|
4185
4192
|
}
|
|
4186
4193
|
},
|
|
4187
4194
|
"policies": {},
|
|
@@ -4296,9 +4303,9 @@
|
|
|
4296
4303
|
}
|
|
4297
4304
|
],
|
|
4298
4305
|
"isUnique": false,
|
|
4299
|
-
"
|
|
4306
|
+
"with": {},
|
|
4300
4307
|
"method": "btree",
|
|
4301
|
-
"
|
|
4308
|
+
"concurrently": false
|
|
4302
4309
|
},
|
|
4303
4310
|
"media_content_media_idx": {
|
|
4304
4311
|
"name": "media_content_media_idx",
|
|
@@ -4311,9 +4318,9 @@
|
|
|
4311
4318
|
}
|
|
4312
4319
|
],
|
|
4313
4320
|
"isUnique": false,
|
|
4314
|
-
"
|
|
4321
|
+
"with": {},
|
|
4315
4322
|
"method": "btree",
|
|
4316
|
-
"
|
|
4323
|
+
"concurrently": false
|
|
4317
4324
|
},
|
|
4318
4325
|
"media_content_batch_job_idx": {
|
|
4319
4326
|
"name": "media_content_batch_job_idx",
|
|
@@ -4326,29 +4333,29 @@
|
|
|
4326
4333
|
}
|
|
4327
4334
|
],
|
|
4328
4335
|
"isUnique": false,
|
|
4329
|
-
"
|
|
4336
|
+
"with": {},
|
|
4330
4337
|
"method": "btree",
|
|
4331
|
-
"
|
|
4338
|
+
"concurrently": false
|
|
4332
4339
|
}
|
|
4333
4340
|
},
|
|
4334
4341
|
"foreignKeys": {
|
|
4335
4342
|
"media_content_event_id_omni_events_id_fk": {
|
|
4336
4343
|
"name": "media_content_event_id_omni_events_id_fk",
|
|
4337
4344
|
"tableFrom": "media_content",
|
|
4338
|
-
"tableTo": "omni_events",
|
|
4339
4345
|
"columnsFrom": ["event_id"],
|
|
4346
|
+
"tableTo": "omni_events",
|
|
4340
4347
|
"columnsTo": ["id"],
|
|
4341
|
-
"
|
|
4342
|
-
"
|
|
4348
|
+
"onUpdate": "no action",
|
|
4349
|
+
"onDelete": "cascade"
|
|
4343
4350
|
},
|
|
4344
4351
|
"media_content_batch_job_id_batch_jobs_id_fk": {
|
|
4345
4352
|
"name": "media_content_batch_job_id_batch_jobs_id_fk",
|
|
4346
4353
|
"tableFrom": "media_content",
|
|
4347
|
-
"tableTo": "batch_jobs",
|
|
4348
4354
|
"columnsFrom": ["batch_job_id"],
|
|
4355
|
+
"tableTo": "batch_jobs",
|
|
4349
4356
|
"columnsTo": ["id"],
|
|
4350
|
-
"
|
|
4351
|
-
"
|
|
4357
|
+
"onUpdate": "no action",
|
|
4358
|
+
"onDelete": "set null"
|
|
4352
4359
|
}
|
|
4353
4360
|
},
|
|
4354
4361
|
"compositePrimaryKeys": {},
|
|
@@ -4667,9 +4674,9 @@
|
|
|
4667
4674
|
}
|
|
4668
4675
|
],
|
|
4669
4676
|
"isUnique": true,
|
|
4670
|
-
"
|
|
4677
|
+
"with": {},
|
|
4671
4678
|
"method": "btree",
|
|
4672
|
-
"
|
|
4679
|
+
"concurrently": false
|
|
4673
4680
|
},
|
|
4674
4681
|
"messages_chat_idx": {
|
|
4675
4682
|
"name": "messages_chat_idx",
|
|
@@ -4682,9 +4689,9 @@
|
|
|
4682
4689
|
}
|
|
4683
4690
|
],
|
|
4684
4691
|
"isUnique": false,
|
|
4685
|
-
"
|
|
4692
|
+
"with": {},
|
|
4686
4693
|
"method": "btree",
|
|
4687
|
-
"
|
|
4694
|
+
"concurrently": false
|
|
4688
4695
|
},
|
|
4689
4696
|
"messages_sender_person_idx": {
|
|
4690
4697
|
"name": "messages_sender_person_idx",
|
|
@@ -4697,9 +4704,9 @@
|
|
|
4697
4704
|
}
|
|
4698
4705
|
],
|
|
4699
4706
|
"isUnique": false,
|
|
4700
|
-
"
|
|
4707
|
+
"with": {},
|
|
4701
4708
|
"method": "btree",
|
|
4702
|
-
"
|
|
4709
|
+
"concurrently": false
|
|
4703
4710
|
},
|
|
4704
4711
|
"messages_sender_platform_identity_idx": {
|
|
4705
4712
|
"name": "messages_sender_platform_identity_idx",
|
|
@@ -4712,9 +4719,9 @@
|
|
|
4712
4719
|
}
|
|
4713
4720
|
],
|
|
4714
4721
|
"isUnique": false,
|
|
4715
|
-
"
|
|
4722
|
+
"with": {},
|
|
4716
4723
|
"method": "btree",
|
|
4717
|
-
"
|
|
4724
|
+
"concurrently": false
|
|
4718
4725
|
},
|
|
4719
4726
|
"messages_sender_agent_idx": {
|
|
4720
4727
|
"name": "messages_sender_agent_idx",
|
|
@@ -4727,9 +4734,9 @@
|
|
|
4727
4734
|
}
|
|
4728
4735
|
],
|
|
4729
4736
|
"isUnique": false,
|
|
4730
|
-
"
|
|
4737
|
+
"with": {},
|
|
4731
4738
|
"method": "btree",
|
|
4732
|
-
"
|
|
4739
|
+
"concurrently": false
|
|
4733
4740
|
},
|
|
4734
4741
|
"messages_source_idx": {
|
|
4735
4742
|
"name": "messages_source_idx",
|
|
@@ -4742,9 +4749,9 @@
|
|
|
4742
4749
|
}
|
|
4743
4750
|
],
|
|
4744
4751
|
"isUnique": false,
|
|
4745
|
-
"
|
|
4752
|
+
"with": {},
|
|
4746
4753
|
"method": "btree",
|
|
4747
|
-
"
|
|
4754
|
+
"concurrently": false
|
|
4748
4755
|
},
|
|
4749
4756
|
"messages_type_idx": {
|
|
4750
4757
|
"name": "messages_type_idx",
|
|
@@ -4757,9 +4764,9 @@
|
|
|
4757
4764
|
}
|
|
4758
4765
|
],
|
|
4759
4766
|
"isUnique": false,
|
|
4760
|
-
"
|
|
4767
|
+
"with": {},
|
|
4761
4768
|
"method": "btree",
|
|
4762
|
-
"
|
|
4769
|
+
"concurrently": false
|
|
4763
4770
|
},
|
|
4764
4771
|
"messages_status_idx": {
|
|
4765
4772
|
"name": "messages_status_idx",
|
|
@@ -4772,9 +4779,9 @@
|
|
|
4772
4779
|
}
|
|
4773
4780
|
],
|
|
4774
4781
|
"isUnique": false,
|
|
4775
|
-
"
|
|
4782
|
+
"with": {},
|
|
4776
4783
|
"method": "btree",
|
|
4777
|
-
"
|
|
4784
|
+
"concurrently": false
|
|
4778
4785
|
},
|
|
4779
4786
|
"messages_platform_timestamp_idx": {
|
|
4780
4787
|
"name": "messages_platform_timestamp_idx",
|
|
@@ -4787,9 +4794,9 @@
|
|
|
4787
4794
|
}
|
|
4788
4795
|
],
|
|
4789
4796
|
"isUnique": false,
|
|
4790
|
-
"
|
|
4797
|
+
"with": {},
|
|
4791
4798
|
"method": "btree",
|
|
4792
|
-
"
|
|
4799
|
+
"concurrently": false
|
|
4793
4800
|
},
|
|
4794
4801
|
"messages_reply_to_idx": {
|
|
4795
4802
|
"name": "messages_reply_to_idx",
|
|
@@ -4802,9 +4809,9 @@
|
|
|
4802
4809
|
}
|
|
4803
4810
|
],
|
|
4804
4811
|
"isUnique": false,
|
|
4805
|
-
"
|
|
4812
|
+
"with": {},
|
|
4806
4813
|
"method": "btree",
|
|
4807
|
-
"
|
|
4814
|
+
"concurrently": false
|
|
4808
4815
|
},
|
|
4809
4816
|
"messages_reply_to_external_idx": {
|
|
4810
4817
|
"name": "messages_reply_to_external_idx",
|
|
@@ -4829,9 +4836,9 @@
|
|
|
4829
4836
|
}
|
|
4830
4837
|
],
|
|
4831
4838
|
"isUnique": false,
|
|
4832
|
-
"
|
|
4839
|
+
"with": {},
|
|
4833
4840
|
"method": "btree",
|
|
4834
|
-
"
|
|
4841
|
+
"concurrently": false
|
|
4835
4842
|
},
|
|
4836
4843
|
"messages_has_media_idx": {
|
|
4837
4844
|
"name": "messages_has_media_idx",
|
|
@@ -4844,9 +4851,9 @@
|
|
|
4844
4851
|
}
|
|
4845
4852
|
],
|
|
4846
4853
|
"isUnique": false,
|
|
4847
|
-
"
|
|
4854
|
+
"with": {},
|
|
4848
4855
|
"method": "btree",
|
|
4849
|
-
"
|
|
4856
|
+
"concurrently": false
|
|
4850
4857
|
},
|
|
4851
4858
|
"messages_original_event_idx": {
|
|
4852
4859
|
"name": "messages_original_event_idx",
|
|
@@ -4859,47 +4866,47 @@
|
|
|
4859
4866
|
}
|
|
4860
4867
|
],
|
|
4861
4868
|
"isUnique": false,
|
|
4862
|
-
"
|
|
4869
|
+
"with": {},
|
|
4863
4870
|
"method": "btree",
|
|
4864
|
-
"
|
|
4871
|
+
"concurrently": false
|
|
4865
4872
|
}
|
|
4866
4873
|
},
|
|
4867
4874
|
"foreignKeys": {
|
|
4868
4875
|
"messages_chat_id_chats_id_fk": {
|
|
4869
4876
|
"name": "messages_chat_id_chats_id_fk",
|
|
4870
4877
|
"tableFrom": "messages",
|
|
4871
|
-
"tableTo": "chats",
|
|
4872
4878
|
"columnsFrom": ["chat_id"],
|
|
4879
|
+
"tableTo": "chats",
|
|
4873
4880
|
"columnsTo": ["id"],
|
|
4874
|
-
"
|
|
4875
|
-
"
|
|
4881
|
+
"onUpdate": "no action",
|
|
4882
|
+
"onDelete": "cascade"
|
|
4876
4883
|
},
|
|
4877
4884
|
"messages_sender_person_id_persons_id_fk": {
|
|
4878
4885
|
"name": "messages_sender_person_id_persons_id_fk",
|
|
4879
4886
|
"tableFrom": "messages",
|
|
4880
|
-
"tableTo": "persons",
|
|
4881
4887
|
"columnsFrom": ["sender_person_id"],
|
|
4888
|
+
"tableTo": "persons",
|
|
4882
4889
|
"columnsTo": ["id"],
|
|
4883
|
-
"
|
|
4884
|
-
"
|
|
4890
|
+
"onUpdate": "no action",
|
|
4891
|
+
"onDelete": "set null"
|
|
4885
4892
|
},
|
|
4886
4893
|
"messages_sender_platform_identity_id_platform_identities_id_fk": {
|
|
4887
4894
|
"name": "messages_sender_platform_identity_id_platform_identities_id_fk",
|
|
4888
4895
|
"tableFrom": "messages",
|
|
4889
|
-
"tableTo": "platform_identities",
|
|
4890
4896
|
"columnsFrom": ["sender_platform_identity_id"],
|
|
4897
|
+
"tableTo": "platform_identities",
|
|
4891
4898
|
"columnsTo": ["id"],
|
|
4892
|
-
"
|
|
4893
|
-
"
|
|
4899
|
+
"onUpdate": "no action",
|
|
4900
|
+
"onDelete": "set null"
|
|
4894
4901
|
},
|
|
4895
4902
|
"messages_sender_agent_id_agents_id_fk": {
|
|
4896
4903
|
"name": "messages_sender_agent_id_agents_id_fk",
|
|
4897
4904
|
"tableFrom": "messages",
|
|
4898
|
-
"tableTo": "agents",
|
|
4899
4905
|
"columnsFrom": ["sender_agent_id"],
|
|
4906
|
+
"tableTo": "agents",
|
|
4900
4907
|
"columnsTo": ["id"],
|
|
4901
|
-
"
|
|
4902
|
-
"
|
|
4908
|
+
"onUpdate": "no action",
|
|
4909
|
+
"onDelete": "set null"
|
|
4903
4910
|
}
|
|
4904
4911
|
},
|
|
4905
4912
|
"compositePrimaryKeys": {},
|
|
@@ -5170,9 +5177,9 @@
|
|
|
5170
5177
|
}
|
|
5171
5178
|
],
|
|
5172
5179
|
"isUnique": false,
|
|
5173
|
-
"
|
|
5180
|
+
"with": {},
|
|
5174
5181
|
"method": "btree",
|
|
5175
|
-
"
|
|
5182
|
+
"concurrently": false
|
|
5176
5183
|
},
|
|
5177
5184
|
"omni_events_channel_idx": {
|
|
5178
5185
|
"name": "omni_events_channel_idx",
|
|
@@ -5185,9 +5192,9 @@
|
|
|
5185
5192
|
}
|
|
5186
5193
|
],
|
|
5187
5194
|
"isUnique": false,
|
|
5188
|
-
"
|
|
5195
|
+
"with": {},
|
|
5189
5196
|
"method": "btree",
|
|
5190
|
-
"
|
|
5197
|
+
"concurrently": false
|
|
5191
5198
|
},
|
|
5192
5199
|
"omni_events_instance_idx": {
|
|
5193
5200
|
"name": "omni_events_instance_idx",
|
|
@@ -5200,9 +5207,9 @@
|
|
|
5200
5207
|
}
|
|
5201
5208
|
],
|
|
5202
5209
|
"isUnique": false,
|
|
5203
|
-
"
|
|
5210
|
+
"with": {},
|
|
5204
5211
|
"method": "btree",
|
|
5205
|
-
"
|
|
5212
|
+
"concurrently": false
|
|
5206
5213
|
},
|
|
5207
5214
|
"omni_events_person_idx": {
|
|
5208
5215
|
"name": "omni_events_person_idx",
|
|
@@ -5215,9 +5222,9 @@
|
|
|
5215
5222
|
}
|
|
5216
5223
|
],
|
|
5217
5224
|
"isUnique": false,
|
|
5218
|
-
"
|
|
5225
|
+
"with": {},
|
|
5219
5226
|
"method": "btree",
|
|
5220
|
-
"
|
|
5227
|
+
"concurrently": false
|
|
5221
5228
|
},
|
|
5222
5229
|
"omni_events_type_idx": {
|
|
5223
5230
|
"name": "omni_events_type_idx",
|
|
@@ -5230,9 +5237,9 @@
|
|
|
5230
5237
|
}
|
|
5231
5238
|
],
|
|
5232
5239
|
"isUnique": false,
|
|
5233
|
-
"
|
|
5240
|
+
"with": {},
|
|
5234
5241
|
"method": "btree",
|
|
5235
|
-
"
|
|
5242
|
+
"concurrently": false
|
|
5236
5243
|
},
|
|
5237
5244
|
"omni_events_status_idx": {
|
|
5238
5245
|
"name": "omni_events_status_idx",
|
|
@@ -5245,9 +5252,9 @@
|
|
|
5245
5252
|
}
|
|
5246
5253
|
],
|
|
5247
5254
|
"isUnique": false,
|
|
5248
|
-
"
|
|
5255
|
+
"with": {},
|
|
5249
5256
|
"method": "btree",
|
|
5250
|
-
"
|
|
5257
|
+
"concurrently": false
|
|
5251
5258
|
},
|
|
5252
5259
|
"omni_events_received_at_idx": {
|
|
5253
5260
|
"name": "omni_events_received_at_idx",
|
|
@@ -5260,9 +5267,9 @@
|
|
|
5260
5267
|
}
|
|
5261
5268
|
],
|
|
5262
5269
|
"isUnique": false,
|
|
5263
|
-
"
|
|
5270
|
+
"with": {},
|
|
5264
5271
|
"method": "btree",
|
|
5265
|
-
"
|
|
5272
|
+
"concurrently": false
|
|
5266
5273
|
},
|
|
5267
5274
|
"omni_events_chat_id_idx": {
|
|
5268
5275
|
"name": "omni_events_chat_id_idx",
|
|
@@ -5275,9 +5282,9 @@
|
|
|
5275
5282
|
}
|
|
5276
5283
|
],
|
|
5277
5284
|
"isUnique": false,
|
|
5278
|
-
"
|
|
5285
|
+
"with": {},
|
|
5279
5286
|
"method": "btree",
|
|
5280
|
-
"
|
|
5287
|
+
"concurrently": false
|
|
5281
5288
|
},
|
|
5282
5289
|
"omni_events_canonical_chat_idx": {
|
|
5283
5290
|
"name": "omni_events_canonical_chat_idx",
|
|
@@ -5290,9 +5297,9 @@
|
|
|
5290
5297
|
}
|
|
5291
5298
|
],
|
|
5292
5299
|
"isUnique": false,
|
|
5293
|
-
"
|
|
5300
|
+
"with": {},
|
|
5294
5301
|
"method": "btree",
|
|
5295
|
-
"
|
|
5302
|
+
"concurrently": false
|
|
5296
5303
|
},
|
|
5297
5304
|
"omni_events_agent_id_idx": {
|
|
5298
5305
|
"name": "omni_events_agent_id_idx",
|
|
@@ -5305,9 +5312,9 @@
|
|
|
5305
5312
|
}
|
|
5306
5313
|
],
|
|
5307
5314
|
"isUnique": false,
|
|
5308
|
-
"
|
|
5315
|
+
"with": {},
|
|
5309
5316
|
"method": "btree",
|
|
5310
|
-
"
|
|
5317
|
+
"concurrently": false
|
|
5311
5318
|
},
|
|
5312
5319
|
"omni_events_chat_uuid_idx": {
|
|
5313
5320
|
"name": "omni_events_chat_uuid_idx",
|
|
@@ -5320,9 +5327,9 @@
|
|
|
5320
5327
|
}
|
|
5321
5328
|
],
|
|
5322
5329
|
"isUnique": false,
|
|
5323
|
-
"
|
|
5330
|
+
"with": {},
|
|
5324
5331
|
"method": "btree",
|
|
5325
|
-
"
|
|
5332
|
+
"concurrently": false
|
|
5326
5333
|
},
|
|
5327
5334
|
"omni_events_conversation_id_idx": {
|
|
5328
5335
|
"name": "omni_events_conversation_id_idx",
|
|
@@ -5335,65 +5342,65 @@
|
|
|
5335
5342
|
}
|
|
5336
5343
|
],
|
|
5337
5344
|
"isUnique": false,
|
|
5338
|
-
"
|
|
5345
|
+
"with": {},
|
|
5339
5346
|
"method": "btree",
|
|
5340
|
-
"
|
|
5347
|
+
"concurrently": false
|
|
5341
5348
|
}
|
|
5342
5349
|
},
|
|
5343
5350
|
"foreignKeys": {
|
|
5344
5351
|
"omni_events_instance_id_instances_id_fk": {
|
|
5345
5352
|
"name": "omni_events_instance_id_instances_id_fk",
|
|
5346
5353
|
"tableFrom": "omni_events",
|
|
5347
|
-
"tableTo": "instances",
|
|
5348
5354
|
"columnsFrom": ["instance_id"],
|
|
5355
|
+
"tableTo": "instances",
|
|
5349
5356
|
"columnsTo": ["id"],
|
|
5350
|
-
"
|
|
5351
|
-
"
|
|
5357
|
+
"onUpdate": "no action",
|
|
5358
|
+
"onDelete": "set null"
|
|
5352
5359
|
},
|
|
5353
5360
|
"omni_events_person_id_persons_id_fk": {
|
|
5354
5361
|
"name": "omni_events_person_id_persons_id_fk",
|
|
5355
5362
|
"tableFrom": "omni_events",
|
|
5356
|
-
"tableTo": "persons",
|
|
5357
5363
|
"columnsFrom": ["person_id"],
|
|
5364
|
+
"tableTo": "persons",
|
|
5358
5365
|
"columnsTo": ["id"],
|
|
5359
|
-
"
|
|
5360
|
-
"
|
|
5366
|
+
"onUpdate": "no action",
|
|
5367
|
+
"onDelete": "set null"
|
|
5361
5368
|
},
|
|
5362
5369
|
"omni_events_platform_identity_id_platform_identities_id_fk": {
|
|
5363
5370
|
"name": "omni_events_platform_identity_id_platform_identities_id_fk",
|
|
5364
5371
|
"tableFrom": "omni_events",
|
|
5365
|
-
"tableTo": "platform_identities",
|
|
5366
5372
|
"columnsFrom": ["platform_identity_id"],
|
|
5373
|
+
"tableTo": "platform_identities",
|
|
5367
5374
|
"columnsTo": ["id"],
|
|
5368
|
-
"
|
|
5369
|
-
"
|
|
5375
|
+
"onUpdate": "no action",
|
|
5376
|
+
"onDelete": "set null"
|
|
5370
5377
|
},
|
|
5371
5378
|
"omni_events_chat_uuid_chats_id_fk": {
|
|
5372
5379
|
"name": "omni_events_chat_uuid_chats_id_fk",
|
|
5373
5380
|
"tableFrom": "omni_events",
|
|
5374
|
-
"tableTo": "chats",
|
|
5375
5381
|
"columnsFrom": ["chat_uuid"],
|
|
5382
|
+
"tableTo": "chats",
|
|
5376
5383
|
"columnsTo": ["id"],
|
|
5377
|
-
"
|
|
5378
|
-
"
|
|
5384
|
+
"onUpdate": "no action",
|
|
5385
|
+
"onDelete": "set null"
|
|
5379
5386
|
},
|
|
5380
5387
|
"omni_events_agent_id_agents_id_fk": {
|
|
5381
5388
|
"name": "omni_events_agent_id_agents_id_fk",
|
|
5382
5389
|
"tableFrom": "omni_events",
|
|
5383
|
-
"tableTo": "agents",
|
|
5384
5390
|
"columnsFrom": ["agent_id"],
|
|
5391
|
+
"tableTo": "agents",
|
|
5385
5392
|
"columnsTo": ["id"],
|
|
5386
|
-
"
|
|
5387
|
-
"
|
|
5393
|
+
"onUpdate": "no action",
|
|
5394
|
+
"onDelete": "set null"
|
|
5388
5395
|
},
|
|
5389
5396
|
"omni_events_conversation_id_conversations_id_fk": {
|
|
5390
5397
|
"name": "omni_events_conversation_id_conversations_id_fk",
|
|
5391
5398
|
"tableFrom": "omni_events",
|
|
5392
|
-
"tableTo": "conversations",
|
|
5393
5399
|
"columnsFrom": ["conversation_id"],
|
|
5400
|
+
"tableTo": "conversations",
|
|
5394
5401
|
"columnsTo": ["id"],
|
|
5395
|
-
"
|
|
5396
|
-
"
|
|
5402
|
+
"onUpdate": "no action",
|
|
5403
|
+
"onDelete": "set null"
|
|
5397
5404
|
}
|
|
5398
5405
|
},
|
|
5399
5406
|
"compositePrimaryKeys": {},
|
|
@@ -5527,9 +5534,9 @@
|
|
|
5527
5534
|
}
|
|
5528
5535
|
],
|
|
5529
5536
|
"isUnique": true,
|
|
5530
|
-
"
|
|
5537
|
+
"with": {},
|
|
5531
5538
|
"method": "btree",
|
|
5532
|
-
"
|
|
5539
|
+
"concurrently": false
|
|
5533
5540
|
},
|
|
5534
5541
|
"omni_groups_instance_idx": {
|
|
5535
5542
|
"name": "omni_groups_instance_idx",
|
|
@@ -5542,9 +5549,9 @@
|
|
|
5542
5549
|
}
|
|
5543
5550
|
],
|
|
5544
5551
|
"isUnique": false,
|
|
5545
|
-
"
|
|
5552
|
+
"with": {},
|
|
5546
5553
|
"method": "btree",
|
|
5547
|
-
"
|
|
5554
|
+
"concurrently": false
|
|
5548
5555
|
},
|
|
5549
5556
|
"omni_groups_channel_idx": {
|
|
5550
5557
|
"name": "omni_groups_channel_idx",
|
|
@@ -5557,9 +5564,9 @@
|
|
|
5557
5564
|
}
|
|
5558
5565
|
],
|
|
5559
5566
|
"isUnique": false,
|
|
5560
|
-
"
|
|
5567
|
+
"with": {},
|
|
5561
5568
|
"method": "btree",
|
|
5562
|
-
"
|
|
5569
|
+
"concurrently": false
|
|
5563
5570
|
},
|
|
5564
5571
|
"omni_groups_name_idx": {
|
|
5565
5572
|
"name": "omni_groups_name_idx",
|
|
@@ -5572,20 +5579,20 @@
|
|
|
5572
5579
|
}
|
|
5573
5580
|
],
|
|
5574
5581
|
"isUnique": false,
|
|
5575
|
-
"
|
|
5582
|
+
"with": {},
|
|
5576
5583
|
"method": "btree",
|
|
5577
|
-
"
|
|
5584
|
+
"concurrently": false
|
|
5578
5585
|
}
|
|
5579
5586
|
},
|
|
5580
5587
|
"foreignKeys": {
|
|
5581
5588
|
"omni_groups_instance_id_instances_id_fk": {
|
|
5582
5589
|
"name": "omni_groups_instance_id_instances_id_fk",
|
|
5583
5590
|
"tableFrom": "omni_groups",
|
|
5584
|
-
"tableTo": "instances",
|
|
5585
5591
|
"columnsFrom": ["instance_id"],
|
|
5592
|
+
"tableTo": "instances",
|
|
5586
5593
|
"columnsTo": ["id"],
|
|
5587
|
-
"
|
|
5588
|
-
"
|
|
5594
|
+
"onUpdate": "no action",
|
|
5595
|
+
"onDelete": "cascade"
|
|
5589
5596
|
}
|
|
5590
5597
|
},
|
|
5591
5598
|
"compositePrimaryKeys": {},
|
|
@@ -5680,9 +5687,9 @@
|
|
|
5680
5687
|
}
|
|
5681
5688
|
],
|
|
5682
5689
|
"isUnique": true,
|
|
5683
|
-
"
|
|
5690
|
+
"with": {},
|
|
5684
5691
|
"method": "btree",
|
|
5685
|
-
"
|
|
5692
|
+
"concurrently": false
|
|
5686
5693
|
}
|
|
5687
5694
|
},
|
|
5688
5695
|
"foreignKeys": {},
|
|
@@ -5690,8 +5697,8 @@
|
|
|
5690
5697
|
"uniqueConstraints": {
|
|
5691
5698
|
"payload_storage_config_event_type_unique": {
|
|
5692
5699
|
"name": "payload_storage_config_event_type_unique",
|
|
5693
|
-
"
|
|
5694
|
-
"
|
|
5700
|
+
"columns": ["event_type"],
|
|
5701
|
+
"nullsNotDistinct": false
|
|
5695
5702
|
}
|
|
5696
5703
|
},
|
|
5697
5704
|
"policies": {},
|
|
@@ -5766,9 +5773,9 @@
|
|
|
5766
5773
|
}
|
|
5767
5774
|
],
|
|
5768
5775
|
"isUnique": true,
|
|
5769
|
-
"
|
|
5776
|
+
"with": {},
|
|
5770
5777
|
"method": "btree",
|
|
5771
|
-
"
|
|
5778
|
+
"concurrently": false
|
|
5772
5779
|
},
|
|
5773
5780
|
"persons_email_idx": {
|
|
5774
5781
|
"name": "persons_email_idx",
|
|
@@ -5781,9 +5788,9 @@
|
|
|
5781
5788
|
}
|
|
5782
5789
|
],
|
|
5783
5790
|
"isUnique": false,
|
|
5784
|
-
"
|
|
5791
|
+
"with": {},
|
|
5785
5792
|
"method": "btree",
|
|
5786
|
-
"
|
|
5793
|
+
"concurrently": false
|
|
5787
5794
|
},
|
|
5788
5795
|
"persons_name_idx": {
|
|
5789
5796
|
"name": "persons_name_idx",
|
|
@@ -5796,9 +5803,9 @@
|
|
|
5796
5803
|
}
|
|
5797
5804
|
],
|
|
5798
5805
|
"isUnique": false,
|
|
5799
|
-
"
|
|
5806
|
+
"with": {},
|
|
5800
5807
|
"method": "btree",
|
|
5801
|
-
"
|
|
5808
|
+
"concurrently": false
|
|
5802
5809
|
}
|
|
5803
5810
|
},
|
|
5804
5811
|
"foreignKeys": {},
|
|
@@ -5933,9 +5940,9 @@
|
|
|
5933
5940
|
}
|
|
5934
5941
|
],
|
|
5935
5942
|
"isUnique": false,
|
|
5936
|
-
"
|
|
5943
|
+
"with": {},
|
|
5937
5944
|
"method": "btree",
|
|
5938
|
-
"
|
|
5945
|
+
"concurrently": false
|
|
5939
5946
|
},
|
|
5940
5947
|
"platform_identities_agent_idx": {
|
|
5941
5948
|
"name": "platform_identities_agent_idx",
|
|
@@ -5948,9 +5955,9 @@
|
|
|
5948
5955
|
}
|
|
5949
5956
|
],
|
|
5950
5957
|
"isUnique": false,
|
|
5951
|
-
"
|
|
5958
|
+
"with": {},
|
|
5952
5959
|
"method": "btree",
|
|
5953
|
-
"
|
|
5960
|
+
"concurrently": false
|
|
5954
5961
|
},
|
|
5955
5962
|
"platform_identities_channel_idx": {
|
|
5956
5963
|
"name": "platform_identities_channel_idx",
|
|
@@ -5963,9 +5970,9 @@
|
|
|
5963
5970
|
}
|
|
5964
5971
|
],
|
|
5965
5972
|
"isUnique": false,
|
|
5966
|
-
"
|
|
5973
|
+
"with": {},
|
|
5967
5974
|
"method": "btree",
|
|
5968
|
-
"
|
|
5975
|
+
"concurrently": false
|
|
5969
5976
|
},
|
|
5970
5977
|
"platform_identities_instance_idx": {
|
|
5971
5978
|
"name": "platform_identities_instance_idx",
|
|
@@ -5978,9 +5985,9 @@
|
|
|
5978
5985
|
}
|
|
5979
5986
|
],
|
|
5980
5987
|
"isUnique": false,
|
|
5981
|
-
"
|
|
5988
|
+
"with": {},
|
|
5982
5989
|
"method": "btree",
|
|
5983
|
-
"
|
|
5990
|
+
"concurrently": false
|
|
5984
5991
|
},
|
|
5985
5992
|
"platform_identities_platform_user_idx": {
|
|
5986
5993
|
"name": "platform_identities_platform_user_idx",
|
|
@@ -5993,9 +6000,9 @@
|
|
|
5993
6000
|
}
|
|
5994
6001
|
],
|
|
5995
6002
|
"isUnique": false,
|
|
5996
|
-
"
|
|
6003
|
+
"with": {},
|
|
5997
6004
|
"method": "btree",
|
|
5998
|
-
"
|
|
6005
|
+
"concurrently": false
|
|
5999
6006
|
},
|
|
6000
6007
|
"platform_identities_channel_user_idx": {
|
|
6001
6008
|
"name": "platform_identities_channel_user_idx",
|
|
@@ -6020,38 +6027,38 @@
|
|
|
6020
6027
|
}
|
|
6021
6028
|
],
|
|
6022
6029
|
"isUnique": true,
|
|
6023
|
-
"
|
|
6030
|
+
"with": {},
|
|
6024
6031
|
"method": "btree",
|
|
6025
|
-
"
|
|
6032
|
+
"concurrently": false
|
|
6026
6033
|
}
|
|
6027
6034
|
},
|
|
6028
6035
|
"foreignKeys": {
|
|
6029
6036
|
"platform_identities_person_id_persons_id_fk": {
|
|
6030
6037
|
"name": "platform_identities_person_id_persons_id_fk",
|
|
6031
6038
|
"tableFrom": "platform_identities",
|
|
6032
|
-
"tableTo": "persons",
|
|
6033
6039
|
"columnsFrom": ["person_id"],
|
|
6040
|
+
"tableTo": "persons",
|
|
6034
6041
|
"columnsTo": ["id"],
|
|
6035
|
-
"
|
|
6036
|
-
"
|
|
6042
|
+
"onUpdate": "no action",
|
|
6043
|
+
"onDelete": "cascade"
|
|
6037
6044
|
},
|
|
6038
6045
|
"platform_identities_agent_id_agents_id_fk": {
|
|
6039
6046
|
"name": "platform_identities_agent_id_agents_id_fk",
|
|
6040
6047
|
"tableFrom": "platform_identities",
|
|
6041
|
-
"tableTo": "agents",
|
|
6042
6048
|
"columnsFrom": ["agent_id"],
|
|
6049
|
+
"tableTo": "agents",
|
|
6043
6050
|
"columnsTo": ["id"],
|
|
6044
|
-
"
|
|
6045
|
-
"
|
|
6051
|
+
"onUpdate": "no action",
|
|
6052
|
+
"onDelete": "set null"
|
|
6046
6053
|
},
|
|
6047
6054
|
"platform_identities_instance_id_instances_id_fk": {
|
|
6048
6055
|
"name": "platform_identities_instance_id_instances_id_fk",
|
|
6049
6056
|
"tableFrom": "platform_identities",
|
|
6050
|
-
"tableTo": "instances",
|
|
6051
6057
|
"columnsFrom": ["instance_id"],
|
|
6058
|
+
"tableTo": "instances",
|
|
6052
6059
|
"columnsTo": ["id"],
|
|
6053
|
-
"
|
|
6054
|
-
"
|
|
6060
|
+
"onUpdate": "no action",
|
|
6061
|
+
"onDelete": "cascade"
|
|
6055
6062
|
}
|
|
6056
6063
|
},
|
|
6057
6064
|
"compositePrimaryKeys": {},
|
|
@@ -6133,9 +6140,9 @@
|
|
|
6133
6140
|
}
|
|
6134
6141
|
],
|
|
6135
6142
|
"isUnique": true,
|
|
6136
|
-
"
|
|
6143
|
+
"with": {},
|
|
6137
6144
|
"method": "btree",
|
|
6138
|
-
"
|
|
6145
|
+
"concurrently": false
|
|
6139
6146
|
},
|
|
6140
6147
|
"plugin_storage_plugin_idx": {
|
|
6141
6148
|
"name": "plugin_storage_plugin_idx",
|
|
@@ -6148,9 +6155,9 @@
|
|
|
6148
6155
|
}
|
|
6149
6156
|
],
|
|
6150
6157
|
"isUnique": false,
|
|
6151
|
-
"
|
|
6158
|
+
"with": {},
|
|
6152
6159
|
"method": "btree",
|
|
6153
|
-
"
|
|
6160
|
+
"concurrently": false
|
|
6154
6161
|
},
|
|
6155
6162
|
"plugin_storage_expires_at_idx": {
|
|
6156
6163
|
"name": "plugin_storage_expires_at_idx",
|
|
@@ -6163,9 +6170,9 @@
|
|
|
6163
6170
|
}
|
|
6164
6171
|
],
|
|
6165
6172
|
"isUnique": false,
|
|
6166
|
-
"
|
|
6173
|
+
"with": {},
|
|
6167
6174
|
"method": "btree",
|
|
6168
|
-
"
|
|
6175
|
+
"concurrently": false
|
|
6169
6176
|
}
|
|
6170
6177
|
},
|
|
6171
6178
|
"foreignKeys": {},
|
|
@@ -6236,9 +6243,9 @@
|
|
|
6236
6243
|
}
|
|
6237
6244
|
],
|
|
6238
6245
|
"isUnique": false,
|
|
6239
|
-
"
|
|
6246
|
+
"with": {},
|
|
6240
6247
|
"method": "btree",
|
|
6241
|
-
"
|
|
6248
|
+
"concurrently": false
|
|
6242
6249
|
},
|
|
6243
6250
|
"setting_change_history_changed_at_idx": {
|
|
6244
6251
|
"name": "setting_change_history_changed_at_idx",
|
|
@@ -6251,20 +6258,20 @@
|
|
|
6251
6258
|
}
|
|
6252
6259
|
],
|
|
6253
6260
|
"isUnique": false,
|
|
6254
|
-
"
|
|
6261
|
+
"with": {},
|
|
6255
6262
|
"method": "btree",
|
|
6256
|
-
"
|
|
6263
|
+
"concurrently": false
|
|
6257
6264
|
}
|
|
6258
6265
|
},
|
|
6259
6266
|
"foreignKeys": {
|
|
6260
6267
|
"setting_change_history_setting_id_global_settings_id_fk": {
|
|
6261
6268
|
"name": "setting_change_history_setting_id_global_settings_id_fk",
|
|
6262
6269
|
"tableFrom": "setting_change_history",
|
|
6263
|
-
"tableTo": "global_settings",
|
|
6264
6270
|
"columnsFrom": ["setting_id"],
|
|
6271
|
+
"tableTo": "global_settings",
|
|
6265
6272
|
"columnsTo": ["id"],
|
|
6266
|
-
"
|
|
6267
|
-
"
|
|
6273
|
+
"onUpdate": "no action",
|
|
6274
|
+
"onDelete": "cascade"
|
|
6268
6275
|
}
|
|
6269
6276
|
},
|
|
6270
6277
|
"compositePrimaryKeys": {},
|
|
@@ -6361,9 +6368,9 @@
|
|
|
6361
6368
|
}
|
|
6362
6369
|
],
|
|
6363
6370
|
"isUnique": false,
|
|
6364
|
-
"
|
|
6371
|
+
"with": {},
|
|
6365
6372
|
"method": "btree",
|
|
6366
|
-
"
|
|
6373
|
+
"concurrently": false
|
|
6367
6374
|
},
|
|
6368
6375
|
"sync_jobs_status_idx": {
|
|
6369
6376
|
"name": "sync_jobs_status_idx",
|
|
@@ -6376,9 +6383,9 @@
|
|
|
6376
6383
|
}
|
|
6377
6384
|
],
|
|
6378
6385
|
"isUnique": false,
|
|
6379
|
-
"
|
|
6386
|
+
"with": {},
|
|
6380
6387
|
"method": "btree",
|
|
6381
|
-
"
|
|
6388
|
+
"concurrently": false
|
|
6382
6389
|
},
|
|
6383
6390
|
"sync_jobs_type_idx": {
|
|
6384
6391
|
"name": "sync_jobs_type_idx",
|
|
@@ -6391,9 +6398,9 @@
|
|
|
6391
6398
|
}
|
|
6392
6399
|
],
|
|
6393
6400
|
"isUnique": false,
|
|
6394
|
-
"
|
|
6401
|
+
"with": {},
|
|
6395
6402
|
"method": "btree",
|
|
6396
|
-
"
|
|
6403
|
+
"concurrently": false
|
|
6397
6404
|
},
|
|
6398
6405
|
"sync_jobs_created_at_idx": {
|
|
6399
6406
|
"name": "sync_jobs_created_at_idx",
|
|
@@ -6406,20 +6413,20 @@
|
|
|
6406
6413
|
}
|
|
6407
6414
|
],
|
|
6408
6415
|
"isUnique": false,
|
|
6409
|
-
"
|
|
6416
|
+
"with": {},
|
|
6410
6417
|
"method": "btree",
|
|
6411
|
-
"
|
|
6418
|
+
"concurrently": false
|
|
6412
6419
|
}
|
|
6413
6420
|
},
|
|
6414
6421
|
"foreignKeys": {
|
|
6415
6422
|
"sync_jobs_instance_id_instances_id_fk": {
|
|
6416
6423
|
"name": "sync_jobs_instance_id_instances_id_fk",
|
|
6417
6424
|
"tableFrom": "sync_jobs",
|
|
6418
|
-
"tableTo": "instances",
|
|
6419
6425
|
"columnsFrom": ["instance_id"],
|
|
6426
|
+
"tableTo": "instances",
|
|
6420
6427
|
"columnsTo": ["id"],
|
|
6421
|
-
"
|
|
6422
|
-
"
|
|
6428
|
+
"onUpdate": "no action",
|
|
6429
|
+
"onDelete": "cascade"
|
|
6423
6430
|
}
|
|
6424
6431
|
},
|
|
6425
6432
|
"compositePrimaryKeys": {},
|
|
@@ -6575,9 +6582,9 @@
|
|
|
6575
6582
|
}
|
|
6576
6583
|
],
|
|
6577
6584
|
"isUnique": false,
|
|
6578
|
-
"
|
|
6585
|
+
"with": {},
|
|
6579
6586
|
"method": "btree",
|
|
6580
|
-
"
|
|
6587
|
+
"concurrently": false
|
|
6581
6588
|
},
|
|
6582
6589
|
"trigger_logs_trace_idx": {
|
|
6583
6590
|
"name": "trigger_logs_trace_idx",
|
|
@@ -6590,9 +6597,9 @@
|
|
|
6590
6597
|
}
|
|
6591
6598
|
],
|
|
6592
6599
|
"isUnique": false,
|
|
6593
|
-
"
|
|
6600
|
+
"with": {},
|
|
6594
6601
|
"method": "btree",
|
|
6595
|
-
"
|
|
6602
|
+
"concurrently": false
|
|
6596
6603
|
},
|
|
6597
6604
|
"trigger_logs_fired_at_idx": {
|
|
6598
6605
|
"name": "trigger_logs_fired_at_idx",
|
|
@@ -6605,9 +6612,9 @@
|
|
|
6605
6612
|
}
|
|
6606
6613
|
],
|
|
6607
6614
|
"isUnique": false,
|
|
6608
|
-
"
|
|
6615
|
+
"with": {},
|
|
6609
6616
|
"method": "btree",
|
|
6610
|
-
"
|
|
6617
|
+
"concurrently": false
|
|
6611
6618
|
},
|
|
6612
6619
|
"trigger_logs_event_type_idx": {
|
|
6613
6620
|
"name": "trigger_logs_event_type_idx",
|
|
@@ -6620,38 +6627,279 @@
|
|
|
6620
6627
|
}
|
|
6621
6628
|
],
|
|
6622
6629
|
"isUnique": false,
|
|
6623
|
-
"
|
|
6630
|
+
"with": {},
|
|
6624
6631
|
"method": "btree",
|
|
6625
|
-
"
|
|
6632
|
+
"concurrently": false
|
|
6626
6633
|
}
|
|
6627
6634
|
},
|
|
6628
6635
|
"foreignKeys": {
|
|
6629
6636
|
"trigger_logs_instance_id_instances_id_fk": {
|
|
6630
6637
|
"name": "trigger_logs_instance_id_instances_id_fk",
|
|
6631
6638
|
"tableFrom": "trigger_logs",
|
|
6632
|
-
"tableTo": "instances",
|
|
6633
6639
|
"columnsFrom": ["instance_id"],
|
|
6640
|
+
"tableTo": "instances",
|
|
6634
6641
|
"columnsTo": ["id"],
|
|
6635
|
-
"
|
|
6636
|
-
"
|
|
6642
|
+
"onUpdate": "no action",
|
|
6643
|
+
"onDelete": "cascade"
|
|
6637
6644
|
},
|
|
6638
6645
|
"trigger_logs_provider_id_agent_providers_id_fk": {
|
|
6639
6646
|
"name": "trigger_logs_provider_id_agent_providers_id_fk",
|
|
6640
6647
|
"tableFrom": "trigger_logs",
|
|
6641
|
-
"tableTo": "agent_providers",
|
|
6642
6648
|
"columnsFrom": ["provider_id"],
|
|
6649
|
+
"tableTo": "agent_providers",
|
|
6643
6650
|
"columnsTo": ["id"],
|
|
6644
|
-
"
|
|
6645
|
-
"
|
|
6651
|
+
"onUpdate": "no action",
|
|
6652
|
+
"onDelete": "set null"
|
|
6646
6653
|
},
|
|
6647
6654
|
"trigger_logs_route_id_agent_routes_id_fk": {
|
|
6648
6655
|
"name": "trigger_logs_route_id_agent_routes_id_fk",
|
|
6649
6656
|
"tableFrom": "trigger_logs",
|
|
6650
|
-
"tableTo": "agent_routes",
|
|
6651
6657
|
"columnsFrom": ["route_id"],
|
|
6658
|
+
"tableTo": "agent_routes",
|
|
6659
|
+
"columnsTo": ["id"],
|
|
6660
|
+
"onUpdate": "no action",
|
|
6661
|
+
"onDelete": "set null"
|
|
6662
|
+
}
|
|
6663
|
+
},
|
|
6664
|
+
"compositePrimaryKeys": {},
|
|
6665
|
+
"uniqueConstraints": {},
|
|
6666
|
+
"policies": {},
|
|
6667
|
+
"checkConstraints": {},
|
|
6668
|
+
"isRLSEnabled": false
|
|
6669
|
+
},
|
|
6670
|
+
"public.turns": {
|
|
6671
|
+
"name": "turns",
|
|
6672
|
+
"schema": "",
|
|
6673
|
+
"columns": {
|
|
6674
|
+
"id": {
|
|
6675
|
+
"name": "id",
|
|
6676
|
+
"type": "uuid",
|
|
6677
|
+
"primaryKey": true,
|
|
6678
|
+
"notNull": true,
|
|
6679
|
+
"default": "gen_random_uuid()"
|
|
6680
|
+
},
|
|
6681
|
+
"instance_id": {
|
|
6682
|
+
"name": "instance_id",
|
|
6683
|
+
"type": "uuid",
|
|
6684
|
+
"primaryKey": false,
|
|
6685
|
+
"notNull": true
|
|
6686
|
+
},
|
|
6687
|
+
"chat_id": {
|
|
6688
|
+
"name": "chat_id",
|
|
6689
|
+
"type": "text",
|
|
6690
|
+
"primaryKey": false,
|
|
6691
|
+
"notNull": true
|
|
6692
|
+
},
|
|
6693
|
+
"message_id": {
|
|
6694
|
+
"name": "message_id",
|
|
6695
|
+
"type": "text",
|
|
6696
|
+
"primaryKey": false,
|
|
6697
|
+
"notNull": true
|
|
6698
|
+
},
|
|
6699
|
+
"agent_id": {
|
|
6700
|
+
"name": "agent_id",
|
|
6701
|
+
"type": "uuid",
|
|
6702
|
+
"primaryKey": false,
|
|
6703
|
+
"notNull": true
|
|
6704
|
+
},
|
|
6705
|
+
"api_key_id": {
|
|
6706
|
+
"name": "api_key_id",
|
|
6707
|
+
"type": "uuid",
|
|
6708
|
+
"primaryKey": false,
|
|
6709
|
+
"notNull": true
|
|
6710
|
+
},
|
|
6711
|
+
"status": {
|
|
6712
|
+
"name": "status",
|
|
6713
|
+
"type": "varchar(20)",
|
|
6714
|
+
"primaryKey": false,
|
|
6715
|
+
"notNull": true,
|
|
6716
|
+
"default": "'open'"
|
|
6717
|
+
},
|
|
6718
|
+
"action": {
|
|
6719
|
+
"name": "action",
|
|
6720
|
+
"type": "varchar(20)",
|
|
6721
|
+
"primaryKey": false,
|
|
6722
|
+
"notNull": false
|
|
6723
|
+
},
|
|
6724
|
+
"nudge_count": {
|
|
6725
|
+
"name": "nudge_count",
|
|
6726
|
+
"type": "integer",
|
|
6727
|
+
"primaryKey": false,
|
|
6728
|
+
"notNull": true,
|
|
6729
|
+
"default": 0
|
|
6730
|
+
},
|
|
6731
|
+
"messages_sent": {
|
|
6732
|
+
"name": "messages_sent",
|
|
6733
|
+
"type": "integer",
|
|
6734
|
+
"primaryKey": false,
|
|
6735
|
+
"notNull": true,
|
|
6736
|
+
"default": 0
|
|
6737
|
+
},
|
|
6738
|
+
"started_at": {
|
|
6739
|
+
"name": "started_at",
|
|
6740
|
+
"type": "timestamp",
|
|
6741
|
+
"primaryKey": false,
|
|
6742
|
+
"notNull": true,
|
|
6743
|
+
"default": "now()"
|
|
6744
|
+
},
|
|
6745
|
+
"last_activity_at": {
|
|
6746
|
+
"name": "last_activity_at",
|
|
6747
|
+
"type": "timestamp",
|
|
6748
|
+
"primaryKey": false,
|
|
6749
|
+
"notNull": true,
|
|
6750
|
+
"default": "now()"
|
|
6751
|
+
},
|
|
6752
|
+
"closed_at": {
|
|
6753
|
+
"name": "closed_at",
|
|
6754
|
+
"type": "timestamp",
|
|
6755
|
+
"primaryKey": false,
|
|
6756
|
+
"notNull": false
|
|
6757
|
+
},
|
|
6758
|
+
"closed_reason": {
|
|
6759
|
+
"name": "closed_reason",
|
|
6760
|
+
"type": "text",
|
|
6761
|
+
"primaryKey": false,
|
|
6762
|
+
"notNull": false
|
|
6763
|
+
},
|
|
6764
|
+
"metadata": {
|
|
6765
|
+
"name": "metadata",
|
|
6766
|
+
"type": "jsonb",
|
|
6767
|
+
"primaryKey": false,
|
|
6768
|
+
"notNull": false
|
|
6769
|
+
}
|
|
6770
|
+
},
|
|
6771
|
+
"indexes": {
|
|
6772
|
+
"turns_instance_chat_idx": {
|
|
6773
|
+
"name": "turns_instance_chat_idx",
|
|
6774
|
+
"columns": [
|
|
6775
|
+
{
|
|
6776
|
+
"expression": "instance_id",
|
|
6777
|
+
"isExpression": false,
|
|
6778
|
+
"asc": true,
|
|
6779
|
+
"nulls": "last"
|
|
6780
|
+
},
|
|
6781
|
+
{
|
|
6782
|
+
"expression": "chat_id",
|
|
6783
|
+
"isExpression": false,
|
|
6784
|
+
"asc": true,
|
|
6785
|
+
"nulls": "last"
|
|
6786
|
+
}
|
|
6787
|
+
],
|
|
6788
|
+
"isUnique": false,
|
|
6789
|
+
"with": {},
|
|
6790
|
+
"method": "btree",
|
|
6791
|
+
"concurrently": false
|
|
6792
|
+
},
|
|
6793
|
+
"turns_status_idx": {
|
|
6794
|
+
"name": "turns_status_idx",
|
|
6795
|
+
"columns": [
|
|
6796
|
+
{
|
|
6797
|
+
"expression": "status",
|
|
6798
|
+
"isExpression": false,
|
|
6799
|
+
"asc": true,
|
|
6800
|
+
"nulls": "last"
|
|
6801
|
+
}
|
|
6802
|
+
],
|
|
6803
|
+
"isUnique": false,
|
|
6804
|
+
"with": {},
|
|
6805
|
+
"method": "btree",
|
|
6806
|
+
"concurrently": false
|
|
6807
|
+
},
|
|
6808
|
+
"turns_api_key_idx": {
|
|
6809
|
+
"name": "turns_api_key_idx",
|
|
6810
|
+
"columns": [
|
|
6811
|
+
{
|
|
6812
|
+
"expression": "api_key_id",
|
|
6813
|
+
"isExpression": false,
|
|
6814
|
+
"asc": true,
|
|
6815
|
+
"nulls": "last"
|
|
6816
|
+
}
|
|
6817
|
+
],
|
|
6818
|
+
"isUnique": false,
|
|
6819
|
+
"with": {},
|
|
6820
|
+
"method": "btree",
|
|
6821
|
+
"concurrently": false
|
|
6822
|
+
},
|
|
6823
|
+
"turns_agent_idx": {
|
|
6824
|
+
"name": "turns_agent_idx",
|
|
6825
|
+
"columns": [
|
|
6826
|
+
{
|
|
6827
|
+
"expression": "agent_id",
|
|
6828
|
+
"isExpression": false,
|
|
6829
|
+
"asc": true,
|
|
6830
|
+
"nulls": "last"
|
|
6831
|
+
}
|
|
6832
|
+
],
|
|
6833
|
+
"isUnique": false,
|
|
6834
|
+
"with": {},
|
|
6835
|
+
"method": "btree",
|
|
6836
|
+
"concurrently": false
|
|
6837
|
+
},
|
|
6838
|
+
"turns_last_activity_idx": {
|
|
6839
|
+
"name": "turns_last_activity_idx",
|
|
6840
|
+
"columns": [
|
|
6841
|
+
{
|
|
6842
|
+
"expression": "last_activity_at",
|
|
6843
|
+
"isExpression": false,
|
|
6844
|
+
"asc": true,
|
|
6845
|
+
"nulls": "last"
|
|
6846
|
+
}
|
|
6847
|
+
],
|
|
6848
|
+
"isUnique": false,
|
|
6849
|
+
"with": {},
|
|
6850
|
+
"method": "btree",
|
|
6851
|
+
"concurrently": false
|
|
6852
|
+
},
|
|
6853
|
+
"turns_open_idx": {
|
|
6854
|
+
"name": "turns_open_idx",
|
|
6855
|
+
"columns": [
|
|
6856
|
+
{
|
|
6857
|
+
"expression": "status",
|
|
6858
|
+
"isExpression": false,
|
|
6859
|
+
"asc": true,
|
|
6860
|
+
"nulls": "last"
|
|
6861
|
+
},
|
|
6862
|
+
{
|
|
6863
|
+
"expression": "last_activity_at",
|
|
6864
|
+
"isExpression": false,
|
|
6865
|
+
"asc": true,
|
|
6866
|
+
"nulls": "last"
|
|
6867
|
+
}
|
|
6868
|
+
],
|
|
6869
|
+
"isUnique": false,
|
|
6870
|
+
"with": {},
|
|
6871
|
+
"method": "btree",
|
|
6872
|
+
"where": "\"turns\".\"status\" = 'open'",
|
|
6873
|
+
"concurrently": false
|
|
6874
|
+
}
|
|
6875
|
+
},
|
|
6876
|
+
"foreignKeys": {
|
|
6877
|
+
"turns_instance_id_instances_id_fk": {
|
|
6878
|
+
"name": "turns_instance_id_instances_id_fk",
|
|
6879
|
+
"tableFrom": "turns",
|
|
6880
|
+
"columnsFrom": ["instance_id"],
|
|
6881
|
+
"tableTo": "instances",
|
|
6652
6882
|
"columnsTo": ["id"],
|
|
6653
|
-
"
|
|
6654
|
-
"
|
|
6883
|
+
"onUpdate": "no action",
|
|
6884
|
+
"onDelete": "cascade"
|
|
6885
|
+
},
|
|
6886
|
+
"turns_agent_id_agents_id_fk": {
|
|
6887
|
+
"name": "turns_agent_id_agents_id_fk",
|
|
6888
|
+
"tableFrom": "turns",
|
|
6889
|
+
"columnsFrom": ["agent_id"],
|
|
6890
|
+
"tableTo": "agents",
|
|
6891
|
+
"columnsTo": ["id"],
|
|
6892
|
+
"onUpdate": "no action",
|
|
6893
|
+
"onDelete": "cascade"
|
|
6894
|
+
},
|
|
6895
|
+
"turns_api_key_id_api_keys_id_fk": {
|
|
6896
|
+
"name": "turns_api_key_id_api_keys_id_fk",
|
|
6897
|
+
"tableFrom": "turns",
|
|
6898
|
+
"columnsFrom": ["api_key_id"],
|
|
6899
|
+
"tableTo": "api_keys",
|
|
6900
|
+
"columnsTo": ["id"],
|
|
6901
|
+
"onUpdate": "no action",
|
|
6902
|
+
"onDelete": "cascade"
|
|
6655
6903
|
}
|
|
6656
6904
|
},
|
|
6657
6905
|
"compositePrimaryKeys": {},
|
|
@@ -6736,9 +6984,9 @@
|
|
|
6736
6984
|
}
|
|
6737
6985
|
],
|
|
6738
6986
|
"isUnique": true,
|
|
6739
|
-
"
|
|
6987
|
+
"with": {},
|
|
6740
6988
|
"method": "btree",
|
|
6741
|
-
"
|
|
6989
|
+
"concurrently": false
|
|
6742
6990
|
},
|
|
6743
6991
|
"webhook_sources_enabled_idx": {
|
|
6744
6992
|
"name": "webhook_sources_enabled_idx",
|
|
@@ -6751,9 +6999,9 @@
|
|
|
6751
6999
|
}
|
|
6752
7000
|
],
|
|
6753
7001
|
"isUnique": false,
|
|
6754
|
-
"
|
|
7002
|
+
"with": {},
|
|
6755
7003
|
"method": "btree",
|
|
6756
|
-
"
|
|
7004
|
+
"concurrently": false
|
|
6757
7005
|
}
|
|
6758
7006
|
},
|
|
6759
7007
|
"foreignKeys": {},
|
|
@@ -6761,8 +7009,8 @@
|
|
|
6761
7009
|
"uniqueConstraints": {
|
|
6762
7010
|
"webhook_sources_name_unique": {
|
|
6763
7011
|
"name": "webhook_sources_name_unique",
|
|
6764
|
-
"
|
|
6765
|
-
"
|
|
7012
|
+
"columns": ["name"],
|
|
7013
|
+
"nullsNotDistinct": false
|
|
6766
7014
|
}
|
|
6767
7015
|
},
|
|
6768
7016
|
"policies": {},
|
|
@@ -6772,10 +7020,10 @@
|
|
|
6772
7020
|
},
|
|
6773
7021
|
"enums": {},
|
|
6774
7022
|
"schemas": {},
|
|
7023
|
+
"views": {},
|
|
6775
7024
|
"sequences": {},
|
|
6776
7025
|
"roles": {},
|
|
6777
7026
|
"policies": {},
|
|
6778
|
-
"views": {},
|
|
6779
7027
|
"_meta": {
|
|
6780
7028
|
"columns": {},
|
|
6781
7029
|
"schemas": {},
|