mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-02-01 19:39:46 +00:00
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
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)
|
|
|
|
@@index([status])
|
|
@@index([gpu_ids])
|
|
}
|