@happyvertical/smrt-sales 0.40.69 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-sales",
5
- "packageVersion": "0.40.69",
5
+ "packageVersion": "0.41.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-sales:AgreementExecutionCollection": {
8
8
  "name": "agreementexecutioncollection",
@@ -219,12 +219,6 @@
219
219
  }
220
220
  },
221
221
  "indexes": [
222
- {
223
- "name": "agreement_execution_collections_id_idx",
224
- "columns": [
225
- "id"
226
- ]
227
- },
228
222
  {
229
223
  "name": "agreement_execution_collections_slug_context_idx",
230
224
  "columns": [
@@ -232,6 +226,12 @@
232
226
  "context"
233
227
  ],
234
228
  "unique": true
229
+ },
230
+ {
231
+ "name": "agreement_execution_collections_created_at_idx",
232
+ "columns": [
233
+ "created_at"
234
+ ]
235
235
  }
236
236
  ],
237
237
  "version": "801c5482"
@@ -339,12 +339,6 @@
339
339
  }
340
340
  },
341
341
  "indexes": [
342
- {
343
- "name": "agreement_execution_event_collections_id_idx",
344
- "columns": [
345
- "id"
346
- ]
347
- },
348
342
  {
349
343
  "name": "agreement_execution_event_collections_slug_context_idx",
350
344
  "columns": [
@@ -352,6 +346,12 @@
352
346
  "context"
353
347
  ],
354
348
  "unique": true
349
+ },
350
+ {
351
+ "name": "agreement_execution_event_collections_created_at_idx",
352
+ "columns": [
353
+ "created_at"
354
+ ]
355
355
  }
356
356
  ],
357
357
  "version": "055a9e0f"
@@ -474,12 +474,6 @@
474
474
  }
475
475
  },
476
476
  "indexes": [
477
- {
478
- "name": "executed_agreement_collections_id_idx",
479
- "columns": [
480
- "id"
481
- ]
482
- },
483
477
  {
484
478
  "name": "executed_agreement_collections_slug_context_idx",
485
479
  "columns": [
@@ -487,6 +481,12 @@
487
481
  "context"
488
482
  ],
489
483
  "unique": true
484
+ },
485
+ {
486
+ "name": "executed_agreement_collections_created_at_idx",
487
+ "columns": [
488
+ "created_at"
489
+ ]
490
490
  }
491
491
  ],
492
492
  "version": "73fd604d"
@@ -1052,12 +1052,6 @@
1052
1052
  }
1053
1053
  },
1054
1054
  "indexes": [
1055
- {
1056
- "name": "agreement_executions_id_idx",
1057
- "columns": [
1058
- "id"
1059
- ]
1060
- },
1061
1055
  {
1062
1056
  "name": "agreement_executions_tenant_id_idempotency_key_idx",
1063
1057
  "columns": [
@@ -1065,6 +1059,38 @@
1065
1059
  "idempotency_key"
1066
1060
  ],
1067
1061
  "unique": true
1062
+ },
1063
+ {
1064
+ "name": "agreement_executions_slug_context_idx",
1065
+ "columns": [
1066
+ "slug",
1067
+ "context"
1068
+ ]
1069
+ },
1070
+ {
1071
+ "name": "agreement_executions_tenant_id_created_at_idx",
1072
+ "columns": [
1073
+ "tenant_id",
1074
+ "created_at"
1075
+ ]
1076
+ },
1077
+ {
1078
+ "name": "agreement_executions_source_asset_id_idx",
1079
+ "columns": [
1080
+ "source_asset_id"
1081
+ ]
1082
+ },
1083
+ {
1084
+ "name": "agreement_executions_signed_document_asset_id_idx",
1085
+ "columns": [
1086
+ "signed_document_asset_id"
1087
+ ]
1088
+ },
1089
+ {
1090
+ "name": "agreement_executions_audit_trail_asset_id_idx",
1091
+ "columns": [
1092
+ "audit_trail_asset_id"
1093
+ ]
1068
1094
  }
1069
1095
  ],
1070
1096
  "version": "33a93a76"
@@ -1339,12 +1365,6 @@
1339
1365
  }
1340
1366
  },
1341
1367
  "indexes": [
1342
- {
1343
- "name": "agreement_execution_events_id_idx",
1344
- "columns": [
1345
- "id"
1346
- ]
1347
- },
1348
1368
  {
1349
1369
  "name": "agreement_execution_events_tenant_id_dedupe_key_idx",
1350
1370
  "columns": [
@@ -1352,6 +1372,26 @@
1352
1372
  "dedupe_key"
1353
1373
  ],
1354
1374
  "unique": true
1375
+ },
1376
+ {
1377
+ "name": "agreement_execution_events_slug_context_idx",
1378
+ "columns": [
1379
+ "slug",
1380
+ "context"
1381
+ ]
1382
+ },
1383
+ {
1384
+ "name": "agreement_execution_events_tenant_id_created_at_idx",
1385
+ "columns": [
1386
+ "tenant_id",
1387
+ "created_at"
1388
+ ]
1389
+ },
1390
+ {
1391
+ "name": "agreement_execution_events_execution_id_idx",
1392
+ "columns": [
1393
+ "execution_id"
1394
+ ]
1355
1395
  }
1356
1396
  ],
1357
1397
  "version": "beeb890c"
@@ -1756,18 +1796,56 @@
1756
1796
  },
1757
1797
  "indexes": [
1758
1798
  {
1759
- "name": "executed_agreements_id_idx",
1799
+ "name": "executed_agreements_tenant_id_execution_id_idx",
1800
+ "columns": [
1801
+ "tenant_id",
1802
+ "execution_id"
1803
+ ],
1804
+ "unique": true
1805
+ },
1806
+ {
1807
+ "name": "executed_agreements_slug_context_idx",
1760
1808
  "columns": [
1761
- "id"
1809
+ "slug",
1810
+ "context"
1762
1811
  ]
1763
1812
  },
1764
1813
  {
1765
- "name": "executed_agreements_tenant_id_execution_id_idx",
1814
+ "name": "executed_agreements_tenant_id_created_at_idx",
1766
1815
  "columns": [
1767
1816
  "tenant_id",
1817
+ "created_at"
1818
+ ]
1819
+ },
1820
+ {
1821
+ "name": "executed_agreements_execution_id_idx",
1822
+ "columns": [
1768
1823
  "execution_id"
1769
- ],
1770
- "unique": true
1824
+ ]
1825
+ },
1826
+ {
1827
+ "name": "executed_agreements_source_asset_id_idx",
1828
+ "columns": [
1829
+ "source_asset_id"
1830
+ ]
1831
+ },
1832
+ {
1833
+ "name": "executed_agreements_signed_document_asset_id_idx",
1834
+ "columns": [
1835
+ "signed_document_asset_id"
1836
+ ]
1837
+ },
1838
+ {
1839
+ "name": "executed_agreements_audit_trail_asset_id_idx",
1840
+ "columns": [
1841
+ "audit_trail_asset_id"
1842
+ ]
1843
+ },
1844
+ {
1845
+ "name": "executed_agreements_supersedes_executed_agreement_id_idx",
1846
+ "columns": [
1847
+ "supersedes_executed_agreement_id"
1848
+ ]
1771
1849
  }
1772
1850
  ],
1773
1851
  "version": "9b84eda8"
@@ -1918,12 +1996,6 @@
1918
1996
  }
1919
1997
  },
1920
1998
  "indexes": [
1921
- {
1922
- "name": "commission_adjustment_collections_id_idx",
1923
- "columns": [
1924
- "id"
1925
- ]
1926
- },
1927
1999
  {
1928
2000
  "name": "commission_adjustment_collections_slug_context_idx",
1929
2001
  "columns": [
@@ -1931,6 +2003,12 @@
1931
2003
  "context"
1932
2004
  ],
1933
2005
  "unique": true
2006
+ },
2007
+ {
2008
+ "name": "commission_adjustment_collections_created_at_idx",
2009
+ "columns": [
2010
+ "created_at"
2011
+ ]
1934
2012
  }
1935
2013
  ],
1936
2014
  "version": "1739b6be"
@@ -2010,12 +2088,6 @@
2010
2088
  }
2011
2089
  },
2012
2090
  "indexes": [
2013
- {
2014
- "name": "commission_adjustment_operation_collections_id_idx",
2015
- "columns": [
2016
- "id"
2017
- ]
2018
- },
2019
2091
  {
2020
2092
  "name": "commission_adjustment_operation_collections_slug_context_idx",
2021
2093
  "columns": [
@@ -2023,6 +2095,12 @@
2023
2095
  "context"
2024
2096
  ],
2025
2097
  "unique": true
2098
+ },
2099
+ {
2100
+ "name": "commission_adjustment_operation_collections_created_at_idx",
2101
+ "columns": [
2102
+ "created_at"
2103
+ ]
2026
2104
  }
2027
2105
  ],
2028
2106
  "version": "b5449b28"
@@ -2220,12 +2298,6 @@
2220
2298
  }
2221
2299
  },
2222
2300
  "indexes": [
2223
- {
2224
- "name": "commission_collections_id_idx",
2225
- "columns": [
2226
- "id"
2227
- ]
2228
- },
2229
2301
  {
2230
2302
  "name": "commission_collections_slug_context_idx",
2231
2303
  "columns": [
@@ -2233,6 +2305,12 @@
2233
2305
  "context"
2234
2306
  ],
2235
2307
  "unique": true
2308
+ },
2309
+ {
2310
+ "name": "commission_collections_created_at_idx",
2311
+ "columns": [
2312
+ "created_at"
2313
+ ]
2236
2314
  }
2237
2315
  ],
2238
2316
  "version": "7ea864a7"
@@ -2369,12 +2447,6 @@
2369
2447
  }
2370
2448
  },
2371
2449
  "indexes": [
2372
- {
2373
- "name": "commission_payout_collections_id_idx",
2374
- "columns": [
2375
- "id"
2376
- ]
2377
- },
2378
2450
  {
2379
2451
  "name": "commission_payout_collections_slug_context_idx",
2380
2452
  "columns": [
@@ -2382,6 +2454,12 @@
2382
2454
  "context"
2383
2455
  ],
2384
2456
  "unique": true
2457
+ },
2458
+ {
2459
+ "name": "commission_payout_collections_created_at_idx",
2460
+ "columns": [
2461
+ "created_at"
2462
+ ]
2385
2463
  }
2386
2464
  ],
2387
2465
  "version": "38629400"
@@ -2504,12 +2582,6 @@
2504
2582
  }
2505
2583
  },
2506
2584
  "indexes": [
2507
- {
2508
- "name": "commission_plan_collections_id_idx",
2509
- "columns": [
2510
- "id"
2511
- ]
2512
- },
2513
2585
  {
2514
2586
  "name": "commission_plan_collections_slug_context_idx",
2515
2587
  "columns": [
@@ -2517,6 +2589,12 @@
2517
2589
  "context"
2518
2590
  ],
2519
2591
  "unique": true
2592
+ },
2593
+ {
2594
+ "name": "commission_plan_collections_created_at_idx",
2595
+ "columns": [
2596
+ "created_at"
2597
+ ]
2520
2598
  }
2521
2599
  ],
2522
2600
  "version": "22d7b2a6"
@@ -2604,12 +2682,6 @@
2604
2682
  }
2605
2683
  },
2606
2684
  "indexes": [
2607
- {
2608
- "name": "earner_collections_id_idx",
2609
- "columns": [
2610
- "id"
2611
- ]
2612
- },
2613
2685
  {
2614
2686
  "name": "earner_collections_slug_context_idx",
2615
2687
  "columns": [
@@ -2617,6 +2689,12 @@
2617
2689
  "context"
2618
2690
  ],
2619
2691
  "unique": true
2692
+ },
2693
+ {
2694
+ "name": "earner_collections_created_at_idx",
2695
+ "columns": [
2696
+ "created_at"
2697
+ ]
2620
2698
  }
2621
2699
  ],
2622
2700
  "version": "dde199e5"
@@ -2720,12 +2798,6 @@
2720
2798
  }
2721
2799
  },
2722
2800
  "indexes": [
2723
- {
2724
- "name": "earner_source_attribution_collections_id_idx",
2725
- "columns": [
2726
- "id"
2727
- ]
2728
- },
2729
2801
  {
2730
2802
  "name": "earner_source_attribution_collections_slug_context_idx",
2731
2803
  "columns": [
@@ -2733,6 +2805,12 @@
2733
2805
  "context"
2734
2806
  ],
2735
2807
  "unique": true
2808
+ },
2809
+ {
2810
+ "name": "earner_source_attribution_collections_created_at_idx",
2811
+ "columns": [
2812
+ "created_at"
2813
+ ]
2736
2814
  }
2737
2815
  ],
2738
2816
  "version": "df30bdeb"
@@ -2845,12 +2923,6 @@
2845
2923
  }
2846
2924
  },
2847
2925
  "indexes": [
2848
- {
2849
- "name": "earning_event_collections_id_idx",
2850
- "columns": [
2851
- "id"
2852
- ]
2853
- },
2854
2926
  {
2855
2927
  "name": "earning_event_collections_slug_context_idx",
2856
2928
  "columns": [
@@ -2858,6 +2930,12 @@
2858
2930
  "context"
2859
2931
  ],
2860
2932
  "unique": true
2933
+ },
2934
+ {
2935
+ "name": "earning_event_collections_created_at_idx",
2936
+ "columns": [
2937
+ "created_at"
2938
+ ]
2861
2939
  }
2862
2940
  ],
2863
2941
  "version": "bce0b6e2"
@@ -3412,18 +3490,44 @@
3412
3490
  }
3413
3491
  },
3414
3492
  "indexes": [
3415
- {
3416
- "name": "commissions_id_idx",
3417
- "columns": [
3418
- "id"
3419
- ]
3420
- },
3421
3493
  {
3422
3494
  "name": "commissions_dedupe_key_idx",
3423
3495
  "columns": [
3424
3496
  "dedupe_key"
3425
3497
  ],
3426
3498
  "unique": true
3499
+ },
3500
+ {
3501
+ "name": "commissions_slug_context_idx",
3502
+ "columns": [
3503
+ "slug",
3504
+ "context"
3505
+ ]
3506
+ },
3507
+ {
3508
+ "name": "commissions_tenant_id_created_at_idx",
3509
+ "columns": [
3510
+ "tenant_id",
3511
+ "created_at"
3512
+ ]
3513
+ },
3514
+ {
3515
+ "name": "commissions_earner_id_idx",
3516
+ "columns": [
3517
+ "earner_id"
3518
+ ]
3519
+ },
3520
+ {
3521
+ "name": "commissions_earning_event_id_idx",
3522
+ "columns": [
3523
+ "earning_event_id"
3524
+ ]
3525
+ },
3526
+ {
3527
+ "name": "commissions_payout_id_idx",
3528
+ "columns": [
3529
+ "payout_id"
3530
+ ]
3427
3531
  }
3428
3532
  ],
3429
3533
  "version": "e719c168"
@@ -3575,7 +3679,12 @@
3575
3679
  "cli": false,
3576
3680
  "tenantScoped": {
3577
3681
  "mode": "optional"
3578
- }
3682
+ },
3683
+ "conflictColumns": [
3684
+ "tenant_id",
3685
+ "slug",
3686
+ "context"
3687
+ ]
3579
3688
  },
3580
3689
  "extends": "SmrtObject",
3581
3690
  "exportName": "CommissionAdjustment",
@@ -3688,19 +3797,45 @@
3688
3797
  }
3689
3798
  },
3690
3799
  "indexes": [
3691
- {
3692
- "name": "commission_adjustments_id_idx",
3693
- "columns": [
3694
- "id"
3695
- ]
3696
- },
3697
3800
  {
3698
3801
  "name": "commission_adjustments_slug_context_idx",
3699
3802
  "columns": [
3803
+ "tenant_id",
3700
3804
  "slug",
3701
3805
  "context"
3702
3806
  ],
3703
3807
  "unique": true
3808
+ },
3809
+ {
3810
+ "name": "commission_adjustments_tenant_id_created_at_idx",
3811
+ "columns": [
3812
+ "tenant_id",
3813
+ "created_at"
3814
+ ]
3815
+ },
3816
+ {
3817
+ "name": "commission_adjustments_commission_id_idx",
3818
+ "columns": [
3819
+ "commission_id"
3820
+ ]
3821
+ },
3822
+ {
3823
+ "name": "commission_adjustments_earner_id_idx",
3824
+ "columns": [
3825
+ "earner_id"
3826
+ ]
3827
+ },
3828
+ {
3829
+ "name": "commission_adjustments_created_by_profile_id_idx",
3830
+ "columns": [
3831
+ "created_by_profile_id"
3832
+ ]
3833
+ },
3834
+ {
3835
+ "name": "commission_adjustments_payout_id_idx",
3836
+ "columns": [
3837
+ "payout_id"
3838
+ ]
3704
3839
  }
3705
3840
  ],
3706
3841
  "version": "98ce4ad1"
@@ -3750,7 +3885,12 @@
3750
3885
  "cli": false,
3751
3886
  "tenantScoped": {
3752
3887
  "mode": "required"
3753
- }
3888
+ },
3889
+ "conflictColumns": [
3890
+ "tenant_id",
3891
+ "slug",
3892
+ "context"
3893
+ ]
3754
3894
  },
3755
3895
  "extends": "SmrtObject",
3756
3896
  "exportName": "CommissionAdjustmentOperation",
@@ -3809,15 +3949,10 @@
3809
3949
  }
3810
3950
  },
3811
3951
  "indexes": [
3812
- {
3813
- "name": "commission_adjustment_operations_id_idx",
3814
- "columns": [
3815
- "id"
3816
- ]
3817
- },
3818
3952
  {
3819
3953
  "name": "commission_adjustment_operations_slug_context_idx",
3820
3954
  "columns": [
3955
+ "tenant_id",
3821
3956
  "slug",
3822
3957
  "context"
3823
3958
  ],
@@ -3828,6 +3963,13 @@
3828
3963
  "columns": [
3829
3964
  "adjustment_id"
3830
3965
  ]
3966
+ },
3967
+ {
3968
+ "name": "commission_adjustment_operations_tenant_id_created_at_idx",
3969
+ "columns": [
3970
+ "tenant_id",
3971
+ "created_at"
3972
+ ]
3831
3973
  }
3832
3974
  ],
3833
3975
  "version": "a8aae269"
@@ -4306,12 +4448,6 @@
4306
4448
  }
4307
4449
  },
4308
4450
  "indexes": [
4309
- {
4310
- "name": "commission_payouts_id_idx",
4311
- "columns": [
4312
- "id"
4313
- ]
4314
- },
4315
4451
  {
4316
4452
  "name": "commission_payouts_idempotency_key_idx",
4317
4453
  "columns": [
@@ -4319,17 +4455,43 @@
4319
4455
  ],
4320
4456
  "unique": true
4321
4457
  },
4458
+ {
4459
+ "name": "commission_payouts_slug_context_idx",
4460
+ "columns": [
4461
+ "slug",
4462
+ "context"
4463
+ ]
4464
+ },
4322
4465
  {
4323
4466
  "name": "commission_payouts_source_id_idx",
4324
4467
  "columns": [
4325
4468
  "source_id"
4326
4469
  ]
4327
- }
4328
- ],
4329
- "version": "2b0ec505"
4330
- }
4331
- },
4332
- "@happyvertical/smrt-sales:CommissionPlan": {
4470
+ },
4471
+ {
4472
+ "name": "commission_payouts_tenant_id_created_at_idx",
4473
+ "columns": [
4474
+ "tenant_id",
4475
+ "created_at"
4476
+ ]
4477
+ },
4478
+ {
4479
+ "name": "commission_payouts_earner_id_idx",
4480
+ "columns": [
4481
+ "earner_id"
4482
+ ]
4483
+ },
4484
+ {
4485
+ "name": "commission_payouts_invoice_id_idx",
4486
+ "columns": [
4487
+ "invoice_id"
4488
+ ]
4489
+ }
4490
+ ],
4491
+ "version": "2b0ec505"
4492
+ }
4493
+ },
4494
+ "@happyvertical/smrt-sales:CommissionPlan": {
4333
4495
  "name": "commissionplan",
4334
4496
  "className": "CommissionPlan",
4335
4497
  "qualifiedName": "@happyvertical/smrt-sales:CommissionPlan",
@@ -4629,12 +4791,6 @@
4629
4791
  }
4630
4792
  },
4631
4793
  "indexes": [
4632
- {
4633
- "name": "commission_plans_id_idx",
4634
- "columns": [
4635
- "id"
4636
- ]
4637
- },
4638
4794
  {
4639
4795
  "name": "commission_plans_tenant_id_plan_key_idx",
4640
4796
  "columns": [
@@ -4643,6 +4799,20 @@
4643
4799
  "version"
4644
4800
  ],
4645
4801
  "unique": true
4802
+ },
4803
+ {
4804
+ "name": "commission_plans_slug_context_idx",
4805
+ "columns": [
4806
+ "slug",
4807
+ "context"
4808
+ ]
4809
+ },
4810
+ {
4811
+ "name": "commission_plans_tenant_id_created_at_idx",
4812
+ "columns": [
4813
+ "tenant_id",
4814
+ "created_at"
4815
+ ]
4646
4816
  }
4647
4817
  ],
4648
4818
  "version": "19b92dec"
@@ -4782,7 +4952,12 @@
4782
4952
  "cli": true,
4783
4953
  "tenantScoped": {
4784
4954
  "mode": "optional"
4785
- }
4955
+ },
4956
+ "conflictColumns": [
4957
+ "tenant_id",
4958
+ "slug",
4959
+ "context"
4960
+ ]
4786
4961
  },
4787
4962
  "extends": "SmrtObject",
4788
4963
  "exportName": "Earner",
@@ -4872,19 +5047,27 @@
4872
5047
  }
4873
5048
  },
4874
5049
  "indexes": [
4875
- {
4876
- "name": "earners_id_idx",
4877
- "columns": [
4878
- "id"
4879
- ]
4880
- },
4881
5050
  {
4882
5051
  "name": "earners_slug_context_idx",
4883
5052
  "columns": [
5053
+ "tenant_id",
4884
5054
  "slug",
4885
5055
  "context"
4886
5056
  ],
4887
5057
  "unique": true
5058
+ },
5059
+ {
5060
+ "name": "earners_tenant_id_created_at_idx",
5061
+ "columns": [
5062
+ "tenant_id",
5063
+ "created_at"
5064
+ ]
5065
+ },
5066
+ {
5067
+ "name": "earners_profile_id_idx",
5068
+ "columns": [
5069
+ "profile_id"
5070
+ ]
4888
5071
  }
4889
5072
  ],
4890
5073
  "version": "b1c567fb"
@@ -5112,12 +5295,6 @@
5112
5295
  }
5113
5296
  },
5114
5297
  "indexes": [
5115
- {
5116
- "name": "earner_source_attributions_id_idx",
5117
- "columns": [
5118
- "id"
5119
- ]
5120
- },
5121
5298
  {
5122
5299
  "name": "earner_source_attributions_tenant_id_source_kind_idx",
5123
5300
  "columns": [
@@ -5127,11 +5304,31 @@
5127
5304
  ],
5128
5305
  "unique": true
5129
5306
  },
5307
+ {
5308
+ "name": "earner_source_attributions_slug_context_idx",
5309
+ "columns": [
5310
+ "slug",
5311
+ "context"
5312
+ ]
5313
+ },
5130
5314
  {
5131
5315
  "name": "earner_source_attributions_source_id_idx",
5132
5316
  "columns": [
5133
5317
  "source_id"
5134
5318
  ]
5319
+ },
5320
+ {
5321
+ "name": "earner_source_attributions_tenant_id_created_at_idx",
5322
+ "columns": [
5323
+ "tenant_id",
5324
+ "created_at"
5325
+ ]
5326
+ },
5327
+ {
5328
+ "name": "earner_source_attributions_earner_id_idx",
5329
+ "columns": [
5330
+ "earner_id"
5331
+ ]
5135
5332
  }
5136
5333
  ],
5137
5334
  "version": "cf23ab97"
@@ -5427,18 +5624,26 @@
5427
5624
  }
5428
5625
  },
5429
5626
  "indexes": [
5430
- {
5431
- "name": "earning_events_id_idx",
5432
- "columns": [
5433
- "id"
5434
- ]
5435
- },
5436
5627
  {
5437
5628
  "name": "earning_events_dedupe_key_idx",
5438
5629
  "columns": [
5439
5630
  "dedupe_key"
5440
5631
  ],
5441
5632
  "unique": true
5633
+ },
5634
+ {
5635
+ "name": "earning_events_slug_context_idx",
5636
+ "columns": [
5637
+ "slug",
5638
+ "context"
5639
+ ]
5640
+ },
5641
+ {
5642
+ "name": "earning_events_tenant_id_created_at_idx",
5643
+ "columns": [
5644
+ "tenant_id",
5645
+ "created_at"
5646
+ ]
5442
5647
  }
5443
5648
  ],
5444
5649
  "version": "aca82726"
@@ -5560,12 +5765,6 @@
5560
5765
  }
5561
5766
  },
5562
5767
  "indexes": [
5563
- {
5564
- "name": "lead_collections_id_idx",
5565
- "columns": [
5566
- "id"
5567
- ]
5568
- },
5569
5768
  {
5570
5769
  "name": "lead_collections_slug_context_idx",
5571
5770
  "columns": [
@@ -5573,6 +5772,12 @@
5573
5772
  "context"
5574
5773
  ],
5575
5774
  "unique": true
5775
+ },
5776
+ {
5777
+ "name": "lead_collections_created_at_idx",
5778
+ "columns": [
5779
+ "created_at"
5780
+ ]
5576
5781
  }
5577
5782
  ],
5578
5783
  "version": "0707eb13"
@@ -5666,12 +5871,6 @@
5666
5871
  }
5667
5872
  },
5668
5873
  "indexes": [
5669
- {
5670
- "name": "opportunity_collections_id_idx",
5671
- "columns": [
5672
- "id"
5673
- ]
5674
- },
5675
5874
  {
5676
5875
  "name": "opportunity_collections_slug_context_idx",
5677
5876
  "columns": [
@@ -5679,6 +5878,12 @@
5679
5878
  "context"
5680
5879
  ],
5681
5880
  "unique": true
5881
+ },
5882
+ {
5883
+ "name": "opportunity_collections_created_at_idx",
5884
+ "columns": [
5885
+ "created_at"
5886
+ ]
5682
5887
  }
5683
5888
  ],
5684
5889
  "version": "ebcdf63b"
@@ -5758,12 +5963,6 @@
5758
5963
  }
5759
5964
  },
5760
5965
  "indexes": [
5761
- {
5762
- "name": "opportunity_conversion_collections_id_idx",
5763
- "columns": [
5764
- "id"
5765
- ]
5766
- },
5767
5966
  {
5768
5967
  "name": "opportunity_conversion_collections_slug_context_idx",
5769
5968
  "columns": [
@@ -5771,6 +5970,12 @@
5771
5970
  "context"
5772
5971
  ],
5773
5972
  "unique": true
5973
+ },
5974
+ {
5975
+ "name": "opportunity_conversion_collections_created_at_idx",
5976
+ "columns": [
5977
+ "created_at"
5978
+ ]
5774
5979
  }
5775
5980
  ],
5776
5981
  "version": "7e30ff1b"
@@ -5872,12 +6077,6 @@
5872
6077
  }
5873
6078
  },
5874
6079
  "indexes": [
5875
- {
5876
- "name": "pipeline_definition_collections_id_idx",
5877
- "columns": [
5878
- "id"
5879
- ]
5880
- },
5881
6080
  {
5882
6081
  "name": "pipeline_definition_collections_slug_context_idx",
5883
6082
  "columns": [
@@ -5885,6 +6084,12 @@
5885
6084
  "context"
5886
6085
  ],
5887
6086
  "unique": true
6087
+ },
6088
+ {
6089
+ "name": "pipeline_definition_collections_created_at_idx",
6090
+ "columns": [
6091
+ "created_at"
6092
+ ]
5888
6093
  }
5889
6094
  ],
5890
6095
  "version": "f85d1436"
@@ -5969,12 +6174,6 @@
5969
6174
  }
5970
6175
  },
5971
6176
  "indexes": [
5972
- {
5973
- "name": "pipeline_stage_collections_id_idx",
5974
- "columns": [
5975
- "id"
5976
- ]
5977
- },
5978
6177
  {
5979
6178
  "name": "pipeline_stage_collections_slug_context_idx",
5980
6179
  "columns": [
@@ -5982,6 +6181,12 @@
5982
6181
  "context"
5983
6182
  ],
5984
6183
  "unique": true
6184
+ },
6185
+ {
6186
+ "name": "pipeline_stage_collections_created_at_idx",
6187
+ "columns": [
6188
+ "created_at"
6189
+ ]
5985
6190
  }
5986
6191
  ],
5987
6192
  "version": "72c2d7b3"
@@ -6071,12 +6276,6 @@
6071
6276
  }
6072
6277
  },
6073
6278
  "indexes": [
6074
- {
6075
- "name": "sales_activity_collections_id_idx",
6076
- "columns": [
6077
- "id"
6078
- ]
6079
- },
6080
6279
  {
6081
6280
  "name": "sales_activity_collections_slug_context_idx",
6082
6281
  "columns": [
@@ -6084,6 +6283,12 @@
6084
6283
  "context"
6085
6284
  ],
6086
6285
  "unique": true
6286
+ },
6287
+ {
6288
+ "name": "sales_activity_collections_created_at_idx",
6289
+ "columns": [
6290
+ "created_at"
6291
+ ]
6087
6292
  }
6088
6293
  ],
6089
6294
  "version": "766a0235"
@@ -6157,12 +6362,6 @@
6157
6362
  }
6158
6363
  },
6159
6364
  "indexes": [
6160
- {
6161
- "name": "sales_representative_collections_id_idx",
6162
- "columns": [
6163
- "id"
6164
- ]
6165
- },
6166
6365
  {
6167
6366
  "name": "sales_representative_collections_slug_context_idx",
6168
6367
  "columns": [
@@ -6170,6 +6369,12 @@
6170
6369
  "context"
6171
6370
  ],
6172
6371
  "unique": true
6372
+ },
6373
+ {
6374
+ "name": "sales_representative_collections_created_at_idx",
6375
+ "columns": [
6376
+ "created_at"
6377
+ ]
6173
6378
  }
6174
6379
  ],
6175
6380
  "version": "6613c45d"
@@ -6376,7 +6581,12 @@
6376
6581
  "cli": true,
6377
6582
  "tenantScoped": {
6378
6583
  "mode": "optional"
6379
- }
6584
+ },
6585
+ "conflictColumns": [
6586
+ "tenant_id",
6587
+ "slug",
6588
+ "context"
6589
+ ]
6380
6590
  },
6381
6591
  "extends": "SmrtObject",
6382
6592
  "exportName": "Lead",
@@ -6514,19 +6724,39 @@
6514
6724
  }
6515
6725
  },
6516
6726
  "indexes": [
6517
- {
6518
- "name": "leads_id_idx",
6519
- "columns": [
6520
- "id"
6521
- ]
6522
- },
6523
6727
  {
6524
6728
  "name": "leads_slug_context_idx",
6525
6729
  "columns": [
6730
+ "tenant_id",
6526
6731
  "slug",
6527
6732
  "context"
6528
6733
  ],
6529
6734
  "unique": true
6735
+ },
6736
+ {
6737
+ "name": "leads_tenant_id_created_at_idx",
6738
+ "columns": [
6739
+ "tenant_id",
6740
+ "created_at"
6741
+ ]
6742
+ },
6743
+ {
6744
+ "name": "leads_profile_id_idx",
6745
+ "columns": [
6746
+ "profile_id"
6747
+ ]
6748
+ },
6749
+ {
6750
+ "name": "leads_owner_rep_id_idx",
6751
+ "columns": [
6752
+ "owner_rep_id"
6753
+ ]
6754
+ },
6755
+ {
6756
+ "name": "leads_merged_into_id_idx",
6757
+ "columns": [
6758
+ "merged_into_id"
6759
+ ]
6530
6760
  }
6531
6761
  ],
6532
6762
  "version": "a1c330c8"
@@ -6713,7 +6943,12 @@
6713
6943
  "cli": true,
6714
6944
  "tenantScoped": {
6715
6945
  "mode": "optional"
6716
- }
6946
+ },
6947
+ "conflictColumns": [
6948
+ "tenant_id",
6949
+ "slug",
6950
+ "context"
6951
+ ]
6717
6952
  },
6718
6953
  "extends": "SmrtObject",
6719
6954
  "exportName": "Opportunity",
@@ -6855,19 +7090,45 @@
6855
7090
  }
6856
7091
  },
6857
7092
  "indexes": [
6858
- {
6859
- "name": "opportunities_id_idx",
6860
- "columns": [
6861
- "id"
6862
- ]
6863
- },
6864
7093
  {
6865
7094
  "name": "opportunities_slug_context_idx",
6866
7095
  "columns": [
7096
+ "tenant_id",
6867
7097
  "slug",
6868
7098
  "context"
6869
7099
  ],
6870
7100
  "unique": true
7101
+ },
7102
+ {
7103
+ "name": "opportunities_tenant_id_created_at_idx",
7104
+ "columns": [
7105
+ "tenant_id",
7106
+ "created_at"
7107
+ ]
7108
+ },
7109
+ {
7110
+ "name": "opportunities_lead_id_idx",
7111
+ "columns": [
7112
+ "lead_id"
7113
+ ]
7114
+ },
7115
+ {
7116
+ "name": "opportunities_owner_rep_id_idx",
7117
+ "columns": [
7118
+ "owner_rep_id"
7119
+ ]
7120
+ },
7121
+ {
7122
+ "name": "opportunities_pipeline_id_idx",
7123
+ "columns": [
7124
+ "pipeline_id"
7125
+ ]
7126
+ },
7127
+ {
7128
+ "name": "opportunities_stage_id_idx",
7129
+ "columns": [
7130
+ "stage_id"
7131
+ ]
6871
7132
  }
6872
7133
  ],
6873
7134
  "version": "a403c6cf"
@@ -7077,12 +7338,6 @@
7077
7338
  }
7078
7339
  },
7079
7340
  "indexes": [
7080
- {
7081
- "name": "opportunity_conversions_id_idx",
7082
- "columns": [
7083
- "id"
7084
- ]
7085
- },
7086
7341
  {
7087
7342
  "name": "opportunity_conversions_opportunity_id_target_kind_idx",
7088
7343
  "columns": [
@@ -7091,6 +7346,20 @@
7091
7346
  "target_id"
7092
7347
  ],
7093
7348
  "unique": true
7349
+ },
7350
+ {
7351
+ "name": "opportunity_conversions_slug_context_idx",
7352
+ "columns": [
7353
+ "slug",
7354
+ "context"
7355
+ ]
7356
+ },
7357
+ {
7358
+ "name": "opportunity_conversions_tenant_id_created_at_idx",
7359
+ "columns": [
7360
+ "tenant_id",
7361
+ "created_at"
7362
+ ]
7094
7363
  }
7095
7364
  ],
7096
7365
  "version": "82c29042"
@@ -7284,12 +7553,6 @@
7284
7553
  }
7285
7554
  },
7286
7555
  "indexes": [
7287
- {
7288
- "name": "pipeline_definitions_id_idx",
7289
- "columns": [
7290
- "id"
7291
- ]
7292
- },
7293
7556
  {
7294
7557
  "name": "pipeline_definitions_tenant_id_key_idx",
7295
7558
  "columns": [
@@ -7297,6 +7560,20 @@
7297
7560
  "key"
7298
7561
  ],
7299
7562
  "unique": true
7563
+ },
7564
+ {
7565
+ "name": "pipeline_definitions_slug_context_idx",
7566
+ "columns": [
7567
+ "slug",
7568
+ "context"
7569
+ ]
7570
+ },
7571
+ {
7572
+ "name": "pipeline_definitions_tenant_id_created_at_idx",
7573
+ "columns": [
7574
+ "tenant_id",
7575
+ "created_at"
7576
+ ]
7300
7577
  }
7301
7578
  ],
7302
7579
  "version": "5e3ace6c"
@@ -7531,12 +7808,6 @@
7531
7808
  }
7532
7809
  },
7533
7810
  "indexes": [
7534
- {
7535
- "name": "pipeline_stages_id_idx",
7536
- "columns": [
7537
- "id"
7538
- ]
7539
- },
7540
7811
  {
7541
7812
  "name": "pipeline_stages_pipeline_id_key_idx",
7542
7813
  "columns": [
@@ -7544,6 +7815,20 @@
7544
7815
  "key"
7545
7816
  ],
7546
7817
  "unique": true
7818
+ },
7819
+ {
7820
+ "name": "pipeline_stages_slug_context_idx",
7821
+ "columns": [
7822
+ "slug",
7823
+ "context"
7824
+ ]
7825
+ },
7826
+ {
7827
+ "name": "pipeline_stages_tenant_id_created_at_idx",
7828
+ "columns": [
7829
+ "tenant_id",
7830
+ "created_at"
7831
+ ]
7547
7832
  }
7548
7833
  ],
7549
7834
  "version": "bdb0cf4e"
@@ -7674,7 +7959,12 @@
7674
7959
  "cli": false,
7675
7960
  "tenantScoped": {
7676
7961
  "mode": "optional"
7677
- }
7962
+ },
7963
+ "conflictColumns": [
7964
+ "tenant_id",
7965
+ "slug",
7966
+ "context"
7967
+ ]
7678
7968
  },
7679
7969
  "extends": "SmrtObject",
7680
7970
  "exportName": "SalesActivity",
@@ -7769,19 +8059,27 @@
7769
8059
  }
7770
8060
  },
7771
8061
  "indexes": [
7772
- {
7773
- "name": "sales_activities_id_idx",
7774
- "columns": [
7775
- "id"
7776
- ]
7777
- },
7778
8062
  {
7779
8063
  "name": "sales_activities_slug_context_idx",
7780
8064
  "columns": [
8065
+ "tenant_id",
7781
8066
  "slug",
7782
8067
  "context"
7783
8068
  ],
7784
8069
  "unique": true
8070
+ },
8071
+ {
8072
+ "name": "sales_activities_tenant_id_created_at_idx",
8073
+ "columns": [
8074
+ "tenant_id",
8075
+ "created_at"
8076
+ ]
8077
+ },
8078
+ {
8079
+ "name": "sales_activities_actor_profile_id_idx",
8080
+ "columns": [
8081
+ "actor_profile_id"
8082
+ ]
7785
8083
  }
7786
8084
  ],
7787
8085
  "version": "b3173b53"
@@ -7889,7 +8187,12 @@
7889
8187
  "cli": true,
7890
8188
  "tenantScoped": {
7891
8189
  "mode": "optional"
7892
- }
8190
+ },
8191
+ "conflictColumns": [
8192
+ "tenant_id",
8193
+ "slug",
8194
+ "context"
8195
+ ]
7893
8196
  },
7894
8197
  "extends": "SmrtObject",
7895
8198
  "exportName": "SalesRepresentative",
@@ -7961,19 +8264,33 @@
7961
8264
  }
7962
8265
  },
7963
8266
  "indexes": [
7964
- {
7965
- "name": "sales_representatives_id_idx",
7966
- "columns": [
7967
- "id"
7968
- ]
7969
- },
7970
8267
  {
7971
8268
  "name": "sales_representatives_slug_context_idx",
7972
8269
  "columns": [
8270
+ "tenant_id",
7973
8271
  "slug",
7974
8272
  "context"
7975
8273
  ],
7976
8274
  "unique": true
8275
+ },
8276
+ {
8277
+ "name": "sales_representatives_tenant_id_created_at_idx",
8278
+ "columns": [
8279
+ "tenant_id",
8280
+ "created_at"
8281
+ ]
8282
+ },
8283
+ {
8284
+ "name": "sales_representatives_profile_id_idx",
8285
+ "columns": [
8286
+ "profile_id"
8287
+ ]
8288
+ },
8289
+ {
8290
+ "name": "sales_representatives_earner_id_idx",
8291
+ "columns": [
8292
+ "earner_id"
8293
+ ]
7977
8294
  }
7978
8295
  ],
7979
8296
  "version": "7b67ed6e"
@@ -8076,12 +8393,6 @@
8076
8393
  }
8077
8394
  },
8078
8395
  "indexes": [
8079
- {
8080
- "name": "attribution_exception_collections_id_idx",
8081
- "columns": [
8082
- "id"
8083
- ]
8084
- },
8085
8396
  {
8086
8397
  "name": "attribution_exception_collections_slug_context_idx",
8087
8398
  "columns": [
@@ -8089,6 +8400,12 @@
8089
8400
  "context"
8090
8401
  ],
8091
8402
  "unique": true
8403
+ },
8404
+ {
8405
+ "name": "attribution_exception_collections_created_at_idx",
8406
+ "columns": [
8407
+ "created_at"
8408
+ ]
8092
8409
  }
8093
8410
  ],
8094
8411
  "version": "6b65d721"
@@ -8211,12 +8528,6 @@
8211
8528
  }
8212
8529
  },
8213
8530
  "indexes": [
8214
- {
8215
- "name": "attribution_policy_collections_id_idx",
8216
- "columns": [
8217
- "id"
8218
- ]
8219
- },
8220
8531
  {
8221
8532
  "name": "attribution_policy_collections_slug_context_idx",
8222
8533
  "columns": [
@@ -8224,6 +8535,12 @@
8224
8535
  "context"
8225
8536
  ],
8226
8537
  "unique": true
8538
+ },
8539
+ {
8540
+ "name": "attribution_policy_collections_created_at_idx",
8541
+ "columns": [
8542
+ "created_at"
8543
+ ]
8227
8544
  }
8228
8545
  ],
8229
8546
  "version": "656f5a91"
@@ -8342,12 +8659,6 @@
8342
8659
  }
8343
8660
  },
8344
8661
  "indexes": [
8345
- {
8346
- "name": "referral_agreement_collections_id_idx",
8347
- "columns": [
8348
- "id"
8349
- ]
8350
- },
8351
8662
  {
8352
8663
  "name": "referral_agreement_collections_slug_context_idx",
8353
8664
  "columns": [
@@ -8355,6 +8666,12 @@
8355
8666
  "context"
8356
8667
  ],
8357
8668
  "unique": true
8669
+ },
8670
+ {
8671
+ "name": "referral_agreement_collections_created_at_idx",
8672
+ "columns": [
8673
+ "created_at"
8674
+ ]
8358
8675
  }
8359
8676
  ],
8360
8677
  "version": "f4832104"
@@ -8434,12 +8751,6 @@
8434
8751
  }
8435
8752
  },
8436
8753
  "indexes": [
8437
- {
8438
- "name": "referral_click_operation_collections_id_idx",
8439
- "columns": [
8440
- "id"
8441
- ]
8442
- },
8443
8754
  {
8444
8755
  "name": "referral_click_operation_collections_slug_context_idx",
8445
8756
  "columns": [
@@ -8447,6 +8758,12 @@
8447
8758
  "context"
8448
8759
  ],
8449
8760
  "unique": true
8761
+ },
8762
+ {
8763
+ "name": "referral_click_operation_collections_created_at_idx",
8764
+ "columns": [
8765
+ "created_at"
8766
+ ]
8450
8767
  }
8451
8768
  ],
8452
8769
  "version": "1e78a70b"
@@ -8562,14 +8879,8 @@
8562
8879
  "notNull": true,
8563
8880
  "default": "current_timestamp"
8564
8881
  }
8565
- },
8566
- "indexes": [
8567
- {
8568
- "name": "referral_collections_id_idx",
8569
- "columns": [
8570
- "id"
8571
- ]
8572
- },
8882
+ },
8883
+ "indexes": [
8573
8884
  {
8574
8885
  "name": "referral_collections_slug_context_idx",
8575
8886
  "columns": [
@@ -8577,6 +8888,12 @@
8577
8888
  "context"
8578
8889
  ],
8579
8890
  "unique": true
8891
+ },
8892
+ {
8893
+ "name": "referral_collections_created_at_idx",
8894
+ "columns": [
8895
+ "created_at"
8896
+ ]
8580
8897
  }
8581
8898
  ],
8582
8899
  "version": "416e4273"
@@ -8684,12 +9001,6 @@
8684
9001
  }
8685
9002
  },
8686
9003
  "indexes": [
8687
- {
8688
- "name": "referral_link_collections_id_idx",
8689
- "columns": [
8690
- "id"
8691
- ]
8692
- },
8693
9004
  {
8694
9005
  "name": "referral_link_collections_slug_context_idx",
8695
9006
  "columns": [
@@ -8697,6 +9008,12 @@
8697
9008
  "context"
8698
9009
  ],
8699
9010
  "unique": true
9011
+ },
9012
+ {
9013
+ "name": "referral_link_collections_created_at_idx",
9014
+ "columns": [
9015
+ "created_at"
9016
+ ]
8700
9017
  }
8701
9018
  ],
8702
9019
  "version": "a337c544"
@@ -8784,12 +9101,6 @@
8784
9101
  }
8785
9102
  },
8786
9103
  "indexes": [
8787
- {
8788
- "name": "referral_program_collections_id_idx",
8789
- "columns": [
8790
- "id"
8791
- ]
8792
- },
8793
9104
  {
8794
9105
  "name": "referral_program_collections_slug_context_idx",
8795
9106
  "columns": [
@@ -8797,6 +9108,12 @@
8797
9108
  "context"
8798
9109
  ],
8799
9110
  "unique": true
9111
+ },
9112
+ {
9113
+ "name": "referral_program_collections_created_at_idx",
9114
+ "columns": [
9115
+ "created_at"
9116
+ ]
8800
9117
  }
8801
9118
  ],
8802
9119
  "version": "3f63e2eb"
@@ -8862,12 +9179,6 @@
8862
9179
  }
8863
9180
  },
8864
9181
  "indexes": [
8865
- {
8866
- "name": "referral_term_snapshot_collections_id_idx",
8867
- "columns": [
8868
- "id"
8869
- ]
8870
- },
8871
9182
  {
8872
9183
  "name": "referral_term_snapshot_collections_slug_context_idx",
8873
9184
  "columns": [
@@ -8875,6 +9186,12 @@
8875
9186
  "context"
8876
9187
  ],
8877
9188
  "unique": true
9189
+ },
9190
+ {
9191
+ "name": "referral_term_snapshot_collections_created_at_idx",
9192
+ "columns": [
9193
+ "created_at"
9194
+ ]
8878
9195
  }
8879
9196
  ],
8880
9197
  "version": "d8fcbd0f"
@@ -8973,12 +9290,6 @@
8973
9290
  }
8974
9291
  },
8975
9292
  "indexes": [
8976
- {
8977
- "name": "referral_touch_collections_id_idx",
8978
- "columns": [
8979
- "id"
8980
- ]
8981
- },
8982
9293
  {
8983
9294
  "name": "referral_touch_collections_slug_context_idx",
8984
9295
  "columns": [
@@ -8986,6 +9297,12 @@
8986
9297
  "context"
8987
9298
  ],
8988
9299
  "unique": true
9300
+ },
9301
+ {
9302
+ "name": "referral_touch_collections_created_at_idx",
9303
+ "columns": [
9304
+ "created_at"
9305
+ ]
8989
9306
  }
8990
9307
  ],
8991
9308
  "version": "7133afa3"
@@ -9073,12 +9390,6 @@
9073
9390
  }
9074
9391
  },
9075
9392
  "indexes": [
9076
- {
9077
- "name": "referrer_collections_id_idx",
9078
- "columns": [
9079
- "id"
9080
- ]
9081
- },
9082
9393
  {
9083
9394
  "name": "referrer_collections_slug_context_idx",
9084
9395
  "columns": [
@@ -9086,6 +9397,12 @@
9086
9397
  "context"
9087
9398
  ],
9088
9399
  "unique": true
9400
+ },
9401
+ {
9402
+ "name": "referrer_collections_created_at_idx",
9403
+ "columns": [
9404
+ "created_at"
9405
+ ]
9089
9406
  }
9090
9407
  ],
9091
9408
  "version": "fe6cb81f"
@@ -9297,7 +9614,12 @@
9297
9614
  "cli": false,
9298
9615
  "tenantScoped": {
9299
9616
  "mode": "optional"
9300
- }
9617
+ },
9618
+ "conflictColumns": [
9619
+ "tenant_id",
9620
+ "slug",
9621
+ "context"
9622
+ ]
9301
9623
  },
9302
9624
  "extends": "SmrtObject",
9303
9625
  "exportName": "AttributionException",
@@ -9422,19 +9744,33 @@
9422
9744
  }
9423
9745
  },
9424
9746
  "indexes": [
9425
- {
9426
- "name": "attribution_exceptions_id_idx",
9427
- "columns": [
9428
- "id"
9429
- ]
9430
- },
9431
9747
  {
9432
9748
  "name": "attribution_exceptions_slug_context_idx",
9433
9749
  "columns": [
9750
+ "tenant_id",
9434
9751
  "slug",
9435
9752
  "context"
9436
9753
  ],
9437
9754
  "unique": true
9755
+ },
9756
+ {
9757
+ "name": "attribution_exceptions_tenant_id_created_at_idx",
9758
+ "columns": [
9759
+ "tenant_id",
9760
+ "created_at"
9761
+ ]
9762
+ },
9763
+ {
9764
+ "name": "attribution_exceptions_program_id_idx",
9765
+ "columns": [
9766
+ "program_id"
9767
+ ]
9768
+ },
9769
+ {
9770
+ "name": "attribution_exceptions_resolved_by_profile_id_idx",
9771
+ "columns": [
9772
+ "resolved_by_profile_id"
9773
+ ]
9438
9774
  }
9439
9775
  ],
9440
9776
  "version": "7b26a117"
@@ -9828,12 +10164,6 @@
9828
10164
  }
9829
10165
  },
9830
10166
  "indexes": [
9831
- {
9832
- "name": "attribution_policies_id_idx",
9833
- "columns": [
9834
- "id"
9835
- ]
9836
- },
9837
10167
  {
9838
10168
  "name": "attribution_policies_tenant_id_policy_key_idx",
9839
10169
  "columns": [
@@ -9842,6 +10172,20 @@
9842
10172
  "version"
9843
10173
  ],
9844
10174
  "unique": true
10175
+ },
10176
+ {
10177
+ "name": "attribution_policies_slug_context_idx",
10178
+ "columns": [
10179
+ "slug",
10180
+ "context"
10181
+ ]
10182
+ },
10183
+ {
10184
+ "name": "attribution_policies_tenant_id_created_at_idx",
10185
+ "columns": [
10186
+ "tenant_id",
10187
+ "created_at"
10188
+ ]
9845
10189
  }
9846
10190
  ],
9847
10191
  "version": "14c54dd2"
@@ -10085,7 +10429,12 @@
10085
10429
  "cli": true,
10086
10430
  "tenantScoped": {
10087
10431
  "mode": "optional"
10088
- }
10432
+ },
10433
+ "conflictColumns": [
10434
+ "tenant_id",
10435
+ "slug",
10436
+ "context"
10437
+ ]
10089
10438
  },
10090
10439
  "extends": "SmrtObject",
10091
10440
  "exportName": "Referral",
@@ -10226,19 +10575,39 @@
10226
10575
  }
10227
10576
  },
10228
10577
  "indexes": [
10229
- {
10230
- "name": "referrals_id_idx",
10231
- "columns": [
10232
- "id"
10233
- ]
10234
- },
10235
10578
  {
10236
10579
  "name": "referrals_slug_context_idx",
10237
10580
  "columns": [
10581
+ "tenant_id",
10238
10582
  "slug",
10239
10583
  "context"
10240
10584
  ],
10241
10585
  "unique": true
10586
+ },
10587
+ {
10588
+ "name": "referrals_tenant_id_created_at_idx",
10589
+ "columns": [
10590
+ "tenant_id",
10591
+ "created_at"
10592
+ ]
10593
+ },
10594
+ {
10595
+ "name": "referrals_referrer_id_idx",
10596
+ "columns": [
10597
+ "referrer_id"
10598
+ ]
10599
+ },
10600
+ {
10601
+ "name": "referrals_program_id_idx",
10602
+ "columns": [
10603
+ "program_id"
10604
+ ]
10605
+ },
10606
+ {
10607
+ "name": "referrals_primary_touch_id_idx",
10608
+ "columns": [
10609
+ "primary_touch_id"
10610
+ ]
10242
10611
  }
10243
10612
  ],
10244
10613
  "version": "ad461382"
@@ -10614,12 +10983,6 @@
10614
10983
  }
10615
10984
  },
10616
10985
  "indexes": [
10617
- {
10618
- "name": "referral_agreements_id_idx",
10619
- "columns": [
10620
- "id"
10621
- ]
10622
- },
10623
10986
  {
10624
10987
  "name": "referral_agreements_referrer_id_program_id_idx",
10625
10988
  "columns": [
@@ -10628,6 +10991,38 @@
10628
10991
  "version"
10629
10992
  ],
10630
10993
  "unique": true
10994
+ },
10995
+ {
10996
+ "name": "referral_agreements_slug_context_idx",
10997
+ "columns": [
10998
+ "slug",
10999
+ "context"
11000
+ ]
11001
+ },
11002
+ {
11003
+ "name": "referral_agreements_tenant_id_created_at_idx",
11004
+ "columns": [
11005
+ "tenant_id",
11006
+ "created_at"
11007
+ ]
11008
+ },
11009
+ {
11010
+ "name": "referral_agreements_program_id_idx",
11011
+ "columns": [
11012
+ "program_id"
11013
+ ]
11014
+ },
11015
+ {
11016
+ "name": "referral_agreements_execution_id_idx",
11017
+ "columns": [
11018
+ "execution_id"
11019
+ ]
11020
+ },
11021
+ {
11022
+ "name": "referral_agreements_executed_agreement_id_idx",
11023
+ "columns": [
11024
+ "executed_agreement_id"
11025
+ ]
10631
11026
  }
10632
11027
  ],
10633
11028
  "version": "aadbced2"
@@ -10734,7 +11129,12 @@
10734
11129
  "cli": false,
10735
11130
  "tenantScoped": {
10736
11131
  "mode": "optional"
10737
- }
11132
+ },
11133
+ "conflictColumns": [
11134
+ "tenant_id",
11135
+ "slug",
11136
+ "context"
11137
+ ]
10738
11138
  },
10739
11139
  "extends": "SmrtObject",
10740
11140
  "exportName": "ReferralClickOperation",
@@ -10838,15 +11238,10 @@
10838
11238
  }
10839
11239
  },
10840
11240
  "indexes": [
10841
- {
10842
- "name": "referral_click_operations_id_idx",
10843
- "columns": [
10844
- "id"
10845
- ]
10846
- },
10847
11241
  {
10848
11242
  "name": "referral_click_operations_slug_context_idx",
10849
11243
  "columns": [
11244
+ "tenant_id",
10850
11245
  "slug",
10851
11246
  "context"
10852
11247
  ],
@@ -10863,6 +11258,13 @@
10863
11258
  "columns": [
10864
11259
  "touch_id"
10865
11260
  ]
11261
+ },
11262
+ {
11263
+ "name": "referral_click_operations_tenant_id_created_at_idx",
11264
+ "columns": [
11265
+ "tenant_id",
11266
+ "created_at"
11267
+ ]
10866
11268
  }
10867
11269
  ],
10868
11270
  "version": "f82840ee"
@@ -11113,18 +11515,38 @@
11113
11515
  }
11114
11516
  },
11115
11517
  "indexes": [
11116
- {
11117
- "name": "referral_links_id_idx",
11118
- "columns": [
11119
- "id"
11120
- ]
11121
- },
11122
11518
  {
11123
11519
  "name": "referral_links_code_idx",
11124
11520
  "columns": [
11125
11521
  "code"
11126
11522
  ],
11127
11523
  "unique": true
11524
+ },
11525
+ {
11526
+ "name": "referral_links_slug_context_idx",
11527
+ "columns": [
11528
+ "slug",
11529
+ "context"
11530
+ ]
11531
+ },
11532
+ {
11533
+ "name": "referral_links_tenant_id_created_at_idx",
11534
+ "columns": [
11535
+ "tenant_id",
11536
+ "created_at"
11537
+ ]
11538
+ },
11539
+ {
11540
+ "name": "referral_links_referrer_id_idx",
11541
+ "columns": [
11542
+ "referrer_id"
11543
+ ]
11544
+ },
11545
+ {
11546
+ "name": "referral_links_program_id_idx",
11547
+ "columns": [
11548
+ "program_id"
11549
+ ]
11128
11550
  }
11129
11551
  ],
11130
11552
  "version": "948b7e89"
@@ -11329,12 +11751,6 @@
11329
11751
  }
11330
11752
  },
11331
11753
  "indexes": [
11332
- {
11333
- "name": "referral_programs_id_idx",
11334
- "columns": [
11335
- "id"
11336
- ]
11337
- },
11338
11754
  {
11339
11755
  "name": "referral_programs_tenant_id_key_idx",
11340
11756
  "columns": [
@@ -11342,6 +11758,20 @@
11342
11758
  "key"
11343
11759
  ],
11344
11760
  "unique": true
11761
+ },
11762
+ {
11763
+ "name": "referral_programs_slug_context_idx",
11764
+ "columns": [
11765
+ "slug",
11766
+ "context"
11767
+ ]
11768
+ },
11769
+ {
11770
+ "name": "referral_programs_tenant_id_created_at_idx",
11771
+ "columns": [
11772
+ "tenant_id",
11773
+ "created_at"
11774
+ ]
11345
11775
  }
11346
11776
  ],
11347
11777
  "version": "b412cfba"
@@ -11487,7 +11917,12 @@
11487
11917
  "cli": false,
11488
11918
  "tenantScoped": {
11489
11919
  "mode": "optional"
11490
- }
11920
+ },
11921
+ "conflictColumns": [
11922
+ "tenant_id",
11923
+ "slug",
11924
+ "context"
11925
+ ]
11491
11926
  },
11492
11927
  "extends": "SmrtObject",
11493
11928
  "exportName": "ReferralTermSnapshot",
@@ -11608,19 +12043,27 @@
11608
12043
  }
11609
12044
  },
11610
12045
  "indexes": [
11611
- {
11612
- "name": "referral_term_snapshots_id_idx",
11613
- "columns": [
11614
- "id"
11615
- ]
11616
- },
11617
12046
  {
11618
12047
  "name": "referral_term_snapshots_slug_context_idx",
11619
12048
  "columns": [
12049
+ "tenant_id",
11620
12050
  "slug",
11621
12051
  "context"
11622
12052
  ],
11623
12053
  "unique": true
12054
+ },
12055
+ {
12056
+ "name": "referral_term_snapshots_tenant_id_created_at_idx",
12057
+ "columns": [
12058
+ "tenant_id",
12059
+ "created_at"
12060
+ ]
12061
+ },
12062
+ {
12063
+ "name": "referral_term_snapshots_referral_id_idx",
12064
+ "columns": [
12065
+ "referral_id"
12066
+ ]
11624
12067
  }
11625
12068
  ],
11626
12069
  "version": "61077e65"
@@ -11776,7 +12219,12 @@
11776
12219
  "cli": false,
11777
12220
  "tenantScoped": {
11778
12221
  "mode": "optional"
11779
- }
12222
+ },
12223
+ "conflictColumns": [
12224
+ "tenant_id",
12225
+ "slug",
12226
+ "context"
12227
+ ]
11780
12228
  },
11781
12229
  "extends": "SmrtObject",
11782
12230
  "exportName": "ReferralTouch",
@@ -11884,19 +12332,39 @@
11884
12332
  }
11885
12333
  },
11886
12334
  "indexes": [
11887
- {
11888
- "name": "referral_touches_id_idx",
11889
- "columns": [
11890
- "id"
11891
- ]
11892
- },
11893
12335
  {
11894
12336
  "name": "referral_touches_slug_context_idx",
11895
12337
  "columns": [
12338
+ "tenant_id",
11896
12339
  "slug",
11897
12340
  "context"
11898
12341
  ],
11899
12342
  "unique": true
12343
+ },
12344
+ {
12345
+ "name": "referral_touches_tenant_id_created_at_idx",
12346
+ "columns": [
12347
+ "tenant_id",
12348
+ "created_at"
12349
+ ]
12350
+ },
12351
+ {
12352
+ "name": "referral_touches_link_id_idx",
12353
+ "columns": [
12354
+ "link_id"
12355
+ ]
12356
+ },
12357
+ {
12358
+ "name": "referral_touches_referrer_id_idx",
12359
+ "columns": [
12360
+ "referrer_id"
12361
+ ]
12362
+ },
12363
+ {
12364
+ "name": "referral_touches_program_id_idx",
12365
+ "columns": [
12366
+ "program_id"
12367
+ ]
11900
12368
  }
11901
12369
  ],
11902
12370
  "version": "3b3c5106"
@@ -12021,7 +12489,12 @@
12021
12489
  "cli": true,
12022
12490
  "tenantScoped": {
12023
12491
  "mode": "optional"
12024
- }
12492
+ },
12493
+ "conflictColumns": [
12494
+ "tenant_id",
12495
+ "slug",
12496
+ "context"
12497
+ ]
12025
12498
  },
12026
12499
  "extends": "SmrtObject",
12027
12500
  "exportName": "Referrer",
@@ -12093,19 +12566,33 @@
12093
12566
  }
12094
12567
  },
12095
12568
  "indexes": [
12096
- {
12097
- "name": "referrers_id_idx",
12098
- "columns": [
12099
- "id"
12100
- ]
12101
- },
12102
12569
  {
12103
12570
  "name": "referrers_slug_context_idx",
12104
12571
  "columns": [
12572
+ "tenant_id",
12105
12573
  "slug",
12106
12574
  "context"
12107
12575
  ],
12108
12576
  "unique": true
12577
+ },
12578
+ {
12579
+ "name": "referrers_tenant_id_created_at_idx",
12580
+ "columns": [
12581
+ "tenant_id",
12582
+ "created_at"
12583
+ ]
12584
+ },
12585
+ {
12586
+ "name": "referrers_profile_id_idx",
12587
+ "columns": [
12588
+ "profile_id"
12589
+ ]
12590
+ },
12591
+ {
12592
+ "name": "referrers_earner_id_idx",
12593
+ "columns": [
12594
+ "earner_id"
12595
+ ]
12109
12596
  }
12110
12597
  ],
12111
12598
  "version": "81f4908a"