@trycompai/db 1.3.6 → 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.
- package/dist/schema.prisma +21 -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)"))
|