@trycompai/db 2.1.1 → 2.1.2
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 +4 -23
- package/package.json +1 -1
package/dist/schema.prisma
CHANGED
|
@@ -2285,20 +2285,6 @@ model Risk {
|
|
|
2285
2285
|
residualImpact Impact @default(insignificant)
|
|
2286
2286
|
treatmentStrategyDescription String?
|
|
2287
2287
|
treatmentStrategy RiskTreatmentType @default(accept)
|
|
2288
|
-
// Per-strategy text store. When the user switches strategies, the current
|
|
2289
|
-
// `treatmentStrategyDescription` is moved into this map under the OLD
|
|
2290
|
-
// strategy key, and the NEW strategy's saved value is loaded back into the
|
|
2291
|
-
// active field. Lets users keep an independent Mitigate plan + Accept
|
|
2292
|
-
// rationale + Transfer rationale on the same risk.
|
|
2293
|
-
// Shape: { mitigate?: string, accept?: string, transfer?: string, avoid?: string }
|
|
2294
|
-
strategyDescriptions Json?
|
|
2295
|
-
|
|
2296
|
-
// Active auto-link suggestion run (trigger.dev). Set when the user kicks
|
|
2297
|
-
// off an AI suggest scan; cleared when the user applies or discards. Lets
|
|
2298
|
-
// the UI resume an in-flight or completed-but-unreviewed scan after a
|
|
2299
|
-
// page reload so progress isn't lost.
|
|
2300
|
-
autoLinkRunId String?
|
|
2301
|
-
autoLinkRunStartedAt DateTime?
|
|
2302
2288
|
|
|
2303
2289
|
// Dates
|
|
2304
2290
|
createdAt DateTime @default(now())
|
|
@@ -2970,6 +2956,8 @@ model Trust {
|
|
|
2970
2956
|
hipaa Boolean @default(false)
|
|
2971
2957
|
pci_dss Boolean @default(false)
|
|
2972
2958
|
iso9001 Boolean @default(false)
|
|
2959
|
+
pipeda Boolean @default(false)
|
|
2960
|
+
ccpa Boolean @default(false)
|
|
2973
2961
|
|
|
2974
2962
|
soc2_status FrameworkStatus @default(started)
|
|
2975
2963
|
soc2type1_status FrameworkStatus @default(started)
|
|
@@ -2982,6 +2970,8 @@ model Trust {
|
|
|
2982
2970
|
hipaa_status FrameworkStatus @default(started)
|
|
2983
2971
|
pci_dss_status FrameworkStatus @default(started)
|
|
2984
2972
|
iso9001_status FrameworkStatus @default(started)
|
|
2973
|
+
pipeda_status FrameworkStatus @default(started)
|
|
2974
|
+
ccpa_status FrameworkStatus @default(started)
|
|
2985
2975
|
|
|
2986
2976
|
// Overview section for public trust portal
|
|
2987
2977
|
overviewTitle String?
|
|
@@ -3209,10 +3199,6 @@ model Vendor {
|
|
|
3209
3199
|
inherentImpact Impact @default(insignificant)
|
|
3210
3200
|
residualProbability Likelihood @default(very_unlikely)
|
|
3211
3201
|
residualImpact Impact @default(insignificant)
|
|
3212
|
-
treatmentStrategy RiskTreatmentType @default(accept)
|
|
3213
|
-
treatmentStrategyDescription String?
|
|
3214
|
-
// See `Risk.strategyDescriptions`.
|
|
3215
|
-
strategyDescriptions Json?
|
|
3216
3202
|
website String?
|
|
3217
3203
|
isSubProcessor Boolean @default(false)
|
|
3218
3204
|
|
|
@@ -3222,11 +3208,6 @@ model Vendor {
|
|
|
3222
3208
|
trustPortalOrder Int?
|
|
3223
3209
|
complianceBadges Json? // Array of { type: 'soc2' | 'iso27001' | etc, verified: boolean }
|
|
3224
3210
|
|
|
3225
|
-
// Active auto-link suggestion run (trigger.dev). Same semantics as
|
|
3226
|
-
// Risk.autoLinkRunId — lets the UI resume an in-flight scan on reload.
|
|
3227
|
-
autoLinkRunId String?
|
|
3228
|
-
autoLinkRunStartedAt DateTime?
|
|
3229
|
-
|
|
3230
3211
|
createdAt DateTime @default(now())
|
|
3231
3212
|
updatedAt DateTime @updatedAt
|
|
3232
3213
|
|