[table]
class

[fields]
class_id        integer
name            string 64
message         string 1024
password_yn     integer
assignment_id   integer
assignment_name string 64
created_date    integer

[minidb_version2_table_extensions]
auto_increment class_id
index          class_id


[table]
assignment

[fields]
assignment_id integer
name          string 64
mode          integer
description   string 1024
created_date  integer

[minidb_version2_table_extensions]
auto_increment assignment_id
index          assignment_id


[table]
assignment_x_puzzle

[fields]
assignment_id      integer
puzzle_id          integer
puzzle_name        string 64
puzzle_difficulty  integer

[minidb_version2_table_extensions]
index assignment_id


[table]
student

[fields]
class_id                  integer
student_id                integer
name                      string 64
message                   string 1024
password                  string 64
password_yn               integer
user_type                 integer
assignment_id             integer
assignment_name           string 64
created_date              integer
music_on                  integer
highest_level_reached     integer
last_savepoint            string 100 
last_savepoint_mx         integer
last_savepoint_my         integer
last_rock_amount_in_hand  integer
last_falldeath_y          integer
    
[minidb_version2_table_extensions]
auto_increment  student_id
index           student_id
index           class_id


[table]
setting

[fields]
master_password   string 10
password_reminder string 64


[table]
result

[fields]
class_id                integer
student_id              integer
puzzle_id               integer
puzzle_difficulty       integer
puzzle_speed            integer
puzzle_expert           integer
puzzle_expert_count     integer
total_try               integer
total_time              integer
success_count           integer
unsuccess_count         integer
time_stamp              integer

[minidb_version2_table_extensions]
index           class_id
index           student_id
index           puzzle_id
index           time_stamp


[table]
adaptive

[fields]
class_id          integer
student_id        integer
puzzle_id         integer
difficulty        integer

[minidb_version2_table_extensions]
index           class_id
index           student_id
index           puzzle_id  


[table]
history

[fields]
class_id       integer
student_id     integer
puzzle_id      integer
puzzle_difficulty integer
puzzle_time    integer
time_stamp     integer

[minidb_version2_table_extensions]
index           class_id
index           student_id
index           puzzle_id
index           time_stamp


[table]
highscore

[fields]
class_id          integer
student_id        integer
student_name      string 64
game_type         string 20
difficulty        string 10
time_limit        integer
total_score       integer
total_question    integer
average           integer
time_stamp        integer


[minidb_version2_table_extensions]
index           class_id
index           student_id
index           average
index           time_stamp

[table]
flash_history

[fields]
class_id          integer
student_id        integer
game_type         string 20
difficulty        string 10
time_limit        integer
score             integer
question          integer
average           integer
time_stamp        integer

[minidb_version2_table_extensions]
index           class_id
index           student_id
index           average
index           time_stamp

[end]
