|
@@ -1,10 +1,14 @@
|
|
|
CREATE TABLE IF NOT EXISTS `olympiad_nobles` (
|
|
|
`charId` INT UNSIGNED NOT NULL default 0,
|
|
|
- `class_id` decimal(3,0) NOT NULL default 0,
|
|
|
- `olympiad_points` decimal(10,0) NOT NULL default 0,
|
|
|
- `competitions_done` decimal(3,0) NOT NULL default 0,
|
|
|
- `competitions_won` decimal(3,0) NOT NULL default 0,
|
|
|
- `competitions_lost` decimal(3,0) NOT NULL default 0,
|
|
|
- `competitions_drawn` decimal(3,0) NOT NULL default 0,
|
|
|
+ `class_id` tinyint(3) unsigned NOT NULL default 0,
|
|
|
+ `olympiad_points` int(10) NOT NULL default 0,
|
|
|
+ `competitions_done` smallint(3) NOT NULL default 0,
|
|
|
+ `competitions_won` smallint(3) NOT NULL default 0,
|
|
|
+ `competitions_lost` smallint(3) NOT NULL default 0,
|
|
|
+ `competitions_drawn` smallint(3) NOT NULL default 0,
|
|
|
+ `competitions_done_week` tinyint(3) NOT NULL default 0,
|
|
|
+ `competitions_done_week_classed` tinyint(3) NOT NULL default 0,
|
|
|
+ `competitions_done_week_non_classed` tinyint(3) NOT NULL default 0,
|
|
|
+ `competitions_done_week_team` tinyint(3) NOT NULL default 0,
|
|
|
PRIMARY KEY (`charId`)
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|