@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.
Files changed (2) hide show
  1. package/dist/schema.prisma +14 -17
  2. package/package.json +1 -1
@@ -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)")) @map("id")
192
- createdAt DateTime @default(now()) @map("created_at")
193
- updatedAt DateTime @updatedAt @map("updated_at")
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 @map("evidence_automation_id")
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? @map("started_at")
202
- completedAt DateTime? @map("completed_at")
201
+ startedAt DateTime?
202
+ completedAt DateTime?
203
203
 
204
204
  // Results
205
- success Boolean? @map("success")
206
- error String? @map("error")
207
- logs Json? @map("logs")
208
- output Json? @map("output")
205
+ success Boolean?
206
+ error String?
207
+ logs Json?
208
+ output Json?
209
209
 
210
210
  // Metadata
211
- triggeredBy EvidenceAutomationTrigger @default(scheduled) @map("triggered_by")
212
- runDuration Int? @map("run_duration") // in milliseconds
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
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@trycompai/db",
3
3
  "description": "Database package with Prisma client and schema for Comp AI",
4
- "version": "1.3.9",
4
+ "version": "1.3.11",
5
5
  "dependencies": {
6
6
  "@prisma/client": "^6.13.0",
7
7
  "dotenv": "^16.4.5"