@happyvertical/smrt-projects 0.49.3 → 0.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/manifest.json +1571 -271
- package/dist/smrt-knowledge.json +7 -7
- package/package.json +11 -11
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-projects",
|
|
5
|
-
"packageVersion": "0.49.
|
|
5
|
+
"packageVersion": "0.49.4",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-projects:DevelopmentRequestHistoryCollection": {
|
|
8
8
|
"name": "developmentrequesthistorycollection",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"collectionExportName": "DevelopmentRequestHistoryCollectionCollection",
|
|
46
46
|
"schema": {
|
|
47
47
|
"tableName": "development_request_histories",
|
|
48
|
-
"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);",
|
|
48
|
+
"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);",
|
|
49
49
|
"columns": {
|
|
50
50
|
"id": {
|
|
51
51
|
"type": "UUID",
|
|
@@ -71,25 +71,80 @@
|
|
|
71
71
|
"type": "TIMESTAMP",
|
|
72
72
|
"notNull": true,
|
|
73
73
|
"default": "current_timestamp"
|
|
74
|
+
},
|
|
75
|
+
"tenant_id": {
|
|
76
|
+
"type": "UUID",
|
|
77
|
+
"referenceKind": "tenantId",
|
|
78
|
+
"notNull": true,
|
|
79
|
+
"unique": false
|
|
80
|
+
},
|
|
81
|
+
"request_id": {
|
|
82
|
+
"type": "UUID",
|
|
83
|
+
"referenceKind": "foreignKey",
|
|
84
|
+
"notNull": true,
|
|
85
|
+
"unique": false,
|
|
86
|
+
"foreignKey": {
|
|
87
|
+
"table": "development_requests",
|
|
88
|
+
"column": "id",
|
|
89
|
+
"onDelete": "NO ACTION",
|
|
90
|
+
"onUpdate": "CASCADE"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"from_status": {
|
|
94
|
+
"type": "TEXT",
|
|
95
|
+
"notNull": false,
|
|
96
|
+
"unique": false,
|
|
97
|
+
"default": ""
|
|
98
|
+
},
|
|
99
|
+
"to_status": {
|
|
100
|
+
"type": "TEXT",
|
|
101
|
+
"notNull": false,
|
|
102
|
+
"unique": false,
|
|
103
|
+
"default": "submitted"
|
|
104
|
+
},
|
|
105
|
+
"actor_type": {
|
|
106
|
+
"type": "TEXT",
|
|
107
|
+
"notNull": false,
|
|
108
|
+
"unique": false,
|
|
109
|
+
"default": "system"
|
|
110
|
+
},
|
|
111
|
+
"actor_id": {
|
|
112
|
+
"type": "TEXT",
|
|
113
|
+
"notNull": false,
|
|
114
|
+
"unique": false,
|
|
115
|
+
"default": ""
|
|
116
|
+
},
|
|
117
|
+
"note": {
|
|
118
|
+
"type": "TEXT",
|
|
119
|
+
"notNull": false,
|
|
120
|
+
"unique": false
|
|
74
121
|
}
|
|
75
122
|
},
|
|
76
123
|
"indexes": [
|
|
77
124
|
{
|
|
78
125
|
"name": "development_request_histories_slug_context_idx",
|
|
79
126
|
"columns": [
|
|
127
|
+
"tenant_id",
|
|
80
128
|
"slug",
|
|
81
129
|
"context"
|
|
82
130
|
],
|
|
83
131
|
"unique": true
|
|
84
132
|
},
|
|
85
133
|
{
|
|
86
|
-
"name": "
|
|
134
|
+
"name": "development_request_histories_tenant_id_created_at_idx",
|
|
87
135
|
"columns": [
|
|
136
|
+
"tenant_id",
|
|
88
137
|
"created_at"
|
|
89
138
|
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "development_request_histories_request_id_idx",
|
|
142
|
+
"columns": [
|
|
143
|
+
"request_id"
|
|
144
|
+
]
|
|
90
145
|
}
|
|
91
146
|
],
|
|
92
|
-
"version": "
|
|
147
|
+
"version": "67389678"
|
|
93
148
|
}
|
|
94
149
|
},
|
|
95
150
|
"@happyvertical/smrt-projects:DevelopmentRequestCollection": {
|
|
@@ -194,7 +249,7 @@
|
|
|
194
249
|
"collectionExportName": "DevelopmentRequestCollectionCollection",
|
|
195
250
|
"schema": {
|
|
196
251
|
"tableName": "development_requests",
|
|
197
|
-
"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);",
|
|
252
|
+
"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 NOT NULL,\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);",
|
|
198
253
|
"columns": {
|
|
199
254
|
"id": {
|
|
200
255
|
"type": "UUID",
|
|
@@ -220,25 +275,111 @@
|
|
|
220
275
|
"type": "TIMESTAMP",
|
|
221
276
|
"notNull": true,
|
|
222
277
|
"default": "current_timestamp"
|
|
278
|
+
},
|
|
279
|
+
"tenant_id": {
|
|
280
|
+
"type": "UUID",
|
|
281
|
+
"referenceKind": "tenantId",
|
|
282
|
+
"notNull": true,
|
|
283
|
+
"unique": false
|
|
284
|
+
},
|
|
285
|
+
"project_id": {
|
|
286
|
+
"type": "TEXT",
|
|
287
|
+
"notNull": false,
|
|
288
|
+
"unique": false,
|
|
289
|
+
"default": ""
|
|
290
|
+
},
|
|
291
|
+
"integration_id": {
|
|
292
|
+
"type": "UUID",
|
|
293
|
+
"referenceKind": "foreignKey",
|
|
294
|
+
"notNull": true,
|
|
295
|
+
"unique": false,
|
|
296
|
+
"foreignKey": {
|
|
297
|
+
"table": "project_integrations",
|
|
298
|
+
"column": "id",
|
|
299
|
+
"onDelete": "NO ACTION",
|
|
300
|
+
"onUpdate": "CASCADE"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"requester_id": {
|
|
304
|
+
"type": "TEXT",
|
|
305
|
+
"notNull": false,
|
|
306
|
+
"unique": false,
|
|
307
|
+
"default": ""
|
|
308
|
+
},
|
|
309
|
+
"participant_id": {
|
|
310
|
+
"type": "TEXT",
|
|
311
|
+
"notNull": false,
|
|
312
|
+
"unique": false,
|
|
313
|
+
"default": ""
|
|
314
|
+
},
|
|
315
|
+
"type": {
|
|
316
|
+
"type": "TEXT",
|
|
317
|
+
"notNull": false,
|
|
318
|
+
"unique": false,
|
|
319
|
+
"default": "feature"
|
|
320
|
+
},
|
|
321
|
+
"description": {
|
|
322
|
+
"type": "TEXT",
|
|
323
|
+
"notNull": false,
|
|
324
|
+
"unique": false,
|
|
325
|
+
"default": ""
|
|
326
|
+
},
|
|
327
|
+
"evidence": {
|
|
328
|
+
"type": "TEXT",
|
|
329
|
+
"notNull": false,
|
|
330
|
+
"unique": false,
|
|
331
|
+
"default": "[]"
|
|
332
|
+
},
|
|
333
|
+
"visibility": {
|
|
334
|
+
"type": "TEXT",
|
|
335
|
+
"notNull": false,
|
|
336
|
+
"unique": false,
|
|
337
|
+
"default": "requester"
|
|
338
|
+
},
|
|
339
|
+
"origin": {
|
|
340
|
+
"type": "TEXT",
|
|
341
|
+
"notNull": false,
|
|
342
|
+
"unique": false,
|
|
343
|
+
"default": "managed-app"
|
|
344
|
+
},
|
|
345
|
+
"discussion": {
|
|
346
|
+
"type": "TEXT",
|
|
347
|
+
"notNull": false,
|
|
348
|
+
"unique": false,
|
|
349
|
+
"default": ""
|
|
350
|
+
},
|
|
351
|
+
"status": {
|
|
352
|
+
"type": "TEXT",
|
|
353
|
+
"notNull": false,
|
|
354
|
+
"unique": false,
|
|
355
|
+
"default": "submitted"
|
|
223
356
|
}
|
|
224
357
|
},
|
|
225
358
|
"indexes": [
|
|
226
359
|
{
|
|
227
360
|
"name": "development_requests_slug_context_idx",
|
|
228
361
|
"columns": [
|
|
362
|
+
"tenant_id",
|
|
229
363
|
"slug",
|
|
230
364
|
"context"
|
|
231
365
|
],
|
|
232
366
|
"unique": true
|
|
233
367
|
},
|
|
234
368
|
{
|
|
235
|
-
"name": "
|
|
369
|
+
"name": "development_requests_tenant_id_created_at_idx",
|
|
236
370
|
"columns": [
|
|
371
|
+
"tenant_id",
|
|
237
372
|
"created_at"
|
|
238
373
|
]
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "development_requests_integration_id_idx",
|
|
377
|
+
"columns": [
|
|
378
|
+
"integration_id"
|
|
379
|
+
]
|
|
239
380
|
}
|
|
240
381
|
],
|
|
241
|
-
"version": "
|
|
382
|
+
"version": "4bdaa6ff"
|
|
242
383
|
}
|
|
243
384
|
},
|
|
244
385
|
"@happyvertical/smrt-projects:IssueCollection": {
|
|
@@ -446,8 +587,8 @@
|
|
|
446
587
|
"exportName": "IssueCollection",
|
|
447
588
|
"collectionExportName": "IssueCollectionCollection",
|
|
448
589
|
"schema": {
|
|
449
|
-
"tableName": "
|
|
450
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
590
|
+
"tableName": "issues",
|
|
591
|
+
"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 \"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);",
|
|
451
592
|
"columns": {
|
|
452
593
|
"id": {
|
|
453
594
|
"type": "UUID",
|
|
@@ -464,6 +605,14 @@
|
|
|
464
605
|
"notNull": true,
|
|
465
606
|
"default": ""
|
|
466
607
|
},
|
|
608
|
+
"_meta_type": {
|
|
609
|
+
"type": "TEXT",
|
|
610
|
+
"notNull": true
|
|
611
|
+
},
|
|
612
|
+
"_meta_data": {
|
|
613
|
+
"type": "JSON",
|
|
614
|
+
"notNull": false
|
|
615
|
+
},
|
|
467
616
|
"created_at": {
|
|
468
617
|
"type": "TIMESTAMP",
|
|
469
618
|
"notNull": true,
|
|
@@ -473,113 +622,285 @@
|
|
|
473
622
|
"type": "TIMESTAMP",
|
|
474
623
|
"notNull": true,
|
|
475
624
|
"default": "current_timestamp"
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
"indexes": [
|
|
479
|
-
{
|
|
480
|
-
"name": "issue_collections_slug_context_idx",
|
|
481
|
-
"columns": [
|
|
482
|
-
"slug",
|
|
483
|
-
"context"
|
|
484
|
-
],
|
|
485
|
-
"unique": true
|
|
486
625
|
},
|
|
487
|
-
{
|
|
488
|
-
"name": "issue_collections_created_at_idx",
|
|
489
|
-
"columns": [
|
|
490
|
-
"created_at"
|
|
491
|
-
]
|
|
492
|
-
}
|
|
493
|
-
],
|
|
494
|
-
"version": "93b3c6f0"
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
"@happyvertical/smrt-projects:ProjectIntegrationAuditCollection": {
|
|
498
|
-
"name": "projectintegrationauditcollection",
|
|
499
|
-
"className": "ProjectIntegrationAuditCollection",
|
|
500
|
-
"qualifiedName": "@happyvertical/smrt-projects:ProjectIntegrationAuditCollection",
|
|
501
|
-
"collection": "projectintegrationaudits",
|
|
502
|
-
"filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectIntegrationAudits.ts",
|
|
503
|
-
"packageName": "@happyvertical/smrt-projects",
|
|
504
|
-
"fields": {},
|
|
505
|
-
"methods": {
|
|
506
|
-
"listForIntegration": {
|
|
507
|
-
"name": "listForIntegration",
|
|
508
|
-
"async": true,
|
|
509
|
-
"parameters": [
|
|
510
|
-
{
|
|
511
|
-
"name": "tenantId",
|
|
512
|
-
"type": "string",
|
|
513
|
-
"optional": false
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
"name": "integrationId",
|
|
517
|
-
"type": "string",
|
|
518
|
-
"optional": false
|
|
519
|
-
}
|
|
520
|
-
],
|
|
521
|
-
"returnType": "Promise<ProjectIntegrationAudit[]>",
|
|
522
|
-
"isStatic": false,
|
|
523
|
-
"isPublic": true
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
"decoratorConfig": {
|
|
527
|
-
"tableName": "project_integration_audits",
|
|
528
|
-
"api": false,
|
|
529
|
-
"mcp": false,
|
|
530
|
-
"cli": false
|
|
531
|
-
},
|
|
532
|
-
"extends": "SmrtCollection",
|
|
533
|
-
"extendsTypeArg": "ProjectIntegrationAudit",
|
|
534
|
-
"exportName": "ProjectIntegrationAuditCollection",
|
|
535
|
-
"collectionExportName": "ProjectIntegrationAuditCollectionCollection",
|
|
536
|
-
"schema": {
|
|
537
|
-
"tableName": "project_integration_audits",
|
|
538
|
-
"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);",
|
|
539
|
-
"columns": {
|
|
540
|
-
"id": {
|
|
626
|
+
"tenant_id": {
|
|
541
627
|
"type": "UUID",
|
|
542
|
-
"
|
|
543
|
-
"
|
|
544
|
-
"notNull": true
|
|
628
|
+
"referenceKind": "tenantId",
|
|
629
|
+
"notNull": false
|
|
545
630
|
},
|
|
546
|
-
"
|
|
631
|
+
"repository_id": {
|
|
632
|
+
"type": "UUID",
|
|
633
|
+
"referenceKind": "foreignKey",
|
|
634
|
+
"notNull": false,
|
|
635
|
+
"foreignKey": {
|
|
636
|
+
"table": "repositories",
|
|
637
|
+
"column": "id",
|
|
638
|
+
"onDelete": "NO ACTION",
|
|
639
|
+
"onUpdate": "CASCADE"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"number": {
|
|
643
|
+
"type": "INTEGER",
|
|
644
|
+
"notNull": false,
|
|
645
|
+
"default": 0
|
|
646
|
+
},
|
|
647
|
+
"node_id": {
|
|
547
648
|
"type": "TEXT",
|
|
548
|
-
"notNull":
|
|
649
|
+
"notNull": false,
|
|
650
|
+
"default": ""
|
|
549
651
|
},
|
|
550
|
-
"
|
|
652
|
+
"title": {
|
|
551
653
|
"type": "TEXT",
|
|
552
|
-
"notNull":
|
|
654
|
+
"notNull": false,
|
|
553
655
|
"default": ""
|
|
554
656
|
},
|
|
555
|
-
"
|
|
556
|
-
"type": "
|
|
557
|
-
"notNull":
|
|
558
|
-
"default": "
|
|
657
|
+
"body": {
|
|
658
|
+
"type": "TEXT",
|
|
659
|
+
"notNull": false,
|
|
660
|
+
"default": ""
|
|
661
|
+
},
|
|
662
|
+
"state": {
|
|
663
|
+
"type": "TEXT",
|
|
664
|
+
"notNull": false,
|
|
665
|
+
"default": "open"
|
|
666
|
+
},
|
|
667
|
+
"author": {
|
|
668
|
+
"type": "TEXT",
|
|
669
|
+
"notNull": false,
|
|
670
|
+
"default": ""
|
|
671
|
+
},
|
|
672
|
+
"labels": {
|
|
673
|
+
"type": "JSON",
|
|
674
|
+
"notNull": false,
|
|
675
|
+
"default": []
|
|
676
|
+
},
|
|
677
|
+
"assignees": {
|
|
678
|
+
"type": "JSON",
|
|
679
|
+
"notNull": false,
|
|
680
|
+
"default": []
|
|
681
|
+
},
|
|
682
|
+
"comments_count": {
|
|
683
|
+
"type": "INTEGER",
|
|
684
|
+
"notNull": false,
|
|
685
|
+
"default": 0
|
|
686
|
+
},
|
|
687
|
+
"last_synced_at": {
|
|
688
|
+
"type": "TIMESTAMP",
|
|
689
|
+
"notNull": false
|
|
690
|
+
},
|
|
691
|
+
"original_body": {
|
|
692
|
+
"type": "TEXT",
|
|
693
|
+
"notNull": false,
|
|
694
|
+
"default": ""
|
|
695
|
+
},
|
|
696
|
+
"synthesis_count": {
|
|
697
|
+
"type": "INTEGER",
|
|
698
|
+
"notNull": false,
|
|
699
|
+
"default": 0
|
|
700
|
+
},
|
|
701
|
+
"head_ref": {
|
|
702
|
+
"type": "TEXT",
|
|
703
|
+
"notNull": false,
|
|
704
|
+
"default": ""
|
|
705
|
+
},
|
|
706
|
+
"base_ref": {
|
|
707
|
+
"type": "TEXT",
|
|
708
|
+
"notNull": false,
|
|
709
|
+
"default": ""
|
|
710
|
+
},
|
|
711
|
+
"merged": {
|
|
712
|
+
"type": "BOOLEAN",
|
|
713
|
+
"notNull": false,
|
|
714
|
+
"default": false
|
|
715
|
+
},
|
|
716
|
+
"merged_at": {
|
|
717
|
+
"type": "TIMESTAMP",
|
|
718
|
+
"notNull": false
|
|
719
|
+
},
|
|
720
|
+
"mergeable": {
|
|
721
|
+
"type": "BOOLEAN",
|
|
722
|
+
"notNull": false,
|
|
723
|
+
"default": true
|
|
724
|
+
},
|
|
725
|
+
"draft": {
|
|
726
|
+
"type": "BOOLEAN",
|
|
727
|
+
"notNull": false,
|
|
728
|
+
"default": false
|
|
729
|
+
},
|
|
730
|
+
"additions": {
|
|
731
|
+
"type": "INTEGER",
|
|
732
|
+
"notNull": false,
|
|
733
|
+
"default": 0
|
|
734
|
+
},
|
|
735
|
+
"deletions": {
|
|
736
|
+
"type": "INTEGER",
|
|
737
|
+
"notNull": false,
|
|
738
|
+
"default": 0
|
|
739
|
+
},
|
|
740
|
+
"changed_files": {
|
|
741
|
+
"type": "INTEGER",
|
|
742
|
+
"notNull": false,
|
|
743
|
+
"default": 0
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"indexes": [
|
|
747
|
+
{
|
|
748
|
+
"name": "issues_slug_context_meta_type_idx",
|
|
749
|
+
"columns": [
|
|
750
|
+
"tenant_id",
|
|
751
|
+
"slug",
|
|
752
|
+
"context",
|
|
753
|
+
"_meta_type"
|
|
754
|
+
],
|
|
755
|
+
"unique": true,
|
|
756
|
+
"nullsNotDistinct": true
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"name": "issues_meta_type_idx",
|
|
760
|
+
"columns": [
|
|
761
|
+
"_meta_type"
|
|
762
|
+
]
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"name": "issues_tenant_id_created_at_idx",
|
|
766
|
+
"columns": [
|
|
767
|
+
"tenant_id",
|
|
768
|
+
"created_at"
|
|
769
|
+
]
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "issues_repository_id_idx",
|
|
773
|
+
"columns": [
|
|
774
|
+
"repository_id"
|
|
775
|
+
]
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"version": "c3d5425b"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"@happyvertical/smrt-projects:ProjectIntegrationAuditCollection": {
|
|
782
|
+
"name": "projectintegrationauditcollection",
|
|
783
|
+
"className": "ProjectIntegrationAuditCollection",
|
|
784
|
+
"qualifiedName": "@happyvertical/smrt-projects:ProjectIntegrationAuditCollection",
|
|
785
|
+
"collection": "projectintegrationaudits",
|
|
786
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/ProjectIntegrationAudits.ts",
|
|
787
|
+
"packageName": "@happyvertical/smrt-projects",
|
|
788
|
+
"fields": {},
|
|
789
|
+
"methods": {
|
|
790
|
+
"listForIntegration": {
|
|
791
|
+
"name": "listForIntegration",
|
|
792
|
+
"async": true,
|
|
793
|
+
"parameters": [
|
|
794
|
+
{
|
|
795
|
+
"name": "tenantId",
|
|
796
|
+
"type": "string",
|
|
797
|
+
"optional": false
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "integrationId",
|
|
801
|
+
"type": "string",
|
|
802
|
+
"optional": false
|
|
803
|
+
}
|
|
804
|
+
],
|
|
805
|
+
"returnType": "Promise<ProjectIntegrationAudit[]>",
|
|
806
|
+
"isStatic": false,
|
|
807
|
+
"isPublic": true
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
"decoratorConfig": {
|
|
811
|
+
"tableName": "project_integration_audits",
|
|
812
|
+
"api": false,
|
|
813
|
+
"mcp": false,
|
|
814
|
+
"cli": false
|
|
815
|
+
},
|
|
816
|
+
"extends": "SmrtCollection",
|
|
817
|
+
"extendsTypeArg": "ProjectIntegrationAudit",
|
|
818
|
+
"exportName": "ProjectIntegrationAuditCollection",
|
|
819
|
+
"collectionExportName": "ProjectIntegrationAuditCollectionCollection",
|
|
820
|
+
"schema": {
|
|
821
|
+
"tableName": "project_integration_audits",
|
|
822
|
+
"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);",
|
|
823
|
+
"columns": {
|
|
824
|
+
"id": {
|
|
825
|
+
"type": "UUID",
|
|
826
|
+
"primaryKey": true,
|
|
827
|
+
"referenceKind": "id",
|
|
828
|
+
"notNull": true
|
|
829
|
+
},
|
|
830
|
+
"slug": {
|
|
831
|
+
"type": "TEXT",
|
|
832
|
+
"notNull": true
|
|
833
|
+
},
|
|
834
|
+
"context": {
|
|
835
|
+
"type": "TEXT",
|
|
836
|
+
"notNull": true,
|
|
837
|
+
"default": ""
|
|
838
|
+
},
|
|
839
|
+
"created_at": {
|
|
840
|
+
"type": "TIMESTAMP",
|
|
841
|
+
"notNull": true,
|
|
842
|
+
"default": "current_timestamp"
|
|
559
843
|
},
|
|
560
844
|
"updated_at": {
|
|
561
845
|
"type": "TIMESTAMP",
|
|
562
846
|
"notNull": true,
|
|
563
847
|
"default": "current_timestamp"
|
|
848
|
+
},
|
|
849
|
+
"tenant_id": {
|
|
850
|
+
"type": "UUID",
|
|
851
|
+
"referenceKind": "tenantId",
|
|
852
|
+
"notNull": true,
|
|
853
|
+
"unique": false
|
|
854
|
+
},
|
|
855
|
+
"integration_id": {
|
|
856
|
+
"type": "UUID",
|
|
857
|
+
"referenceKind": "foreignKey",
|
|
858
|
+
"notNull": true,
|
|
859
|
+
"unique": false,
|
|
860
|
+
"foreignKey": {
|
|
861
|
+
"table": "project_integrations",
|
|
862
|
+
"column": "id",
|
|
863
|
+
"onDelete": "NO ACTION",
|
|
864
|
+
"onUpdate": "CASCADE"
|
|
865
|
+
}
|
|
866
|
+
},
|
|
867
|
+
"action": {
|
|
868
|
+
"type": "TEXT",
|
|
869
|
+
"notNull": false,
|
|
870
|
+
"unique": false,
|
|
871
|
+
"default": "created"
|
|
872
|
+
},
|
|
873
|
+
"note": {
|
|
874
|
+
"type": "TEXT",
|
|
875
|
+
"notNull": false,
|
|
876
|
+
"unique": false
|
|
564
877
|
}
|
|
565
878
|
},
|
|
566
879
|
"indexes": [
|
|
567
880
|
{
|
|
568
881
|
"name": "project_integration_audits_slug_context_idx",
|
|
569
882
|
"columns": [
|
|
883
|
+
"tenant_id",
|
|
570
884
|
"slug",
|
|
571
885
|
"context"
|
|
572
886
|
],
|
|
573
887
|
"unique": true
|
|
574
888
|
},
|
|
575
889
|
{
|
|
576
|
-
"name": "
|
|
890
|
+
"name": "project_integration_audits_tenant_id_created_at_idx",
|
|
577
891
|
"columns": [
|
|
892
|
+
"tenant_id",
|
|
578
893
|
"created_at"
|
|
579
894
|
]
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "project_integration_audits_integration_id_idx",
|
|
898
|
+
"columns": [
|
|
899
|
+
"integration_id"
|
|
900
|
+
]
|
|
580
901
|
}
|
|
581
902
|
],
|
|
582
|
-
"version": "
|
|
903
|
+
"version": "03cc10a2"
|
|
583
904
|
}
|
|
584
905
|
},
|
|
585
906
|
"@happyvertical/smrt-projects:ProjectIntegrationCollection": {
|
|
@@ -709,7 +1030,7 @@
|
|
|
709
1030
|
"collectionExportName": "ProjectIntegrationCollectionCollection",
|
|
710
1031
|
"schema": {
|
|
711
1032
|
"tableName": "project_integrations",
|
|
712
|
-
"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);",
|
|
1033
|
+
"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);",
|
|
713
1034
|
"columns": {
|
|
714
1035
|
"id": {
|
|
715
1036
|
"type": "UUID",
|
|
@@ -735,45 +1056,96 @@
|
|
|
735
1056
|
"type": "TIMESTAMP",
|
|
736
1057
|
"notNull": true,
|
|
737
1058
|
"default": "current_timestamp"
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
"indexes": [
|
|
741
|
-
{
|
|
742
|
-
"name": "project_integrations_slug_context_idx",
|
|
743
|
-
"columns": [
|
|
744
|
-
"slug",
|
|
745
|
-
"context"
|
|
746
|
-
],
|
|
747
|
-
"unique": true
|
|
748
1059
|
},
|
|
749
|
-
{
|
|
750
|
-
"
|
|
751
|
-
"
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
1060
|
+
"tenant_id": {
|
|
1061
|
+
"type": "UUID",
|
|
1062
|
+
"referenceKind": "tenantId",
|
|
1063
|
+
"notNull": true,
|
|
1064
|
+
"unique": false
|
|
1065
|
+
},
|
|
1066
|
+
"project_id": {
|
|
1067
|
+
"type": "TEXT",
|
|
1068
|
+
"notNull": false,
|
|
1069
|
+
"unique": false,
|
|
1070
|
+
"default": ""
|
|
1071
|
+
},
|
|
1072
|
+
"name": {
|
|
1073
|
+
"type": "TEXT",
|
|
1074
|
+
"notNull": false,
|
|
1075
|
+
"unique": false,
|
|
1076
|
+
"default": ""
|
|
1077
|
+
},
|
|
1078
|
+
"credential_hash": {
|
|
1079
|
+
"type": "TEXT",
|
|
1080
|
+
"notNull": false,
|
|
1081
|
+
"unique": false,
|
|
1082
|
+
"default": ""
|
|
1083
|
+
},
|
|
1084
|
+
"capabilities": {
|
|
1085
|
+
"type": "JSON",
|
|
1086
|
+
"notNull": false,
|
|
1087
|
+
"unique": false,
|
|
1088
|
+
"default": []
|
|
1089
|
+
},
|
|
1090
|
+
"status": {
|
|
1091
|
+
"type": "TEXT",
|
|
1092
|
+
"notNull": false,
|
|
1093
|
+
"unique": false,
|
|
1094
|
+
"default": "active"
|
|
1095
|
+
},
|
|
1096
|
+
"revoked_at": {
|
|
1097
|
+
"type": "TIMESTAMP",
|
|
1098
|
+
"notNull": false,
|
|
1099
|
+
"unique": false
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
"indexes": [
|
|
1103
|
+
{
|
|
1104
|
+
"name": "project_integrations_tenant_id_project_id_idx",
|
|
1105
|
+
"columns": [
|
|
1106
|
+
"tenant_id",
|
|
1107
|
+
"project_id",
|
|
1108
|
+
"name"
|
|
1109
|
+
],
|
|
1110
|
+
"unique": true,
|
|
1111
|
+
"nullsNotDistinct": true
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
"name": "project_integrations_slug_context_idx",
|
|
1115
|
+
"columns": [
|
|
1116
|
+
"slug",
|
|
1117
|
+
"context"
|
|
1118
|
+
]
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"name": "project_integrations_tenant_id_created_at_idx",
|
|
1122
|
+
"columns": [
|
|
1123
|
+
"tenant_id",
|
|
1124
|
+
"created_at"
|
|
1125
|
+
]
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
"version": "bfbaa783"
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
"@happyvertical/smrt-projects:ProjectCollection": {
|
|
1132
|
+
"name": "projectcollection",
|
|
1133
|
+
"className": "ProjectCollection",
|
|
1134
|
+
"qualifiedName": "@happyvertical/smrt-projects:ProjectCollection",
|
|
1135
|
+
"collection": "projects",
|
|
1136
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Projects.ts",
|
|
1137
|
+
"packageName": "@happyvertical/smrt-projects",
|
|
1138
|
+
"fields": {},
|
|
1139
|
+
"methods": {
|
|
1140
|
+
"findByTitle": {
|
|
1141
|
+
"name": "findByTitle",
|
|
1142
|
+
"async": true,
|
|
1143
|
+
"parameters": [
|
|
1144
|
+
{
|
|
1145
|
+
"name": "title",
|
|
1146
|
+
"type": "string",
|
|
1147
|
+
"optional": false
|
|
1148
|
+
}
|
|
777
1149
|
],
|
|
778
1150
|
"returnType": "Promise<Project | null>",
|
|
779
1151
|
"isStatic": false,
|
|
@@ -919,8 +1291,8 @@
|
|
|
919
1291
|
"exportName": "ProjectCollection",
|
|
920
1292
|
"collectionExportName": "ProjectCollectionCollection",
|
|
921
1293
|
"schema": {
|
|
922
|
-
"tableName": "
|
|
923
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
1294
|
+
"tableName": "projects",
|
|
1295
|
+
"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);",
|
|
924
1296
|
"columns": {
|
|
925
1297
|
"id": {
|
|
926
1298
|
"type": "UUID",
|
|
@@ -946,25 +1318,111 @@
|
|
|
946
1318
|
"type": "TIMESTAMP",
|
|
947
1319
|
"notNull": true,
|
|
948
1320
|
"default": "current_timestamp"
|
|
1321
|
+
},
|
|
1322
|
+
"tenant_id": {
|
|
1323
|
+
"type": "UUID",
|
|
1324
|
+
"referenceKind": "tenantId",
|
|
1325
|
+
"notNull": false,
|
|
1326
|
+
"unique": false
|
|
1327
|
+
},
|
|
1328
|
+
"project_id": {
|
|
1329
|
+
"type": "TEXT",
|
|
1330
|
+
"notNull": false,
|
|
1331
|
+
"unique": false,
|
|
1332
|
+
"default": ""
|
|
1333
|
+
},
|
|
1334
|
+
"project_number": {
|
|
1335
|
+
"type": "INTEGER",
|
|
1336
|
+
"notNull": false,
|
|
1337
|
+
"unique": false,
|
|
1338
|
+
"default": 0
|
|
1339
|
+
},
|
|
1340
|
+
"title": {
|
|
1341
|
+
"type": "TEXT",
|
|
1342
|
+
"notNull": false,
|
|
1343
|
+
"unique": false,
|
|
1344
|
+
"default": ""
|
|
1345
|
+
},
|
|
1346
|
+
"description": {
|
|
1347
|
+
"type": "TEXT",
|
|
1348
|
+
"notNull": false,
|
|
1349
|
+
"unique": false,
|
|
1350
|
+
"default": ""
|
|
1351
|
+
},
|
|
1352
|
+
"owner": {
|
|
1353
|
+
"type": "TEXT",
|
|
1354
|
+
"notNull": false,
|
|
1355
|
+
"unique": false,
|
|
1356
|
+
"default": ""
|
|
1357
|
+
},
|
|
1358
|
+
"url": {
|
|
1359
|
+
"type": "TEXT",
|
|
1360
|
+
"notNull": false,
|
|
1361
|
+
"unique": false,
|
|
1362
|
+
"default": ""
|
|
1363
|
+
},
|
|
1364
|
+
"provider_type": {
|
|
1365
|
+
"type": "TEXT",
|
|
1366
|
+
"notNull": false,
|
|
1367
|
+
"unique": false,
|
|
1368
|
+
"default": "github"
|
|
1369
|
+
},
|
|
1370
|
+
"token_config_key": {
|
|
1371
|
+
"type": "TEXT",
|
|
1372
|
+
"notNull": false,
|
|
1373
|
+
"unique": false,
|
|
1374
|
+
"default": "GITHUB_TOKEN"
|
|
1375
|
+
},
|
|
1376
|
+
"statuses": {
|
|
1377
|
+
"type": "JSON",
|
|
1378
|
+
"notNull": false,
|
|
1379
|
+
"unique": false,
|
|
1380
|
+
"default": []
|
|
1381
|
+
},
|
|
1382
|
+
"fields": {
|
|
1383
|
+
"type": "JSON",
|
|
1384
|
+
"notNull": false,
|
|
1385
|
+
"unique": false,
|
|
1386
|
+
"default": []
|
|
1387
|
+
},
|
|
1388
|
+
"status_field_id": {
|
|
1389
|
+
"type": "TEXT",
|
|
1390
|
+
"notNull": false,
|
|
1391
|
+
"unique": false,
|
|
1392
|
+
"default": ""
|
|
1393
|
+
},
|
|
1394
|
+
"status_options": {
|
|
1395
|
+
"type": "JSON",
|
|
1396
|
+
"notNull": false,
|
|
1397
|
+
"unique": false,
|
|
1398
|
+
"default": {}
|
|
1399
|
+
},
|
|
1400
|
+
"last_synced_at": {
|
|
1401
|
+
"type": "TIMESTAMP",
|
|
1402
|
+
"notNull": false,
|
|
1403
|
+
"unique": false
|
|
949
1404
|
}
|
|
950
1405
|
},
|
|
951
1406
|
"indexes": [
|
|
952
1407
|
{
|
|
953
|
-
"name": "
|
|
1408
|
+
"name": "projects_slug_context_idx",
|
|
954
1409
|
"columns": [
|
|
1410
|
+
"tenant_id",
|
|
955
1411
|
"slug",
|
|
956
1412
|
"context"
|
|
957
1413
|
],
|
|
958
|
-
"unique": true
|
|
1414
|
+
"unique": true,
|
|
1415
|
+
"nullsNotDistinct": true
|
|
959
1416
|
},
|
|
960
1417
|
{
|
|
961
|
-
"name": "
|
|
1418
|
+
"name": "projects_tenant_id_created_at_idx",
|
|
962
1419
|
"columns": [
|
|
1420
|
+
"tenant_id",
|
|
963
1421
|
"created_at"
|
|
964
1422
|
]
|
|
965
1423
|
}
|
|
966
1424
|
],
|
|
967
|
-
"version": "
|
|
1425
|
+
"version": "2e8c344a"
|
|
968
1426
|
}
|
|
969
1427
|
},
|
|
970
1428
|
"@happyvertical/smrt-projects:PullRequestCollection": {
|
|
@@ -1206,7 +1664,7 @@
|
|
|
1206
1664
|
"collectionExportName": "PullRequestCollectionCollection",
|
|
1207
1665
|
"schema": {
|
|
1208
1666
|
"tableName": "issues",
|
|
1209
|
-
"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 \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp\n);",
|
|
1667
|
+
"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 \"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);",
|
|
1210
1668
|
"columns": {
|
|
1211
1669
|
"id": {
|
|
1212
1670
|
"type": "UUID",
|
|
@@ -1223,6 +1681,14 @@
|
|
|
1223
1681
|
"notNull": true,
|
|
1224
1682
|
"default": ""
|
|
1225
1683
|
},
|
|
1684
|
+
"_meta_type": {
|
|
1685
|
+
"type": "TEXT",
|
|
1686
|
+
"notNull": true
|
|
1687
|
+
},
|
|
1688
|
+
"_meta_data": {
|
|
1689
|
+
"type": "JSON",
|
|
1690
|
+
"notNull": false
|
|
1691
|
+
},
|
|
1226
1692
|
"created_at": {
|
|
1227
1693
|
"type": "TIMESTAMP",
|
|
1228
1694
|
"notNull": true,
|
|
@@ -1232,66 +1698,201 @@
|
|
|
1232
1698
|
"type": "TIMESTAMP",
|
|
1233
1699
|
"notNull": true,
|
|
1234
1700
|
"default": "current_timestamp"
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
|
-
"indexes": [
|
|
1238
|
-
{
|
|
1239
|
-
"name": "issues_slug_context_idx",
|
|
1240
|
-
"columns": [
|
|
1241
|
-
"slug",
|
|
1242
|
-
"context"
|
|
1243
|
-
],
|
|
1244
|
-
"unique": true
|
|
1245
1701
|
},
|
|
1246
|
-
{
|
|
1247
|
-
"
|
|
1248
|
-
"
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
"collection": "repositories",
|
|
1261
|
-
"filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Repositories.ts",
|
|
1262
|
-
"packageName": "@happyvertical/smrt-projects",
|
|
1263
|
-
"fields": {},
|
|
1264
|
-
"methods": {
|
|
1265
|
-
"findByFullName": {
|
|
1266
|
-
"name": "findByFullName",
|
|
1267
|
-
"async": true,
|
|
1268
|
-
"parameters": [
|
|
1269
|
-
{
|
|
1270
|
-
"name": "owner",
|
|
1271
|
-
"type": "string",
|
|
1272
|
-
"optional": false
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
"name": "name",
|
|
1276
|
-
"type": "string",
|
|
1277
|
-
"optional": false
|
|
1278
|
-
}
|
|
1279
|
-
],
|
|
1280
|
-
"returnType": "Promise<Repository | null>",
|
|
1281
|
-
"isStatic": false,
|
|
1282
|
-
"isPublic": true
|
|
1283
|
-
},
|
|
1284
|
-
"findByOwner": {
|
|
1285
|
-
"name": "findByOwner",
|
|
1286
|
-
"async": true,
|
|
1287
|
-
"parameters": [
|
|
1288
|
-
{
|
|
1289
|
-
"name": "owner",
|
|
1290
|
-
"type": "string",
|
|
1291
|
-
"optional": false
|
|
1702
|
+
"tenant_id": {
|
|
1703
|
+
"type": "UUID",
|
|
1704
|
+
"referenceKind": "tenantId",
|
|
1705
|
+
"notNull": false
|
|
1706
|
+
},
|
|
1707
|
+
"repository_id": {
|
|
1708
|
+
"type": "UUID",
|
|
1709
|
+
"referenceKind": "foreignKey",
|
|
1710
|
+
"notNull": false,
|
|
1711
|
+
"foreignKey": {
|
|
1712
|
+
"table": "repositories",
|
|
1713
|
+
"column": "id",
|
|
1714
|
+
"onDelete": "NO ACTION",
|
|
1715
|
+
"onUpdate": "CASCADE"
|
|
1292
1716
|
}
|
|
1293
|
-
|
|
1294
|
-
"
|
|
1717
|
+
},
|
|
1718
|
+
"number": {
|
|
1719
|
+
"type": "INTEGER",
|
|
1720
|
+
"notNull": false,
|
|
1721
|
+
"default": 0
|
|
1722
|
+
},
|
|
1723
|
+
"node_id": {
|
|
1724
|
+
"type": "TEXT",
|
|
1725
|
+
"notNull": false,
|
|
1726
|
+
"default": ""
|
|
1727
|
+
},
|
|
1728
|
+
"title": {
|
|
1729
|
+
"type": "TEXT",
|
|
1730
|
+
"notNull": false,
|
|
1731
|
+
"default": ""
|
|
1732
|
+
},
|
|
1733
|
+
"body": {
|
|
1734
|
+
"type": "TEXT",
|
|
1735
|
+
"notNull": false,
|
|
1736
|
+
"default": ""
|
|
1737
|
+
},
|
|
1738
|
+
"state": {
|
|
1739
|
+
"type": "TEXT",
|
|
1740
|
+
"notNull": false,
|
|
1741
|
+
"default": "open"
|
|
1742
|
+
},
|
|
1743
|
+
"author": {
|
|
1744
|
+
"type": "TEXT",
|
|
1745
|
+
"notNull": false,
|
|
1746
|
+
"default": ""
|
|
1747
|
+
},
|
|
1748
|
+
"labels": {
|
|
1749
|
+
"type": "JSON",
|
|
1750
|
+
"notNull": false,
|
|
1751
|
+
"default": []
|
|
1752
|
+
},
|
|
1753
|
+
"assignees": {
|
|
1754
|
+
"type": "JSON",
|
|
1755
|
+
"notNull": false,
|
|
1756
|
+
"default": []
|
|
1757
|
+
},
|
|
1758
|
+
"comments_count": {
|
|
1759
|
+
"type": "INTEGER",
|
|
1760
|
+
"notNull": false,
|
|
1761
|
+
"default": 0
|
|
1762
|
+
},
|
|
1763
|
+
"last_synced_at": {
|
|
1764
|
+
"type": "TIMESTAMP",
|
|
1765
|
+
"notNull": false
|
|
1766
|
+
},
|
|
1767
|
+
"original_body": {
|
|
1768
|
+
"type": "TEXT",
|
|
1769
|
+
"notNull": false,
|
|
1770
|
+
"default": ""
|
|
1771
|
+
},
|
|
1772
|
+
"synthesis_count": {
|
|
1773
|
+
"type": "INTEGER",
|
|
1774
|
+
"notNull": false,
|
|
1775
|
+
"default": 0
|
|
1776
|
+
},
|
|
1777
|
+
"head_ref": {
|
|
1778
|
+
"type": "TEXT",
|
|
1779
|
+
"notNull": false,
|
|
1780
|
+
"default": ""
|
|
1781
|
+
},
|
|
1782
|
+
"base_ref": {
|
|
1783
|
+
"type": "TEXT",
|
|
1784
|
+
"notNull": false,
|
|
1785
|
+
"default": ""
|
|
1786
|
+
},
|
|
1787
|
+
"merged": {
|
|
1788
|
+
"type": "BOOLEAN",
|
|
1789
|
+
"notNull": false,
|
|
1790
|
+
"default": false
|
|
1791
|
+
},
|
|
1792
|
+
"merged_at": {
|
|
1793
|
+
"type": "TIMESTAMP",
|
|
1794
|
+
"notNull": false
|
|
1795
|
+
},
|
|
1796
|
+
"mergeable": {
|
|
1797
|
+
"type": "BOOLEAN",
|
|
1798
|
+
"notNull": false,
|
|
1799
|
+
"default": true
|
|
1800
|
+
},
|
|
1801
|
+
"draft": {
|
|
1802
|
+
"type": "BOOLEAN",
|
|
1803
|
+
"notNull": false,
|
|
1804
|
+
"default": false
|
|
1805
|
+
},
|
|
1806
|
+
"additions": {
|
|
1807
|
+
"type": "INTEGER",
|
|
1808
|
+
"notNull": false,
|
|
1809
|
+
"default": 0
|
|
1810
|
+
},
|
|
1811
|
+
"deletions": {
|
|
1812
|
+
"type": "INTEGER",
|
|
1813
|
+
"notNull": false,
|
|
1814
|
+
"default": 0
|
|
1815
|
+
},
|
|
1816
|
+
"changed_files": {
|
|
1817
|
+
"type": "INTEGER",
|
|
1818
|
+
"notNull": false,
|
|
1819
|
+
"default": 0
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
"indexes": [
|
|
1823
|
+
{
|
|
1824
|
+
"name": "issues_slug_context_meta_type_idx",
|
|
1825
|
+
"columns": [
|
|
1826
|
+
"tenant_id",
|
|
1827
|
+
"slug",
|
|
1828
|
+
"context",
|
|
1829
|
+
"_meta_type"
|
|
1830
|
+
],
|
|
1831
|
+
"unique": true,
|
|
1832
|
+
"nullsNotDistinct": true
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "issues_meta_type_idx",
|
|
1836
|
+
"columns": [
|
|
1837
|
+
"_meta_type"
|
|
1838
|
+
]
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
"name": "issues_tenant_id_created_at_idx",
|
|
1842
|
+
"columns": [
|
|
1843
|
+
"tenant_id",
|
|
1844
|
+
"created_at"
|
|
1845
|
+
]
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
"name": "issues_repository_id_idx",
|
|
1849
|
+
"columns": [
|
|
1850
|
+
"repository_id"
|
|
1851
|
+
]
|
|
1852
|
+
}
|
|
1853
|
+
],
|
|
1854
|
+
"version": "3f16e583"
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
"@happyvertical/smrt-projects:RepositoryCollection": {
|
|
1858
|
+
"name": "repositorycollection",
|
|
1859
|
+
"className": "RepositoryCollection",
|
|
1860
|
+
"qualifiedName": "@happyvertical/smrt-projects:RepositoryCollection",
|
|
1861
|
+
"collection": "repositories",
|
|
1862
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/projects/src/collections/Repositories.ts",
|
|
1863
|
+
"packageName": "@happyvertical/smrt-projects",
|
|
1864
|
+
"fields": {},
|
|
1865
|
+
"methods": {
|
|
1866
|
+
"findByFullName": {
|
|
1867
|
+
"name": "findByFullName",
|
|
1868
|
+
"async": true,
|
|
1869
|
+
"parameters": [
|
|
1870
|
+
{
|
|
1871
|
+
"name": "owner",
|
|
1872
|
+
"type": "string",
|
|
1873
|
+
"optional": false
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"name": "name",
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"optional": false
|
|
1879
|
+
}
|
|
1880
|
+
],
|
|
1881
|
+
"returnType": "Promise<Repository | null>",
|
|
1882
|
+
"isStatic": false,
|
|
1883
|
+
"isPublic": true
|
|
1884
|
+
},
|
|
1885
|
+
"findByOwner": {
|
|
1886
|
+
"name": "findByOwner",
|
|
1887
|
+
"async": true,
|
|
1888
|
+
"parameters": [
|
|
1889
|
+
{
|
|
1890
|
+
"name": "owner",
|
|
1891
|
+
"type": "string",
|
|
1892
|
+
"optional": false
|
|
1893
|
+
}
|
|
1894
|
+
],
|
|
1895
|
+
"returnType": "Promise<Repository[]>",
|
|
1295
1896
|
"isStatic": false,
|
|
1296
1897
|
"isPublic": true
|
|
1297
1898
|
},
|
|
@@ -1405,8 +2006,8 @@
|
|
|
1405
2006
|
"exportName": "RepositoryCollection",
|
|
1406
2007
|
"collectionExportName": "RepositoryCollectionCollection",
|
|
1407
2008
|
"schema": {
|
|
1408
|
-
"tableName": "
|
|
1409
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"
|
|
2009
|
+
"tableName": "repositories",
|
|
2010
|
+
"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);",
|
|
1410
2011
|
"columns": {
|
|
1411
2012
|
"id": {
|
|
1412
2013
|
"type": "UUID",
|
|
@@ -1432,25 +2033,93 @@
|
|
|
1432
2033
|
"type": "TIMESTAMP",
|
|
1433
2034
|
"notNull": true,
|
|
1434
2035
|
"default": "current_timestamp"
|
|
2036
|
+
},
|
|
2037
|
+
"tenant_id": {
|
|
2038
|
+
"type": "UUID",
|
|
2039
|
+
"referenceKind": "tenantId",
|
|
2040
|
+
"notNull": false,
|
|
2041
|
+
"unique": false
|
|
2042
|
+
},
|
|
2043
|
+
"owner": {
|
|
2044
|
+
"type": "TEXT",
|
|
2045
|
+
"notNull": false,
|
|
2046
|
+
"unique": false,
|
|
2047
|
+
"default": ""
|
|
2048
|
+
},
|
|
2049
|
+
"name": {
|
|
2050
|
+
"type": "TEXT",
|
|
2051
|
+
"notNull": false,
|
|
2052
|
+
"unique": false,
|
|
2053
|
+
"default": ""
|
|
2054
|
+
},
|
|
2055
|
+
"full_name": {
|
|
2056
|
+
"type": "TEXT",
|
|
2057
|
+
"notNull": false,
|
|
2058
|
+
"unique": false,
|
|
2059
|
+
"default": ""
|
|
2060
|
+
},
|
|
2061
|
+
"description": {
|
|
2062
|
+
"type": "TEXT",
|
|
2063
|
+
"notNull": false,
|
|
2064
|
+
"unique": false,
|
|
2065
|
+
"default": ""
|
|
2066
|
+
},
|
|
2067
|
+
"default_branch": {
|
|
2068
|
+
"type": "TEXT",
|
|
2069
|
+
"notNull": false,
|
|
2070
|
+
"unique": false,
|
|
2071
|
+
"default": "main"
|
|
2072
|
+
},
|
|
2073
|
+
"is_private": {
|
|
2074
|
+
"type": "BOOLEAN",
|
|
2075
|
+
"notNull": false,
|
|
2076
|
+
"unique": false,
|
|
2077
|
+
"default": false
|
|
2078
|
+
},
|
|
2079
|
+
"provider_type": {
|
|
2080
|
+
"type": "TEXT",
|
|
2081
|
+
"notNull": false,
|
|
2082
|
+
"unique": false,
|
|
2083
|
+
"default": "github"
|
|
2084
|
+
},
|
|
2085
|
+
"base_url": {
|
|
2086
|
+
"type": "TEXT",
|
|
2087
|
+
"notNull": false,
|
|
2088
|
+
"unique": false,
|
|
2089
|
+
"default": ""
|
|
2090
|
+
},
|
|
2091
|
+
"token_config_key": {
|
|
2092
|
+
"type": "TEXT",
|
|
2093
|
+
"notNull": false,
|
|
2094
|
+
"unique": false,
|
|
2095
|
+
"default": "GITHUB_TOKEN"
|
|
2096
|
+
},
|
|
2097
|
+
"last_synced_at": {
|
|
2098
|
+
"type": "TIMESTAMP",
|
|
2099
|
+
"notNull": false,
|
|
2100
|
+
"unique": false
|
|
1435
2101
|
}
|
|
1436
2102
|
},
|
|
1437
2103
|
"indexes": [
|
|
1438
2104
|
{
|
|
1439
|
-
"name": "
|
|
2105
|
+
"name": "repositories_slug_context_idx",
|
|
1440
2106
|
"columns": [
|
|
2107
|
+
"tenant_id",
|
|
1441
2108
|
"slug",
|
|
1442
2109
|
"context"
|
|
1443
2110
|
],
|
|
1444
|
-
"unique": true
|
|
2111
|
+
"unique": true,
|
|
2112
|
+
"nullsNotDistinct": true
|
|
1445
2113
|
},
|
|
1446
2114
|
{
|
|
1447
|
-
"name": "
|
|
2115
|
+
"name": "repositories_tenant_id_created_at_idx",
|
|
1448
2116
|
"columns": [
|
|
2117
|
+
"tenant_id",
|
|
1449
2118
|
"created_at"
|
|
1450
2119
|
]
|
|
1451
2120
|
}
|
|
1452
2121
|
],
|
|
1453
|
-
"version": "
|
|
2122
|
+
"version": "c302a5e5"
|
|
1454
2123
|
}
|
|
1455
2124
|
},
|
|
1456
2125
|
"@happyvertical/smrt-projects:Comment": {
|
|
@@ -1674,7 +2343,8 @@
|
|
|
1674
2343
|
"slug",
|
|
1675
2344
|
"context"
|
|
1676
2345
|
],
|
|
1677
|
-
"unique": true
|
|
2346
|
+
"unique": true,
|
|
2347
|
+
"nullsNotDistinct": true
|
|
1678
2348
|
},
|
|
1679
2349
|
{
|
|
1680
2350
|
"name": "comments_tenant_id_created_at_idx",
|
|
@@ -2653,7 +3323,8 @@
|
|
|
2653
3323
|
"context",
|
|
2654
3324
|
"_meta_type"
|
|
2655
3325
|
],
|
|
2656
|
-
"unique": true
|
|
3326
|
+
"unique": true,
|
|
3327
|
+
"nullsNotDistinct": true
|
|
2657
3328
|
},
|
|
2658
3329
|
{
|
|
2659
3330
|
"name": "issues_meta_type_idx",
|
|
@@ -3364,7 +4035,8 @@
|
|
|
3364
4035
|
"slug",
|
|
3365
4036
|
"context"
|
|
3366
4037
|
],
|
|
3367
|
-
"unique": true
|
|
4038
|
+
"unique": true,
|
|
4039
|
+
"nullsNotDistinct": true
|
|
3368
4040
|
},
|
|
3369
4041
|
{
|
|
3370
4042
|
"name": "projects_tenant_id_created_at_idx",
|
|
@@ -3572,7 +4244,8 @@
|
|
|
3572
4244
|
"project_id",
|
|
3573
4245
|
"name"
|
|
3574
4246
|
],
|
|
3575
|
-
"unique": true
|
|
4247
|
+
"unique": true,
|
|
4248
|
+
"nullsNotDistinct": true
|
|
3576
4249
|
},
|
|
3577
4250
|
{
|
|
3578
4251
|
"name": "project_integrations_slug_context_idx",
|
|
@@ -4362,7 +5035,8 @@
|
|
|
4362
5035
|
"context",
|
|
4363
5036
|
"_meta_type"
|
|
4364
5037
|
],
|
|
4365
|
-
"unique": true
|
|
5038
|
+
"unique": true,
|
|
5039
|
+
"nullsNotDistinct": true
|
|
4366
5040
|
},
|
|
4367
5041
|
{
|
|
4368
5042
|
"name": "issues_meta_type_idx",
|
|
@@ -4737,7 +5411,8 @@
|
|
|
4737
5411
|
"slug",
|
|
4738
5412
|
"context"
|
|
4739
5413
|
],
|
|
4740
|
-
"unique": true
|
|
5414
|
+
"unique": true,
|
|
5415
|
+
"nullsNotDistinct": true
|
|
4741
5416
|
},
|
|
4742
5417
|
{
|
|
4743
5418
|
"name": "repositories_tenant_id_created_at_idx",
|
|
@@ -4924,7 +5599,8 @@
|
|
|
4924
5599
|
"work_item_type",
|
|
4925
5600
|
"work_item_id"
|
|
4926
5601
|
],
|
|
4927
|
-
"unique": true
|
|
5602
|
+
"unique": true,
|
|
5603
|
+
"nullsNotDistinct": true
|
|
4928
5604
|
},
|
|
4929
5605
|
{
|
|
4930
5606
|
"name": "development_request_work_links_slug_context_idx",
|
|
@@ -5162,7 +5838,8 @@
|
|
|
5162
5838
|
"integration_id",
|
|
5163
5839
|
"idempotency_key"
|
|
5164
5840
|
],
|
|
5165
|
-
"unique": true
|
|
5841
|
+
"unique": true,
|
|
5842
|
+
"nullsNotDistinct": true
|
|
5166
5843
|
},
|
|
5167
5844
|
{
|
|
5168
5845
|
"name": "project_delivery_events_slug_context_idx",
|
|
@@ -5373,7 +6050,8 @@
|
|
|
5373
6050
|
"request_id",
|
|
5374
6051
|
"preview_id"
|
|
5375
6052
|
],
|
|
5376
|
-
"unique": true
|
|
6053
|
+
"unique": true,
|
|
6054
|
+
"nullsNotDistinct": true
|
|
5377
6055
|
},
|
|
5378
6056
|
{
|
|
5379
6057
|
"name": "preview_approvals_slug_context_idx",
|
|
@@ -5834,7 +6512,7 @@
|
|
|
5834
6512
|
"collectionExportName": "DevelopmentRequestWorkLinkCollectionCollection",
|
|
5835
6513
|
"schema": {
|
|
5836
6514
|
"tableName": "development_request_work_links",
|
|
5837
|
-
"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);",
|
|
6515
|
+
"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);",
|
|
5838
6516
|
"columns": {
|
|
5839
6517
|
"id": {
|
|
5840
6518
|
"type": "UUID",
|
|
@@ -5860,25 +6538,83 @@
|
|
|
5860
6538
|
"type": "TIMESTAMP",
|
|
5861
6539
|
"notNull": true,
|
|
5862
6540
|
"default": "current_timestamp"
|
|
6541
|
+
},
|
|
6542
|
+
"tenant_id": {
|
|
6543
|
+
"type": "UUID",
|
|
6544
|
+
"referenceKind": "tenantId",
|
|
6545
|
+
"notNull": true,
|
|
6546
|
+
"unique": false
|
|
6547
|
+
},
|
|
6548
|
+
"request_id": {
|
|
6549
|
+
"type": "UUID",
|
|
6550
|
+
"referenceKind": "foreignKey",
|
|
6551
|
+
"notNull": true,
|
|
6552
|
+
"unique": false,
|
|
6553
|
+
"foreignKey": {
|
|
6554
|
+
"table": "development_requests",
|
|
6555
|
+
"column": "id",
|
|
6556
|
+
"onDelete": "CASCADE",
|
|
6557
|
+
"onUpdate": "CASCADE"
|
|
6558
|
+
}
|
|
6559
|
+
},
|
|
6560
|
+
"work_item_type": {
|
|
6561
|
+
"type": "TEXT",
|
|
6562
|
+
"notNull": false,
|
|
6563
|
+
"unique": false
|
|
6564
|
+
},
|
|
6565
|
+
"work_item_id": {
|
|
6566
|
+
"type": "TEXT",
|
|
6567
|
+
"notNull": false,
|
|
6568
|
+
"unique": false
|
|
6569
|
+
},
|
|
6570
|
+
"canonical_status": {
|
|
6571
|
+
"type": "TEXT",
|
|
6572
|
+
"notNull": false,
|
|
6573
|
+
"unique": false
|
|
6574
|
+
},
|
|
6575
|
+
"provider_ref": {
|
|
6576
|
+
"type": "TEXT",
|
|
6577
|
+
"notNull": false,
|
|
6578
|
+
"unique": false
|
|
6579
|
+
},
|
|
6580
|
+
"metadata": {
|
|
6581
|
+
"type": "TEXT",
|
|
6582
|
+
"notNull": false,
|
|
6583
|
+
"unique": false
|
|
6584
|
+
},
|
|
6585
|
+
"last_projected_at": {
|
|
6586
|
+
"type": "TIMESTAMP",
|
|
6587
|
+
"notNull": false,
|
|
6588
|
+
"unique": false
|
|
5863
6589
|
}
|
|
5864
6590
|
},
|
|
5865
6591
|
"indexes": [
|
|
6592
|
+
{
|
|
6593
|
+
"name": "development_request_work_links_request_id_work_item_type_idx",
|
|
6594
|
+
"columns": [
|
|
6595
|
+
"request_id",
|
|
6596
|
+
"work_item_type",
|
|
6597
|
+
"work_item_id"
|
|
6598
|
+
],
|
|
6599
|
+
"unique": true,
|
|
6600
|
+
"nullsNotDistinct": true
|
|
6601
|
+
},
|
|
5866
6602
|
{
|
|
5867
6603
|
"name": "development_request_work_links_slug_context_idx",
|
|
5868
6604
|
"columns": [
|
|
5869
6605
|
"slug",
|
|
5870
6606
|
"context"
|
|
5871
|
-
]
|
|
5872
|
-
"unique": true
|
|
6607
|
+
]
|
|
5873
6608
|
},
|
|
5874
6609
|
{
|
|
5875
|
-
"name": "
|
|
6610
|
+
"name": "development_request_work_links_tenant_id_created_at_idx",
|
|
5876
6611
|
"columns": [
|
|
6612
|
+
"tenant_id",
|
|
5877
6613
|
"created_at"
|
|
5878
6614
|
]
|
|
5879
6615
|
}
|
|
5880
6616
|
],
|
|
5881
|
-
"version": "
|
|
6617
|
+
"version": "adcbaa21"
|
|
5882
6618
|
}
|
|
5883
6619
|
},
|
|
5884
6620
|
"@happyvertical/smrt-projects:ProjectDeliveryEventCollection": {
|
|
@@ -5902,7 +6638,7 @@
|
|
|
5902
6638
|
"collectionExportName": "ProjectDeliveryEventCollectionCollection",
|
|
5903
6639
|
"schema": {
|
|
5904
6640
|
"tableName": "project_delivery_events",
|
|
5905
|
-
"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);",
|
|
6641
|
+
"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);",
|
|
5906
6642
|
"columns": {
|
|
5907
6643
|
"id": {
|
|
5908
6644
|
"type": "UUID",
|
|
@@ -5928,25 +6664,112 @@
|
|
|
5928
6664
|
"type": "TIMESTAMP",
|
|
5929
6665
|
"notNull": true,
|
|
5930
6666
|
"default": "current_timestamp"
|
|
6667
|
+
},
|
|
6668
|
+
"tenant_id": {
|
|
6669
|
+
"type": "UUID",
|
|
6670
|
+
"referenceKind": "tenantId",
|
|
6671
|
+
"notNull": true,
|
|
6672
|
+
"unique": false
|
|
6673
|
+
},
|
|
6674
|
+
"integration_id": {
|
|
6675
|
+
"type": "UUID",
|
|
6676
|
+
"referenceKind": "foreignKey",
|
|
6677
|
+
"notNull": true,
|
|
6678
|
+
"unique": false,
|
|
6679
|
+
"foreignKey": {
|
|
6680
|
+
"table": "project_integrations",
|
|
6681
|
+
"column": "id",
|
|
6682
|
+
"onDelete": "CASCADE",
|
|
6683
|
+
"onUpdate": "CASCADE"
|
|
6684
|
+
}
|
|
6685
|
+
},
|
|
6686
|
+
"request_id": {
|
|
6687
|
+
"type": "UUID",
|
|
6688
|
+
"referenceKind": "foreignKey",
|
|
6689
|
+
"notNull": true,
|
|
6690
|
+
"unique": false,
|
|
6691
|
+
"foreignKey": {
|
|
6692
|
+
"table": "development_requests",
|
|
6693
|
+
"column": "id",
|
|
6694
|
+
"onDelete": "NO ACTION",
|
|
6695
|
+
"onUpdate": "CASCADE"
|
|
6696
|
+
}
|
|
6697
|
+
},
|
|
6698
|
+
"idempotency_key": {
|
|
6699
|
+
"type": "TEXT",
|
|
6700
|
+
"notNull": false,
|
|
6701
|
+
"unique": false
|
|
6702
|
+
},
|
|
6703
|
+
"sequence": {
|
|
6704
|
+
"type": "INTEGER",
|
|
6705
|
+
"notNull": false,
|
|
6706
|
+
"unique": false,
|
|
6707
|
+
"default": 0
|
|
6708
|
+
},
|
|
6709
|
+
"type": {
|
|
6710
|
+
"type": "TEXT",
|
|
6711
|
+
"notNull": false,
|
|
6712
|
+
"unique": false
|
|
6713
|
+
},
|
|
6714
|
+
"payload": {
|
|
6715
|
+
"type": "TEXT",
|
|
6716
|
+
"notNull": false,
|
|
6717
|
+
"unique": false
|
|
6718
|
+
},
|
|
6719
|
+
"occurred_at": {
|
|
6720
|
+
"type": "TIMESTAMP",
|
|
6721
|
+
"notNull": false,
|
|
6722
|
+
"unique": false
|
|
6723
|
+
},
|
|
6724
|
+
"delivered_at": {
|
|
6725
|
+
"type": "TIMESTAMP",
|
|
6726
|
+
"notNull": false,
|
|
6727
|
+
"unique": false
|
|
6728
|
+
},
|
|
6729
|
+
"delivery_attempts": {
|
|
6730
|
+
"type": "INTEGER",
|
|
6731
|
+
"notNull": false,
|
|
6732
|
+
"unique": false,
|
|
6733
|
+
"default": 0
|
|
6734
|
+
},
|
|
6735
|
+
"last_delivery_error": {
|
|
6736
|
+
"type": "TEXT",
|
|
6737
|
+
"notNull": false,
|
|
6738
|
+
"unique": false
|
|
5931
6739
|
}
|
|
5932
6740
|
},
|
|
5933
6741
|
"indexes": [
|
|
6742
|
+
{
|
|
6743
|
+
"name": "project_delivery_events_integration_id_idempotency_key_idx",
|
|
6744
|
+
"columns": [
|
|
6745
|
+
"integration_id",
|
|
6746
|
+
"idempotency_key"
|
|
6747
|
+
],
|
|
6748
|
+
"unique": true,
|
|
6749
|
+
"nullsNotDistinct": true
|
|
6750
|
+
},
|
|
5934
6751
|
{
|
|
5935
6752
|
"name": "project_delivery_events_slug_context_idx",
|
|
5936
6753
|
"columns": [
|
|
5937
6754
|
"slug",
|
|
5938
6755
|
"context"
|
|
5939
|
-
]
|
|
5940
|
-
"unique": true
|
|
6756
|
+
]
|
|
5941
6757
|
},
|
|
5942
6758
|
{
|
|
5943
|
-
"name": "
|
|
6759
|
+
"name": "project_delivery_events_tenant_id_created_at_idx",
|
|
5944
6760
|
"columns": [
|
|
6761
|
+
"tenant_id",
|
|
5945
6762
|
"created_at"
|
|
5946
6763
|
]
|
|
6764
|
+
},
|
|
6765
|
+
{
|
|
6766
|
+
"name": "project_delivery_events_request_id_idx",
|
|
6767
|
+
"columns": [
|
|
6768
|
+
"request_id"
|
|
6769
|
+
]
|
|
5947
6770
|
}
|
|
5948
6771
|
],
|
|
5949
|
-
"version": "
|
|
6772
|
+
"version": "99b9e301"
|
|
5950
6773
|
}
|
|
5951
6774
|
},
|
|
5952
6775
|
"@happyvertical/smrt-projects:PreviewApprovalCollection": {
|
|
@@ -5970,7 +6793,7 @@
|
|
|
5970
6793
|
"collectionExportName": "PreviewApprovalCollectionCollection",
|
|
5971
6794
|
"schema": {
|
|
5972
6795
|
"tableName": "preview_approvals",
|
|
5973
|
-
"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);",
|
|
6796
|
+
"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);",
|
|
5974
6797
|
"columns": {
|
|
5975
6798
|
"id": {
|
|
5976
6799
|
"type": "UUID",
|
|
@@ -5996,25 +6819,87 @@
|
|
|
5996
6819
|
"type": "TIMESTAMP",
|
|
5997
6820
|
"notNull": true,
|
|
5998
6821
|
"default": "current_timestamp"
|
|
6822
|
+
},
|
|
6823
|
+
"tenant_id": {
|
|
6824
|
+
"type": "UUID",
|
|
6825
|
+
"referenceKind": "tenantId",
|
|
6826
|
+
"notNull": true,
|
|
6827
|
+
"unique": false
|
|
6828
|
+
},
|
|
6829
|
+
"request_id": {
|
|
6830
|
+
"type": "UUID",
|
|
6831
|
+
"referenceKind": "foreignKey",
|
|
6832
|
+
"notNull": true,
|
|
6833
|
+
"unique": false,
|
|
6834
|
+
"foreignKey": {
|
|
6835
|
+
"table": "development_requests",
|
|
6836
|
+
"column": "id",
|
|
6837
|
+
"onDelete": "CASCADE",
|
|
6838
|
+
"onUpdate": "CASCADE"
|
|
6839
|
+
}
|
|
6840
|
+
},
|
|
6841
|
+
"preview_id": {
|
|
6842
|
+
"type": "TEXT",
|
|
6843
|
+
"notNull": false,
|
|
6844
|
+
"unique": false
|
|
6845
|
+
},
|
|
6846
|
+
"preview_url": {
|
|
6847
|
+
"type": "TEXT",
|
|
6848
|
+
"notNull": false,
|
|
6849
|
+
"unique": false
|
|
6850
|
+
},
|
|
6851
|
+
"status": {
|
|
6852
|
+
"type": "TEXT",
|
|
6853
|
+
"notNull": false,
|
|
6854
|
+
"unique": false
|
|
6855
|
+
},
|
|
6856
|
+
"decided_by_ref": {
|
|
6857
|
+
"type": "TEXT",
|
|
6858
|
+
"notNull": false,
|
|
6859
|
+
"unique": false
|
|
6860
|
+
},
|
|
6861
|
+
"reason": {
|
|
6862
|
+
"type": "TEXT",
|
|
6863
|
+
"notNull": false,
|
|
6864
|
+
"unique": false
|
|
6865
|
+
},
|
|
6866
|
+
"decided_at": {
|
|
6867
|
+
"type": "TIMESTAMP",
|
|
6868
|
+
"notNull": false,
|
|
6869
|
+
"unique": false
|
|
6870
|
+
},
|
|
6871
|
+
"stale_at": {
|
|
6872
|
+
"type": "TIMESTAMP",
|
|
6873
|
+
"notNull": false,
|
|
6874
|
+
"unique": false
|
|
5999
6875
|
}
|
|
6000
6876
|
},
|
|
6001
6877
|
"indexes": [
|
|
6878
|
+
{
|
|
6879
|
+
"name": "preview_approvals_request_id_preview_id_idx",
|
|
6880
|
+
"columns": [
|
|
6881
|
+
"request_id",
|
|
6882
|
+
"preview_id"
|
|
6883
|
+
],
|
|
6884
|
+
"unique": true,
|
|
6885
|
+
"nullsNotDistinct": true
|
|
6886
|
+
},
|
|
6002
6887
|
{
|
|
6003
6888
|
"name": "preview_approvals_slug_context_idx",
|
|
6004
6889
|
"columns": [
|
|
6005
6890
|
"slug",
|
|
6006
6891
|
"context"
|
|
6007
|
-
]
|
|
6008
|
-
"unique": true
|
|
6892
|
+
]
|
|
6009
6893
|
},
|
|
6010
6894
|
{
|
|
6011
|
-
"name": "
|
|
6895
|
+
"name": "preview_approvals_tenant_id_created_at_idx",
|
|
6012
6896
|
"columns": [
|
|
6897
|
+
"tenant_id",
|
|
6013
6898
|
"created_at"
|
|
6014
6899
|
]
|
|
6015
6900
|
}
|
|
6016
6901
|
],
|
|
6017
|
-
"version": "
|
|
6902
|
+
"version": "ec7b2b14"
|
|
6018
6903
|
}
|
|
6019
6904
|
},
|
|
6020
6905
|
"@happyvertical/smrt-projects:AssistanceRequestCollection": {
|
|
@@ -6038,7 +6923,7 @@
|
|
|
6038
6923
|
"collectionExportName": "AssistanceRequestCollectionCollection",
|
|
6039
6924
|
"schema": {
|
|
6040
6925
|
"tableName": "assistance_requests",
|
|
6041
|
-
"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);",
|
|
6926
|
+
"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);",
|
|
6042
6927
|
"columns": {
|
|
6043
6928
|
"id": {
|
|
6044
6929
|
"type": "UUID",
|
|
@@ -6064,39 +6949,110 @@
|
|
|
6064
6949
|
"type": "TIMESTAMP",
|
|
6065
6950
|
"notNull": true,
|
|
6066
6951
|
"default": "current_timestamp"
|
|
6067
|
-
}
|
|
6068
|
-
},
|
|
6069
|
-
"indexes": [
|
|
6070
|
-
{
|
|
6071
|
-
"name": "assistance_requests_slug_context_idx",
|
|
6072
|
-
"columns": [
|
|
6073
|
-
"slug",
|
|
6074
|
-
"context"
|
|
6075
|
-
],
|
|
6076
|
-
"unique": true
|
|
6077
6952
|
},
|
|
6078
|
-
{
|
|
6079
|
-
"
|
|
6080
|
-
"
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
}
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6953
|
+
"tenant_id": {
|
|
6954
|
+
"type": "UUID",
|
|
6955
|
+
"referenceKind": "tenantId",
|
|
6956
|
+
"notNull": true,
|
|
6957
|
+
"unique": false
|
|
6958
|
+
},
|
|
6959
|
+
"integration_id": {
|
|
6960
|
+
"type": "UUID",
|
|
6961
|
+
"referenceKind": "foreignKey",
|
|
6962
|
+
"notNull": true,
|
|
6963
|
+
"unique": false,
|
|
6964
|
+
"foreignKey": {
|
|
6965
|
+
"table": "project_integrations",
|
|
6966
|
+
"column": "id",
|
|
6967
|
+
"onDelete": "NO ACTION",
|
|
6968
|
+
"onUpdate": "CASCADE"
|
|
6969
|
+
}
|
|
6970
|
+
},
|
|
6971
|
+
"requester_id": {
|
|
6972
|
+
"type": "TEXT",
|
|
6973
|
+
"notNull": false,
|
|
6974
|
+
"unique": false
|
|
6975
|
+
},
|
|
6976
|
+
"subject": {
|
|
6977
|
+
"type": "TEXT",
|
|
6978
|
+
"notNull": false,
|
|
6979
|
+
"unique": false
|
|
6980
|
+
},
|
|
6981
|
+
"application_context": {
|
|
6982
|
+
"type": "TEXT",
|
|
6983
|
+
"notNull": false,
|
|
6984
|
+
"unique": false
|
|
6985
|
+
},
|
|
6986
|
+
"conversation": {
|
|
6987
|
+
"type": "TEXT",
|
|
6988
|
+
"notNull": false,
|
|
6989
|
+
"unique": false
|
|
6990
|
+
},
|
|
6991
|
+
"evidence": {
|
|
6992
|
+
"type": "TEXT",
|
|
6993
|
+
"notNull": false,
|
|
6994
|
+
"unique": false
|
|
6995
|
+
},
|
|
6996
|
+
"classification": {
|
|
6997
|
+
"type": "TEXT",
|
|
6998
|
+
"notNull": false,
|
|
6999
|
+
"unique": false
|
|
7000
|
+
},
|
|
7001
|
+
"support_case_id": {
|
|
7002
|
+
"type": "TEXT",
|
|
7003
|
+
"notNull": false,
|
|
7004
|
+
"unique": false
|
|
7005
|
+
},
|
|
7006
|
+
"development_request_id": {
|
|
7007
|
+
"type": "TEXT",
|
|
7008
|
+
"notNull": false,
|
|
7009
|
+
"unique": false
|
|
7010
|
+
},
|
|
7011
|
+
"delivery_handoff_linked_at": {
|
|
7012
|
+
"type": "TIMESTAMP",
|
|
7013
|
+
"notNull": false,
|
|
7014
|
+
"unique": false
|
|
7015
|
+
}
|
|
7016
|
+
},
|
|
7017
|
+
"indexes": [
|
|
7018
|
+
{
|
|
7019
|
+
"name": "assistance_requests_slug_context_idx",
|
|
7020
|
+
"columns": [
|
|
7021
|
+
"tenant_id",
|
|
7022
|
+
"slug",
|
|
7023
|
+
"context"
|
|
7024
|
+
],
|
|
7025
|
+
"unique": true
|
|
7026
|
+
},
|
|
7027
|
+
{
|
|
7028
|
+
"name": "assistance_requests_tenant_id_created_at_idx",
|
|
7029
|
+
"columns": [
|
|
7030
|
+
"tenant_id",
|
|
7031
|
+
"created_at"
|
|
7032
|
+
]
|
|
7033
|
+
},
|
|
7034
|
+
{
|
|
7035
|
+
"name": "assistance_requests_integration_id_idx",
|
|
7036
|
+
"columns": [
|
|
7037
|
+
"integration_id"
|
|
7038
|
+
]
|
|
7039
|
+
}
|
|
7040
|
+
],
|
|
7041
|
+
"version": "d1653259"
|
|
7042
|
+
}
|
|
7043
|
+
},
|
|
7044
|
+
"@happyvertical/smrt-projects:AssistanceRequestEventCollection": {
|
|
7045
|
+
"name": "assistancerequesteventcollection",
|
|
7046
|
+
"className": "AssistanceRequestEventCollection",
|
|
7047
|
+
"qualifiedName": "@happyvertical/smrt-projects:AssistanceRequestEventCollection",
|
|
7048
|
+
"collection": "assistancerequestevents",
|
|
7049
|
+
"filePath": "/home/runner/work/smrt/smrt/packages/projects/src/models/delivery-control-plane.ts",
|
|
7050
|
+
"packageName": "@happyvertical/smrt-projects",
|
|
7051
|
+
"fields": {},
|
|
7052
|
+
"methods": {},
|
|
7053
|
+
"decoratorConfig": {
|
|
7054
|
+
"tableName": "assistance_request_events",
|
|
7055
|
+
"api": false,
|
|
6100
7056
|
"mcp": false,
|
|
6101
7057
|
"cli": false
|
|
6102
7058
|
},
|
|
@@ -6106,7 +7062,7 @@
|
|
|
6106
7062
|
"collectionExportName": "AssistanceRequestEventCollectionCollection",
|
|
6107
7063
|
"schema": {
|
|
6108
7064
|
"tableName": "assistance_request_events",
|
|
6109
|
-
"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);",
|
|
7065
|
+
"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);",
|
|
6110
7066
|
"columns": {
|
|
6111
7067
|
"id": {
|
|
6112
7068
|
"type": "UUID",
|
|
@@ -6132,25 +7088,81 @@
|
|
|
6132
7088
|
"type": "TIMESTAMP",
|
|
6133
7089
|
"notNull": true,
|
|
6134
7090
|
"default": "current_timestamp"
|
|
7091
|
+
},
|
|
7092
|
+
"tenant_id": {
|
|
7093
|
+
"type": "UUID",
|
|
7094
|
+
"referenceKind": "tenantId",
|
|
7095
|
+
"notNull": true,
|
|
7096
|
+
"unique": false
|
|
7097
|
+
},
|
|
7098
|
+
"assistance_request_id": {
|
|
7099
|
+
"type": "UUID",
|
|
7100
|
+
"referenceKind": "foreignKey",
|
|
7101
|
+
"notNull": true,
|
|
7102
|
+
"unique": false,
|
|
7103
|
+
"foreignKey": {
|
|
7104
|
+
"table": "assistance_requests",
|
|
7105
|
+
"column": "id",
|
|
7106
|
+
"onDelete": "NO ACTION",
|
|
7107
|
+
"onUpdate": "CASCADE"
|
|
7108
|
+
}
|
|
7109
|
+
},
|
|
7110
|
+
"prior_classification": {
|
|
7111
|
+
"type": "TEXT",
|
|
7112
|
+
"notNull": false,
|
|
7113
|
+
"unique": false
|
|
7114
|
+
},
|
|
7115
|
+
"resulting_classification": {
|
|
7116
|
+
"type": "TEXT",
|
|
7117
|
+
"notNull": false,
|
|
7118
|
+
"unique": false
|
|
7119
|
+
},
|
|
7120
|
+
"actor_ref": {
|
|
7121
|
+
"type": "TEXT",
|
|
7122
|
+
"notNull": false,
|
|
7123
|
+
"unique": false
|
|
7124
|
+
},
|
|
7125
|
+
"reason": {
|
|
7126
|
+
"type": "TEXT",
|
|
7127
|
+
"notNull": false,
|
|
7128
|
+
"unique": false
|
|
7129
|
+
},
|
|
7130
|
+
"resulting_links": {
|
|
7131
|
+
"type": "TEXT",
|
|
7132
|
+
"notNull": false,
|
|
7133
|
+
"unique": false
|
|
7134
|
+
},
|
|
7135
|
+
"occurred_at": {
|
|
7136
|
+
"type": "TIMESTAMP",
|
|
7137
|
+
"notNull": false,
|
|
7138
|
+
"unique": false
|
|
6135
7139
|
}
|
|
6136
7140
|
},
|
|
6137
7141
|
"indexes": [
|
|
6138
7142
|
{
|
|
6139
7143
|
"name": "assistance_request_events_slug_context_idx",
|
|
6140
7144
|
"columns": [
|
|
7145
|
+
"tenant_id",
|
|
6141
7146
|
"slug",
|
|
6142
7147
|
"context"
|
|
6143
7148
|
],
|
|
6144
7149
|
"unique": true
|
|
6145
7150
|
},
|
|
6146
7151
|
{
|
|
6147
|
-
"name": "
|
|
7152
|
+
"name": "assistance_request_events_tenant_id_created_at_idx",
|
|
6148
7153
|
"columns": [
|
|
7154
|
+
"tenant_id",
|
|
6149
7155
|
"created_at"
|
|
6150
7156
|
]
|
|
7157
|
+
},
|
|
7158
|
+
{
|
|
7159
|
+
"name": "assistance_request_events_assistance_request_id_idx",
|
|
7160
|
+
"columns": [
|
|
7161
|
+
"assistance_request_id"
|
|
7162
|
+
]
|
|
6151
7163
|
}
|
|
6152
7164
|
],
|
|
6153
|
-
"version": "
|
|
7165
|
+
"version": "bcc95ebe"
|
|
6154
7166
|
}
|
|
6155
7167
|
},
|
|
6156
7168
|
"@happyvertical/smrt-projects:ServiceTimeEntry": {
|
|
@@ -6597,7 +7609,8 @@
|
|
|
6597
7609
|
"slug",
|
|
6598
7610
|
"context"
|
|
6599
7611
|
],
|
|
6600
|
-
"unique": true
|
|
7612
|
+
"unique": true,
|
|
7613
|
+
"nullsNotDistinct": true
|
|
6601
7614
|
},
|
|
6602
7615
|
{
|
|
6603
7616
|
"name": "service_time_entries_tenant_id_created_at_idx",
|
|
@@ -7164,7 +8177,7 @@
|
|
|
7164
8177
|
"collectionExportName": "ServiceTimeEntryCollectionCollection",
|
|
7165
8178
|
"schema": {
|
|
7166
8179
|
"tableName": "service_time_entries",
|
|
7167
|
-
"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);",
|
|
8180
|
+
"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 DEFAULT 0,\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);",
|
|
7168
8181
|
"columns": {
|
|
7169
8182
|
"id": {
|
|
7170
8183
|
"type": "UUID",
|
|
@@ -7190,25 +8203,210 @@
|
|
|
7190
8203
|
"type": "TIMESTAMP",
|
|
7191
8204
|
"notNull": true,
|
|
7192
8205
|
"default": "current_timestamp"
|
|
8206
|
+
},
|
|
8207
|
+
"tenant_id": {
|
|
8208
|
+
"type": "UUID",
|
|
8209
|
+
"referenceKind": "tenantId",
|
|
8210
|
+
"notNull": false,
|
|
8211
|
+
"unique": false
|
|
8212
|
+
},
|
|
8213
|
+
"case_id": {
|
|
8214
|
+
"type": "UUID",
|
|
8215
|
+
"referenceKind": "crossPackageRef",
|
|
8216
|
+
"notNull": false,
|
|
8217
|
+
"unique": false
|
|
8218
|
+
},
|
|
8219
|
+
"work_ref_type": {
|
|
8220
|
+
"type": "TEXT",
|
|
8221
|
+
"notNull": false,
|
|
8222
|
+
"unique": false
|
|
8223
|
+
},
|
|
8224
|
+
"work_ref_id": {
|
|
8225
|
+
"type": "TEXT",
|
|
8226
|
+
"notNull": false,
|
|
8227
|
+
"unique": false
|
|
8228
|
+
},
|
|
8229
|
+
"specialist_id": {
|
|
8230
|
+
"type": "UUID",
|
|
8231
|
+
"referenceKind": "crossPackageRef",
|
|
8232
|
+
"notNull": false,
|
|
8233
|
+
"unique": false
|
|
8234
|
+
},
|
|
8235
|
+
"participant_kind": {
|
|
8236
|
+
"type": "TEXT",
|
|
8237
|
+
"notNull": false,
|
|
8238
|
+
"unique": false
|
|
8239
|
+
},
|
|
8240
|
+
"participant_profile_id": {
|
|
8241
|
+
"type": "UUID",
|
|
8242
|
+
"referenceKind": "crossPackageRef",
|
|
8243
|
+
"notNull": false,
|
|
8244
|
+
"unique": false
|
|
8245
|
+
},
|
|
8246
|
+
"agent_ref": {
|
|
8247
|
+
"type": "TEXT",
|
|
8248
|
+
"notNull": false,
|
|
8249
|
+
"unique": false
|
|
8250
|
+
},
|
|
8251
|
+
"source": {
|
|
8252
|
+
"type": "TEXT",
|
|
8253
|
+
"notNull": false,
|
|
8254
|
+
"unique": false
|
|
8255
|
+
},
|
|
8256
|
+
"description": {
|
|
8257
|
+
"type": "TEXT",
|
|
8258
|
+
"notNull": false,
|
|
8259
|
+
"unique": false
|
|
8260
|
+
},
|
|
8261
|
+
"started_at": {
|
|
8262
|
+
"type": "TIMESTAMP",
|
|
8263
|
+
"notNull": false,
|
|
8264
|
+
"unique": false
|
|
8265
|
+
},
|
|
8266
|
+
"ended_at": {
|
|
8267
|
+
"type": "TIMESTAMP",
|
|
8268
|
+
"notNull": false,
|
|
8269
|
+
"unique": false
|
|
8270
|
+
},
|
|
8271
|
+
"duration_seconds": {
|
|
8272
|
+
"type": "INTEGER",
|
|
8273
|
+
"notNull": false,
|
|
8274
|
+
"unique": false,
|
|
8275
|
+
"default": 0
|
|
8276
|
+
},
|
|
8277
|
+
"evidence": {
|
|
8278
|
+
"type": "TEXT",
|
|
8279
|
+
"notNull": false,
|
|
8280
|
+
"unique": false
|
|
8281
|
+
},
|
|
8282
|
+
"status": {
|
|
8283
|
+
"type": "TEXT",
|
|
8284
|
+
"notNull": false,
|
|
8285
|
+
"unique": false
|
|
8286
|
+
},
|
|
8287
|
+
"submitted_at": {
|
|
8288
|
+
"type": "TIMESTAMP",
|
|
8289
|
+
"notNull": false,
|
|
8290
|
+
"unique": false
|
|
8291
|
+
},
|
|
8292
|
+
"submitted_by_profile_id": {
|
|
8293
|
+
"type": "UUID",
|
|
8294
|
+
"referenceKind": "crossPackageRef",
|
|
8295
|
+
"notNull": false,
|
|
8296
|
+
"unique": false
|
|
8297
|
+
},
|
|
8298
|
+
"approved_at": {
|
|
8299
|
+
"type": "TIMESTAMP",
|
|
8300
|
+
"notNull": false,
|
|
8301
|
+
"unique": false
|
|
8302
|
+
},
|
|
8303
|
+
"approved_by_profile_id": {
|
|
8304
|
+
"type": "UUID",
|
|
8305
|
+
"referenceKind": "crossPackageRef",
|
|
8306
|
+
"notNull": false,
|
|
8307
|
+
"unique": false
|
|
8308
|
+
},
|
|
8309
|
+
"approval_path": {
|
|
8310
|
+
"type": "TEXT",
|
|
8311
|
+
"notNull": false,
|
|
8312
|
+
"unique": false
|
|
8313
|
+
},
|
|
8314
|
+
"rejected_at": {
|
|
8315
|
+
"type": "TIMESTAMP",
|
|
8316
|
+
"notNull": false,
|
|
8317
|
+
"unique": false
|
|
8318
|
+
},
|
|
8319
|
+
"rejected_by_profile_id": {
|
|
8320
|
+
"type": "UUID",
|
|
8321
|
+
"referenceKind": "crossPackageRef",
|
|
8322
|
+
"notNull": false,
|
|
8323
|
+
"unique": false
|
|
8324
|
+
},
|
|
8325
|
+
"rejection_reason": {
|
|
8326
|
+
"type": "TEXT",
|
|
8327
|
+
"notNull": false,
|
|
8328
|
+
"unique": false
|
|
8329
|
+
},
|
|
8330
|
+
"correction_of_id": {
|
|
8331
|
+
"type": "UUID",
|
|
8332
|
+
"referenceKind": "foreignKey",
|
|
8333
|
+
"notNull": false,
|
|
8334
|
+
"unique": false,
|
|
8335
|
+
"foreignKey": {
|
|
8336
|
+
"table": "service_time_entries",
|
|
8337
|
+
"column": "id",
|
|
8338
|
+
"onDelete": "NO ACTION",
|
|
8339
|
+
"onUpdate": "CASCADE"
|
|
8340
|
+
}
|
|
8341
|
+
},
|
|
8342
|
+
"metadata": {
|
|
8343
|
+
"type": "TEXT",
|
|
8344
|
+
"notNull": false,
|
|
8345
|
+
"unique": false
|
|
7193
8346
|
}
|
|
7194
8347
|
},
|
|
7195
8348
|
"indexes": [
|
|
7196
8349
|
{
|
|
7197
8350
|
"name": "service_time_entries_slug_context_idx",
|
|
7198
8351
|
"columns": [
|
|
8352
|
+
"tenant_id",
|
|
7199
8353
|
"slug",
|
|
7200
8354
|
"context"
|
|
7201
8355
|
],
|
|
7202
|
-
"unique": true
|
|
8356
|
+
"unique": true,
|
|
8357
|
+
"nullsNotDistinct": true
|
|
7203
8358
|
},
|
|
7204
8359
|
{
|
|
7205
|
-
"name": "
|
|
8360
|
+
"name": "service_time_entries_tenant_id_created_at_idx",
|
|
7206
8361
|
"columns": [
|
|
8362
|
+
"tenant_id",
|
|
7207
8363
|
"created_at"
|
|
7208
8364
|
]
|
|
8365
|
+
},
|
|
8366
|
+
{
|
|
8367
|
+
"name": "service_time_entries_case_id_idx",
|
|
8368
|
+
"columns": [
|
|
8369
|
+
"case_id"
|
|
8370
|
+
]
|
|
8371
|
+
},
|
|
8372
|
+
{
|
|
8373
|
+
"name": "service_time_entries_specialist_id_idx",
|
|
8374
|
+
"columns": [
|
|
8375
|
+
"specialist_id"
|
|
8376
|
+
]
|
|
8377
|
+
},
|
|
8378
|
+
{
|
|
8379
|
+
"name": "service_time_entries_participant_profile_id_idx",
|
|
8380
|
+
"columns": [
|
|
8381
|
+
"participant_profile_id"
|
|
8382
|
+
]
|
|
8383
|
+
},
|
|
8384
|
+
{
|
|
8385
|
+
"name": "service_time_entries_submitted_by_profile_id_idx",
|
|
8386
|
+
"columns": [
|
|
8387
|
+
"submitted_by_profile_id"
|
|
8388
|
+
]
|
|
8389
|
+
},
|
|
8390
|
+
{
|
|
8391
|
+
"name": "service_time_entries_approved_by_profile_id_idx",
|
|
8392
|
+
"columns": [
|
|
8393
|
+
"approved_by_profile_id"
|
|
8394
|
+
]
|
|
8395
|
+
},
|
|
8396
|
+
{
|
|
8397
|
+
"name": "service_time_entries_rejected_by_profile_id_idx",
|
|
8398
|
+
"columns": [
|
|
8399
|
+
"rejected_by_profile_id"
|
|
8400
|
+
]
|
|
8401
|
+
},
|
|
8402
|
+
{
|
|
8403
|
+
"name": "service_time_entries_correction_of_id_idx",
|
|
8404
|
+
"columns": [
|
|
8405
|
+
"correction_of_id"
|
|
8406
|
+
]
|
|
7209
8407
|
}
|
|
7210
8408
|
],
|
|
7211
|
-
"version": "
|
|
8409
|
+
"version": "f0968f50"
|
|
7212
8410
|
}
|
|
7213
8411
|
},
|
|
7214
8412
|
"@happyvertical/smrt-projects:ServiceChargeSnapshotCollection": {
|
|
@@ -7229,7 +8427,7 @@
|
|
|
7229
8427
|
"collectionExportName": "ServiceChargeSnapshotCollectionCollection",
|
|
7230
8428
|
"schema": {
|
|
7231
8429
|
"tableName": "service_charge_snapshots",
|
|
7232
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"service_charge_snapshots\" (\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);",
|
|
8430
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"service_charge_snapshots\" (\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 \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"pricing_version\" TEXT,\n \"strategy\" TEXT,\n \"rate_snapshot\" TEXT,\n \"source_charge_ref\" TEXT\n);",
|
|
7233
8431
|
"columns": {
|
|
7234
8432
|
"id": {
|
|
7235
8433
|
"type": "UUID",
|
|
@@ -7255,25 +8453,81 @@
|
|
|
7255
8453
|
"type": "TIMESTAMP",
|
|
7256
8454
|
"notNull": true,
|
|
7257
8455
|
"default": "current_timestamp"
|
|
8456
|
+
},
|
|
8457
|
+
"tenant_id": {
|
|
8458
|
+
"type": "UUID",
|
|
8459
|
+
"referenceKind": "tenantId",
|
|
8460
|
+
"notNull": false,
|
|
8461
|
+
"unique": false
|
|
8462
|
+
},
|
|
8463
|
+
"time_entry_id": {
|
|
8464
|
+
"type": "UUID",
|
|
8465
|
+
"referenceKind": "foreignKey",
|
|
8466
|
+
"notNull": true,
|
|
8467
|
+
"unique": false,
|
|
8468
|
+
"foreignKey": {
|
|
8469
|
+
"table": "service_time_entries",
|
|
8470
|
+
"column": "id",
|
|
8471
|
+
"onDelete": "CASCADE",
|
|
8472
|
+
"onUpdate": "CASCADE"
|
|
8473
|
+
}
|
|
8474
|
+
},
|
|
8475
|
+
"amount": {
|
|
8476
|
+
"type": "INTEGER",
|
|
8477
|
+
"notNull": false,
|
|
8478
|
+
"unique": false,
|
|
8479
|
+
"default": 0
|
|
8480
|
+
},
|
|
8481
|
+
"currency": {
|
|
8482
|
+
"type": "TEXT",
|
|
8483
|
+
"notNull": false,
|
|
8484
|
+
"unique": false
|
|
8485
|
+
},
|
|
8486
|
+
"pricing_version": {
|
|
8487
|
+
"type": "TEXT",
|
|
8488
|
+
"notNull": false,
|
|
8489
|
+
"unique": false
|
|
8490
|
+
},
|
|
8491
|
+
"strategy": {
|
|
8492
|
+
"type": "TEXT",
|
|
8493
|
+
"notNull": false,
|
|
8494
|
+
"unique": false
|
|
8495
|
+
},
|
|
8496
|
+
"rate_snapshot": {
|
|
8497
|
+
"type": "TEXT",
|
|
8498
|
+
"notNull": false,
|
|
8499
|
+
"unique": false
|
|
8500
|
+
},
|
|
8501
|
+
"source_charge_ref": {
|
|
8502
|
+
"type": "TEXT",
|
|
8503
|
+
"notNull": false,
|
|
8504
|
+
"unique": false
|
|
7258
8505
|
}
|
|
7259
8506
|
},
|
|
7260
8507
|
"indexes": [
|
|
8508
|
+
{
|
|
8509
|
+
"name": "service_charge_snapshots_time_entry_id_idx",
|
|
8510
|
+
"columns": [
|
|
8511
|
+
"time_entry_id"
|
|
8512
|
+
],
|
|
8513
|
+
"unique": true
|
|
8514
|
+
},
|
|
7261
8515
|
{
|
|
7262
8516
|
"name": "service_charge_snapshots_slug_context_idx",
|
|
7263
8517
|
"columns": [
|
|
7264
8518
|
"slug",
|
|
7265
8519
|
"context"
|
|
7266
|
-
]
|
|
7267
|
-
"unique": true
|
|
8520
|
+
]
|
|
7268
8521
|
},
|
|
7269
8522
|
{
|
|
7270
|
-
"name": "
|
|
8523
|
+
"name": "service_charge_snapshots_tenant_id_created_at_idx",
|
|
7271
8524
|
"columns": [
|
|
8525
|
+
"tenant_id",
|
|
7272
8526
|
"created_at"
|
|
7273
8527
|
]
|
|
7274
8528
|
}
|
|
7275
8529
|
],
|
|
7276
|
-
"version": "
|
|
8530
|
+
"version": "95a934aa"
|
|
7277
8531
|
}
|
|
7278
8532
|
},
|
|
7279
8533
|
"@happyvertical/smrt-projects:ServiceCompensationSnapshotCollection": {
|
|
@@ -7294,7 +8548,7 @@
|
|
|
7294
8548
|
"collectionExportName": "ServiceCompensationSnapshotCollectionCollection",
|
|
7295
8549
|
"schema": {
|
|
7296
8550
|
"tableName": "service_compensation_snapshots",
|
|
7297
|
-
"ddl": "CREATE TABLE IF NOT EXISTS \"service_compensation_snapshots\" (\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);",
|
|
8551
|
+
"ddl": "CREATE TABLE IF NOT EXISTS \"service_compensation_snapshots\" (\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 \"amount\" INTEGER DEFAULT 0,\n \"currency\" TEXT,\n \"terms_version\" TEXT,\n \"rate_snapshot\" TEXT\n);",
|
|
7298
8552
|
"columns": {
|
|
7299
8553
|
"id": {
|
|
7300
8554
|
"type": "UUID",
|
|
@@ -7320,25 +8574,71 @@
|
|
|
7320
8574
|
"type": "TIMESTAMP",
|
|
7321
8575
|
"notNull": true,
|
|
7322
8576
|
"default": "current_timestamp"
|
|
8577
|
+
},
|
|
8578
|
+
"tenant_id": {
|
|
8579
|
+
"type": "UUID",
|
|
8580
|
+
"referenceKind": "tenantId",
|
|
8581
|
+
"notNull": false,
|
|
8582
|
+
"unique": false
|
|
8583
|
+
},
|
|
8584
|
+
"time_entry_id": {
|
|
8585
|
+
"type": "UUID",
|
|
8586
|
+
"referenceKind": "foreignKey",
|
|
8587
|
+
"notNull": true,
|
|
8588
|
+
"unique": false,
|
|
8589
|
+
"foreignKey": {
|
|
8590
|
+
"table": "service_time_entries",
|
|
8591
|
+
"column": "id",
|
|
8592
|
+
"onDelete": "CASCADE",
|
|
8593
|
+
"onUpdate": "CASCADE"
|
|
8594
|
+
}
|
|
8595
|
+
},
|
|
8596
|
+
"amount": {
|
|
8597
|
+
"type": "INTEGER",
|
|
8598
|
+
"notNull": false,
|
|
8599
|
+
"unique": false,
|
|
8600
|
+
"default": 0
|
|
8601
|
+
},
|
|
8602
|
+
"currency": {
|
|
8603
|
+
"type": "TEXT",
|
|
8604
|
+
"notNull": false,
|
|
8605
|
+
"unique": false
|
|
8606
|
+
},
|
|
8607
|
+
"terms_version": {
|
|
8608
|
+
"type": "TEXT",
|
|
8609
|
+
"notNull": false,
|
|
8610
|
+
"unique": false
|
|
8611
|
+
},
|
|
8612
|
+
"rate_snapshot": {
|
|
8613
|
+
"type": "TEXT",
|
|
8614
|
+
"notNull": false,
|
|
8615
|
+
"unique": false
|
|
7323
8616
|
}
|
|
7324
8617
|
},
|
|
7325
8618
|
"indexes": [
|
|
8619
|
+
{
|
|
8620
|
+
"name": "service_compensation_snapshots_time_entry_id_idx",
|
|
8621
|
+
"columns": [
|
|
8622
|
+
"time_entry_id"
|
|
8623
|
+
],
|
|
8624
|
+
"unique": true
|
|
8625
|
+
},
|
|
7326
8626
|
{
|
|
7327
8627
|
"name": "service_compensation_snapshots_slug_context_idx",
|
|
7328
8628
|
"columns": [
|
|
7329
8629
|
"slug",
|
|
7330
8630
|
"context"
|
|
7331
|
-
]
|
|
7332
|
-
"unique": true
|
|
8631
|
+
]
|
|
7333
8632
|
},
|
|
7334
8633
|
{
|
|
7335
|
-
"name": "
|
|
8634
|
+
"name": "service_compensation_snapshots_tenant_id_created_at_idx",
|
|
7336
8635
|
"columns": [
|
|
8636
|
+
"tenant_id",
|
|
7337
8637
|
"created_at"
|
|
7338
8638
|
]
|
|
7339
8639
|
}
|
|
7340
8640
|
],
|
|
7341
|
-
"version": "
|
|
8641
|
+
"version": "1b3b9cec"
|
|
7342
8642
|
}
|
|
7343
8643
|
}
|
|
7344
8644
|
},
|