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
|
|
|
hidden tinyint not null,
|
2008-02-13 19:02:44 +00:00
|
|
|
bolt_course_id integer not null,
|
2008-07-13 04:26:23 +00:00
|
|
|
time_estimate integer not null,
|
|
|
|
time_limit integer not null,
|
2008-07-15 21:43:45 +00:00
|
|
|
calibration_frac double 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)
|
2008-07-14 19:13:19 +00:00
|
|
|
) engine = InnoDB;
|
2007-10-16 17:15:57 +00:00
|
|
|
|
|
|
|
create table bossa_job (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
app_id integer not null,
|
2008-06-14 20:38:57 +00:00
|
|
|
batch_id integer not null,
|
2008-07-13 04:26:23 +00:00
|
|
|
state integer not null,
|
|
|
|
info text,
|
2008-07-15 21:43:45 +00:00
|
|
|
calibration tinyint not null,
|
|
|
|
priority_0 double not null,
|
2008-07-13 04:26:23 +00:00
|
|
|
-- add more as needed
|
2008-07-15 21:43:45 +00:00
|
|
|
-- for calibration jobs, init to random and decrement on each view
|
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,
|
2008-05-30 03:29:31 +00:00
|
|
|
app_id integer not null,
|
2007-10-16 17:15:57 +00:00
|
|
|
job_id integer not null,
|
|
|
|
user_id integer not null,
|
2008-08-20 16:49:37 +00:00
|
|
|
batch_id integer not null,
|
2007-10-16 17:15:57 +00:00
|
|
|
finish_time integer not null,
|
2008-07-15 21:43:45 +00:00
|
|
|
timeout integer not null,
|
2008-07-20 21:27:44 +00:00
|
|
|
calibration tinyint 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,
|
2008-07-13 04:26:23 +00:00
|
|
|
category integer not null,
|
2008-03-03 19:33:32 +00:00
|
|
|
flags integer not null,
|
2008-07-13 04:26:23 +00:00
|
|
|
-- debug, show_all
|
2008-07-18 20:59:59 +00:00
|
|
|
info text,
|
2008-06-14 20:38:57 +00:00
|
|
|
-- Project-dependent info about users ability and performance.
|
2008-07-18 20:59:59 +00:00
|
|
|
primary key(user_id)
|
2008-07-14 19:13:19 +00:00
|
|
|
) engine = InnoDB;
|
2008-06-14 20:38:57 +00:00
|
|
|
|
|
|
|
create table bossa_batch (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
2008-07-13 04:26:23 +00:00
|
|
|
name varchar(255) not null,
|
2008-06-14 20:38:57 +00:00
|
|
|
app_id integer not null,
|
2008-07-15 21:43:45 +00:00
|
|
|
calibration tinyint not null,
|
2008-06-14 20:38:57 +00:00
|
|
|
primary key(id)
|
2008-07-14 19:13:19 +00:00
|
|
|
) engine = InnoDB;
|