File size: 1,266 Bytes
d02c2a6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 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])
}
|