@open-mercato/core 0.7.1-develop.7175.1.d49ab48ee2 → 0.7.1-develop.7176.1.d229567a50

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.
Files changed (79) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/dist/generated/entities/phone_call/index.js +53 -0
  3. package/dist/generated/entities/phone_call/index.js.map +7 -0
  4. package/dist/generated/entities/phone_call_participant/index.js +27 -0
  5. package/dist/generated/entities/phone_call_participant/index.js.map +7 -0
  6. package/dist/generated/entities.ids.generated.js +5 -0
  7. package/dist/generated/entities.ids.generated.js.map +2 -2
  8. package/dist/generated/entity-fields-registry.js +41 -0
  9. package/dist/generated/entity-fields-registry.js.map +2 -2
  10. package/dist/modules/configs/lib/upgrade-actions.js +20 -0
  11. package/dist/modules/configs/lib/upgrade-actions.js.map +2 -2
  12. package/dist/modules/entities/migrations/Migration20260822120000.js +44 -0
  13. package/dist/modules/entities/migrations/Migration20260822120000.js.map +7 -0
  14. package/dist/modules/phone_calls/acl.js +15 -0
  15. package/dist/modules/phone_calls/acl.js.map +7 -0
  16. package/dist/modules/phone_calls/api/calls/route.js +132 -0
  17. package/dist/modules/phone_calls/api/calls/route.js.map +7 -0
  18. package/dist/modules/phone_calls/api/openapi.js +23 -0
  19. package/dist/modules/phone_calls/api/openapi.js.map +7 -0
  20. package/dist/modules/phone_calls/backend/page.js +261 -0
  21. package/dist/modules/phone_calls/backend/page.js.map +7 -0
  22. package/dist/modules/phone_calls/backend/page.meta.js +16 -0
  23. package/dist/modules/phone_calls/backend/page.meta.js.map +7 -0
  24. package/dist/modules/phone_calls/commands/calls.js +125 -0
  25. package/dist/modules/phone_calls/commands/calls.js.map +7 -0
  26. package/dist/modules/phone_calls/commands/index.js +2 -0
  27. package/dist/modules/phone_calls/commands/index.js.map +7 -0
  28. package/dist/modules/phone_calls/data/entities.js +162 -0
  29. package/dist/modules/phone_calls/data/entities.js.map +7 -0
  30. package/dist/modules/phone_calls/data/validators.js +68 -0
  31. package/dist/modules/phone_calls/data/validators.js.map +7 -0
  32. package/dist/modules/phone_calls/di.js +12 -0
  33. package/dist/modules/phone_calls/di.js.map +7 -0
  34. package/dist/modules/phone_calls/encryption.js +28 -0
  35. package/dist/modules/phone_calls/encryption.js.map +7 -0
  36. package/dist/modules/phone_calls/events.js +18 -0
  37. package/dist/modules/phone_calls/events.js.map +7 -0
  38. package/dist/modules/phone_calls/index.js +15 -0
  39. package/dist/modules/phone_calls/index.js.map +7 -0
  40. package/dist/modules/phone_calls/migrations/Migration20260706124120_phone_calls.js +22 -0
  41. package/dist/modules/phone_calls/migrations/Migration20260706124120_phone_calls.js.map +7 -0
  42. package/dist/modules/phone_calls/migrations/Migration20260814124333_phone_calls.js +13 -0
  43. package/dist/modules/phone_calls/migrations/Migration20260814124333_phone_calls.js.map +7 -0
  44. package/dist/modules/phone_calls/setup.js +16 -0
  45. package/dist/modules/phone_calls/setup.js.map +7 -0
  46. package/generated/entities/phone_call/index.ts +25 -0
  47. package/generated/entities/phone_call_participant/index.ts +12 -0
  48. package/generated/entities.ids.generated.ts +5 -0
  49. package/generated/entity-fields-registry.ts +41 -0
  50. package/package.json +7 -7
  51. package/src/modules/auth/i18n/de.json +3 -0
  52. package/src/modules/auth/i18n/en.json +3 -0
  53. package/src/modules/auth/i18n/es.json +3 -0
  54. package/src/modules/auth/i18n/ko.json +3 -0
  55. package/src/modules/auth/i18n/pl.json +3 -0
  56. package/src/modules/configs/lib/upgrade-actions.ts +20 -0
  57. package/src/modules/entities/migrations/Migration20260822120000.ts +56 -0
  58. package/src/modules/phone_calls/acl.ts +11 -0
  59. package/src/modules/phone_calls/api/calls/route.ts +150 -0
  60. package/src/modules/phone_calls/api/openapi.ts +25 -0
  61. package/src/modules/phone_calls/backend/page.meta.ts +12 -0
  62. package/src/modules/phone_calls/backend/page.tsx +303 -0
  63. package/src/modules/phone_calls/commands/calls.ts +156 -0
  64. package/src/modules/phone_calls/commands/index.ts +1 -0
  65. package/src/modules/phone_calls/data/entities.ts +144 -0
  66. package/src/modules/phone_calls/data/validators.ts +69 -0
  67. package/src/modules/phone_calls/di.ts +10 -0
  68. package/src/modules/phone_calls/encryption.ts +26 -0
  69. package/src/modules/phone_calls/events.ts +25 -0
  70. package/src/modules/phone_calls/i18n/de.json +42 -0
  71. package/src/modules/phone_calls/i18n/en.json +42 -0
  72. package/src/modules/phone_calls/i18n/es.json +42 -0
  73. package/src/modules/phone_calls/i18n/ko.json +42 -0
  74. package/src/modules/phone_calls/i18n/pl.json +42 -0
  75. package/src/modules/phone_calls/index.ts +13 -0
  76. package/src/modules/phone_calls/migrations/.snapshot-open-mercato.json +772 -0
  77. package/src/modules/phone_calls/migrations/Migration20260706124120_phone_calls.ts +23 -0
  78. package/src/modules/phone_calls/migrations/Migration20260814124333_phone_calls.ts +13 -0
  79. package/src/modules/phone_calls/setup.ts +14 -0
@@ -0,0 +1,772 @@
1
+ {
2
+ "name": "public",
3
+ "namespaces": [
4
+ "public"
5
+ ],
6
+ "tables": [
7
+ {
8
+ "name": "phone_call_participants",
9
+ "schema": "public",
10
+ "columns": {
11
+ "created_at": {
12
+ "name": "created_at",
13
+ "type": "timestamptz(6)",
14
+ "unsigned": false,
15
+ "autoincrement": false,
16
+ "primary": false,
17
+ "nullable": false,
18
+ "unique": false,
19
+ "length": 6,
20
+ "precision": null,
21
+ "scale": null,
22
+ "default": null,
23
+ "comment": null,
24
+ "collation": null,
25
+ "enumItems": [],
26
+ "mappedType": "datetime"
27
+ },
28
+ "display_name": {
29
+ "name": "display_name",
30
+ "type": "text",
31
+ "unsigned": false,
32
+ "autoincrement": false,
33
+ "primary": false,
34
+ "nullable": true,
35
+ "unique": false,
36
+ "length": null,
37
+ "precision": null,
38
+ "scale": null,
39
+ "default": null,
40
+ "comment": null,
41
+ "collation": null,
42
+ "enumItems": [],
43
+ "mappedType": "text"
44
+ },
45
+ "email": {
46
+ "name": "email",
47
+ "type": "text",
48
+ "unsigned": false,
49
+ "autoincrement": false,
50
+ "primary": false,
51
+ "nullable": true,
52
+ "unique": false,
53
+ "length": null,
54
+ "precision": null,
55
+ "scale": null,
56
+ "default": null,
57
+ "comment": null,
58
+ "collation": null,
59
+ "enumItems": [],
60
+ "mappedType": "text"
61
+ },
62
+ "id": {
63
+ "name": "id",
64
+ "type": "uuid",
65
+ "unsigned": false,
66
+ "autoincrement": false,
67
+ "primary": true,
68
+ "nullable": false,
69
+ "unique": false,
70
+ "length": null,
71
+ "precision": null,
72
+ "scale": null,
73
+ "default": "gen_random_uuid()",
74
+ "comment": null,
75
+ "collation": null,
76
+ "enumItems": [],
77
+ "mappedType": "uuid"
78
+ },
79
+ "metadata": {
80
+ "name": "metadata",
81
+ "type": "jsonb",
82
+ "unsigned": false,
83
+ "autoincrement": false,
84
+ "primary": false,
85
+ "nullable": true,
86
+ "unique": false,
87
+ "length": null,
88
+ "precision": null,
89
+ "scale": null,
90
+ "default": null,
91
+ "comment": null,
92
+ "collation": null,
93
+ "enumItems": [],
94
+ "mappedType": "json"
95
+ },
96
+ "organization_id": {
97
+ "name": "organization_id",
98
+ "type": "uuid",
99
+ "unsigned": false,
100
+ "autoincrement": false,
101
+ "primary": false,
102
+ "nullable": false,
103
+ "unique": false,
104
+ "length": null,
105
+ "precision": null,
106
+ "scale": null,
107
+ "default": null,
108
+ "comment": null,
109
+ "collation": null,
110
+ "enumItems": [],
111
+ "mappedType": "uuid"
112
+ },
113
+ "phone_call_id": {
114
+ "name": "phone_call_id",
115
+ "type": "uuid",
116
+ "unsigned": false,
117
+ "autoincrement": false,
118
+ "primary": false,
119
+ "nullable": false,
120
+ "unique": false,
121
+ "length": null,
122
+ "precision": null,
123
+ "scale": null,
124
+ "default": null,
125
+ "comment": null,
126
+ "collation": null,
127
+ "enumItems": [],
128
+ "mappedType": "uuid"
129
+ },
130
+ "phone_number": {
131
+ "name": "phone_number",
132
+ "type": "text",
133
+ "unsigned": false,
134
+ "autoincrement": false,
135
+ "primary": false,
136
+ "nullable": true,
137
+ "unique": false,
138
+ "length": null,
139
+ "precision": null,
140
+ "scale": null,
141
+ "default": null,
142
+ "comment": null,
143
+ "collation": null,
144
+ "enumItems": [],
145
+ "mappedType": "text"
146
+ },
147
+ "provider_participant_id": {
148
+ "name": "provider_participant_id",
149
+ "type": "text",
150
+ "unsigned": false,
151
+ "autoincrement": false,
152
+ "primary": false,
153
+ "nullable": true,
154
+ "unique": false,
155
+ "length": null,
156
+ "precision": null,
157
+ "scale": null,
158
+ "default": null,
159
+ "comment": null,
160
+ "collation": null,
161
+ "enumItems": [],
162
+ "mappedType": "text"
163
+ },
164
+ "role": {
165
+ "name": "role",
166
+ "type": "text",
167
+ "unsigned": false,
168
+ "autoincrement": false,
169
+ "primary": false,
170
+ "nullable": false,
171
+ "unique": false,
172
+ "length": null,
173
+ "precision": null,
174
+ "scale": null,
175
+ "default": null,
176
+ "comment": null,
177
+ "collation": null,
178
+ "enumItems": [],
179
+ "mappedType": "text"
180
+ },
181
+ "tenant_id": {
182
+ "name": "tenant_id",
183
+ "type": "uuid",
184
+ "unsigned": false,
185
+ "autoincrement": false,
186
+ "primary": false,
187
+ "nullable": false,
188
+ "unique": false,
189
+ "length": null,
190
+ "precision": null,
191
+ "scale": null,
192
+ "default": null,
193
+ "comment": null,
194
+ "collation": null,
195
+ "enumItems": [],
196
+ "mappedType": "uuid"
197
+ },
198
+ "updated_at": {
199
+ "name": "updated_at",
200
+ "type": "timestamptz(6)",
201
+ "unsigned": false,
202
+ "autoincrement": false,
203
+ "primary": false,
204
+ "nullable": false,
205
+ "unique": false,
206
+ "length": 6,
207
+ "precision": null,
208
+ "scale": null,
209
+ "default": null,
210
+ "comment": null,
211
+ "collation": null,
212
+ "enumItems": [],
213
+ "mappedType": "datetime"
214
+ }
215
+ },
216
+ "indexes": [
217
+ {
218
+ "columnNames": [
219
+ "phone_call_id"
220
+ ],
221
+ "composite": false,
222
+ "constraint": false,
223
+ "keyName": "phone_call_participants_call_idx",
224
+ "primary": false,
225
+ "unique": false
226
+ },
227
+ {
228
+ "columnNames": [
229
+ "organization_id",
230
+ "tenant_id"
231
+ ],
232
+ "composite": true,
233
+ "constraint": false,
234
+ "keyName": "phone_call_participants_org_tenant_idx",
235
+ "primary": false,
236
+ "unique": false
237
+ },
238
+ {
239
+ "columnNames": [
240
+ "id"
241
+ ],
242
+ "composite": false,
243
+ "constraint": true,
244
+ "keyName": "phone_call_participants_pkey",
245
+ "primary": true,
246
+ "unique": true
247
+ }
248
+ ],
249
+ "checks": [],
250
+ "triggers": [],
251
+ "foreignKeys": {
252
+ "phone_call_participants_phone_call_id_foreign": {
253
+ "columnNames": [
254
+ "phone_call_id"
255
+ ],
256
+ "constraintName": "phone_call_participants_phone_call_id_foreign",
257
+ "localTableName": "public.phone_call_participants",
258
+ "referencedColumnNames": [
259
+ "id"
260
+ ],
261
+ "referencedTableName": "public.phone_calls",
262
+ "deleteRule": "cascade"
263
+ }
264
+ },
265
+ "comment": null
266
+ },
267
+ {
268
+ "name": "phone_calls",
269
+ "schema": "public",
270
+ "columns": {
271
+ "active_summary_version_id": {
272
+ "name": "active_summary_version_id",
273
+ "type": "uuid",
274
+ "unsigned": false,
275
+ "autoincrement": false,
276
+ "primary": false,
277
+ "nullable": true,
278
+ "unique": false,
279
+ "length": null,
280
+ "precision": null,
281
+ "scale": null,
282
+ "default": null,
283
+ "comment": null,
284
+ "collation": null,
285
+ "enumItems": [],
286
+ "mappedType": "uuid"
287
+ },
288
+ "active_transcript_version_id": {
289
+ "name": "active_transcript_version_id",
290
+ "type": "uuid",
291
+ "unsigned": false,
292
+ "autoincrement": false,
293
+ "primary": false,
294
+ "nullable": true,
295
+ "unique": false,
296
+ "length": null,
297
+ "precision": null,
298
+ "scale": null,
299
+ "default": null,
300
+ "comment": null,
301
+ "collation": null,
302
+ "enumItems": [],
303
+ "mappedType": "uuid"
304
+ },
305
+ "answered_at": {
306
+ "name": "answered_at",
307
+ "type": "timestamptz(6)",
308
+ "unsigned": false,
309
+ "autoincrement": false,
310
+ "primary": false,
311
+ "nullable": true,
312
+ "unique": false,
313
+ "length": 6,
314
+ "precision": null,
315
+ "scale": null,
316
+ "default": null,
317
+ "comment": null,
318
+ "collation": null,
319
+ "enumItems": [],
320
+ "mappedType": "datetime"
321
+ },
322
+ "communication_projection_id": {
323
+ "name": "communication_projection_id",
324
+ "type": "uuid",
325
+ "unsigned": false,
326
+ "autoincrement": false,
327
+ "primary": false,
328
+ "nullable": true,
329
+ "unique": false,
330
+ "length": null,
331
+ "precision": null,
332
+ "scale": null,
333
+ "default": null,
334
+ "comment": null,
335
+ "collation": null,
336
+ "enumItems": [],
337
+ "mappedType": "uuid"
338
+ },
339
+ "created_at": {
340
+ "name": "created_at",
341
+ "type": "timestamptz(6)",
342
+ "unsigned": false,
343
+ "autoincrement": false,
344
+ "primary": false,
345
+ "nullable": false,
346
+ "unique": false,
347
+ "length": 6,
348
+ "precision": null,
349
+ "scale": null,
350
+ "default": null,
351
+ "comment": null,
352
+ "collation": null,
353
+ "enumItems": [],
354
+ "mappedType": "datetime"
355
+ },
356
+ "deleted_at": {
357
+ "name": "deleted_at",
358
+ "type": "timestamptz(6)",
359
+ "unsigned": false,
360
+ "autoincrement": false,
361
+ "primary": false,
362
+ "nullable": true,
363
+ "unique": false,
364
+ "length": 6,
365
+ "precision": null,
366
+ "scale": null,
367
+ "default": null,
368
+ "comment": null,
369
+ "collation": null,
370
+ "enumItems": [],
371
+ "mappedType": "datetime"
372
+ },
373
+ "direction": {
374
+ "name": "direction",
375
+ "type": "text",
376
+ "unsigned": false,
377
+ "autoincrement": false,
378
+ "primary": false,
379
+ "nullable": false,
380
+ "unique": false,
381
+ "length": null,
382
+ "precision": null,
383
+ "scale": null,
384
+ "default": null,
385
+ "comment": null,
386
+ "collation": null,
387
+ "enumItems": [],
388
+ "mappedType": "text"
389
+ },
390
+ "duration_seconds": {
391
+ "name": "duration_seconds",
392
+ "type": "int",
393
+ "unsigned": false,
394
+ "autoincrement": false,
395
+ "primary": false,
396
+ "nullable": true,
397
+ "unique": false,
398
+ "length": null,
399
+ "precision": null,
400
+ "scale": null,
401
+ "default": null,
402
+ "comment": null,
403
+ "collation": null,
404
+ "enumItems": [],
405
+ "mappedType": "integer"
406
+ },
407
+ "ended_at": {
408
+ "name": "ended_at",
409
+ "type": "timestamptz(6)",
410
+ "unsigned": false,
411
+ "autoincrement": false,
412
+ "primary": false,
413
+ "nullable": true,
414
+ "unique": false,
415
+ "length": 6,
416
+ "precision": null,
417
+ "scale": null,
418
+ "default": null,
419
+ "comment": null,
420
+ "collation": null,
421
+ "enumItems": [],
422
+ "mappedType": "datetime"
423
+ },
424
+ "external_call_id": {
425
+ "name": "external_call_id",
426
+ "type": "text",
427
+ "unsigned": false,
428
+ "autoincrement": false,
429
+ "primary": false,
430
+ "nullable": false,
431
+ "unique": false,
432
+ "length": null,
433
+ "precision": null,
434
+ "scale": null,
435
+ "default": null,
436
+ "comment": null,
437
+ "collation": null,
438
+ "enumItems": [],
439
+ "mappedType": "text"
440
+ },
441
+ "external_conversation_id": {
442
+ "name": "external_conversation_id",
443
+ "type": "text",
444
+ "unsigned": false,
445
+ "autoincrement": false,
446
+ "primary": false,
447
+ "nullable": true,
448
+ "unique": false,
449
+ "length": null,
450
+ "precision": null,
451
+ "scale": null,
452
+ "default": null,
453
+ "comment": null,
454
+ "collation": null,
455
+ "enumItems": [],
456
+ "mappedType": "text"
457
+ },
458
+ "id": {
459
+ "name": "id",
460
+ "type": "uuid",
461
+ "unsigned": false,
462
+ "autoincrement": false,
463
+ "primary": true,
464
+ "nullable": false,
465
+ "unique": false,
466
+ "length": null,
467
+ "precision": null,
468
+ "scale": null,
469
+ "default": "gen_random_uuid()",
470
+ "comment": null,
471
+ "collation": null,
472
+ "enumItems": [],
473
+ "mappedType": "uuid"
474
+ },
475
+ "ingest_status": {
476
+ "name": "ingest_status",
477
+ "type": "text",
478
+ "unsigned": false,
479
+ "autoincrement": false,
480
+ "primary": false,
481
+ "nullable": false,
482
+ "unique": false,
483
+ "length": null,
484
+ "precision": null,
485
+ "scale": null,
486
+ "default": "'pending'",
487
+ "comment": null,
488
+ "collation": null,
489
+ "enumItems": [],
490
+ "mappedType": "text"
491
+ },
492
+ "integration_id": {
493
+ "name": "integration_id",
494
+ "type": "text",
495
+ "unsigned": false,
496
+ "autoincrement": false,
497
+ "primary": false,
498
+ "nullable": true,
499
+ "unique": false,
500
+ "length": null,
501
+ "precision": null,
502
+ "scale": null,
503
+ "default": null,
504
+ "comment": null,
505
+ "collation": null,
506
+ "enumItems": [],
507
+ "mappedType": "text"
508
+ },
509
+ "last_ingested_at": {
510
+ "name": "last_ingested_at",
511
+ "type": "timestamptz(6)",
512
+ "unsigned": false,
513
+ "autoincrement": false,
514
+ "primary": false,
515
+ "nullable": true,
516
+ "unique": false,
517
+ "length": 6,
518
+ "precision": null,
519
+ "scale": null,
520
+ "default": null,
521
+ "comment": null,
522
+ "collation": null,
523
+ "enumItems": [],
524
+ "mappedType": "datetime"
525
+ },
526
+ "organization_id": {
527
+ "name": "organization_id",
528
+ "type": "uuid",
529
+ "unsigned": false,
530
+ "autoincrement": false,
531
+ "primary": false,
532
+ "nullable": false,
533
+ "unique": false,
534
+ "length": null,
535
+ "precision": null,
536
+ "scale": null,
537
+ "default": null,
538
+ "comment": null,
539
+ "collation": null,
540
+ "enumItems": [],
541
+ "mappedType": "uuid"
542
+ },
543
+ "provider_facts": {
544
+ "name": "provider_facts",
545
+ "type": "jsonb",
546
+ "unsigned": false,
547
+ "autoincrement": false,
548
+ "primary": false,
549
+ "nullable": true,
550
+ "unique": false,
551
+ "length": null,
552
+ "precision": null,
553
+ "scale": null,
554
+ "default": null,
555
+ "comment": null,
556
+ "collation": null,
557
+ "enumItems": [],
558
+ "mappedType": "json"
559
+ },
560
+ "provider_key": {
561
+ "name": "provider_key",
562
+ "type": "text",
563
+ "unsigned": false,
564
+ "autoincrement": false,
565
+ "primary": false,
566
+ "nullable": false,
567
+ "unique": true,
568
+ "length": null,
569
+ "precision": null,
570
+ "scale": null,
571
+ "default": null,
572
+ "comment": null,
573
+ "collation": null,
574
+ "enumItems": [],
575
+ "mappedType": "text"
576
+ },
577
+ "raw_snapshot": {
578
+ "name": "raw_snapshot",
579
+ "type": "jsonb",
580
+ "unsigned": false,
581
+ "autoincrement": false,
582
+ "primary": false,
583
+ "nullable": true,
584
+ "unique": false,
585
+ "length": null,
586
+ "precision": null,
587
+ "scale": null,
588
+ "default": null,
589
+ "comment": null,
590
+ "collation": null,
591
+ "enumItems": [],
592
+ "mappedType": "json"
593
+ },
594
+ "recording_attachment_id": {
595
+ "name": "recording_attachment_id",
596
+ "type": "uuid",
597
+ "unsigned": false,
598
+ "autoincrement": false,
599
+ "primary": false,
600
+ "nullable": true,
601
+ "unique": false,
602
+ "length": null,
603
+ "precision": null,
604
+ "scale": null,
605
+ "default": null,
606
+ "comment": null,
607
+ "collation": null,
608
+ "enumItems": [],
609
+ "mappedType": "uuid"
610
+ },
611
+ "recording_url": {
612
+ "name": "recording_url",
613
+ "type": "text",
614
+ "unsigned": false,
615
+ "autoincrement": false,
616
+ "primary": false,
617
+ "nullable": true,
618
+ "unique": false,
619
+ "length": null,
620
+ "precision": null,
621
+ "scale": null,
622
+ "default": null,
623
+ "comment": null,
624
+ "collation": null,
625
+ "enumItems": [],
626
+ "mappedType": "text"
627
+ },
628
+ "started_at": {
629
+ "name": "started_at",
630
+ "type": "timestamptz(6)",
631
+ "unsigned": false,
632
+ "autoincrement": false,
633
+ "primary": false,
634
+ "nullable": true,
635
+ "unique": false,
636
+ "length": 6,
637
+ "precision": null,
638
+ "scale": null,
639
+ "default": null,
640
+ "comment": null,
641
+ "collation": null,
642
+ "enumItems": [],
643
+ "mappedType": "datetime"
644
+ },
645
+ "status": {
646
+ "name": "status",
647
+ "type": "text",
648
+ "unsigned": false,
649
+ "autoincrement": false,
650
+ "primary": false,
651
+ "nullable": false,
652
+ "unique": false,
653
+ "length": null,
654
+ "precision": null,
655
+ "scale": null,
656
+ "default": null,
657
+ "comment": null,
658
+ "collation": null,
659
+ "enumItems": [],
660
+ "mappedType": "text"
661
+ },
662
+ "tenant_id": {
663
+ "name": "tenant_id",
664
+ "type": "uuid",
665
+ "unsigned": false,
666
+ "autoincrement": false,
667
+ "primary": false,
668
+ "nullable": false,
669
+ "unique": false,
670
+ "length": null,
671
+ "precision": null,
672
+ "scale": null,
673
+ "default": null,
674
+ "comment": null,
675
+ "collation": null,
676
+ "enumItems": [],
677
+ "mappedType": "uuid"
678
+ },
679
+ "updated_at": {
680
+ "name": "updated_at",
681
+ "type": "timestamptz(6)",
682
+ "unsigned": false,
683
+ "autoincrement": false,
684
+ "primary": false,
685
+ "nullable": false,
686
+ "unique": false,
687
+ "length": 6,
688
+ "precision": null,
689
+ "scale": null,
690
+ "default": null,
691
+ "comment": null,
692
+ "collation": null,
693
+ "enumItems": [],
694
+ "mappedType": "datetime"
695
+ }
696
+ },
697
+ "indexes": [
698
+ {
699
+ "columnNames": [],
700
+ "composite": false,
701
+ "constraint": false,
702
+ "keyName": "phone_calls_communication_projection_id_idx",
703
+ "primary": false,
704
+ "unique": false,
705
+ "expression": "create index \"phone_calls_communication_projection_id_idx\" on \"phone_calls\" (\"communication_projection_id\") where \"communication_projection_id\" is not null"
706
+ },
707
+ {
708
+ "columnNames": [
709
+ "organization_id",
710
+ "started_at"
711
+ ],
712
+ "composite": true,
713
+ "constraint": false,
714
+ "keyName": "phone_calls_org_started_at_idx",
715
+ "primary": false,
716
+ "unique": false
717
+ },
718
+ {
719
+ "columnNames": [
720
+ "organization_id",
721
+ "status"
722
+ ],
723
+ "composite": true,
724
+ "constraint": false,
725
+ "keyName": "phone_calls_org_status_idx",
726
+ "primary": false,
727
+ "unique": false
728
+ },
729
+ {
730
+ "columnNames": [
731
+ "organization_id",
732
+ "tenant_id"
733
+ ],
734
+ "composite": true,
735
+ "constraint": false,
736
+ "keyName": "phone_calls_org_tenant_idx",
737
+ "primary": false,
738
+ "unique": false
739
+ },
740
+ {
741
+ "columnNames": [
742
+ "id"
743
+ ],
744
+ "composite": false,
745
+ "constraint": true,
746
+ "keyName": "phone_calls_pkey",
747
+ "primary": true,
748
+ "unique": true
749
+ },
750
+ {
751
+ "columnNames": [
752
+ "provider_key",
753
+ "external_call_id",
754
+ "tenant_id",
755
+ "organization_id"
756
+ ],
757
+ "composite": true,
758
+ "constraint": true,
759
+ "keyName": "phone_calls_provider_external_scope_uq",
760
+ "primary": false,
761
+ "unique": true
762
+ }
763
+ ],
764
+ "checks": [],
765
+ "triggers": [],
766
+ "foreignKeys": {},
767
+ "comment": null
768
+ }
769
+ ],
770
+ "views": [],
771
+ "nativeEnums": {}
772
+ }