@trycompai/db 1.3.5 → 1.3.7

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 +25 -1
  2. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  generator client {
2
2
  provider = "prisma-client-js"
3
3
  previewFeatures = ["postgresqlExtensions"]
4
- binaryTargets = ["native", "rhel-openssl-3.0.x", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
4
+ binaryTargets = ["rhel-openssl-3.0.x", "native", "debian-openssl-3.0.x", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
5
5
  }
6
6
 
7
7
  datasource db {
@@ -445,6 +445,7 @@ model Organization {
445
445
  website String?
446
446
  onboardingCompleted Boolean @default(false)
447
447
  hasAccess Boolean @default(false)
448
+ advancedModeEnabled Boolean @default(false)
448
449
 
449
450
  // FleetDM
450
451
  fleetDmLabelId Int?
@@ -465,6 +466,7 @@ model Organization {
465
466
  attachments Attachment[]
466
467
  trust Trust[]
467
468
  context Context[]
469
+ secrets Secret[]
468
470
 
469
471
  @@index([slug])
470
472
  }
@@ -590,6 +592,25 @@ enum RiskStatus {
590
592
  }
591
593
 
592
594
 
595
+ // ===== secret.prisma =====
596
+ model Secret {
597
+ id String @id @default(dbgenerated("generate_prefixed_cuid('sec'::text)"))
598
+ organizationId String @map("organization_id")
599
+ name String
600
+ value String @db.Text // Encrypted value
601
+ description String? @db.Text
602
+ category String? // e.g., "api", "webhook", "database", etc.
603
+ lastUsedAt DateTime? @map("last_used_at")
604
+ createdAt DateTime @default(now()) @map("created_at")
605
+ updatedAt DateTime @updatedAt @map("updated_at")
606
+
607
+ organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
608
+
609
+ @@unique([organizationId, name])
610
+ @@map("secrets")
611
+ }
612
+
613
+
593
614
  // ===== shared.prisma =====
594
615
  model ApiKey {
595
616
  id String @id @default(dbgenerated("generate_prefixed_cuid('apk'::text)"))
@@ -712,6 +733,7 @@ model Task {
712
733
  createdAt DateTime @default(now())
713
734
  updatedAt DateTime @updatedAt
714
735
  lastCompletedAt DateTime?
736
+ reviewDate DateTime?
715
737
 
716
738
  // Relationships
717
739
  controls Control[]
@@ -759,6 +781,7 @@ model Trust {
759
781
  soc2type1 Boolean @default(false)
760
782
  soc2type2 Boolean @default(false)
761
783
  iso27001 Boolean @default(false)
784
+ iso42001 Boolean @default(false)
762
785
  gdpr Boolean @default(false)
763
786
  hipaa Boolean @default(false)
764
787
  pci_dss Boolean @default(false)
@@ -767,6 +790,7 @@ model Trust {
767
790
  soc2type1_status FrameworkStatus @default(started)
768
791
  soc2type2_status FrameworkStatus @default(started)
769
792
  iso27001_status FrameworkStatus @default(started)
793
+ iso42001_status FrameworkStatus @default(started)
770
794
  gdpr_status FrameworkStatus @default(started)
771
795
  hipaa_status FrameworkStatus @default(started)
772
796
  pci_dss_status FrameworkStatus @default(started)
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.5",
4
+ "version": "1.3.7",
5
5
  "dependencies": {
6
6
  "@prisma/client": "^6.13.0",
7
7
  "dotenv": "^16.4.5"