@trycompai/db 1.3.6 → 1.3.8
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/schema.prisma +23 -1
- package/package.json +1 -1
package/dist/schema.prisma
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
generator client {
|
|
2
2
|
provider = "prisma-client-js"
|
|
3
3
|
previewFeatures = ["postgresqlExtensions"]
|
|
4
|
-
binaryTargets = ["
|
|
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 {
|
|
@@ -466,6 +466,7 @@ model Organization {
|
|
|
466
466
|
attachments Attachment[]
|
|
467
467
|
trust Trust[]
|
|
468
468
|
context Context[]
|
|
469
|
+
secrets Secret[]
|
|
469
470
|
|
|
470
471
|
@@index([slug])
|
|
471
472
|
}
|
|
@@ -591,6 +592,25 @@ enum RiskStatus {
|
|
|
591
592
|
}
|
|
592
593
|
|
|
593
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
|
+
|
|
594
614
|
// ===== shared.prisma =====
|
|
595
615
|
model ApiKey {
|
|
596
616
|
id String @id @default(dbgenerated("generate_prefixed_cuid('apk'::text)"))
|
|
@@ -762,6 +782,7 @@ model Trust {
|
|
|
762
782
|
soc2type2 Boolean @default(false)
|
|
763
783
|
iso27001 Boolean @default(false)
|
|
764
784
|
iso42001 Boolean @default(false)
|
|
785
|
+
nen7510 Boolean @default(false)
|
|
765
786
|
gdpr Boolean @default(false)
|
|
766
787
|
hipaa Boolean @default(false)
|
|
767
788
|
pci_dss Boolean @default(false)
|
|
@@ -771,6 +792,7 @@ model Trust {
|
|
|
771
792
|
soc2type2_status FrameworkStatus @default(started)
|
|
772
793
|
iso27001_status FrameworkStatus @default(started)
|
|
773
794
|
iso42001_status FrameworkStatus @default(started)
|
|
795
|
+
nen7510_status FrameworkStatus @default(started)
|
|
774
796
|
gdpr_status FrameworkStatus @default(started)
|
|
775
797
|
hipaa_status FrameworkStatus @default(started)
|
|
776
798
|
pci_dss_status FrameworkStatus @default(started)
|