add ability to remove user and add task depndencies closes #69

This commit is contained in:
2024-04-17 14:56:57 +01:00
parent 00ddb91a22
commit 8ece8306dd
25 changed files with 439 additions and 54 deletions

View File

@@ -10,13 +10,14 @@ create table if not exists models (
-- -1: failed preparing
-- 1: preparing
status integer default 1,
-- Types:
-- 0: Unset
-- 1: simple
-- 2: expandable
model_type integer default 0,
can_train integer default 1,
width integer,
height integer,
color_mode varchar (20),
@@ -51,7 +52,7 @@ create table if not exists model_data_point (
status_message text
);
-- drop table if exists model_definition;
-- drop table if exists model_definition;
create table if not exists model_definition (
id uuid primary key default gen_random_uuid(),
model_id uuid references models (id) on delete cascade,
@@ -82,10 +83,10 @@ create table if not exists model_definition_layer (
-- ei 28,28,1
-- a 28x28 grayscale image
shape text not null,
-- Type based on the expandability
-- 0: not expandalbe model
-- 1: fixed
-- 1: fixed
-- 2: head
exp_type integer default 0
);
@@ -111,4 +112,3 @@ create table if not exists exp_model_head (
created_on timestamp default current_timestamp,
epoch_progress integer default 0
);

View File

@@ -16,19 +16,25 @@ create table if not exists tasks (
result text default '',
extra_task_info text default '',
-- -1: user said task is wrong
-- 0: no user input
-- 1: user said task is ok
user_confirmed integer default 0,
-- Tells the user if the file has been already compacted into
-- embendings
compacted integer default 0,
-- TODO move the training tasks to here
-- 1: Classification
task_type integer,
created_on timestamp default current_timestamp
)
);
create table if not exists tasks_dependencies (
id uuid primary key default gen_random_uuid(),
main_id uuid references tasks (id) on delete cascade not null,
dependent_id uuid references tasks (id) on delete cascade not null
);