-- http://www.phpmyadmin.net
-- 
-- Erstellungszeit: 25. Februar 2006 um 19:35
-- Server Version: 4.1.10
-- PHP-Version: 5.0.3
-- 
-- Datenbank: `niki`
-- 

-- --------------------------------------------------------

-- 
-- Tabellenstruktur für Tabelle `drivers`
-- 

CREATE TABLE IF NOT EXISTS `drivers` (
  `d_id` int(11) NOT NULL auto_increment,
  `d_lname` varchar(20) NOT NULL default '',
  `d_fname` varchar(20) NOT NULL default '',
  PRIMARY KEY  (`d_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;

-- 
-- Daten für Tabelle `drivers`
-- 

INSERT INTO `drivers` (`d_id`, `d_lname`, `d_fname`) VALUES (1, 'ALONSO', 'Fernando'),
(2, 'FISICHELLA', 'Giancarlo'),
(3, 'RAIKKONEN', 'Kimi'),
(4, 'MONTOYA', 'Juan Pablo'),
(5, 'SCHUMACHER', 'Michael'),
(6, 'MASSA', 'Felipe'),
(7, 'SCHUMACHER', 'Ralf'),
(8, 'TRULLI', 'Jarno'),
(9, 'WEBBER', 'Mark'),
(10, 'ROSBERG', 'Nico'),
(11, 'BARRICHELLO', 'Rubens'),
(12, 'BUTTON', 'Jenson'),
(13, 'COULTHARD', 'David'),
(14, 'KLIEN', 'Christian'),
(15, 'HEIDFELD', 'Nick'),
(16, 'VILLENEUVE', 'Jacques'),
(17, 'MONTEIRO', 'Tiago'),
(18, 'ALBERS', 'Christijan'),
(19, 'LIUZZI', 'Vitantonio'),
(20, 'SPEED', 'Scott'),
(21, 'SATO', 'Takuma'),
(22, 'IDE', 'Yuji');

-- --------------------------------------------------------

-- 
-- Tabellenstruktur für Tabelle `events`
-- 

CREATE TABLE IF NOT EXISTS `events` (
  `e_id` int(11) NOT NULL auto_increment,
  `e_type` varchar(20) NOT NULL default '',
  PRIMARY KEY  (`e_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

-- 
-- Daten für Tabelle `events`
-- 

INSERT INTO `events` (`e_id`, `e_type`) VALUES (1, 'QUALIFYING'),
(2, 'RACE');

-- --------------------------------------------------------

-- 
-- Tabellenstruktur für Tabelle `gps`
-- 

CREATE TABLE IF NOT EXISTS `gps` (
  `g_id` int(11) NOT NULL auto_increment,
  `g_name` varchar(40) NOT NULL default '',
  `g_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
  `g_flag` varchar(20) NOT NULL default '',
  `g_circuit` varchar(40) NOT NULL default '',
  PRIMARY KEY  (`g_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;

-- 
-- Daten für Tabelle `gps`
-- 

INSERT INTO `gps` (`g_id`, `g_name`, `g_datetime`, `g_flag`, `g_circuit`) VALUES (1, 'BAHRAIN (Sakhir)', '2006-03-12 13:30:00', 'flag_BAHRAIN.gif', 'circuit_BAHRAIN.gif'),
(2, 'MALAYSIA (Sepang)', '2006-03-19 08:00:00', 'flag_MALAYSIA.gif', 'circuit_MALAYSIA.gif'),
(3, 'AUSTRALIA (Melbourne)', '2006-04-02 04:00:00', 'flag_AUSTRALIA.gif', 'circuit_AUSTRALIA.gif'),
(4, 'SAN MARINO (Imola)', '2006-04-23 14:00:00', 'flag_SANMARINO.gif', 'circuit_SANMARINO.gif'),
(5, 'EUROPE (Nuerburgring)', '2006-05-07 14:00:00', 'flag_EUROPE.gif', 'circuit_EUROPE.gif'),
(6, 'SPAIN (Barcelona)', '2006-05-14 14:00:00', 'flag_SPAIN.gif', 'circuit_SPAIN.gif'),
(7, 'MONACO (Monte Carlo)', '2006-05-28 14:00:00', 'flag_MONACO.gif', 'circuit_MONACO.gif'),
(8, 'GREAT BRITAIN (Silverstone)', '2006-06-11 14:00:00', 'flag_UK.gif', 'circuit_UK.gif'),
(9, 'CANADA (Montreal)', '2006-06-25 19:00:00', 'flag_CANADA.gif', 'circuit_CANADA.gif'),
(10, 'USA (Indianapolis)', '2006-07-02 20:00:00', 'flag_USA.gif', 'circuit_USA.gif'),
(11, 'FRANCE (Magny-Cours)', '2006-07-16 14:00:00', 'flag_FRANCE.gif', 'circuit_FRANCE.gif'),
(12, 'GERMANY (Hockenheim)', '2006-07-30 14:00:00', 'flag_GERMANY.gif', 'circuit_GERMANY.gif'),
(13, 'HUNGARY (Budapest)', '2006-08-06 14:00:00', 'flag_HUNGARY.gif', 'circuit_HUNGARY.gif'),
(14, 'TURKEY (Istanbul)', '2006-08-27 14:00:00', 'flag_TURKEY.gif', 'circuit_TURKEY.gif'),
(15, 'ITALY (Monza)', '2006-09-10 14:00:00', 'flag_ITALY.gif', 'circuit_ITALY.gif'),
(16, 'CHINA (Shanghai)', '2006-10-01 08:00:00', 'flag_CHINA.gif', 'circuit_CHINA.gif'),
(17, 'JAPAN (Suzuka)', '2006-10-08 07:00:00', 'flag_JAPAN.gif', 'circuit_JAPAN.gif'),
(18, 'BRASIL (Sao Paolo)', '2006-10-22 19:00:00', 'flag_BRASIL.gif', 'circuit_BRASIL.gif');

-- --------------------------------------------------------

-- 
-- Tabellenstruktur für Tabelle `results`
-- 

CREATE TABLE IF NOT EXISTS `results` (
  `r_g_id` int(11) NOT NULL default '0',
  `r_e_id` int(11) NOT NULL default '0',
  `r_d_id_p1` int(11) NOT NULL default '0',
  `r_d_id_p2` int(11) NOT NULL default '0',
  `r_d_id_p3` int(11) NOT NULL default '0',
  PRIMARY KEY  (`r_g_id`,`r_e_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- 
-- Daten für Tabelle `results`
-- 


-- --------------------------------------------------------

-- 
-- Tabellenstruktur für Tabelle `tips`
-- 

CREATE TABLE IF NOT EXISTS `tips` (
  `t_u_id` int(11) NOT NULL default '0',
  `t_g_id` int(11) NOT NULL default '0',
  `t_e_id` int(11) NOT NULL default '0',
  `t_d_id_p1` int(11) NOT NULL default '0',
  `t_d_id_p2` int(11) NOT NULL default '0',
  `t_d_id_p3` int(11) NOT NULL default '0',
  `t_timestamp` datetime NOT NULL default '0000-00-00 00:00:00',
  `t_score` int(11) NOT NULL default '0',
  PRIMARY KEY  (`t_u_id`,`t_g_id`,`t_e_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
        