This commit is contained in:
2023-04-28 07:09:29 +08:00
parent 1c08718840
commit c2549703f0
4 changed files with 68 additions and 21 deletions

View File

@@ -30,6 +30,15 @@ func init() {
CREATE TABLE IF NOT EXISTS images(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
width INTEGER,
height INTEGER,
prompt TEXT,
negative_prompt TEXT,
num_inference_steps INTEGER,
guidance_scale REAL,
scheduler TEXT,
seed INTEGER,
from_image TEXT,
created_at TEXT,
updated_at TEXT
);
@@ -62,6 +71,8 @@ func init() {
CREATE TABLE IF NOT EXISTS tasks(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT,
status TEXT,
progress INTEGER,
created_at TEXT,
updated_at TEXT
);