boinc/db/bossa_schema.sql

64 lines
2.3 KiB
MySQL
Raw Normal View History

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,
short_name varchar(255) not null,
description varchar(255) not null,
2007-10-16 17:15:57 +00:00
long_jobs tinyint not null,
hidden tinyint not null,
bolt_course_id integer not null,
2008-07-13 04:26:23 +00:00
time_estimate integer not null,
time_limit integer not null,
calibration_frac double not null,
info text,
-- app-specific info, JSON
2007-10-16 17:15:57 +00:00
primary key(id)
) 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,
batch_id integer not null,
2008-07-13 04:26:23 +00:00
state integer not null,
info text,
calibration tinyint not null,
priority_0 double not null,
2008-07-13 04:26:23 +00:00
-- add more as needed
-- for calibration jobs, init to random and decrement on each view
2007-10-16 17:15:57 +00:00
primary key(id)
) 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,
app_id integer not null,
2007-10-16 17:15:57 +00:00
job_id integer not null,
user_id integer not null,
batch_id integer not null,
2007-10-16 17:15:57 +00:00
finish_time integer not null,
timeout integer not null,
calibration tinyint not null,
info text,
2007-10-16 17:15:57 +00:00
primary key(id)
) engine=InnoDB;
create table bossa_user (
user_id integer not null,
2008-07-13 04:26:23 +00:00
category integer not null,
flags integer not null,
2008-07-13 04:26:23 +00:00
-- debug, show_all
info text,
-- Project-dependent info about users ability and performance.
primary key(user_id)
) engine = InnoDB;
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,
app_id integer not null,
calibration tinyint not null,
primary key(id)
) engine = InnoDB;