2006-12-01 00:38:36 +00:00
|
|
|
create table volunteer (
|
|
|
|
id integer not null auto_increment,
|
|
|
|
create_time integer not null,
|
2006-12-02 04:32:22 +00:00
|
|
|
name char(64) not null,
|
|
|
|
password char(32) not null,
|
|
|
|
email_addr char(100) not null,
|
|
|
|
country char(64) not null,
|
|
|
|
skypeid char(64) not null,
|
|
|
|
lang1 char(32) not null,
|
|
|
|
lang2 char(32) not null,
|
2006-12-04 17:10:39 +00:00
|
|
|
specialties varchar(255) not null,
|
|
|
|
projects varchar(255) not null,
|
2006-12-02 04:32:22 +00:00
|
|
|
availability char(128) not null,
|
2006-12-01 00:38:36 +00:00
|
|
|
voice_ok tinyint not null,
|
|
|
|
text_ok tinyint not null,
|
|
|
|
timezone integer not null,
|
2006-12-02 04:32:22 +00:00
|
|
|
nratings integer not null,
|
|
|
|
rating_sum integer not null,
|
2006-12-04 17:10:39 +00:00
|
|
|
last_online integer not null,
|
|
|
|
last_check integer not null,
|
|
|
|
status integer not null,
|
2006-12-05 03:50:36 +00:00
|
|
|
hide tinyint not null,
|
2006-12-01 00:38:36 +00:00
|
|
|
primary key(id)
|
|
|
|
);
|
|
|
|
|
|
|
|
create table rating (
|
|
|
|
volunteerid integer not null,
|
|
|
|
rating integer not null,
|
|
|
|
timestamp integer not null,
|
2006-12-02 04:32:22 +00:00
|
|
|
auth char(32) not null,
|
2006-12-01 00:38:36 +00:00
|
|
|
comment text not null
|
|
|
|
);
|
|
|
|
|
|
|
|
alter table volunteer
|
|
|
|
add unique(email_addr),
|
|
|
|
add unique(name);
|
2006-12-02 04:32:22 +00:00
|
|
|
|
|
|
|
alter table rating
|
|
|
|
add index rvt(volunteerid, timestamp),
|
|
|
|
add index vauth(volunteerid, auth);
|