@trycompai/db 1.3.12 → 1.3.15-canary.1
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 +13 -1
- package/package.json +1 -1
package/dist/schema.prisma
CHANGED
|
@@ -207,15 +207,21 @@ model EvidenceAutomationRun {
|
|
|
207
207
|
logs Json?
|
|
208
208
|
output Json?
|
|
209
209
|
|
|
210
|
+
// Evaluation
|
|
211
|
+
evaluationStatus EvidenceAutomationEvaluationStatus?
|
|
212
|
+
evaluationReason String?
|
|
213
|
+
|
|
210
214
|
// Metadata
|
|
211
215
|
triggeredBy EvidenceAutomationTrigger @default(scheduled)
|
|
212
216
|
runDuration Int? // in milliseconds
|
|
217
|
+
version Int? // Version number that was executed (null = draft)
|
|
213
218
|
Task Task? @relation(fields: [taskId], references: [id])
|
|
214
219
|
taskId String?
|
|
215
220
|
|
|
216
221
|
@@index([evidenceAutomationId])
|
|
217
222
|
@@index([status])
|
|
218
223
|
@@index([createdAt])
|
|
224
|
+
@@index([version])
|
|
219
225
|
}
|
|
220
226
|
|
|
221
227
|
enum EvidenceAutomationRunStatus {
|
|
@@ -232,6 +238,11 @@ enum EvidenceAutomationTrigger {
|
|
|
232
238
|
api
|
|
233
239
|
}
|
|
234
240
|
|
|
241
|
+
enum EvidenceAutomationEvaluationStatus {
|
|
242
|
+
pass
|
|
243
|
+
fail
|
|
244
|
+
}
|
|
245
|
+
|
|
235
246
|
|
|
236
247
|
// ===== automation-version.prisma =====
|
|
237
248
|
model EvidenceAutomationVersion {
|
|
@@ -262,7 +273,8 @@ model EvidenceAutomation {
|
|
|
262
273
|
description String?
|
|
263
274
|
createdAt DateTime @default(now())
|
|
264
275
|
|
|
265
|
-
chatHistory
|
|
276
|
+
chatHistory String?
|
|
277
|
+
evaluationCriteria String?
|
|
266
278
|
|
|
267
279
|
taskId String
|
|
268
280
|
task Task @relation(fields: [taskId], references: [id], onDelete: Cascade)
|