2007-10-16 17:15:57 +00:00
|
|
|
create table bossa_app (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
name varchar(255) not null,
|
2008-02-12 20:33:05 +00:00
|
|
|
short_name varchar(255) not null,
|
2008-02-11 23:38:31 +00:00
|
|
|
description varchar(255) not null,
|
2007-10-16 17:15:57 +00:00
|
|
|
long_jobs tinyint not null,
|
2008-02-11 23:38:31 +00:00
|
|
|
display_script varchar(255) not null,
|
|
|
|
backend_script varchar(255) not null,
|
|
|
|
hidden tinyint not null,
|
2008-02-13 19:02:44 +00:00
|
|
|
min_conf_sum float not null,
|
|
|
|
min_conf_frac float not null,
|
2008-02-11 23:38:31 +00:00
|
|
|
max_instances integer not null,
|
2008-02-13 19:02:44 +00:00
|
|
|
bolt_course_id integer not null,
|
2007-10-18 21:43:25 +00:00
|
|
|
info text,
|
2008-02-11 23:38:31 +00:00
|
|
|
-- app-specific info, JSON
|
2007-10-16 17:15:57 +00:00
|
|
|
primary key(id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table bossa_job (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
name varchar(255) not null,
|
|
|
|
app_id integer not null,
|
2007-10-18 21:43:25 +00:00
|
|
|
info text,
|
2007-10-16 17:15:57 +00:00
|
|
|
batch integer not null,
|
|
|
|
time_estimate integer not null,
|
|
|
|
time_limit integer not null,
|
2008-02-13 19:02:44 +00:00
|
|
|
transition_time integer not null,
|
|
|
|
conf_needed float not null,
|
2008-02-12 20:33:05 +00:00
|
|
|
canonical_inst_id integer not null,
|
2007-10-16 17:15:57 +00:00
|
|
|
primary key(id)
|
2008-02-11 23:38:31 +00:00
|
|
|
) engine=InnoDB;
|
2007-10-16 17:15:57 +00:00
|
|
|
|
|
|
|
create table bossa_job_inst (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
job_id integer not null,
|
|
|
|
user_id integer not null,
|
|
|
|
finish_time integer not null,
|
2008-02-12 20:33:05 +00:00
|
|
|
validate_state integer not null,
|
|
|
|
-- 0 init, 1 valid, 2 invalid
|
2008-02-13 19:02:44 +00:00
|
|
|
confidence float not null,
|
2007-10-18 21:43:25 +00:00
|
|
|
info text,
|
2007-10-16 17:15:57 +00:00
|
|
|
primary key(id)
|
2008-02-11 23:38:31 +00:00
|
|
|
) engine=InnoDB;
|
2007-10-18 21:43:25 +00:00
|
|
|
|
2008-02-12 20:33:05 +00:00
|
|
|
create table bossa_user (
|
2007-10-18 21:43:25 +00:00
|
|
|
user_id integer not null,
|
|
|
|
info text
|
2008-02-21 00:47:50 +00:00
|
|
|
-- Project-dependent info about user's ability and performance.
|
2007-10-18 21:43:25 +00:00
|
|
|
);
|