2002-07-11 20:35:05 +00:00
|
|
|
use BOINC_DB_NAME
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-08-25 07:54:33 +00:00
|
|
|
create table project (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
name varchar(254) not null,
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
create table platform (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
name varchar(254) not null,
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table app (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
name varchar(254) not null,
|
2002-07-29 00:39:45 +00:00
|
|
|
min_version integer not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
result_xml_template blob,
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table app_version (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
appid integer not null,
|
|
|
|
version_num integer not null,
|
|
|
|
platformid integer not null,
|
2002-05-17 22:33:57 +00:00
|
|
|
xml_doc blob,
|
2002-04-30 22:22:54 +00:00
|
|
|
min_core_version integer not null,
|
|
|
|
max_core_version integer not null,
|
|
|
|
message varchar(254),
|
|
|
|
deprecated smallint not null,
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table user (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
email_addr varchar(254) not null,
|
|
|
|
name varchar(254),
|
|
|
|
web_password varchar(254),
|
|
|
|
authenticator varchar(254),
|
|
|
|
country varchar(254),
|
|
|
|
postal_code varchar(254),
|
|
|
|
total_credit double not null,
|
|
|
|
expavg_credit double not null,
|
|
|
|
expavg_time integer not null,
|
2002-05-29 23:25:21 +00:00
|
|
|
prefs blob,
|
|
|
|
prefs_mod_time integer not null,
|
2002-07-11 20:35:05 +00:00
|
|
|
teamid integer not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
2002-07-11 20:35:05 +00:00
|
|
|
create table team (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
userid integer not null,
|
2002-07-15 07:19:44 +00:00
|
|
|
name varchar(254) not null,
|
2002-07-11 20:35:05 +00:00
|
|
|
name_lc varchar(254),
|
|
|
|
url varchar(254),
|
|
|
|
type integer not null,
|
|
|
|
name_html varchar(254),
|
|
|
|
description varchar(254),
|
|
|
|
nusers integer not null,
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
create table host (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
userid integer not null,
|
|
|
|
rpc_seqno integer not null,
|
|
|
|
rpc_time integer not null,
|
2002-08-28 21:50:51 +00:00
|
|
|
total_credit float not null,
|
|
|
|
expavg_credit float not null,
|
|
|
|
expavg_time float not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
timezone integer not null,
|
|
|
|
domain_name varchar(254),
|
|
|
|
serialnum varchar(254),
|
|
|
|
last_ip_addr varchar(254),
|
|
|
|
nsame_ip_addr integer not null,
|
|
|
|
|
|
|
|
on_frac float not null,
|
|
|
|
connected_frac float not null,
|
|
|
|
active_frac float not null,
|
|
|
|
|
|
|
|
p_ncpus integer not null,
|
|
|
|
p_vendor varchar(254),
|
|
|
|
p_model varchar(254),
|
|
|
|
p_fpops float not null,
|
|
|
|
p_iops float not null,
|
|
|
|
p_membw float not null,
|
|
|
|
|
|
|
|
os_name varchar(254),
|
|
|
|
os_version varchar(254),
|
|
|
|
|
|
|
|
m_nbytes float not null,
|
|
|
|
m_cache float not null,
|
|
|
|
m_swap float not null,
|
|
|
|
|
|
|
|
d_total float not null,
|
|
|
|
d_free float not null,
|
|
|
|
|
|
|
|
n_bwup float not null,
|
|
|
|
n_bwdown float not null,
|
|
|
|
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table workunit (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
appid integer not null,
|
|
|
|
previous_wuid integer not null,
|
|
|
|
has_successor smallint not null,
|
|
|
|
name varchar(254) not null,
|
|
|
|
xml_doc blob,
|
|
|
|
batch integer not null,
|
|
|
|
rsc_fpops double not null,
|
|
|
|
rsc_iops double not null,
|
|
|
|
rsc_memory double not null,
|
|
|
|
rsc_disk double not null,
|
|
|
|
dynamic_results smallint not null,
|
|
|
|
max_results integer not null,
|
|
|
|
nresults integer not null,
|
|
|
|
nresults_unsent integer not null,
|
|
|
|
nresults_done integer not null,
|
|
|
|
nresults_fail integer not null,
|
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table result (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
workunitid integer not null,
|
|
|
|
state integer not null,
|
|
|
|
hostid integer not null,
|
2002-07-15 05:34:32 +00:00
|
|
|
report_deadline integer not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
sent_time integer not null,
|
|
|
|
received_time integer not null,
|
|
|
|
name varchar(254) not null,
|
|
|
|
exit_status integer not null,
|
|
|
|
cpu_time float not null,
|
|
|
|
xml_doc_in blob,
|
|
|
|
xml_doc_out blob,
|
|
|
|
stderr_out blob,
|
|
|
|
batch integer not null,
|
|
|
|
project_state integer not null,
|
|
|
|
validated smallint not null,
|
2002-08-28 21:50:51 +00:00
|
|
|
granted_credit float not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
primary key (id)
|
|
|
|
);
|