@happyvertical/smrt-support 0.60.9 → 0.60.11

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-support",
5
- "packageVersion": "0.60.9",
5
+ "packageVersion": "0.60.11",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-support:ServiceTimeEntry": {
8
8
  "name": "servicetimeentry",
@@ -292,8 +292,14 @@
292
292
  "collectionExportName": "ServiceTimeEntryCollection",
293
293
  "schema": {
294
294
  "tableName": "service_time_entries",
295
- "ddl": "CREATE TABLE IF NOT EXISTS \"service_time_entries\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID,\n \"work_ref_type\" TEXT,\n \"work_ref_id\" TEXT,\n \"specialist_id\" UUID,\n \"participant_kind\" TEXT,\n \"participant_profile_id\" UUID,\n \"agent_ref\" TEXT,\n \"source\" TEXT,\n \"description\" TEXT,\n \"started_at\" TIMESTAMP,\n \"ended_at\" TIMESTAMP,\n \"duration_seconds\" INTEGER,\n \"evidence\" TEXT,\n \"status\" TEXT,\n \"submitted_at\" TIMESTAMP,\n \"submitted_by_profile_id\" UUID,\n \"approved_at\" TIMESTAMP,\n \"approved_by_profile_id\" UUID,\n \"approval_path\" TEXT,\n \"rejected_at\" TIMESTAMP,\n \"rejected_by_profile_id\" UUID,\n \"rejection_reason\" TEXT,\n \"correction_of_id\" UUID,\n \"metadata\" TEXT\n);",
295
+ "ddl": "CREATE TABLE IF NOT EXISTS \"service_time_entries\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID,\n \"work_ref_type\" TEXT,\n \"work_ref_id\" TEXT,\n \"specialist_id\" UUID,\n \"participant_kind\" TEXT,\n \"participant_profile_id\" UUID,\n \"agent_ref\" TEXT,\n \"source\" TEXT,\n \"description\" TEXT,\n \"started_at\" TIMESTAMP,\n \"ended_at\" TIMESTAMP,\n \"duration_seconds\" INTEGER,\n \"evidence\" TEXT,\n \"status\" TEXT,\n \"submitted_at\" TIMESTAMP,\n \"submitted_by_profile_id\" UUID,\n \"approved_at\" TIMESTAMP,\n \"approved_by_profile_id\" UUID,\n \"approval_path\" TEXT,\n \"rejected_at\" TIMESTAMP,\n \"rejected_by_profile_id\" UUID,\n \"rejection_reason\" TEXT,\n \"correction_of_id\" UUID,\n \"metadata\" TEXT\n);",
296
296
  "columns": {
297
+ "_sync_origin_device_id": {
298
+ "type": "TEXT"
299
+ },
300
+ "_sync_revision": {
301
+ "type": "INTEGER"
302
+ },
297
303
  "id": {
298
304
  "type": "UUID",
299
305
  "primaryKey": true,
@@ -532,7 +538,7 @@
532
538
  ]
533
539
  }
534
540
  ],
535
- "version": "4a27a55d"
541
+ "version": "ac2fe7be"
536
542
  },
537
543
  "importPath": "@happyvertical/smrt-support"
538
544
  },
@@ -615,8 +621,14 @@
615
621
  ],
616
622
  "schema": {
617
623
  "tableName": "service_time_entries",
618
- "ddl": "CREATE TABLE IF NOT EXISTS \"service_time_entries\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID,\n \"work_ref_type\" TEXT,\n \"work_ref_id\" TEXT,\n \"specialist_id\" UUID,\n \"participant_kind\" TEXT,\n \"participant_profile_id\" UUID,\n \"agent_ref\" TEXT,\n \"source\" TEXT,\n \"description\" TEXT,\n \"started_at\" TIMESTAMP,\n \"ended_at\" TIMESTAMP,\n \"duration_seconds\" INTEGER,\n \"evidence\" TEXT,\n \"status\" TEXT,\n \"submitted_at\" TIMESTAMP,\n \"submitted_by_profile_id\" UUID,\n \"approved_at\" TIMESTAMP,\n \"approved_by_profile_id\" UUID,\n \"approval_path\" TEXT,\n \"rejected_at\" TIMESTAMP,\n \"rejected_by_profile_id\" UUID,\n \"rejection_reason\" TEXT,\n \"correction_of_id\" UUID,\n \"metadata\" TEXT\n);",
624
+ "ddl": "CREATE TABLE IF NOT EXISTS \"service_time_entries\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID,\n \"work_ref_type\" TEXT,\n \"work_ref_id\" TEXT,\n \"specialist_id\" UUID,\n \"participant_kind\" TEXT,\n \"participant_profile_id\" UUID,\n \"agent_ref\" TEXT,\n \"source\" TEXT,\n \"description\" TEXT,\n \"started_at\" TIMESTAMP,\n \"ended_at\" TIMESTAMP,\n \"duration_seconds\" INTEGER,\n \"evidence\" TEXT,\n \"status\" TEXT,\n \"submitted_at\" TIMESTAMP,\n \"submitted_by_profile_id\" UUID,\n \"approved_at\" TIMESTAMP,\n \"approved_by_profile_id\" UUID,\n \"approval_path\" TEXT,\n \"rejected_at\" TIMESTAMP,\n \"rejected_by_profile_id\" UUID,\n \"rejection_reason\" TEXT,\n \"correction_of_id\" UUID,\n \"metadata\" TEXT\n);",
619
625
  "columns": {
626
+ "_sync_origin_device_id": {
627
+ "type": "TEXT"
628
+ },
629
+ "_sync_revision": {
630
+ "type": "INTEGER"
631
+ },
620
632
  "id": {
621
633
  "type": "UUID",
622
634
  "primaryKey": true,
@@ -855,7 +867,7 @@
855
867
  ]
856
868
  }
857
869
  ],
858
- "version": "4a27a55d"
870
+ "version": "ac2fe7be"
859
871
  },
860
872
  "importPath": "@happyvertical/smrt-support"
861
873
  },
@@ -1086,8 +1098,14 @@
1086
1098
  ],
1087
1099
  "schema": {
1088
1100
  "tableName": "support_ai_runs",
1089
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_ai_runs\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"interaction_id\" UUID,\n \"phase\" TEXT,\n \"outcome\" TEXT,\n \"confidence\" REAL,\n \"classification\" TEXT,\n \"response_interaction_id\" UUID,\n \"knowledge_refs\" TEXT,\n \"tool_calls\" TEXT,\n \"error\" TEXT,\n \"correlation_id\" TEXT,\n \"model\" TEXT,\n \"started_at\" TIMESTAMP,\n \"completed_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
1101
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_ai_runs\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"interaction_id\" UUID,\n \"phase\" TEXT,\n \"outcome\" TEXT,\n \"confidence\" REAL,\n \"classification\" TEXT,\n \"response_interaction_id\" UUID,\n \"knowledge_refs\" TEXT,\n \"tool_calls\" TEXT,\n \"error\" TEXT,\n \"correlation_id\" TEXT,\n \"model\" TEXT,\n \"started_at\" TIMESTAMP,\n \"completed_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
1090
1102
  "columns": {
1103
+ "_sync_origin_device_id": {
1104
+ "type": "TEXT"
1105
+ },
1106
+ "_sync_revision": {
1107
+ "type": "INTEGER"
1108
+ },
1091
1109
  "id": {
1092
1110
  "type": "UUID",
1093
1111
  "primaryKey": true,
@@ -1253,7 +1271,7 @@
1253
1271
  ]
1254
1272
  }
1255
1273
  ],
1256
- "version": "5edb948b"
1274
+ "version": "6e58db1b"
1257
1275
  },
1258
1276
  "importPath": "@happyvertical/smrt-support"
1259
1277
  },
@@ -1314,8 +1332,14 @@
1314
1332
  ],
1315
1333
  "schema": {
1316
1334
  "tableName": "support_ai_runs",
1317
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_ai_runs\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"interaction_id\" UUID,\n \"phase\" TEXT,\n \"outcome\" TEXT,\n \"confidence\" REAL,\n \"classification\" TEXT,\n \"response_interaction_id\" UUID,\n \"knowledge_refs\" TEXT,\n \"tool_calls\" TEXT,\n \"error\" TEXT,\n \"correlation_id\" TEXT,\n \"model\" TEXT,\n \"started_at\" TIMESTAMP,\n \"completed_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
1335
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_ai_runs\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"interaction_id\" UUID,\n \"phase\" TEXT,\n \"outcome\" TEXT,\n \"confidence\" REAL,\n \"classification\" TEXT,\n \"response_interaction_id\" UUID,\n \"knowledge_refs\" TEXT,\n \"tool_calls\" TEXT,\n \"error\" TEXT,\n \"correlation_id\" TEXT,\n \"model\" TEXT,\n \"started_at\" TIMESTAMP,\n \"completed_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
1318
1336
  "columns": {
1337
+ "_sync_origin_device_id": {
1338
+ "type": "TEXT"
1339
+ },
1340
+ "_sync_revision": {
1341
+ "type": "INTEGER"
1342
+ },
1319
1343
  "id": {
1320
1344
  "type": "UUID",
1321
1345
  "primaryKey": true,
@@ -1481,7 +1505,7 @@
1481
1505
  ]
1482
1506
  }
1483
1507
  ],
1484
- "version": "5edb948b"
1508
+ "version": "6e58db1b"
1485
1509
  },
1486
1510
  "importPath": "@happyvertical/smrt-support"
1487
1511
  },
@@ -1643,8 +1667,14 @@
1643
1667
  ],
1644
1668
  "schema": {
1645
1669
  "tableName": "support_case_events",
1646
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_case_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"event_type\" TEXT,\n \"actor_kind\" TEXT,\n \"actor_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"summary\" TEXT,\n \"payload\" TEXT\n);",
1670
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_case_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"event_type\" TEXT,\n \"actor_kind\" TEXT,\n \"actor_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"summary\" TEXT,\n \"payload\" TEXT\n);",
1647
1671
  "columns": {
1672
+ "_sync_origin_device_id": {
1673
+ "type": "TEXT"
1674
+ },
1675
+ "_sync_revision": {
1676
+ "type": "INTEGER"
1677
+ },
1648
1678
  "id": {
1649
1679
  "type": "UUID",
1650
1680
  "primaryKey": true,
@@ -1751,7 +1781,7 @@
1751
1781
  ]
1752
1782
  }
1753
1783
  ],
1754
- "version": "eff9cadb"
1784
+ "version": "38aaebe8"
1755
1785
  },
1756
1786
  "importPath": "@happyvertical/smrt-support"
1757
1787
  },
@@ -1820,8 +1850,14 @@
1820
1850
  ],
1821
1851
  "schema": {
1822
1852
  "tableName": "support_case_events",
1823
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_case_events\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"event_type\" TEXT,\n \"actor_kind\" TEXT,\n \"actor_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"summary\" TEXT,\n \"payload\" TEXT\n);",
1853
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_case_events\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"event_type\" TEXT,\n \"actor_kind\" TEXT,\n \"actor_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"summary\" TEXT,\n \"payload\" TEXT\n);",
1824
1854
  "columns": {
1855
+ "_sync_origin_device_id": {
1856
+ "type": "TEXT"
1857
+ },
1858
+ "_sync_revision": {
1859
+ "type": "INTEGER"
1860
+ },
1825
1861
  "id": {
1826
1862
  "type": "UUID",
1827
1863
  "primaryKey": true,
@@ -1928,7 +1964,7 @@
1928
1964
  ]
1929
1965
  }
1930
1966
  ],
1931
- "version": "eff9cadb"
1967
+ "version": "38aaebe8"
1932
1968
  },
1933
1969
  "importPath": "@happyvertical/smrt-support"
1934
1970
  },
@@ -2296,8 +2332,14 @@
2296
2332
  "collectionExportName": "SupportCaseCollection",
2297
2333
  "schema": {
2298
2334
  "tableName": "support_cases",
2299
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_cases\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_number\" TEXT,\n \"subject\" TEXT,\n \"description\" TEXT,\n \"status\" TEXT,\n \"priority\" TEXT,\n \"severity\" TEXT,\n \"category\" TEXT,\n \"sensitive\" BOOLEAN,\n \"channel_kind\" TEXT,\n \"client_profile_id\" UUID,\n \"opened_by_profile_id\" UUID,\n \"project_id\" TEXT,\n \"binding_id\" UUID,\n \"thread_key\" TEXT,\n \"plan_id\" UUID,\n \"plan_snapshot\" TEXT,\n \"assigned_specialist_id\" UUID,\n \"assigned_at\" TIMESTAMP,\n \"preferred_specialist_id\" UUID,\n \"escalation_level\" INTEGER DEFAULT 0,\n \"escalated_at\" TIMESTAMP,\n \"acknowledged_at\" TIMESTAMP,\n \"first_responded_at\" TIMESTAMP,\n \"human_requested_at\" TIMESTAMP,\n \"resolved_at\" TIMESTAMP,\n \"resolved_by_profile_id\" UUID,\n \"resolution_kind\" TEXT,\n \"resolution_summary\" TEXT,\n \"closed_at\" TIMESTAMP,\n \"reopen_count\" INTEGER DEFAULT 0,\n \"last_reopened_at\" TIMESTAMP,\n \"ai_enabled\" BOOLEAN,\n \"metadata\" TEXT\n);",
2335
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_cases\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_number\" TEXT,\n \"subject\" TEXT,\n \"description\" TEXT,\n \"status\" TEXT,\n \"priority\" TEXT,\n \"severity\" TEXT,\n \"category\" TEXT,\n \"sensitive\" BOOLEAN,\n \"channel_kind\" TEXT,\n \"client_profile_id\" UUID,\n \"opened_by_profile_id\" UUID,\n \"project_id\" TEXT,\n \"binding_id\" UUID,\n \"thread_key\" TEXT,\n \"plan_id\" UUID,\n \"plan_snapshot\" TEXT,\n \"assigned_specialist_id\" UUID,\n \"assigned_at\" TIMESTAMP,\n \"preferred_specialist_id\" UUID,\n \"escalation_level\" INTEGER DEFAULT 0,\n \"escalated_at\" TIMESTAMP,\n \"acknowledged_at\" TIMESTAMP,\n \"first_responded_at\" TIMESTAMP,\n \"human_requested_at\" TIMESTAMP,\n \"resolved_at\" TIMESTAMP,\n \"resolved_by_profile_id\" UUID,\n \"resolution_kind\" TEXT,\n \"resolution_summary\" TEXT,\n \"closed_at\" TIMESTAMP,\n \"reopen_count\" INTEGER DEFAULT 0,\n \"last_reopened_at\" TIMESTAMP,\n \"ai_enabled\" BOOLEAN,\n \"metadata\" TEXT\n);",
2300
2336
  "columns": {
2337
+ "_sync_origin_device_id": {
2338
+ "type": "TEXT"
2339
+ },
2340
+ "_sync_revision": {
2341
+ "type": "INTEGER"
2342
+ },
2301
2343
  "id": {
2302
2344
  "type": "UUID",
2303
2345
  "primaryKey": true,
@@ -2589,7 +2631,7 @@
2589
2631
  ]
2590
2632
  }
2591
2633
  ],
2592
- "version": "b83a4283"
2634
+ "version": "1a3a8b0f"
2593
2635
  },
2594
2636
  "importPath": "@happyvertical/smrt-support"
2595
2637
  },
@@ -2679,8 +2721,14 @@
2679
2721
  ],
2680
2722
  "schema": {
2681
2723
  "tableName": "support_cases",
2682
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_cases\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_number\" TEXT,\n \"subject\" TEXT,\n \"description\" TEXT,\n \"status\" TEXT,\n \"priority\" TEXT,\n \"severity\" TEXT,\n \"category\" TEXT,\n \"sensitive\" BOOLEAN,\n \"channel_kind\" TEXT,\n \"client_profile_id\" UUID,\n \"opened_by_profile_id\" UUID,\n \"project_id\" TEXT,\n \"binding_id\" UUID,\n \"thread_key\" TEXT,\n \"plan_id\" UUID,\n \"plan_snapshot\" TEXT,\n \"assigned_specialist_id\" UUID,\n \"assigned_at\" TIMESTAMP,\n \"preferred_specialist_id\" UUID,\n \"escalation_level\" INTEGER DEFAULT 0,\n \"escalated_at\" TIMESTAMP,\n \"acknowledged_at\" TIMESTAMP,\n \"first_responded_at\" TIMESTAMP,\n \"human_requested_at\" TIMESTAMP,\n \"resolved_at\" TIMESTAMP,\n \"resolved_by_profile_id\" UUID,\n \"resolution_kind\" TEXT,\n \"resolution_summary\" TEXT,\n \"closed_at\" TIMESTAMP,\n \"reopen_count\" INTEGER DEFAULT 0,\n \"last_reopened_at\" TIMESTAMP,\n \"ai_enabled\" BOOLEAN,\n \"metadata\" TEXT\n);",
2724
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_cases\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_number\" TEXT,\n \"subject\" TEXT,\n \"description\" TEXT,\n \"status\" TEXT,\n \"priority\" TEXT,\n \"severity\" TEXT,\n \"category\" TEXT,\n \"sensitive\" BOOLEAN,\n \"channel_kind\" TEXT,\n \"client_profile_id\" UUID,\n \"opened_by_profile_id\" UUID,\n \"project_id\" TEXT,\n \"binding_id\" UUID,\n \"thread_key\" TEXT,\n \"plan_id\" UUID,\n \"plan_snapshot\" TEXT,\n \"assigned_specialist_id\" UUID,\n \"assigned_at\" TIMESTAMP,\n \"preferred_specialist_id\" UUID,\n \"escalation_level\" INTEGER DEFAULT 0,\n \"escalated_at\" TIMESTAMP,\n \"acknowledged_at\" TIMESTAMP,\n \"first_responded_at\" TIMESTAMP,\n \"human_requested_at\" TIMESTAMP,\n \"resolved_at\" TIMESTAMP,\n \"resolved_by_profile_id\" UUID,\n \"resolution_kind\" TEXT,\n \"resolution_summary\" TEXT,\n \"closed_at\" TIMESTAMP,\n \"reopen_count\" INTEGER DEFAULT 0,\n \"last_reopened_at\" TIMESTAMP,\n \"ai_enabled\" BOOLEAN,\n \"metadata\" TEXT\n);",
2683
2725
  "columns": {
2726
+ "_sync_origin_device_id": {
2727
+ "type": "TEXT"
2728
+ },
2729
+ "_sync_revision": {
2730
+ "type": "INTEGER"
2731
+ },
2684
2732
  "id": {
2685
2733
  "type": "UUID",
2686
2734
  "primaryKey": true,
@@ -2972,7 +3020,7 @@
2972
3020
  ]
2973
3021
  }
2974
3022
  ],
2975
- "version": "b83a4283"
3023
+ "version": "1a3a8b0f"
2976
3024
  },
2977
3025
  "importPath": "@happyvertical/smrt-support"
2978
3026
  },
@@ -3158,8 +3206,14 @@
3158
3206
  "displayLabelField": "name",
3159
3207
  "schema": {
3160
3208
  "tableName": "support_channel_bindings",
3161
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_channel_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"binding_kind\" TEXT,\n \"channel_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"client_profile_id\" UUID,\n \"project_id\" TEXT,\n \"plan_id\" UUID,\n \"enabled\" BOOLEAN,\n \"self_addresses\" TEXT,\n \"metadata\" TEXT\n);",
3209
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_channel_bindings\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"binding_kind\" TEXT,\n \"channel_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"client_profile_id\" UUID,\n \"project_id\" TEXT,\n \"plan_id\" UUID,\n \"enabled\" BOOLEAN,\n \"self_addresses\" TEXT,\n \"metadata\" TEXT\n);",
3162
3210
  "columns": {
3211
+ "_sync_origin_device_id": {
3212
+ "type": "TEXT"
3213
+ },
3214
+ "_sync_revision": {
3215
+ "type": "INTEGER"
3216
+ },
3163
3217
  "id": {
3164
3218
  "type": "UUID",
3165
3219
  "primaryKey": true,
@@ -3293,7 +3347,7 @@
3293
3347
  ]
3294
3348
  }
3295
3349
  ],
3296
- "version": "f162d069"
3350
+ "version": "3251adbc"
3297
3351
  },
3298
3352
  "importPath": "@happyvertical/smrt-support"
3299
3353
  },
@@ -3362,8 +3416,14 @@
3362
3416
  ],
3363
3417
  "schema": {
3364
3418
  "tableName": "support_channel_bindings",
3365
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_channel_bindings\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"binding_kind\" TEXT,\n \"channel_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"client_profile_id\" UUID,\n \"project_id\" TEXT,\n \"plan_id\" UUID,\n \"enabled\" BOOLEAN,\n \"self_addresses\" TEXT,\n \"metadata\" TEXT\n);",
3419
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_channel_bindings\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"binding_kind\" TEXT,\n \"channel_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"client_profile_id\" UUID,\n \"project_id\" TEXT,\n \"plan_id\" UUID,\n \"enabled\" BOOLEAN,\n \"self_addresses\" TEXT,\n \"metadata\" TEXT\n);",
3366
3420
  "columns": {
3421
+ "_sync_origin_device_id": {
3422
+ "type": "TEXT"
3423
+ },
3424
+ "_sync_revision": {
3425
+ "type": "INTEGER"
3426
+ },
3367
3427
  "id": {
3368
3428
  "type": "UUID",
3369
3429
  "primaryKey": true,
@@ -3497,7 +3557,7 @@
3497
3557
  ]
3498
3558
  }
3499
3559
  ],
3500
- "version": "f162d069"
3560
+ "version": "3251adbc"
3501
3561
  },
3502
3562
  "importPath": "@happyvertical/smrt-support"
3503
3563
  },
@@ -3639,8 +3699,14 @@
3639
3699
  "displayLabelField": "name",
3640
3700
  "schema": {
3641
3701
  "tableName": "support_compensation_plans",
3642
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensation_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"hourly_rate\" REAL DEFAULT 0,\n \"currency\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"status\" TEXT,\n \"terms\" TEXT\n);",
3702
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensation_plans\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"hourly_rate\" REAL DEFAULT 0,\n \"currency\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"status\" TEXT,\n \"terms\" TEXT\n);",
3643
3703
  "columns": {
3704
+ "_sync_origin_device_id": {
3705
+ "type": "TEXT"
3706
+ },
3707
+ "_sync_revision": {
3708
+ "type": "INTEGER"
3709
+ },
3644
3710
  "id": {
3645
3711
  "type": "UUID",
3646
3712
  "primaryKey": true,
@@ -3754,7 +3820,7 @@
3754
3820
  ]
3755
3821
  }
3756
3822
  ],
3757
- "version": "1c6b40cd"
3823
+ "version": "4f9f57a5"
3758
3824
  },
3759
3825
  "importPath": "@happyvertical/smrt-support"
3760
3826
  },
@@ -3828,8 +3894,14 @@
3828
3894
  ],
3829
3895
  "schema": {
3830
3896
  "tableName": "support_compensation_plans",
3831
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensation_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"hourly_rate\" REAL DEFAULT 0,\n \"currency\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"status\" TEXT,\n \"terms\" TEXT\n);",
3897
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensation_plans\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"hourly_rate\" REAL DEFAULT 0,\n \"currency\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"status\" TEXT,\n \"terms\" TEXT\n);",
3832
3898
  "columns": {
3899
+ "_sync_origin_device_id": {
3900
+ "type": "TEXT"
3901
+ },
3902
+ "_sync_revision": {
3903
+ "type": "INTEGER"
3904
+ },
3833
3905
  "id": {
3834
3906
  "type": "UUID",
3835
3907
  "primaryKey": true,
@@ -3943,7 +4015,7 @@
3943
4015
  ]
3944
4016
  }
3945
4017
  ],
3946
- "version": "1c6b40cd"
4018
+ "version": "4f9f57a5"
3947
4019
  },
3948
4020
  "importPath": "@happyvertical/smrt-support"
3949
4021
  },
@@ -4137,8 +4209,14 @@
4137
4209
  ],
4138
4210
  "schema": {
4139
4211
  "tableName": "support_interactions",
4140
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_interactions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"direction\" TEXT,\n \"channel_kind\" TEXT,\n \"actor_kind\" TEXT,\n \"author_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"body\" TEXT,\n \"source_type\" TEXT,\n \"source_id\" TEXT,\n \"source_key\" TEXT,\n \"rfc_message_id\" TEXT,\n \"metadata\" TEXT\n);",
4212
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_interactions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"direction\" TEXT,\n \"channel_kind\" TEXT,\n \"actor_kind\" TEXT,\n \"author_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"body\" TEXT,\n \"source_type\" TEXT,\n \"source_id\" TEXT,\n \"source_key\" TEXT,\n \"rfc_message_id\" TEXT,\n \"metadata\" TEXT\n);",
4141
4213
  "columns": {
4214
+ "_sync_origin_device_id": {
4215
+ "type": "TEXT"
4216
+ },
4217
+ "_sync_revision": {
4218
+ "type": "INTEGER"
4219
+ },
4142
4220
  "id": {
4143
4221
  "type": "UUID",
4144
4222
  "primaryKey": true,
@@ -4275,7 +4353,7 @@
4275
4353
  ]
4276
4354
  }
4277
4355
  ],
4278
- "version": "83ae00a1"
4356
+ "version": "01054cc5"
4279
4357
  },
4280
4358
  "importPath": "@happyvertical/smrt-support"
4281
4359
  },
@@ -4364,8 +4442,14 @@
4364
4442
  ],
4365
4443
  "schema": {
4366
4444
  "tableName": "support_interactions",
4367
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_interactions\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"direction\" TEXT,\n \"channel_kind\" TEXT,\n \"actor_kind\" TEXT,\n \"author_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"body\" TEXT,\n \"source_type\" TEXT,\n \"source_id\" TEXT,\n \"source_key\" TEXT,\n \"rfc_message_id\" TEXT,\n \"metadata\" TEXT\n);",
4445
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_interactions\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"direction\" TEXT,\n \"channel_kind\" TEXT,\n \"actor_kind\" TEXT,\n \"author_profile_id\" UUID,\n \"occurred_at\" TIMESTAMP,\n \"body\" TEXT,\n \"source_type\" TEXT,\n \"source_id\" TEXT,\n \"source_key\" TEXT,\n \"rfc_message_id\" TEXT,\n \"metadata\" TEXT\n);",
4368
4446
  "columns": {
4447
+ "_sync_origin_device_id": {
4448
+ "type": "TEXT"
4449
+ },
4450
+ "_sync_revision": {
4451
+ "type": "INTEGER"
4452
+ },
4369
4453
  "id": {
4370
4454
  "type": "UUID",
4371
4455
  "primaryKey": true,
@@ -4502,7 +4586,7 @@
4502
4586
  ]
4503
4587
  }
4504
4588
  ],
4505
- "version": "83ae00a1"
4589
+ "version": "01054cc5"
4506
4590
  },
4507
4591
  "importPath": "@happyvertical/smrt-support"
4508
4592
  },
@@ -4889,8 +4973,14 @@
4889
4973
  "displayLabelField": "name",
4890
4974
  "schema": {
4891
4975
  "tableName": "support_plans",
4892
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"included_minutes\" INTEGER DEFAULT 0,\n \"overage_hourly_rate\" REAL DEFAULT 0,\n \"on_call_hourly_rate\" REAL DEFAULT 0,\n \"time_approval_policy\" TEXT,\n \"subscription_plan_key\" TEXT,\n \"metadata\" TEXT\n);",
4976
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"included_minutes\" INTEGER DEFAULT 0,\n \"overage_hourly_rate\" REAL DEFAULT 0,\n \"on_call_hourly_rate\" REAL DEFAULT 0,\n \"time_approval_policy\" TEXT,\n \"subscription_plan_key\" TEXT,\n \"metadata\" TEXT\n);",
4893
4977
  "columns": {
4978
+ "_sync_origin_device_id": {
4979
+ "type": "TEXT"
4980
+ },
4981
+ "_sync_revision": {
4982
+ "type": "INTEGER"
4983
+ },
4894
4984
  "id": {
4895
4985
  "type": "UUID",
4896
4986
  "primaryKey": true,
@@ -5053,7 +5143,7 @@
5053
5143
  ]
5054
5144
  }
5055
5145
  ],
5056
- "version": "492a9cf6"
5146
+ "version": "f43dcfcd"
5057
5147
  },
5058
5148
  "importPath": "@happyvertical/smrt-support"
5059
5149
  },
@@ -5114,8 +5204,14 @@
5114
5204
  ],
5115
5205
  "schema": {
5116
5206
  "tableName": "support_plans",
5117
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"included_minutes\" INTEGER DEFAULT 0,\n \"overage_hourly_rate\" REAL DEFAULT 0,\n \"on_call_hourly_rate\" REAL DEFAULT 0,\n \"time_approval_policy\" TEXT,\n \"subscription_plan_key\" TEXT,\n \"metadata\" TEXT\n);",
5207
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_plans\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"plan_key\" TEXT,\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT,\n \"status\" TEXT,\n \"channels\" TEXT,\n \"timezone\" TEXT,\n \"coverage\" TEXT,\n \"holidays\" TEXT,\n \"severity_definitions\" TEXT,\n \"targets\" TEXT,\n \"pause_statuses\" TEXT,\n \"escalation_policy\" TEXT,\n \"availability_fee_amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"included_minutes\" INTEGER DEFAULT 0,\n \"overage_hourly_rate\" REAL DEFAULT 0,\n \"on_call_hourly_rate\" REAL DEFAULT 0,\n \"time_approval_policy\" TEXT,\n \"subscription_plan_key\" TEXT,\n \"metadata\" TEXT\n);",
5118
5208
  "columns": {
5209
+ "_sync_origin_device_id": {
5210
+ "type": "TEXT"
5211
+ },
5212
+ "_sync_revision": {
5213
+ "type": "INTEGER"
5214
+ },
5119
5215
  "id": {
5120
5216
  "type": "UUID",
5121
5217
  "primaryKey": true,
@@ -5278,7 +5374,7 @@
5278
5374
  ]
5279
5375
  }
5280
5376
  ],
5281
- "version": "492a9cf6"
5377
+ "version": "f43dcfcd"
5282
5378
  },
5283
5379
  "importPath": "@happyvertical/smrt-support"
5284
5380
  },
@@ -5531,8 +5627,14 @@
5531
5627
  "displayLabelField": "name",
5532
5628
  "schema": {
5533
5629
  "tableName": "support_policies",
5534
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_policies\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"plan_id\" UUID,\n \"project_id\" TEXT,\n \"enabled\" BOOLEAN,\n \"auto_acknowledge\" BOOLEAN,\n \"auto_classify\" BOOLEAN,\n \"auto_answer\" BOOLEAN,\n \"auto_troubleshoot\" BOOLEAN,\n \"auto_resolve\" BOOLEAN,\n \"auto_resolve_max_severity\" TEXT,\n \"confidence_threshold\" REAL DEFAULT 0.7,\n \"max_auto_attempts\" INTEGER DEFAULT 1,\n \"auto_send_email_replies\" BOOLEAN,\n \"sensitive_categories\" TEXT,\n \"allowed_categories\" TEXT,\n \"allowed_tools\" TEXT,\n \"metadata\" TEXT\n);",
5630
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_policies\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"plan_id\" UUID,\n \"project_id\" TEXT,\n \"enabled\" BOOLEAN,\n \"auto_acknowledge\" BOOLEAN,\n \"auto_classify\" BOOLEAN,\n \"auto_answer\" BOOLEAN,\n \"auto_troubleshoot\" BOOLEAN,\n \"auto_resolve\" BOOLEAN,\n \"auto_resolve_max_severity\" TEXT,\n \"confidence_threshold\" REAL DEFAULT 0.7,\n \"max_auto_attempts\" INTEGER DEFAULT 1,\n \"auto_send_email_replies\" BOOLEAN,\n \"sensitive_categories\" TEXT,\n \"allowed_categories\" TEXT,\n \"allowed_tools\" TEXT,\n \"metadata\" TEXT\n);",
5535
5631
  "columns": {
5632
+ "_sync_origin_device_id": {
5633
+ "type": "TEXT"
5634
+ },
5635
+ "_sync_revision": {
5636
+ "type": "INTEGER"
5637
+ },
5536
5638
  "id": {
5537
5639
  "type": "UUID",
5538
5640
  "primaryKey": true,
@@ -5691,7 +5793,7 @@
5691
5793
  ]
5692
5794
  }
5693
5795
  ],
5694
- "version": "db53199e"
5796
+ "version": "111dab36"
5695
5797
  },
5696
5798
  "importPath": "@happyvertical/smrt-support"
5697
5799
  },
@@ -5758,8 +5860,14 @@
5758
5860
  ],
5759
5861
  "schema": {
5760
5862
  "tableName": "support_policies",
5761
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_policies\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"plan_id\" UUID,\n \"project_id\" TEXT,\n \"enabled\" BOOLEAN,\n \"auto_acknowledge\" BOOLEAN,\n \"auto_classify\" BOOLEAN,\n \"auto_answer\" BOOLEAN,\n \"auto_troubleshoot\" BOOLEAN,\n \"auto_resolve\" BOOLEAN,\n \"auto_resolve_max_severity\" TEXT,\n \"confidence_threshold\" REAL DEFAULT 0.7,\n \"max_auto_attempts\" INTEGER DEFAULT 1,\n \"auto_send_email_replies\" BOOLEAN,\n \"sensitive_categories\" TEXT,\n \"allowed_categories\" TEXT,\n \"allowed_tools\" TEXT,\n \"metadata\" TEXT\n);",
5863
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_policies\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"plan_id\" UUID,\n \"project_id\" TEXT,\n \"enabled\" BOOLEAN,\n \"auto_acknowledge\" BOOLEAN,\n \"auto_classify\" BOOLEAN,\n \"auto_answer\" BOOLEAN,\n \"auto_troubleshoot\" BOOLEAN,\n \"auto_resolve\" BOOLEAN,\n \"auto_resolve_max_severity\" TEXT,\n \"confidence_threshold\" REAL DEFAULT 0.7,\n \"max_auto_attempts\" INTEGER DEFAULT 1,\n \"auto_send_email_replies\" BOOLEAN,\n \"sensitive_categories\" TEXT,\n \"allowed_categories\" TEXT,\n \"allowed_tools\" TEXT,\n \"metadata\" TEXT\n);",
5762
5864
  "columns": {
5865
+ "_sync_origin_device_id": {
5866
+ "type": "TEXT"
5867
+ },
5868
+ "_sync_revision": {
5869
+ "type": "INTEGER"
5870
+ },
5763
5871
  "id": {
5764
5872
  "type": "UUID",
5765
5873
  "primaryKey": true,
@@ -5918,7 +6026,7 @@
5918
6026
  ]
5919
6027
  }
5920
6028
  ],
5921
- "version": "db53199e"
6029
+ "version": "111dab36"
5922
6030
  },
5923
6031
  "importPath": "@happyvertical/smrt-support"
5924
6032
  },
@@ -6126,8 +6234,14 @@
6126
6234
  ],
6127
6235
  "schema": {
6128
6236
  "tableName": "support_service_targets",
6129
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_service_targets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"target_type\" TEXT,\n \"cycle\" INTEGER DEFAULT 0,\n \"severity\" TEXT,\n \"base_minutes\" INTEGER DEFAULT 0,\n \"started_at\" TIMESTAMP,\n \"due_at\" TIMESTAMP,\n \"status\" TEXT,\n \"paused_at\" TIMESTAMP,\n \"paused_total_seconds\" INTEGER DEFAULT 0,\n \"satisfied_at\" TIMESTAMP,\n \"breached_at\" TIMESTAMP,\n \"cancelled_at\" TIMESTAMP,\n \"escalation_job_id\" TEXT,\n \"metadata\" TEXT\n);",
6237
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_service_targets\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"target_type\" TEXT,\n \"cycle\" INTEGER DEFAULT 0,\n \"severity\" TEXT,\n \"base_minutes\" INTEGER DEFAULT 0,\n \"started_at\" TIMESTAMP,\n \"due_at\" TIMESTAMP,\n \"status\" TEXT,\n \"paused_at\" TIMESTAMP,\n \"paused_total_seconds\" INTEGER DEFAULT 0,\n \"satisfied_at\" TIMESTAMP,\n \"breached_at\" TIMESTAMP,\n \"cancelled_at\" TIMESTAMP,\n \"escalation_job_id\" TEXT,\n \"metadata\" TEXT\n);",
6130
6238
  "columns": {
6239
+ "_sync_origin_device_id": {
6240
+ "type": "TEXT"
6241
+ },
6242
+ "_sync_revision": {
6243
+ "type": "INTEGER"
6244
+ },
6131
6245
  "id": {
6132
6246
  "type": "UUID",
6133
6247
  "primaryKey": true,
@@ -6271,7 +6385,7 @@
6271
6385
  ]
6272
6386
  }
6273
6387
  ],
6274
- "version": "40614be1"
6388
+ "version": "56d21942"
6275
6389
  },
6276
6390
  "importPath": "@happyvertical/smrt-support"
6277
6391
  },
@@ -6351,8 +6465,14 @@
6351
6465
  ],
6352
6466
  "schema": {
6353
6467
  "tableName": "support_service_targets",
6354
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_service_targets\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"target_type\" TEXT,\n \"cycle\" INTEGER DEFAULT 0,\n \"severity\" TEXT,\n \"base_minutes\" INTEGER DEFAULT 0,\n \"started_at\" TIMESTAMP,\n \"due_at\" TIMESTAMP,\n \"status\" TEXT,\n \"paused_at\" TIMESTAMP,\n \"paused_total_seconds\" INTEGER DEFAULT 0,\n \"satisfied_at\" TIMESTAMP,\n \"breached_at\" TIMESTAMP,\n \"cancelled_at\" TIMESTAMP,\n \"escalation_job_id\" TEXT,\n \"metadata\" TEXT\n);",
6468
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_service_targets\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"target_type\" TEXT,\n \"cycle\" INTEGER DEFAULT 0,\n \"severity\" TEXT,\n \"base_minutes\" INTEGER DEFAULT 0,\n \"started_at\" TIMESTAMP,\n \"due_at\" TIMESTAMP,\n \"status\" TEXT,\n \"paused_at\" TIMESTAMP,\n \"paused_total_seconds\" INTEGER DEFAULT 0,\n \"satisfied_at\" TIMESTAMP,\n \"breached_at\" TIMESTAMP,\n \"cancelled_at\" TIMESTAMP,\n \"escalation_job_id\" TEXT,\n \"metadata\" TEXT\n);",
6355
6469
  "columns": {
6470
+ "_sync_origin_device_id": {
6471
+ "type": "TEXT"
6472
+ },
6473
+ "_sync_revision": {
6474
+ "type": "INTEGER"
6475
+ },
6356
6476
  "id": {
6357
6477
  "type": "UUID",
6358
6478
  "primaryKey": true,
@@ -6496,7 +6616,7 @@
6496
6616
  ]
6497
6617
  }
6498
6618
  ],
6499
- "version": "40614be1"
6619
+ "version": "56d21942"
6500
6620
  },
6501
6621
  "importPath": "@happyvertical/smrt-support"
6502
6622
  },
@@ -6655,8 +6775,14 @@
6655
6775
  ],
6656
6776
  "schema": {
6657
6777
  "tableName": "support_escalations",
6658
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_escalations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"level\" INTEGER DEFAULT 1,\n \"reason\" TEXT,\n \"target_id\" UUID,\n \"target_type\" TEXT,\n \"action\" TEXT,\n \"from_specialist_id\" UUID,\n \"to_specialist_id\" UUID,\n \"notified_profile_ids\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"note\" TEXT\n);",
6778
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_escalations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"level\" INTEGER DEFAULT 1,\n \"reason\" TEXT,\n \"target_id\" UUID,\n \"target_type\" TEXT,\n \"action\" TEXT,\n \"from_specialist_id\" UUID,\n \"to_specialist_id\" UUID,\n \"notified_profile_ids\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"note\" TEXT\n);",
6659
6779
  "columns": {
6780
+ "_sync_origin_device_id": {
6781
+ "type": "TEXT"
6782
+ },
6783
+ "_sync_revision": {
6784
+ "type": "INTEGER"
6785
+ },
6660
6786
  "id": {
6661
6787
  "type": "UUID",
6662
6788
  "primaryKey": true,
@@ -6816,7 +6942,7 @@
6816
6942
  ]
6817
6943
  }
6818
6944
  ],
6819
- "version": "493f2a61"
6945
+ "version": "38673da6"
6820
6946
  },
6821
6947
  "importPath": "@happyvertical/smrt-support"
6822
6948
  },
@@ -6877,8 +7003,14 @@
6877
7003
  ],
6878
7004
  "schema": {
6879
7005
  "tableName": "support_escalations",
6880
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_escalations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"level\" INTEGER DEFAULT 1,\n \"reason\" TEXT,\n \"target_id\" UUID,\n \"target_type\" TEXT,\n \"action\" TEXT,\n \"from_specialist_id\" UUID,\n \"to_specialist_id\" UUID,\n \"notified_profile_ids\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"note\" TEXT\n);",
7006
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_escalations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"level\" INTEGER DEFAULT 1,\n \"reason\" TEXT,\n \"target_id\" UUID,\n \"target_type\" TEXT,\n \"action\" TEXT,\n \"from_specialist_id\" UUID,\n \"to_specialist_id\" UUID,\n \"notified_profile_ids\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"note\" TEXT\n);",
6881
7007
  "columns": {
7008
+ "_sync_origin_device_id": {
7009
+ "type": "TEXT"
7010
+ },
7011
+ "_sync_revision": {
7012
+ "type": "INTEGER"
7013
+ },
6882
7014
  "id": {
6883
7015
  "type": "UUID",
6884
7016
  "primaryKey": true,
@@ -7038,7 +7170,7 @@
7038
7170
  ]
7039
7171
  }
7040
7172
  ],
7041
- "version": "493f2a61"
7173
+ "version": "38673da6"
7042
7174
  },
7043
7175
  "importPath": "@happyvertical/smrt-support"
7044
7176
  },
@@ -7195,8 +7327,14 @@
7195
7327
  ],
7196
7328
  "schema": {
7197
7329
  "tableName": "support_charges",
7198
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_charges\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"case_id\" UUID,\n \"plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"billable_seconds\" INTEGER DEFAULT 0,\n \"included_seconds_applied\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7330
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_charges\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"case_id\" UUID,\n \"plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"billable_seconds\" INTEGER DEFAULT 0,\n \"included_seconds_applied\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7199
7331
  "columns": {
7332
+ "_sync_origin_device_id": {
7333
+ "type": "TEXT"
7334
+ },
7335
+ "_sync_revision": {
7336
+ "type": "INTEGER"
7337
+ },
7200
7338
  "id": {
7201
7339
  "type": "UUID",
7202
7340
  "primaryKey": true,
@@ -7343,7 +7481,7 @@
7343
7481
  ]
7344
7482
  }
7345
7483
  ],
7346
- "version": "44f149fb"
7484
+ "version": "5f8533a8"
7347
7485
  },
7348
7486
  "importPath": "@happyvertical/smrt-support"
7349
7487
  },
@@ -7418,8 +7556,14 @@
7418
7556
  ],
7419
7557
  "schema": {
7420
7558
  "tableName": "support_charges",
7421
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_charges\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"case_id\" UUID,\n \"plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"billable_seconds\" INTEGER DEFAULT 0,\n \"included_seconds_applied\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7559
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_charges\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"case_id\" UUID,\n \"plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"billable_seconds\" INTEGER DEFAULT 0,\n \"included_seconds_applied\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7422
7560
  "columns": {
7561
+ "_sync_origin_device_id": {
7562
+ "type": "TEXT"
7563
+ },
7564
+ "_sync_revision": {
7565
+ "type": "INTEGER"
7566
+ },
7423
7567
  "id": {
7424
7568
  "type": "UUID",
7425
7569
  "primaryKey": true,
@@ -7566,7 +7710,7 @@
7566
7710
  ]
7567
7711
  }
7568
7712
  ],
7569
- "version": "44f149fb"
7713
+ "version": "5f8533a8"
7570
7714
  },
7571
7715
  "importPath": "@happyvertical/smrt-support"
7572
7716
  },
@@ -7718,8 +7862,14 @@
7718
7862
  ],
7719
7863
  "schema": {
7720
7864
  "tableName": "support_compensations",
7721
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"specialist_id\" UUID,\n \"compensation_plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"payable_seconds\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7865
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"specialist_id\" UUID,\n \"compensation_plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"payable_seconds\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7722
7866
  "columns": {
7867
+ "_sync_origin_device_id": {
7868
+ "type": "TEXT"
7869
+ },
7870
+ "_sync_revision": {
7871
+ "type": "INTEGER"
7872
+ },
7723
7873
  "id": {
7724
7874
  "type": "UUID",
7725
7875
  "primaryKey": true,
@@ -7860,7 +8010,7 @@
7860
8010
  ]
7861
8011
  }
7862
8012
  ],
7863
- "version": "f9de8296"
8013
+ "version": "218335ad"
7864
8014
  },
7865
8015
  "importPath": "@happyvertical/smrt-support"
7866
8016
  },
@@ -7935,8 +8085,14 @@
7935
8085
  ],
7936
8086
  "schema": {
7937
8087
  "tableName": "support_compensations",
7938
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensations\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"specialist_id\" UUID,\n \"compensation_plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"payable_seconds\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
8088
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_compensations\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"time_entry_id\" UUID NOT NULL,\n \"specialist_id\" UUID,\n \"compensation_plan_id\" UUID,\n \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"payable_seconds\" INTEGER DEFAULT 0,\n \"rate_snapshot\" TEXT,\n \"status\" TEXT,\n \"finalized_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
7939
8089
  "columns": {
8090
+ "_sync_origin_device_id": {
8091
+ "type": "TEXT"
8092
+ },
8093
+ "_sync_revision": {
8094
+ "type": "INTEGER"
8095
+ },
7940
8096
  "id": {
7941
8097
  "type": "UUID",
7942
8098
  "primaryKey": true,
@@ -8077,7 +8233,7 @@
8077
8233
  ]
8078
8234
  }
8079
8235
  ],
8080
- "version": "f9de8296"
8236
+ "version": "218335ad"
8081
8237
  },
8082
8238
  "importPath": "@happyvertical/smrt-support"
8083
8239
  },
@@ -8264,8 +8420,14 @@
8264
8420
  ],
8265
8421
  "schema": {
8266
8422
  "tableName": "support_specialists",
8267
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_specialists\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID NOT NULL,\n \"display_name\" TEXT,\n \"status\" TEXT,\n \"languages\" TEXT,\n \"timezone\" TEXT,\n \"max_concurrent_cases\" INTEGER DEFAULT 10,\n \"on_call_priority\" INTEGER DEFAULT 0,\n \"notes\" TEXT,\n \"metadata\" TEXT\n);",
8423
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_specialists\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID NOT NULL,\n \"display_name\" TEXT,\n \"status\" TEXT,\n \"languages\" TEXT,\n \"timezone\" TEXT,\n \"max_concurrent_cases\" INTEGER DEFAULT 10,\n \"on_call_priority\" INTEGER DEFAULT 0,\n \"notes\" TEXT,\n \"metadata\" TEXT\n);",
8268
8424
  "columns": {
8425
+ "_sync_origin_device_id": {
8426
+ "type": "TEXT"
8427
+ },
8428
+ "_sync_revision": {
8429
+ "type": "INTEGER"
8430
+ },
8269
8431
  "id": {
8270
8432
  "type": "UUID",
8271
8433
  "primaryKey": true,
@@ -8377,7 +8539,7 @@
8377
8539
  ]
8378
8540
  }
8379
8541
  ],
8380
- "version": "ff5305d3"
8542
+ "version": "9a646377"
8381
8543
  },
8382
8544
  "importPath": "@happyvertical/smrt-support"
8383
8545
  },
@@ -8449,8 +8611,14 @@
8449
8611
  ],
8450
8612
  "schema": {
8451
8613
  "tableName": "support_specialists",
8452
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_specialists\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID NOT NULL,\n \"display_name\" TEXT,\n \"status\" TEXT,\n \"languages\" TEXT,\n \"timezone\" TEXT,\n \"max_concurrent_cases\" INTEGER DEFAULT 10,\n \"on_call_priority\" INTEGER DEFAULT 0,\n \"notes\" TEXT,\n \"metadata\" TEXT\n);",
8614
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_specialists\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"profile_id\" UUID NOT NULL,\n \"display_name\" TEXT,\n \"status\" TEXT,\n \"languages\" TEXT,\n \"timezone\" TEXT,\n \"max_concurrent_cases\" INTEGER DEFAULT 10,\n \"on_call_priority\" INTEGER DEFAULT 0,\n \"notes\" TEXT,\n \"metadata\" TEXT\n);",
8453
8615
  "columns": {
8616
+ "_sync_origin_device_id": {
8617
+ "type": "TEXT"
8618
+ },
8619
+ "_sync_revision": {
8620
+ "type": "INTEGER"
8621
+ },
8454
8622
  "id": {
8455
8623
  "type": "UUID",
8456
8624
  "primaryKey": true,
@@ -8562,7 +8730,7 @@
8562
8730
  ]
8563
8731
  }
8564
8732
  ],
8565
- "version": "ff5305d3"
8733
+ "version": "9a646377"
8566
8734
  },
8567
8735
  "importPath": "@happyvertical/smrt-support"
8568
8736
  },
@@ -8696,8 +8864,14 @@
8696
8864
  ],
8697
8865
  "schema": {
8698
8866
  "tableName": "support_qualifications",
8699
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_qualifications\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"project_id\" TEXT,\n \"level\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"granted_by_profile_id\" UUID,\n \"notes\" TEXT\n);",
8867
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_qualifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"project_id\" TEXT,\n \"level\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"granted_by_profile_id\" UUID,\n \"notes\" TEXT\n);",
8700
8868
  "columns": {
8869
+ "_sync_origin_device_id": {
8870
+ "type": "TEXT"
8871
+ },
8872
+ "_sync_revision": {
8873
+ "type": "INTEGER"
8874
+ },
8701
8875
  "id": {
8702
8876
  "type": "UUID",
8703
8877
  "primaryKey": true,
@@ -8804,7 +8978,7 @@
8804
8978
  ]
8805
8979
  }
8806
8980
  ],
8807
- "version": "566b3428"
8981
+ "version": "8576d2a2"
8808
8982
  },
8809
8983
  "importPath": "@happyvertical/smrt-support"
8810
8984
  },
@@ -8882,8 +9056,14 @@
8882
9056
  ],
8883
9057
  "schema": {
8884
9058
  "tableName": "support_qualifications",
8885
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_qualifications\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"project_id\" TEXT,\n \"level\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"granted_by_profile_id\" UUID,\n \"notes\" TEXT\n);",
9059
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_qualifications\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"project_id\" TEXT,\n \"level\" TEXT,\n \"effective_from\" TIMESTAMP,\n \"effective_to\" TIMESTAMP,\n \"granted_by_profile_id\" UUID,\n \"notes\" TEXT\n);",
8886
9060
  "columns": {
9061
+ "_sync_origin_device_id": {
9062
+ "type": "TEXT"
9063
+ },
9064
+ "_sync_revision": {
9065
+ "type": "INTEGER"
9066
+ },
8887
9067
  "id": {
8888
9068
  "type": "UUID",
8889
9069
  "primaryKey": true,
@@ -8990,7 +9170,7 @@
8990
9170
  ]
8991
9171
  }
8992
9172
  ],
8993
- "version": "566b3428"
9173
+ "version": "8576d2a2"
8994
9174
  },
8995
9175
  "importPath": "@happyvertical/smrt-support"
8996
9176
  },
@@ -9114,8 +9294,14 @@
9114
9294
  ],
9115
9295
  "schema": {
9116
9296
  "tableName": "support_availability_windows",
9117
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_availability_windows\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"kind\" TEXT,\n \"weekday\" INTEGER,\n \"start_minute\" INTEGER DEFAULT 0,\n \"end_minute\" INTEGER DEFAULT 0,\n \"starts_at\" TIMESTAMP,\n \"ends_at\" TIMESTAMP,\n \"notes\" TEXT\n);",
9297
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_availability_windows\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"kind\" TEXT,\n \"weekday\" INTEGER,\n \"start_minute\" INTEGER DEFAULT 0,\n \"end_minute\" INTEGER DEFAULT 0,\n \"starts_at\" TIMESTAMP,\n \"ends_at\" TIMESTAMP,\n \"notes\" TEXT\n);",
9118
9298
  "columns": {
9299
+ "_sync_origin_device_id": {
9300
+ "type": "TEXT"
9301
+ },
9302
+ "_sync_revision": {
9303
+ "type": "INTEGER"
9304
+ },
9119
9305
  "id": {
9120
9306
  "type": "UUID",
9121
9307
  "primaryKey": true,
@@ -9222,7 +9408,7 @@
9222
9408
  ]
9223
9409
  }
9224
9410
  ],
9225
- "version": "2f0cafe3"
9411
+ "version": "5b7c6297"
9226
9412
  },
9227
9413
  "importPath": "@happyvertical/smrt-support"
9228
9414
  },
@@ -9286,8 +9472,14 @@
9286
9472
  ],
9287
9473
  "schema": {
9288
9474
  "tableName": "support_availability_windows",
9289
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_availability_windows\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"kind\" TEXT,\n \"weekday\" INTEGER,\n \"start_minute\" INTEGER DEFAULT 0,\n \"end_minute\" INTEGER DEFAULT 0,\n \"starts_at\" TIMESTAMP,\n \"ends_at\" TIMESTAMP,\n \"notes\" TEXT\n);",
9475
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_availability_windows\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"specialist_id\" UUID NOT NULL,\n \"kind\" TEXT,\n \"weekday\" INTEGER,\n \"start_minute\" INTEGER DEFAULT 0,\n \"end_minute\" INTEGER DEFAULT 0,\n \"starts_at\" TIMESTAMP,\n \"ends_at\" TIMESTAMP,\n \"notes\" TEXT\n);",
9290
9476
  "columns": {
9477
+ "_sync_origin_device_id": {
9478
+ "type": "TEXT"
9479
+ },
9480
+ "_sync_revision": {
9481
+ "type": "INTEGER"
9482
+ },
9291
9483
  "id": {
9292
9484
  "type": "UUID",
9293
9485
  "primaryKey": true,
@@ -9394,7 +9586,7 @@
9394
9586
  ]
9395
9587
  }
9396
9588
  ],
9397
- "version": "2f0cafe3"
9589
+ "version": "5b7c6297"
9398
9590
  },
9399
9591
  "importPath": "@happyvertical/smrt-support"
9400
9592
  },
@@ -9541,8 +9733,14 @@
9541
9733
  ],
9542
9734
  "schema": {
9543
9735
  "tableName": "support_work_links",
9544
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_work_links\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"link_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"target_label\" TEXT,\n \"external_url\" TEXT,\n \"status\" TEXT,\n \"last_status_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
9736
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_work_links\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"link_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"target_label\" TEXT,\n \"external_url\" TEXT,\n \"status\" TEXT,\n \"last_status_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
9545
9737
  "columns": {
9738
+ "_sync_origin_device_id": {
9739
+ "type": "TEXT"
9740
+ },
9741
+ "_sync_revision": {
9742
+ "type": "INTEGER"
9743
+ },
9546
9744
  "id": {
9547
9745
  "type": "UUID",
9548
9746
  "primaryKey": true,
@@ -9653,7 +9851,7 @@
9653
9851
  ]
9654
9852
  }
9655
9853
  ],
9656
- "version": "c9e0e8f5"
9854
+ "version": "7b11e1d5"
9657
9855
  },
9658
9856
  "importPath": "@happyvertical/smrt-support"
9659
9857
  },
@@ -9714,8 +9912,14 @@
9714
9912
  ],
9715
9913
  "schema": {
9716
9914
  "tableName": "support_work_links",
9717
- "ddl": "CREATE TABLE IF NOT EXISTS \"support_work_links\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"link_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"target_label\" TEXT,\n \"external_url\" TEXT,\n \"status\" TEXT,\n \"last_status_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
9915
+ "ddl": "CREATE TABLE IF NOT EXISTS \"support_work_links\" (\n \"_sync_origin_device_id\" TEXT,\n \"_sync_revision\" INTEGER,\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"case_id\" UUID NOT NULL,\n \"link_kind\" TEXT,\n \"target_type\" TEXT,\n \"target_id\" TEXT,\n \"target_label\" TEXT,\n \"external_url\" TEXT,\n \"status\" TEXT,\n \"last_status_at\" TIMESTAMP,\n \"metadata\" TEXT\n);",
9718
9916
  "columns": {
9917
+ "_sync_origin_device_id": {
9918
+ "type": "TEXT"
9919
+ },
9920
+ "_sync_revision": {
9921
+ "type": "INTEGER"
9922
+ },
9719
9923
  "id": {
9720
9924
  "type": "UUID",
9721
9925
  "primaryKey": true,
@@ -9826,7 +10030,7 @@
9826
10030
  ]
9827
10031
  }
9828
10032
  ],
9829
- "version": "c9e0e8f5"
10033
+ "version": "7b11e1d5"
9830
10034
  },
9831
10035
  "importPath": "@happyvertical/smrt-support"
9832
10036
  }