@happyvertical/smrt-projects 0.60.8 → 0.60.10

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-projects",
5
- "packageVersion": "0.60.8",
5
+ "packageVersion": "0.60.10",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-projects:CommentCollection": {
8
8
  "name": "commentcollection",
@@ -45,8 +45,14 @@
45
45
  ],
46
46
  "schema": {
47
47
  "tableName": "comments",
48
- "ddl": "CREATE TABLE IF NOT EXISTS \"comments\" (\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 \"issue_id\" UUID,\n \"comment_id\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"author\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT ''\n);",
48
+ "ddl": "CREATE TABLE IF NOT EXISTS \"comments\" (\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 \"issue_id\" UUID,\n \"comment_id\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"author\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT ''\n);",
49
49
  "columns": {
50
+ "_sync_origin_device_id": {
51
+ "type": "TEXT"
52
+ },
53
+ "_sync_revision": {
54
+ "type": "INTEGER"
55
+ },
50
56
  "id": {
51
57
  "type": "UUID",
52
58
  "primaryKey": true,
@@ -140,7 +146,7 @@
140
146
  ]
141
147
  }
142
148
  ],
143
- "version": "ffcc1937"
149
+ "version": "3e85c1a6"
144
150
  },
145
151
  "importPath": "@happyvertical/smrt-projects"
146
152
  },
@@ -191,8 +197,14 @@
191
197
  ],
192
198
  "schema": {
193
199
  "tableName": "development_request_histories",
194
- "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_histories\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"from_status\" TEXT DEFAULT '',\n \"to_status\" TEXT DEFAULT 'submitted',\n \"actor_type\" TEXT DEFAULT 'system',\n \"actor_id\" TEXT DEFAULT '',\n \"note\" TEXT\n);",
200
+ "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_histories\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"from_status\" TEXT DEFAULT '',\n \"to_status\" TEXT DEFAULT 'submitted',\n \"actor_type\" TEXT DEFAULT 'system',\n \"actor_id\" TEXT DEFAULT '',\n \"note\" TEXT\n);",
195
201
  "columns": {
202
+ "_sync_origin_device_id": {
203
+ "type": "TEXT"
204
+ },
205
+ "_sync_revision": {
206
+ "type": "INTEGER"
207
+ },
196
208
  "id": {
197
209
  "type": "UUID",
198
210
  "primaryKey": true,
@@ -290,7 +302,7 @@
290
302
  ]
291
303
  }
292
304
  ],
293
- "version": "67389678"
305
+ "version": "0722806e"
294
306
  },
295
307
  "importPath": "@happyvertical/smrt-projects"
296
308
  },
@@ -402,8 +414,14 @@
402
414
  ],
403
415
  "schema": {
404
416
  "tableName": "development_requests",
405
- "ddl": "CREATE TABLE IF NOT EXISTS \"development_requests\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"integration_id\" UUID,\n \"requester_id\" TEXT DEFAULT '',\n \"participant_id\" TEXT DEFAULT '',\n \"type\" TEXT DEFAULT 'feature',\n \"description\" TEXT DEFAULT '',\n \"evidence\" TEXT DEFAULT '[]',\n \"visibility\" TEXT DEFAULT 'requester',\n \"origin\" TEXT DEFAULT 'managed-app',\n \"discussion\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'submitted'\n);",
417
+ "ddl": "CREATE TABLE IF NOT EXISTS \"development_requests\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"integration_id\" UUID,\n \"requester_id\" TEXT DEFAULT '',\n \"participant_id\" TEXT DEFAULT '',\n \"type\" TEXT DEFAULT 'feature',\n \"description\" TEXT DEFAULT '',\n \"evidence\" TEXT DEFAULT '[]',\n \"visibility\" TEXT DEFAULT 'requester',\n \"origin\" TEXT DEFAULT 'managed-app',\n \"discussion\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'submitted'\n);",
406
418
  "columns": {
419
+ "_sync_origin_device_id": {
420
+ "type": "TEXT"
421
+ },
422
+ "_sync_revision": {
423
+ "type": "INTEGER"
424
+ },
407
425
  "id": {
408
426
  "type": "UUID",
409
427
  "primaryKey": true,
@@ -532,7 +550,7 @@
532
550
  ]
533
551
  }
534
552
  ],
535
- "version": "2f7f7c8a"
553
+ "version": "b94722ee"
536
554
  },
537
555
  "importPath": "@happyvertical/smrt-projects"
538
556
  },
@@ -784,8 +802,14 @@
784
802
  ],
785
803
  "schema": {
786
804
  "tableName": "issues",
787
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
805
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\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 \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
788
806
  "columns": {
807
+ "_sync_origin_device_id": {
808
+ "type": "TEXT"
809
+ },
810
+ "_sync_revision": {
811
+ "type": "INTEGER"
812
+ },
789
813
  "id": {
790
814
  "type": "UUID",
791
815
  "primaryKey": true,
@@ -988,7 +1012,7 @@
988
1012
  ]
989
1013
  }
990
1014
  ],
991
- "version": "83fb5e05"
1015
+ "version": "7f290f5c"
992
1016
  },
993
1017
  "importPath": "@happyvertical/smrt-projects"
994
1018
  },
@@ -1063,8 +1087,14 @@
1063
1087
  ],
1064
1088
  "schema": {
1065
1089
  "tableName": "project_decisions",
1066
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT NOT NULL,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
1090
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT NOT NULL,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
1067
1091
  "columns": {
1092
+ "_sync_origin_device_id": {
1093
+ "type": "TEXT"
1094
+ },
1095
+ "_sync_revision": {
1096
+ "type": "INTEGER"
1097
+ },
1068
1098
  "id": {
1069
1099
  "type": "UUID",
1070
1100
  "primaryKey": true,
@@ -1221,7 +1251,7 @@
1221
1251
  ]
1222
1252
  }
1223
1253
  ],
1224
- "version": "34ed60f9"
1254
+ "version": "9b079873"
1225
1255
  },
1226
1256
  "importPath": "@happyvertical/smrt-projects"
1227
1257
  },
@@ -1270,8 +1300,14 @@
1270
1300
  ],
1271
1301
  "schema": {
1272
1302
  "tableName": "project_governance_events",
1273
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_governance_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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"record_kind\" TEXT NOT NULL DEFAULT 'question',\n \"action\" TEXT NOT NULL DEFAULT 'created',\n \"actor_type\" TEXT NOT NULL DEFAULT 'system',\n \"actor_id\" TEXT NOT NULL,\n \"from_status\" TEXT,\n \"to_status\" TEXT NOT NULL,\n \"note\" TEXT,\n \"value\" TEXT,\n \"rationale\" TEXT,\n \"answer_selection\" TEXT DEFAULT '',\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"from_owner_type\" TEXT DEFAULT '',\n \"from_owner_id\" TEXT,\n \"to_owner_type\" TEXT DEFAULT '',\n \"to_owner_id\" TEXT\n);",
1303
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_governance_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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"record_kind\" TEXT NOT NULL DEFAULT 'question',\n \"action\" TEXT NOT NULL DEFAULT 'created',\n \"actor_type\" TEXT NOT NULL DEFAULT 'system',\n \"actor_id\" TEXT NOT NULL,\n \"from_status\" TEXT,\n \"to_status\" TEXT NOT NULL,\n \"note\" TEXT,\n \"value\" TEXT,\n \"rationale\" TEXT,\n \"answer_selection\" TEXT DEFAULT '',\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"from_owner_type\" TEXT DEFAULT '',\n \"from_owner_id\" TEXT,\n \"to_owner_type\" TEXT DEFAULT '',\n \"to_owner_id\" TEXT\n);",
1274
1304
  "columns": {
1305
+ "_sync_origin_device_id": {
1306
+ "type": "TEXT"
1307
+ },
1308
+ "_sync_revision": {
1309
+ "type": "INTEGER"
1310
+ },
1275
1311
  "id": {
1276
1312
  "type": "UUID",
1277
1313
  "primaryKey": true,
@@ -1441,7 +1477,7 @@
1441
1477
  ]
1442
1478
  }
1443
1479
  ],
1444
- "version": "e903aea4"
1480
+ "version": "e5411ce4"
1445
1481
  },
1446
1482
  "importPath": "@happyvertical/smrt-projects"
1447
1483
  },
@@ -1492,8 +1528,14 @@
1492
1528
  ],
1493
1529
  "schema": {
1494
1530
  "tableName": "project_integration_audits",
1495
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_integration_audits\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"action\" TEXT DEFAULT 'created',\n \"note\" TEXT\n);",
1531
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_integration_audits\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"action\" TEXT DEFAULT 'created',\n \"note\" TEXT\n);",
1496
1532
  "columns": {
1533
+ "_sync_origin_device_id": {
1534
+ "type": "TEXT"
1535
+ },
1536
+ "_sync_revision": {
1537
+ "type": "INTEGER"
1538
+ },
1497
1539
  "id": {
1498
1540
  "type": "UUID",
1499
1541
  "primaryKey": true,
@@ -1573,7 +1615,7 @@
1573
1615
  ]
1574
1616
  }
1575
1617
  ],
1576
- "version": "03cc10a2"
1618
+ "version": "cd8288fc"
1577
1619
  },
1578
1620
  "importPath": "@happyvertical/smrt-projects"
1579
1621
  },
@@ -1728,8 +1770,14 @@
1728
1770
  ],
1729
1771
  "schema": {
1730
1772
  "tableName": "project_integrations",
1731
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_integrations\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"credential_hash\" TEXT DEFAULT '',\n \"capabilities\" JSON DEFAULT '[]',\n \"status\" TEXT DEFAULT 'active',\n \"revoked_at\" TIMESTAMP\n);",
1773
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_integrations\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"credential_hash\" TEXT DEFAULT '',\n \"capabilities\" JSON DEFAULT '[]',\n \"status\" TEXT DEFAULT 'active',\n \"revoked_at\" TIMESTAMP\n);",
1732
1774
  "columns": {
1775
+ "_sync_origin_device_id": {
1776
+ "type": "TEXT"
1777
+ },
1778
+ "_sync_revision": {
1779
+ "type": "INTEGER"
1780
+ },
1733
1781
  "id": {
1734
1782
  "type": "UUID",
1735
1783
  "primaryKey": true,
@@ -1823,7 +1871,7 @@
1823
1871
  ]
1824
1872
  }
1825
1873
  ],
1826
- "version": "bfbaa783"
1874
+ "version": "ea3a816e"
1827
1875
  },
1828
1876
  "importPath": "@happyvertical/smrt-projects"
1829
1877
  },
@@ -1898,8 +1946,14 @@
1898
1946
  ],
1899
1947
  "schema": {
1900
1948
  "tableName": "project_questions",
1901
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT NOT NULL,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
1949
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT NOT NULL,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
1902
1950
  "columns": {
1951
+ "_sync_origin_device_id": {
1952
+ "type": "TEXT"
1953
+ },
1954
+ "_sync_revision": {
1955
+ "type": "INTEGER"
1956
+ },
1903
1957
  "id": {
1904
1958
  "type": "UUID",
1905
1959
  "primaryKey": true,
@@ -2058,7 +2112,7 @@
2058
2112
  ]
2059
2113
  }
2060
2114
  ],
2061
- "version": "9bf3b915"
2115
+ "version": "1bdc2c36"
2062
2116
  },
2063
2117
  "importPath": "@happyvertical/smrt-projects"
2064
2118
  },
@@ -2104,8 +2158,14 @@
2104
2158
  ],
2105
2159
  "schema": {
2106
2160
  "tableName": "project_specifications",
2107
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT NOT NULL,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
2161
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT NOT NULL,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
2108
2162
  "columns": {
2163
+ "_sync_origin_device_id": {
2164
+ "type": "TEXT"
2165
+ },
2166
+ "_sync_revision": {
2167
+ "type": "INTEGER"
2168
+ },
2109
2169
  "id": {
2110
2170
  "type": "UUID",
2111
2171
  "primaryKey": true,
@@ -2222,7 +2282,7 @@
2222
2282
  ]
2223
2283
  }
2224
2284
  ],
2225
- "version": "d3d39d7f"
2285
+ "version": "52645f69"
2226
2286
  },
2227
2287
  "importPath": "@happyvertical/smrt-projects"
2228
2288
  },
@@ -2418,8 +2478,14 @@
2418
2478
  ],
2419
2479
  "schema": {
2420
2480
  "tableName": "projects",
2421
- "ddl": "CREATE TABLE IF NOT EXISTS \"projects\" (\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 \"project_id\" TEXT DEFAULT '',\n \"project_number\" INTEGER DEFAULT 0,\n \"title\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"owner\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT '',\n \"provider_type\" TEXT DEFAULT 'github',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"statuses\" JSON DEFAULT '[]',\n \"fields\" JSON DEFAULT '[]',\n \"status_field_id\" TEXT DEFAULT '',\n \"status_options\" JSON DEFAULT '{}',\n \"last_synced_at\" TIMESTAMP\n);",
2481
+ "ddl": "CREATE TABLE IF NOT EXISTS \"projects\" (\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 \"project_id\" TEXT DEFAULT '',\n \"project_number\" INTEGER DEFAULT 0,\n \"title\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"owner\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT '',\n \"provider_type\" TEXT DEFAULT 'github',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"statuses\" JSON DEFAULT '[]',\n \"fields\" JSON DEFAULT '[]',\n \"status_field_id\" TEXT DEFAULT '',\n \"status_options\" JSON DEFAULT '{}',\n \"last_synced_at\" TIMESTAMP\n);",
2422
2482
  "columns": {
2483
+ "_sync_origin_device_id": {
2484
+ "type": "TEXT"
2485
+ },
2486
+ "_sync_revision": {
2487
+ "type": "INTEGER"
2488
+ },
2423
2489
  "id": {
2424
2490
  "type": "UUID",
2425
2491
  "primaryKey": true,
@@ -2548,7 +2614,7 @@
2548
2614
  ]
2549
2615
  }
2550
2616
  ],
2551
- "version": "2e8c344a"
2617
+ "version": "3a8531e2"
2552
2618
  },
2553
2619
  "importPath": "@happyvertical/smrt-projects"
2554
2620
  },
@@ -2818,8 +2884,14 @@
2818
2884
  ],
2819
2885
  "schema": {
2820
2886
  "tableName": "issues",
2821
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
2887
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\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 \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
2822
2888
  "columns": {
2889
+ "_sync_origin_device_id": {
2890
+ "type": "TEXT"
2891
+ },
2892
+ "_sync_revision": {
2893
+ "type": "INTEGER"
2894
+ },
2823
2895
  "id": {
2824
2896
  "type": "UUID",
2825
2897
  "primaryKey": true,
@@ -3022,7 +3094,7 @@
3022
3094
  ]
3023
3095
  }
3024
3096
  ],
3025
- "version": "0ebf6fbd"
3097
+ "version": "9330532e"
3026
3098
  },
3027
3099
  "importPath": "@happyvertical/smrt-projects"
3028
3100
  },
@@ -3208,8 +3280,14 @@
3208
3280
  ],
3209
3281
  "schema": {
3210
3282
  "tableName": "repositories",
3211
- "ddl": "CREATE TABLE IF NOT EXISTS \"repositories\" (\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 \"owner\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"full_name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"default_branch\" TEXT DEFAULT 'main',\n \"is_private\" BOOLEAN DEFAULT FALSE,\n \"provider_type\" TEXT DEFAULT 'github',\n \"base_url\" TEXT DEFAULT '',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"last_synced_at\" TIMESTAMP\n);",
3283
+ "ddl": "CREATE TABLE IF NOT EXISTS \"repositories\" (\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 \"owner\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"full_name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"default_branch\" TEXT DEFAULT 'main',\n \"is_private\" BOOLEAN DEFAULT FALSE,\n \"provider_type\" TEXT DEFAULT 'github',\n \"base_url\" TEXT DEFAULT '',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"last_synced_at\" TIMESTAMP\n);",
3212
3284
  "columns": {
3285
+ "_sync_origin_device_id": {
3286
+ "type": "TEXT"
3287
+ },
3288
+ "_sync_revision": {
3289
+ "type": "INTEGER"
3290
+ },
3213
3291
  "id": {
3214
3292
  "type": "UUID",
3215
3293
  "primaryKey": true,
@@ -3320,7 +3398,7 @@
3320
3398
  ]
3321
3399
  }
3322
3400
  ],
3323
- "version": "c302a5e5"
3401
+ "version": "4bb3edf4"
3324
3402
  },
3325
3403
  "importPath": "@happyvertical/smrt-projects"
3326
3404
  },
@@ -3479,8 +3557,14 @@
3479
3557
  "collectionExportName": "CommentCollection",
3480
3558
  "schema": {
3481
3559
  "tableName": "comments",
3482
- "ddl": "CREATE TABLE IF NOT EXISTS \"comments\" (\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 \"issue_id\" UUID,\n \"comment_id\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"author\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT ''\n);",
3560
+ "ddl": "CREATE TABLE IF NOT EXISTS \"comments\" (\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 \"issue_id\" UUID,\n \"comment_id\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"author\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT ''\n);",
3483
3561
  "columns": {
3562
+ "_sync_origin_device_id": {
3563
+ "type": "TEXT"
3564
+ },
3565
+ "_sync_revision": {
3566
+ "type": "INTEGER"
3567
+ },
3484
3568
  "id": {
3485
3569
  "type": "UUID",
3486
3570
  "primaryKey": true,
@@ -3574,7 +3658,7 @@
3574
3658
  ]
3575
3659
  }
3576
3660
  ],
3577
- "version": "ffcc1937"
3661
+ "version": "3e85c1a6"
3578
3662
  },
3579
3663
  "importPath": "@happyvertical/smrt-projects"
3580
3664
  },
@@ -3734,8 +3818,14 @@
3734
3818
  "validationRules": [],
3735
3819
  "schema": {
3736
3820
  "tableName": "development_requests",
3737
- "ddl": "CREATE TABLE IF NOT EXISTS \"development_requests\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"integration_id\" UUID,\n \"requester_id\" TEXT DEFAULT '',\n \"participant_id\" TEXT DEFAULT '',\n \"type\" TEXT DEFAULT 'feature',\n \"description\" TEXT DEFAULT '',\n \"evidence\" TEXT DEFAULT '[]',\n \"visibility\" TEXT DEFAULT 'requester',\n \"origin\" TEXT DEFAULT 'managed-app',\n \"discussion\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'submitted'\n);",
3821
+ "ddl": "CREATE TABLE IF NOT EXISTS \"development_requests\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"integration_id\" UUID,\n \"requester_id\" TEXT DEFAULT '',\n \"participant_id\" TEXT DEFAULT '',\n \"type\" TEXT DEFAULT 'feature',\n \"description\" TEXT DEFAULT '',\n \"evidence\" TEXT DEFAULT '[]',\n \"visibility\" TEXT DEFAULT 'requester',\n \"origin\" TEXT DEFAULT 'managed-app',\n \"discussion\" TEXT DEFAULT '',\n \"status\" TEXT DEFAULT 'submitted'\n);",
3738
3822
  "columns": {
3823
+ "_sync_origin_device_id": {
3824
+ "type": "TEXT"
3825
+ },
3826
+ "_sync_revision": {
3827
+ "type": "INTEGER"
3828
+ },
3739
3829
  "id": {
3740
3830
  "type": "UUID",
3741
3831
  "primaryKey": true,
@@ -3864,7 +3954,7 @@
3864
3954
  ]
3865
3955
  }
3866
3956
  ],
3867
- "version": "2f7f7c8a"
3957
+ "version": "b94722ee"
3868
3958
  },
3869
3959
  "importPath": "@happyvertical/smrt-projects"
3870
3960
  },
@@ -3966,8 +4056,14 @@
3966
4056
  ],
3967
4057
  "schema": {
3968
4058
  "tableName": "development_request_histories",
3969
- "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_histories\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"from_status\" TEXT DEFAULT '',\n \"to_status\" TEXT DEFAULT 'submitted',\n \"actor_type\" TEXT DEFAULT 'system',\n \"actor_id\" TEXT DEFAULT '',\n \"note\" TEXT\n);",
4059
+ "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_histories\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"from_status\" TEXT DEFAULT '',\n \"to_status\" TEXT DEFAULT 'submitted',\n \"actor_type\" TEXT DEFAULT 'system',\n \"actor_id\" TEXT DEFAULT '',\n \"note\" TEXT\n);",
3970
4060
  "columns": {
4061
+ "_sync_origin_device_id": {
4062
+ "type": "TEXT"
4063
+ },
4064
+ "_sync_revision": {
4065
+ "type": "INTEGER"
4066
+ },
3971
4067
  "id": {
3972
4068
  "type": "UUID",
3973
4069
  "primaryKey": true,
@@ -4065,7 +4161,7 @@
4065
4161
  ]
4066
4162
  }
4067
4163
  ],
4068
- "version": "67389678"
4164
+ "version": "0722806e"
4069
4165
  },
4070
4166
  "importPath": "@happyvertical/smrt-projects"
4071
4167
  },
@@ -4437,8 +4533,14 @@
4437
4533
  "displayLabelField": "title",
4438
4534
  "schema": {
4439
4535
  "tableName": "issues",
4440
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
4536
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\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 \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
4441
4537
  "columns": {
4538
+ "_sync_origin_device_id": {
4539
+ "type": "TEXT"
4540
+ },
4541
+ "_sync_revision": {
4542
+ "type": "INTEGER"
4543
+ },
4442
4544
  "id": {
4443
4545
  "type": "UUID",
4444
4546
  "primaryKey": true,
@@ -4641,7 +4743,7 @@
4641
4743
  ]
4642
4744
  }
4643
4745
  ],
4644
- "version": "83fb5e05"
4746
+ "version": "7f290f5c"
4645
4747
  },
4646
4748
  "importPath": "@happyvertical/smrt-projects"
4647
4749
  },
@@ -4794,8 +4896,14 @@
4794
4896
  "displayLabelField": "name",
4795
4897
  "schema": {
4796
4898
  "tableName": "labels",
4797
- "ddl": "CREATE TABLE IF NOT EXISTS \"labels\" (\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 \"repository_id\" UUID,\n \"project_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"color\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT ''\n);",
4899
+ "ddl": "CREATE TABLE IF NOT EXISTS \"labels\" (\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 \"repository_id\" UUID,\n \"project_id\" UUID,\n \"name\" TEXT DEFAULT '',\n \"color\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT ''\n);",
4798
4900
  "columns": {
4901
+ "_sync_origin_device_id": {
4902
+ "type": "TEXT"
4903
+ },
4904
+ "_sync_revision": {
4905
+ "type": "INTEGER"
4906
+ },
4799
4907
  "id": {
4800
4908
  "type": "UUID",
4801
4909
  "primaryKey": true,
@@ -4892,7 +5000,7 @@
4892
5000
  ]
4893
5001
  }
4894
5002
  ],
4895
- "version": "664f110a"
5003
+ "version": "6b9cdea7"
4896
5004
  },
4897
5005
  "importPath": "@happyvertical/smrt-projects"
4898
5006
  },
@@ -5276,8 +5384,14 @@
5276
5384
  "displayLabelField": "title",
5277
5385
  "schema": {
5278
5386
  "tableName": "projects",
5279
- "ddl": "CREATE TABLE IF NOT EXISTS \"projects\" (\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 \"project_id\" TEXT DEFAULT '',\n \"project_number\" INTEGER DEFAULT 0,\n \"title\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"owner\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT '',\n \"provider_type\" TEXT DEFAULT 'github',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"statuses\" JSON DEFAULT '[]',\n \"fields\" JSON DEFAULT '[]',\n \"status_field_id\" TEXT DEFAULT '',\n \"status_options\" JSON DEFAULT '{}',\n \"last_synced_at\" TIMESTAMP\n);",
5387
+ "ddl": "CREATE TABLE IF NOT EXISTS \"projects\" (\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 \"project_id\" TEXT DEFAULT '',\n \"project_number\" INTEGER DEFAULT 0,\n \"title\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"owner\" TEXT DEFAULT '',\n \"url\" TEXT DEFAULT '',\n \"provider_type\" TEXT DEFAULT 'github',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"statuses\" JSON DEFAULT '[]',\n \"fields\" JSON DEFAULT '[]',\n \"status_field_id\" TEXT DEFAULT '',\n \"status_options\" JSON DEFAULT '{}',\n \"last_synced_at\" TIMESTAMP\n);",
5280
5388
  "columns": {
5389
+ "_sync_origin_device_id": {
5390
+ "type": "TEXT"
5391
+ },
5392
+ "_sync_revision": {
5393
+ "type": "INTEGER"
5394
+ },
5281
5395
  "id": {
5282
5396
  "type": "UUID",
5283
5397
  "primaryKey": true,
@@ -5406,7 +5520,7 @@
5406
5520
  ]
5407
5521
  }
5408
5522
  ],
5409
- "version": "2e8c344a"
5523
+ "version": "3a8531e2"
5410
5524
  },
5411
5525
  "importPath": "@happyvertical/smrt-projects"
5412
5526
  },
@@ -5661,8 +5775,14 @@
5661
5775
  ],
5662
5776
  "schema": {
5663
5777
  "tableName": "project_decisions",
5664
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT NOT NULL,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
5778
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_decisions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"question\" TEXT NOT NULL,\n \"decision_options\" TEXT,\n \"outcome\" TEXT,\n \"rationale\" TEXT,\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"decided_at\" TIMESTAMP\n);",
5665
5779
  "columns": {
5780
+ "_sync_origin_device_id": {
5781
+ "type": "TEXT"
5782
+ },
5783
+ "_sync_revision": {
5784
+ "type": "INTEGER"
5785
+ },
5666
5786
  "id": {
5667
5787
  "type": "UUID",
5668
5788
  "primaryKey": true,
@@ -5819,7 +5939,7 @@
5819
5939
  ]
5820
5940
  }
5821
5941
  ],
5822
- "version": "34ed60f9"
5942
+ "version": "9b079873"
5823
5943
  },
5824
5944
  "importPath": "@happyvertical/smrt-projects"
5825
5945
  },
@@ -6096,8 +6216,14 @@
6096
6216
  ],
6097
6217
  "schema": {
6098
6218
  "tableName": "project_governance_events",
6099
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_governance_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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"record_kind\" TEXT NOT NULL DEFAULT 'question',\n \"action\" TEXT NOT NULL DEFAULT 'created',\n \"actor_type\" TEXT NOT NULL DEFAULT 'system',\n \"actor_id\" TEXT NOT NULL,\n \"from_status\" TEXT,\n \"to_status\" TEXT NOT NULL,\n \"note\" TEXT,\n \"value\" TEXT,\n \"rationale\" TEXT,\n \"answer_selection\" TEXT DEFAULT '',\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"from_owner_type\" TEXT DEFAULT '',\n \"from_owner_id\" TEXT,\n \"to_owner_type\" TEXT DEFAULT '',\n \"to_owner_id\" TEXT\n);",
6219
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_governance_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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"record_kind\" TEXT NOT NULL DEFAULT 'question',\n \"action\" TEXT NOT NULL DEFAULT 'created',\n \"actor_type\" TEXT NOT NULL DEFAULT 'system',\n \"actor_id\" TEXT NOT NULL,\n \"from_status\" TEXT,\n \"to_status\" TEXT NOT NULL,\n \"note\" TEXT,\n \"value\" TEXT,\n \"rationale\" TEXT,\n \"answer_selection\" TEXT DEFAULT '',\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"from_owner_type\" TEXT DEFAULT '',\n \"from_owner_id\" TEXT,\n \"to_owner_type\" TEXT DEFAULT '',\n \"to_owner_id\" TEXT\n);",
6100
6220
  "columns": {
6221
+ "_sync_origin_device_id": {
6222
+ "type": "TEXT"
6223
+ },
6224
+ "_sync_revision": {
6225
+ "type": "INTEGER"
6226
+ },
6101
6227
  "id": {
6102
6228
  "type": "UUID",
6103
6229
  "primaryKey": true,
@@ -6267,7 +6393,7 @@
6267
6393
  ]
6268
6394
  }
6269
6395
  ],
6270
- "version": "e903aea4"
6396
+ "version": "e5411ce4"
6271
6397
  },
6272
6398
  "importPath": "@happyvertical/smrt-projects"
6273
6399
  },
@@ -6394,8 +6520,14 @@
6394
6520
  "validationRules": [],
6395
6521
  "schema": {
6396
6522
  "tableName": "project_integrations",
6397
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_integrations\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"credential_hash\" TEXT DEFAULT '',\n \"capabilities\" JSON DEFAULT '[]',\n \"status\" TEXT DEFAULT 'active',\n \"revoked_at\" TIMESTAMP\n);",
6523
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_integrations\" (\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 NOT NULL,\n \"project_id\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"credential_hash\" TEXT DEFAULT '',\n \"capabilities\" JSON DEFAULT '[]',\n \"status\" TEXT DEFAULT 'active',\n \"revoked_at\" TIMESTAMP\n);",
6398
6524
  "columns": {
6525
+ "_sync_origin_device_id": {
6526
+ "type": "TEXT"
6527
+ },
6528
+ "_sync_revision": {
6529
+ "type": "INTEGER"
6530
+ },
6399
6531
  "id": {
6400
6532
  "type": "UUID",
6401
6533
  "primaryKey": true,
@@ -6489,7 +6621,7 @@
6489
6621
  ]
6490
6622
  }
6491
6623
  ],
6492
- "version": "bfbaa783"
6624
+ "version": "ea3a816e"
6493
6625
  },
6494
6626
  "importPath": "@happyvertical/smrt-projects"
6495
6627
  },
@@ -6568,8 +6700,14 @@
6568
6700
  ],
6569
6701
  "schema": {
6570
6702
  "tableName": "project_integration_audits",
6571
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_integration_audits\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"action\" TEXT DEFAULT 'created',\n \"note\" TEXT\n);",
6703
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_integration_audits\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"action\" TEXT DEFAULT 'created',\n \"note\" TEXT\n);",
6572
6704
  "columns": {
6705
+ "_sync_origin_device_id": {
6706
+ "type": "TEXT"
6707
+ },
6708
+ "_sync_revision": {
6709
+ "type": "INTEGER"
6710
+ },
6573
6711
  "id": {
6574
6712
  "type": "UUID",
6575
6713
  "primaryKey": true,
@@ -6649,7 +6787,7 @@
6649
6787
  ]
6650
6788
  }
6651
6789
  ],
6652
- "version": "03cc10a2"
6790
+ "version": "cd8288fc"
6653
6791
  },
6654
6792
  "importPath": "@happyvertical/smrt-projects"
6655
6793
  },
@@ -6912,8 +7050,14 @@
6912
7050
  ],
6913
7051
  "schema": {
6914
7052
  "tableName": "project_questions",
6915
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT NOT NULL,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
7053
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_questions\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"prompt\" TEXT NOT NULL,\n \"answer\" TEXT,\n \"question_options\" TEXT DEFAULT '[]',\n \"selected_option_id\" TEXT DEFAULT '',\n \"status\" TEXT NOT NULL DEFAULT 'open',\n \"owner_type\" TEXT DEFAULT '',\n \"owner_id\" TEXT,\n \"visibility\" TEXT DEFAULT 'internal',\n \"context_references\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"answered_at\" TIMESTAMP\n);",
6916
7054
  "columns": {
7055
+ "_sync_origin_device_id": {
7056
+ "type": "TEXT"
7057
+ },
7058
+ "_sync_revision": {
7059
+ "type": "INTEGER"
7060
+ },
6917
7061
  "id": {
6918
7062
  "type": "UUID",
6919
7063
  "primaryKey": true,
@@ -7072,7 +7216,7 @@
7072
7216
  ]
7073
7217
  }
7074
7218
  ],
7075
- "version": "9bf3b915"
7219
+ "version": "1bdc2c36"
7076
7220
  },
7077
7221
  "importPath": "@happyvertical/smrt-projects"
7078
7222
  },
@@ -7222,8 +7366,14 @@
7222
7366
  ],
7223
7367
  "schema": {
7224
7368
  "tableName": "project_specifications",
7225
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT NOT NULL,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
7369
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_specifications\" (\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 \"meta_type\" TEXT NOT NULL,\n \"meta_id\" TEXT NOT NULL,\n \"role\" TEXT NOT NULL,\n \"sort_order\" INTEGER DEFAULT 0,\n \"tenant_id\" UUID NOT NULL,\n \"title\" TEXT NOT NULL,\n \"summary\" TEXT,\n \"cookbook\" TEXT,\n \"revision\" INTEGER NOT NULL DEFAULT 1,\n \"actor_type\" TEXT,\n \"actor_id\" TEXT\n);",
7226
7370
  "columns": {
7371
+ "_sync_origin_device_id": {
7372
+ "type": "TEXT"
7373
+ },
7374
+ "_sync_revision": {
7375
+ "type": "INTEGER"
7376
+ },
7227
7377
  "id": {
7228
7378
  "type": "UUID",
7229
7379
  "primaryKey": true,
@@ -7340,7 +7490,7 @@
7340
7490
  ]
7341
7491
  }
7342
7492
  ],
7343
- "version": "d3d39d7f"
7493
+ "version": "52645f69"
7344
7494
  },
7345
7495
  "importPath": "@happyvertical/smrt-projects"
7346
7496
  },
@@ -7838,8 +7988,14 @@
7838
7988
  "displayLabelField": "title",
7839
7989
  "schema": {
7840
7990
  "tableName": "issues",
7841
- "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
7991
+ "ddl": "CREATE TABLE IF NOT EXISTS \"issues\" (\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 \"_meta_type\" TEXT NOT NULL,\n \"_meta_data\" JSON,\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"tenant_id\" UUID,\n \"repository_id\" UUID,\n \"project_id\" UUID,\n \"number\" INTEGER DEFAULT 0,\n \"node_id\" TEXT DEFAULT '',\n \"title\" TEXT DEFAULT '',\n \"body\" TEXT DEFAULT '',\n \"state\" TEXT DEFAULT 'open',\n \"author\" TEXT DEFAULT '',\n \"labels\" JSON DEFAULT '[]',\n \"assignees\" JSON DEFAULT '[]',\n \"comments_count\" INTEGER DEFAULT 0,\n \"last_synced_at\" TIMESTAMP,\n \"original_body\" TEXT DEFAULT '',\n \"synthesis_count\" INTEGER DEFAULT 0,\n \"head_ref\" TEXT DEFAULT '',\n \"base_ref\" TEXT DEFAULT '',\n \"merged\" BOOLEAN DEFAULT FALSE,\n \"merged_at\" TIMESTAMP,\n \"mergeable\" BOOLEAN DEFAULT TRUE,\n \"draft\" BOOLEAN DEFAULT FALSE,\n \"additions\" INTEGER DEFAULT 0,\n \"deletions\" INTEGER DEFAULT 0,\n \"changed_files\" INTEGER DEFAULT 0\n);",
7842
7992
  "columns": {
7993
+ "_sync_origin_device_id": {
7994
+ "type": "TEXT"
7995
+ },
7996
+ "_sync_revision": {
7997
+ "type": "INTEGER"
7998
+ },
7843
7999
  "id": {
7844
8000
  "type": "UUID",
7845
8001
  "primaryKey": true,
@@ -8042,7 +8198,7 @@
8042
8198
  ]
8043
8199
  }
8044
8200
  ],
8045
- "version": "0ebf6fbd"
8201
+ "version": "9330532e"
8046
8202
  },
8047
8203
  "importPath": "@happyvertical/smrt-projects"
8048
8204
  },
@@ -8302,8 +8458,14 @@
8302
8458
  "displayLabelField": "name",
8303
8459
  "schema": {
8304
8460
  "tableName": "repositories",
8305
- "ddl": "CREATE TABLE IF NOT EXISTS \"repositories\" (\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 \"owner\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"full_name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"default_branch\" TEXT DEFAULT 'main',\n \"is_private\" BOOLEAN DEFAULT FALSE,\n \"provider_type\" TEXT DEFAULT 'github',\n \"base_url\" TEXT DEFAULT '',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"last_synced_at\" TIMESTAMP\n);",
8461
+ "ddl": "CREATE TABLE IF NOT EXISTS \"repositories\" (\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 \"owner\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"full_name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"default_branch\" TEXT DEFAULT 'main',\n \"is_private\" BOOLEAN DEFAULT FALSE,\n \"provider_type\" TEXT DEFAULT 'github',\n \"base_url\" TEXT DEFAULT '',\n \"token_config_key\" TEXT DEFAULT 'GITHUB_TOKEN',\n \"last_synced_at\" TIMESTAMP\n);",
8306
8462
  "columns": {
8463
+ "_sync_origin_device_id": {
8464
+ "type": "TEXT"
8465
+ },
8466
+ "_sync_revision": {
8467
+ "type": "INTEGER"
8468
+ },
8307
8469
  "id": {
8308
8470
  "type": "UUID",
8309
8471
  "primaryKey": true,
@@ -8414,7 +8576,7 @@
8414
8576
  ]
8415
8577
  }
8416
8578
  ],
8417
- "version": "c302a5e5"
8579
+ "version": "4bb3edf4"
8418
8580
  },
8419
8581
  "importPath": "@happyvertical/smrt-projects"
8420
8582
  },
@@ -8509,8 +8671,14 @@
8509
8671
  ],
8510
8672
  "schema": {
8511
8673
  "tableName": "development_request_work_links",
8512
- "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"work_item_type\" TEXT,\n \"work_item_id\" TEXT,\n \"canonical_status\" TEXT,\n \"provider_ref\" TEXT,\n \"metadata\" TEXT,\n \"last_projected_at\" TIMESTAMP\n);",
8674
+ "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"work_item_type\" TEXT,\n \"work_item_id\" TEXT,\n \"canonical_status\" TEXT,\n \"provider_ref\" TEXT,\n \"metadata\" TEXT,\n \"last_projected_at\" TIMESTAMP\n);",
8513
8675
  "columns": {
8676
+ "_sync_origin_device_id": {
8677
+ "type": "TEXT"
8678
+ },
8679
+ "_sync_revision": {
8680
+ "type": "INTEGER"
8681
+ },
8514
8682
  "id": {
8515
8683
  "type": "UUID",
8516
8684
  "primaryKey": true,
@@ -8611,7 +8779,7 @@
8611
8779
  ]
8612
8780
  }
8613
8781
  ],
8614
- "version": "adcbaa21"
8782
+ "version": "9f98ba27"
8615
8783
  },
8616
8784
  "importPath": "@happyvertical/smrt-projects"
8617
8785
  },
@@ -8738,8 +8906,14 @@
8738
8906
  ],
8739
8907
  "schema": {
8740
8908
  "tableName": "project_delivery_events",
8741
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_delivery_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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"idempotency_key\" TEXT,\n \"sequence\" INTEGER DEFAULT 0,\n \"type\" TEXT,\n \"payload\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"delivered_at\" TIMESTAMP,\n \"delivery_attempts\" INTEGER DEFAULT 0,\n \"last_delivery_error\" TEXT\n);",
8909
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_delivery_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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"idempotency_key\" TEXT,\n \"sequence\" INTEGER DEFAULT 0,\n \"type\" TEXT,\n \"payload\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"delivered_at\" TIMESTAMP,\n \"delivery_attempts\" INTEGER DEFAULT 0,\n \"last_delivery_error\" TEXT\n);",
8742
8910
  "columns": {
8911
+ "_sync_origin_device_id": {
8912
+ "type": "TEXT"
8913
+ },
8914
+ "_sync_revision": {
8915
+ "type": "INTEGER"
8916
+ },
8743
8917
  "id": {
8744
8918
  "type": "UUID",
8745
8919
  "primaryKey": true,
@@ -8869,7 +9043,7 @@
8869
9043
  ]
8870
9044
  }
8871
9045
  ],
8872
- "version": "99b9e301"
9046
+ "version": "b98f47b4"
8873
9047
  },
8874
9048
  "importPath": "@happyvertical/smrt-projects"
8875
9049
  },
@@ -8977,8 +9151,14 @@
8977
9151
  ],
8978
9152
  "schema": {
8979
9153
  "tableName": "preview_approvals",
8980
- "ddl": "CREATE TABLE IF NOT EXISTS \"preview_approvals\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"preview_id\" TEXT,\n \"preview_url\" TEXT,\n \"status\" TEXT,\n \"decided_by_ref\" TEXT,\n \"reason\" TEXT,\n \"decided_at\" TIMESTAMP,\n \"stale_at\" TIMESTAMP\n);",
9154
+ "ddl": "CREATE TABLE IF NOT EXISTS \"preview_approvals\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"preview_id\" TEXT,\n \"preview_url\" TEXT,\n \"status\" TEXT,\n \"decided_by_ref\" TEXT,\n \"reason\" TEXT,\n \"decided_at\" TIMESTAMP,\n \"stale_at\" TIMESTAMP\n);",
8981
9155
  "columns": {
9156
+ "_sync_origin_device_id": {
9157
+ "type": "TEXT"
9158
+ },
9159
+ "_sync_revision": {
9160
+ "type": "INTEGER"
9161
+ },
8982
9162
  "id": {
8983
9163
  "type": "UUID",
8984
9164
  "primaryKey": true,
@@ -9083,7 +9263,7 @@
9083
9263
  ]
9084
9264
  }
9085
9265
  ],
9086
- "version": "ec7b2b14"
9266
+ "version": "ef34b04d"
9087
9267
  },
9088
9268
  "importPath": "@happyvertical/smrt-projects"
9089
9269
  },
@@ -9203,8 +9383,14 @@
9203
9383
  ],
9204
9384
  "schema": {
9205
9385
  "tableName": "assistance_requests",
9206
- "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_requests\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"requester_id\" TEXT,\n \"subject\" TEXT,\n \"application_context\" TEXT,\n \"conversation\" TEXT,\n \"evidence\" TEXT,\n \"classification\" TEXT,\n \"support_case_id\" TEXT,\n \"development_request_id\" TEXT,\n \"delivery_handoff_linked_at\" TIMESTAMP\n);",
9386
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_requests\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"requester_id\" TEXT,\n \"subject\" TEXT,\n \"application_context\" TEXT,\n \"conversation\" TEXT,\n \"evidence\" TEXT,\n \"classification\" TEXT,\n \"support_case_id\" TEXT,\n \"development_request_id\" TEXT,\n \"delivery_handoff_linked_at\" TIMESTAMP\n);",
9207
9387
  "columns": {
9388
+ "_sync_origin_device_id": {
9389
+ "type": "TEXT"
9390
+ },
9391
+ "_sync_revision": {
9392
+ "type": "INTEGER"
9393
+ },
9208
9394
  "id": {
9209
9395
  "type": "UUID",
9210
9396
  "primaryKey": true,
@@ -9318,7 +9504,7 @@
9318
9504
  ]
9319
9505
  }
9320
9506
  ],
9321
- "version": "d1653259"
9507
+ "version": "85f29b6e"
9322
9508
  },
9323
9509
  "importPath": "@happyvertical/smrt-projects"
9324
9510
  },
@@ -9425,8 +9611,14 @@
9425
9611
  ],
9426
9612
  "schema": {
9427
9613
  "tableName": "assistance_request_events",
9428
- "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_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 NOT NULL,\n \"assistance_request_id\" UUID NOT NULL,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
9614
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_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 NOT NULL,\n \"assistance_request_id\" UUID NOT NULL,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
9429
9615
  "columns": {
9616
+ "_sync_origin_device_id": {
9617
+ "type": "TEXT"
9618
+ },
9619
+ "_sync_revision": {
9620
+ "type": "INTEGER"
9621
+ },
9430
9622
  "id": {
9431
9623
  "type": "UUID",
9432
9624
  "primaryKey": true,
@@ -9525,7 +9717,7 @@
9525
9717
  ]
9526
9718
  }
9527
9719
  ],
9528
- "version": "bcc95ebe"
9720
+ "version": "66ef0a29"
9529
9721
  },
9530
9722
  "importPath": "@happyvertical/smrt-projects"
9531
9723
  },
@@ -9556,8 +9748,14 @@
9556
9748
  ],
9557
9749
  "schema": {
9558
9750
  "tableName": "development_request_work_links",
9559
- "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"work_item_type\" TEXT,\n \"work_item_id\" TEXT,\n \"canonical_status\" TEXT,\n \"provider_ref\" TEXT,\n \"metadata\" TEXT,\n \"last_projected_at\" TIMESTAMP\n);",
9751
+ "ddl": "CREATE TABLE IF NOT EXISTS \"development_request_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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"work_item_type\" TEXT,\n \"work_item_id\" TEXT,\n \"canonical_status\" TEXT,\n \"provider_ref\" TEXT,\n \"metadata\" TEXT,\n \"last_projected_at\" TIMESTAMP\n);",
9560
9752
  "columns": {
9753
+ "_sync_origin_device_id": {
9754
+ "type": "TEXT"
9755
+ },
9756
+ "_sync_revision": {
9757
+ "type": "INTEGER"
9758
+ },
9561
9759
  "id": {
9562
9760
  "type": "UUID",
9563
9761
  "primaryKey": true,
@@ -9658,7 +9856,7 @@
9658
9856
  ]
9659
9857
  }
9660
9858
  ],
9661
- "version": "adcbaa21"
9859
+ "version": "9f98ba27"
9662
9860
  },
9663
9861
  "importPath": "@happyvertical/smrt-projects"
9664
9862
  },
@@ -9689,8 +9887,14 @@
9689
9887
  ],
9690
9888
  "schema": {
9691
9889
  "tableName": "project_delivery_events",
9692
- "ddl": "CREATE TABLE IF NOT EXISTS \"project_delivery_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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"idempotency_key\" TEXT,\n \"sequence\" INTEGER DEFAULT 0,\n \"type\" TEXT,\n \"payload\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"delivered_at\" TIMESTAMP,\n \"delivery_attempts\" INTEGER DEFAULT 0,\n \"last_delivery_error\" TEXT\n);",
9890
+ "ddl": "CREATE TABLE IF NOT EXISTS \"project_delivery_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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"idempotency_key\" TEXT,\n \"sequence\" INTEGER DEFAULT 0,\n \"type\" TEXT,\n \"payload\" TEXT,\n \"occurred_at\" TIMESTAMP,\n \"delivered_at\" TIMESTAMP,\n \"delivery_attempts\" INTEGER DEFAULT 0,\n \"last_delivery_error\" TEXT\n);",
9693
9891
  "columns": {
9892
+ "_sync_origin_device_id": {
9893
+ "type": "TEXT"
9894
+ },
9895
+ "_sync_revision": {
9896
+ "type": "INTEGER"
9897
+ },
9694
9898
  "id": {
9695
9899
  "type": "UUID",
9696
9900
  "primaryKey": true,
@@ -9820,7 +10024,7 @@
9820
10024
  ]
9821
10025
  }
9822
10026
  ],
9823
- "version": "99b9e301"
10027
+ "version": "b98f47b4"
9824
10028
  },
9825
10029
  "importPath": "@happyvertical/smrt-projects"
9826
10030
  },
@@ -9851,8 +10055,14 @@
9851
10055
  ],
9852
10056
  "schema": {
9853
10057
  "tableName": "preview_approvals",
9854
- "ddl": "CREATE TABLE IF NOT EXISTS \"preview_approvals\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"preview_id\" TEXT,\n \"preview_url\" TEXT,\n \"status\" TEXT,\n \"decided_by_ref\" TEXT,\n \"reason\" TEXT,\n \"decided_at\" TIMESTAMP,\n \"stale_at\" TIMESTAMP\n);",
10058
+ "ddl": "CREATE TABLE IF NOT EXISTS \"preview_approvals\" (\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 NOT NULL,\n \"request_id\" UUID NOT NULL,\n \"preview_id\" TEXT,\n \"preview_url\" TEXT,\n \"status\" TEXT,\n \"decided_by_ref\" TEXT,\n \"reason\" TEXT,\n \"decided_at\" TIMESTAMP,\n \"stale_at\" TIMESTAMP\n);",
9855
10059
  "columns": {
10060
+ "_sync_origin_device_id": {
10061
+ "type": "TEXT"
10062
+ },
10063
+ "_sync_revision": {
10064
+ "type": "INTEGER"
10065
+ },
9856
10066
  "id": {
9857
10067
  "type": "UUID",
9858
10068
  "primaryKey": true,
@@ -9957,7 +10167,7 @@
9957
10167
  ]
9958
10168
  }
9959
10169
  ],
9960
- "version": "ec7b2b14"
10170
+ "version": "ef34b04d"
9961
10171
  },
9962
10172
  "importPath": "@happyvertical/smrt-projects"
9963
10173
  },
@@ -9988,8 +10198,14 @@
9988
10198
  ],
9989
10199
  "schema": {
9990
10200
  "tableName": "assistance_requests",
9991
- "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_requests\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"requester_id\" TEXT,\n \"subject\" TEXT,\n \"application_context\" TEXT,\n \"conversation\" TEXT,\n \"evidence\" TEXT,\n \"classification\" TEXT,\n \"support_case_id\" TEXT,\n \"development_request_id\" TEXT,\n \"delivery_handoff_linked_at\" TIMESTAMP\n);",
10201
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_requests\" (\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 NOT NULL,\n \"integration_id\" UUID NOT NULL,\n \"requester_id\" TEXT,\n \"subject\" TEXT,\n \"application_context\" TEXT,\n \"conversation\" TEXT,\n \"evidence\" TEXT,\n \"classification\" TEXT,\n \"support_case_id\" TEXT,\n \"development_request_id\" TEXT,\n \"delivery_handoff_linked_at\" TIMESTAMP\n);",
9992
10202
  "columns": {
10203
+ "_sync_origin_device_id": {
10204
+ "type": "TEXT"
10205
+ },
10206
+ "_sync_revision": {
10207
+ "type": "INTEGER"
10208
+ },
9993
10209
  "id": {
9994
10210
  "type": "UUID",
9995
10211
  "primaryKey": true,
@@ -10103,7 +10319,7 @@
10103
10319
  ]
10104
10320
  }
10105
10321
  ],
10106
- "version": "d1653259"
10322
+ "version": "85f29b6e"
10107
10323
  },
10108
10324
  "importPath": "@happyvertical/smrt-projects"
10109
10325
  },
@@ -10134,8 +10350,14 @@
10134
10350
  ],
10135
10351
  "schema": {
10136
10352
  "tableName": "assistance_request_events",
10137
- "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_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 NOT NULL,\n \"assistance_request_id\" UUID NOT NULL,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
10353
+ "ddl": "CREATE TABLE IF NOT EXISTS \"assistance_request_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 NOT NULL,\n \"assistance_request_id\" UUID NOT NULL,\n \"prior_classification\" TEXT,\n \"resulting_classification\" TEXT,\n \"actor_ref\" TEXT,\n \"reason\" TEXT,\n \"resulting_links\" TEXT,\n \"occurred_at\" TIMESTAMP\n);",
10138
10354
  "columns": {
10355
+ "_sync_origin_device_id": {
10356
+ "type": "TEXT"
10357
+ },
10358
+ "_sync_revision": {
10359
+ "type": "INTEGER"
10360
+ },
10139
10361
  "id": {
10140
10362
  "type": "UUID",
10141
10363
  "primaryKey": true,
@@ -10234,7 +10456,7 @@
10234
10456
  ]
10235
10457
  }
10236
10458
  ],
10237
- "version": "bcc95ebe"
10459
+ "version": "66ef0a29"
10238
10460
  },
10239
10461
  "importPath": "@happyvertical/smrt-projects"
10240
10462
  }