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,
|
2003-02-14 22:35:35 +00:00
|
|
|
short_name varchar(254) not null,
|
|
|
|
long_name varchar(254) not null,
|
2002-08-25 07:54:33 +00:00
|
|
|
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,
|
2003-02-12 18:51:05 +00:00
|
|
|
user_friendly_name varchar(254) not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
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
|
|
|
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),
|
|
|
|
authenticator varchar(254),
|
|
|
|
country varchar(254),
|
|
|
|
postal_code varchar(254),
|
2002-10-22 01:26:21 +00:00
|
|
|
total_credit double not null,
|
|
|
|
expavg_credit double not null,
|
|
|
|
expavg_time double not null,
|
2002-09-27 06:12:50 +00:00
|
|
|
global_prefs blob,
|
|
|
|
project_prefs blob,
|
2003-01-30 23:03:52 +00:00
|
|
|
teamid integer not null,
|
2003-02-18 23:07:48 +00:00
|
|
|
venue varchar(254) not null,
|
2003-03-20 02:05:25 +00:00
|
|
|
url varchar(254),
|
|
|
|
send_email smallint not null,
|
|
|
|
show_hosts smallint not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
2002-07-11 20:35:05 +00:00
|
|
|
create table team (
|
2003-01-30 23:03:52 +00:00
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
userid integer not null,
|
|
|
|
name varchar(254) not null,
|
|
|
|
name_lc varchar(254),
|
|
|
|
url varchar(254),
|
|
|
|
type integer not null,
|
|
|
|
name_html varchar(254),
|
2002-12-24 03:03:45 +00:00
|
|
|
description blob,
|
2003-01-30 23:03:52 +00:00
|
|
|
nusers integer not null, /* temp */
|
2002-12-24 03:03:45 +00:00
|
|
|
country varchar(254),
|
2002-11-11 19:40:22 +00:00
|
|
|
total_credit double not null, /* temp */
|
|
|
|
expavg_credit double not null, /* temp */
|
2002-07-11 20:35:05 +00:00
|
|
|
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-10-22 01:26:21 +00:00
|
|
|
total_credit double not null,
|
|
|
|
expavg_credit double not null,
|
|
|
|
expavg_time double 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,
|
|
|
|
|
2002-10-22 01:26:21 +00:00
|
|
|
on_frac double not null,
|
|
|
|
connected_frac double not null,
|
|
|
|
active_frac double not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
p_ncpus integer not null,
|
|
|
|
p_vendor varchar(254),
|
|
|
|
p_model varchar(254),
|
2002-10-22 01:26:21 +00:00
|
|
|
p_fpops double not null,
|
|
|
|
p_iops double not null,
|
|
|
|
p_membw double not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
os_name varchar(254),
|
|
|
|
os_version varchar(254),
|
|
|
|
|
2002-10-22 01:26:21 +00:00
|
|
|
m_nbytes double not null,
|
|
|
|
m_cache double not null,
|
|
|
|
m_swap double not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-10-22 01:26:21 +00:00
|
|
|
d_total double not null,
|
|
|
|
d_free double not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-10-22 01:26:21 +00:00
|
|
|
n_bwup double not null,
|
|
|
|
n_bwdown double not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-10-22 01:26:21 +00:00
|
|
|
credit_per_cpu_sec double not null,
|
2003-02-18 23:07:48 +00:00
|
|
|
venue varchar(254) not null,
|
2002-09-25 19:40:19 +00:00
|
|
|
|
2002-04-30 22:22:54 +00:00
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
2002-12-05 19:13:06 +00:00
|
|
|
/*
|
|
|
|
* Only information needed by the server or other backend components
|
|
|
|
* is broken out into separate fields.
|
|
|
|
* Other info, i.e. that needed by the client (files, etc.)
|
|
|
|
* is stored in the XML doc
|
|
|
|
*/
|
2002-04-30 22:22:54 +00:00
|
|
|
create table workunit (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
appid integer 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,
|
2002-09-25 19:40:19 +00:00
|
|
|
need_validate smallint not null,
|
|
|
|
canonical_resultid integer not null,
|
|
|
|
canonical_credit double not null,
|
2003-01-23 08:07:48 +00:00
|
|
|
timeout_check_time integer not null,
|
2002-11-07 19:31:34 +00:00
|
|
|
delay_bound integer not null,
|
2003-01-23 08:07:48 +00:00
|
|
|
error_mask integer not null,
|
2002-12-17 19:00:43 +00:00
|
|
|
file_delete_state integer not null,
|
|
|
|
assimilate_state integer not null,
|
2002-12-01 06:20:25 +00:00
|
|
|
workseq_next integer not null,
|
2003-02-18 23:07:48 +00:00
|
|
|
opaque integer not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
primary key (id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table result (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
workunitid integer not null,
|
2002-12-07 00:56:51 +00:00
|
|
|
server_state integer not null,
|
2003-01-23 08:07:48 +00:00
|
|
|
outcome integer not null,
|
|
|
|
client_state integer not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
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,
|
2002-10-22 01:26:21 +00:00
|
|
|
cpu_time double not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
xml_doc_in blob,
|
|
|
|
xml_doc_out blob,
|
|
|
|
stderr_out blob,
|
|
|
|
batch integer not null,
|
2002-12-17 19:00:43 +00:00
|
|
|
file_delete_state integer not null,
|
2002-09-25 19:40:19 +00:00
|
|
|
validate_state integer not null,
|
2002-10-22 01:26:21 +00:00
|
|
|
claimed_credit double not null,
|
|
|
|
granted_credit double not null,
|
2003-02-18 23:07:48 +00:00
|
|
|
opaque integer not null,
|
2003-04-01 03:28:37 +00:00
|
|
|
random integer not null,
|
2002-04-30 22:22:54 +00:00
|
|
|
primary key (id)
|
|
|
|
);
|
2002-12-01 06:20:25 +00:00
|
|
|
|
|
|
|
create table workseq (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
|
|
|
state integer not null,
|
|
|
|
hostid integer not null,
|
|
|
|
wuid_last_done integer not null,
|
|
|
|
wuid_last_sent integer not null,
|
|
|
|
workseqid_master integer not null,
|
2002-12-03 18:57:40 +00:00
|
|
|
primary key (id)
|
2002-12-01 06:20:25 +00:00
|
|
|
);
|