1 create table drive_practice_statistics (
2 id int(11) not null auto_increment,
3 uid int(11) not null comment '用戶id',
4 correct_num smallint(4) not null default 0 comment '用戶答對的題數',
5 total smallint(4) not null default 0 comment '用戶總的答題數,錯誤答題數=total-correct_num',
6 mode tinyint(1) not null comment '駕照類型,1:a1,b1;2:a2,b2;3:c1,c2;4:科目四。c1和c2題目一樣,a1和b1題目一樣,a2和b2題目一樣',
7 addtime int(10) not null default 0,
8 updatetime int(10) not null default 0,
9 primary key (id),
10 key (uid)
11 )engine=innodb default charset=utf8;