mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-05 07:14:27 +01:00
82 lines
2.2 KiB
Plaintext
82 lines
2.2 KiB
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model Metrics {
|
|
id Int @id @default(autoincrement())
|
|
difficulty String
|
|
success Boolean
|
|
successPercent Float
|
|
runTime String?
|
|
failReason String?
|
|
Test Test[]
|
|
}
|
|
|
|
model MetricsOverall {
|
|
id Int @id @default(autoincrement())
|
|
runTime String
|
|
highestDifficulty String
|
|
percentage Float?
|
|
SuiteTest SuiteTest[]
|
|
Report Report[]
|
|
}
|
|
|
|
model Test {
|
|
id Int @id @default(autoincrement())
|
|
dataPath String
|
|
isRegression Boolean
|
|
answer String
|
|
description String
|
|
metricsId Int
|
|
metrics Metrics @relation(fields: [metricsId], references: [id])
|
|
categoryId Int?
|
|
category Category? @relation(fields: [categoryId], references: [id])
|
|
task String?
|
|
reachedCutoff Boolean?
|
|
}
|
|
|
|
model SuiteTest {
|
|
id Int @id @default(autoincrement())
|
|
dataPath String
|
|
metricsOverallId Int
|
|
metricsOverall MetricsOverall @relation(fields: [metricsOverallId], references: [id])
|
|
categoryId Int?
|
|
category Category? @relation(fields: [categoryId], references: [id])
|
|
task String?
|
|
reachedCutoff Boolean?
|
|
}
|
|
|
|
model Category {
|
|
id Int @id @default(autoincrement())
|
|
name String @unique
|
|
tests Test[]
|
|
suiteTests SuiteTest[]
|
|
}
|
|
|
|
model Report {
|
|
id Int @id @default(autoincrement())
|
|
command String
|
|
completionTime String
|
|
benchmarkStartTime String
|
|
metricsOverallId Int
|
|
metricsOverall MetricsOverall @relation(fields: [metricsOverallId], references: [id])
|
|
configKey String
|
|
configValue String
|
|
agentId Int
|
|
agent Agent @relation(fields: [agentId], references: [id])
|
|
}
|
|
|
|
model Agent {
|
|
id Int @id @default(autoincrement())
|
|
name String @unique
|
|
reports Report[]
|
|
}
|