@trycompai/db 1.3.9 → 1.3.11
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 +14 -17
- package/package.json +1 -1
package/dist/schema.prisma
CHANGED
|
@@ -188,35 +188,34 @@ enum PolicyStatus {
|
|
|
188
188
|
|
|
189
189
|
// ===== automation-run.prisma =====
|
|
190
190
|
model EvidenceAutomationRun {
|
|
191
|
-
id String @id @default(dbgenerated("generate_prefixed_cuid('ear'::text)"))
|
|
192
|
-
createdAt DateTime @default(now())
|
|
193
|
-
updatedAt DateTime @updatedAt
|
|
191
|
+
id String @id @default(dbgenerated("generate_prefixed_cuid('ear'::text)"))
|
|
192
|
+
createdAt DateTime @default(now())
|
|
193
|
+
updatedAt DateTime @updatedAt
|
|
194
194
|
|
|
195
195
|
// Relations
|
|
196
|
-
evidenceAutomationId String
|
|
196
|
+
evidenceAutomationId String
|
|
197
197
|
evidenceAutomation EvidenceAutomation @relation(fields: [evidenceAutomationId], references: [id], onDelete: Cascade)
|
|
198
198
|
|
|
199
199
|
// Run details
|
|
200
200
|
status EvidenceAutomationRunStatus @default(pending)
|
|
201
|
-
startedAt DateTime?
|
|
202
|
-
completedAt DateTime?
|
|
201
|
+
startedAt DateTime?
|
|
202
|
+
completedAt DateTime?
|
|
203
203
|
|
|
204
204
|
// Results
|
|
205
|
-
success Boolean?
|
|
206
|
-
error String?
|
|
207
|
-
logs Json?
|
|
208
|
-
output Json?
|
|
205
|
+
success Boolean?
|
|
206
|
+
error String?
|
|
207
|
+
logs Json?
|
|
208
|
+
output Json?
|
|
209
209
|
|
|
210
210
|
// Metadata
|
|
211
|
-
triggeredBy EvidenceAutomationTrigger @default(scheduled)
|
|
212
|
-
runDuration Int?
|
|
211
|
+
triggeredBy EvidenceAutomationTrigger @default(scheduled)
|
|
212
|
+
runDuration Int? // in milliseconds
|
|
213
213
|
Task Task? @relation(fields: [taskId], references: [id])
|
|
214
214
|
taskId String?
|
|
215
215
|
|
|
216
216
|
@@index([evidenceAutomationId])
|
|
217
217
|
@@index([status])
|
|
218
218
|
@@index([createdAt])
|
|
219
|
-
@@map("evidence_automation_runs")
|
|
220
219
|
}
|
|
221
220
|
|
|
222
221
|
enum EvidenceAutomationRunStatus {
|
|
@@ -225,16 +224,12 @@ enum EvidenceAutomationRunStatus {
|
|
|
225
224
|
completed
|
|
226
225
|
failed
|
|
227
226
|
cancelled
|
|
228
|
-
|
|
229
|
-
@@map("evidence_automation_run_status")
|
|
230
227
|
}
|
|
231
228
|
|
|
232
229
|
enum EvidenceAutomationTrigger {
|
|
233
230
|
manual
|
|
234
231
|
scheduled
|
|
235
232
|
api
|
|
236
|
-
|
|
237
|
-
@@map("evidence_automation_trigger")
|
|
238
233
|
}
|
|
239
234
|
|
|
240
235
|
|
|
@@ -245,6 +240,8 @@ model EvidenceAutomation {
|
|
|
245
240
|
description String?
|
|
246
241
|
createdAt DateTime @default(now())
|
|
247
242
|
|
|
243
|
+
chatHistory String?
|
|
244
|
+
|
|
248
245
|
taskId String
|
|
249
246
|
task Task @relation(fields: [taskId], references: [id], onDelete: Cascade)
|
|
250
247
|
|