forked from BOINC/boinc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbossa_schema.sql
63 lines (59 loc) · 2.31 KB
/
bossa_schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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,
long_jobs tinyint not null,
hidden tinyint not null,
bolt_course_id integer not null,
time_estimate integer not null,
time_limit integer not null,
calibration_frac double not null,
info text,
-- app-specific info, JSON
primary key(id)
) engine = InnoDB;
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,
state integer not null,
info text,
calibration tinyint not null,
priority_0 double not null,
-- add more as needed
-- for calibration jobs, init to random and decrement on each view
primary key(id)
) engine=InnoDB;
create table bossa_job_inst (
id integer not null auto_increment,
create_time integer not null,
app_id integer not null,
job_id integer not null,
user_id integer not null,
batch_id integer not null,
finish_time integer not null,
timeout integer not null,
calibration tinyint not null,
info text,
primary key(id)
) engine=InnoDB;
create table bossa_user (
user_id integer not null,
category integer not null,
flags integer not null,
-- 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,
name varchar(255) not null,
app_id integer not null,
calibration tinyint not null,
primary key(id)
) engine = InnoDB;