@trycompai/db 1.3.20 → 1.3.21-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/schema.prisma +19 -7
  2. package/package.json +1 -1
@@ -543,11 +543,12 @@ model FrameworkEditorPolicyTemplate {
543
543
  }
544
544
 
545
545
  model FrameworkEditorTaskTemplate {
546
- id String @id @default(dbgenerated("generate_prefixed_cuid('frk_tt'::text)"))
547
- name String
548
- description String
549
- frequency Frequency // Using the enum from shared.prisma
550
- department Departments // Using the enum from shared.prisma
546
+ id String @id @default(dbgenerated("generate_prefixed_cuid('frk_tt'::text)"))
547
+ name String
548
+ description String
549
+ frequency Frequency // Using the enum from shared.prisma
550
+ department Departments // Using the enum from shared.prisma
551
+ automationStatus TaskAutomationStatus @default(AUTOMATED)
551
552
 
552
553
  controlTemplates FrameworkEditorControlTemplate[]
553
554
 
@@ -1469,6 +1470,11 @@ model GlobalVendors {
1469
1470
  subprocessors String[]
1470
1471
  type_of_company String?
1471
1472
 
1473
+ // Vendor Risk Assessment (shared across all organizations)
1474
+ riskAssessmentData Json?
1475
+ riskAssessmentVersion String?
1476
+ riskAssessmentUpdatedAt DateTime?
1477
+
1472
1478
  approved Boolean @default(false)
1473
1479
  createdAt DateTime @default(now())
1474
1480
 
@@ -1709,8 +1715,9 @@ model Task {
1709
1715
  id String @id @default(dbgenerated("generate_prefixed_cuid('tsk'::text)"))
1710
1716
  title String
1711
1717
  description String
1712
- status TaskStatus @default(todo)
1713
- frequency TaskFrequency?
1718
+ status TaskStatus @default(todo)
1719
+ automationStatus TaskAutomationStatus @default(AUTOMATED)
1720
+ frequency TaskFrequency?
1714
1721
  department Departments? @default(none)
1715
1722
  order Int @default(0)
1716
1723
 
@@ -1753,6 +1760,11 @@ enum TaskFrequency {
1753
1760
  yearly
1754
1761
  }
1755
1762
 
1763
+ enum TaskAutomationStatus {
1764
+ AUTOMATED
1765
+ MANUAL
1766
+ }
1767
+
1756
1768
 
1757
1769
  // ===== trust.prisma =====
1758
1770
  model Trust {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trycompai/db",
3
3
  "description": "Database package with Prisma client and schema for Comp AI",
4
- "version": "1.3.20",
4
+ "version": "1.3.21-canary.1",
5
5
  "dependencies": {
6
6
  "@prisma/client": "^6.13.0",
7
7
  "dotenv": "^16.4.5",