MyToolKit / ui /node_modules /.prisma /client /schema.prisma
Aero-Ex's picture
Add files using upload-large-folder tool
e49423d verified
Raw
History Blame Contribute Delete
1.27 kB
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:../../aitk_db.db"
}
model Settings {
id Int @id @default(autoincrement())
key String @unique
value String
}
model Queue {
id Int @id @default(autoincrement())
gpu_ids String @unique
is_running Boolean @default(false)
@@index([gpu_ids])
}
model Job {
id String @id @default(uuid())
name String @unique
gpu_ids String
job_config String // JSON string
created_at DateTime @default(now())
updated_at DateTime @updatedAt
status String @default("stopped")
stop Boolean @default(false)
return_to_queue Boolean @default(false) // same as stop, but will be set to 'queued' when stopped
step Int @default(0)
info String @default("")
speed_string String @default("")
queue_position Int @default(0)
pid Int?
job_type String @default("train") // 'train', 'caption'
job_ref String? // can be used for anything for special jobs, like dataset path for caption jobs
@@index([status])
@@index([gpu_ids])
@@index([job_type])
@@index([job_ref])
}