codice:
-- phpMyAdmin SQL Dump
-- version 3.3.8
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 31 ott, 2010 at 07:35 PM
-- Versione MySQL: 5.0.51
-- Versione PHP: 5.2.14
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `iraceonl_gpcos`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `gpcos_tblresults`
--
DROP TABLE IF EXISTS `gpcos_tblresults`;
CREATE TABLE IF NOT EXISTS `gpcos_tblresults` (
`id` int(10) unsigned NOT NULL auto_increment,
`DriverID` smallint(5) unsigned default '0',
`TeamID` smallint(5) unsigned default '0',
`EventID` int(10) unsigned default '0',
`TrackID` smallint(5) unsigned default NULL,
`LeagueID` smallint(5) unsigned default NULL,
`DriverIP` varchar(15) default '0',
`CarModelID` tinyint(3) unsigned default NULL,
`CarClass` varchar(25) default NULL,
`StartNumber` tinyint(3) unsigned default '0',
`QTime` mediumint(8) unsigned default NULL,
`QPos` smallint(5) unsigned default '0',
`QPosOverall` smallint(5) unsigned default NULL,
`QLaps` smallint(5) unsigned default NULL,
`RTime` int(10) default NULL,
`RLaps` smallint(5) unsigned default '0',
`RFastestLap` mediumint(8) unsigned default NULL,
`FL_Indication` enum('1','0') NOT NULL default '0',
`LeadLaps` smallint(6) NOT NULL default '0',
`LL_Indication` enum('1','0') NOT NULL default '0',
`MLL_Indication` enum('1','0') NOT NULL default '0',
`RPos` smallint(5) unsigned default '0',
`RPosOverall` smallint(5) unsigned default NULL,
`Pitstops` tinyint(3) unsigned default NULL,
`QPoints` smallint(2) unsigned default NULL,
`RPoints` smallint(2) unsigned default NULL,
`FLPoints` smallint(2) unsigned default '0',
`LLPoints` smallint(2) NOT NULL default '0',
`MLLPoints` smallint(2) NOT NULL default '0',
`PPoints` smallint(2) unsigned default '0',
`TPoints` smallint(2) default NULL,
`PenaltyID` tinyint(1) unsigned default NULL,
`QFinishStatusID` tinyint(3) unsigned default NULL,
`RFinishStatusID` tinyint(3) unsigned default NULL,
`DNFReason` varchar(50) default NULL,
`ResultEdited` enum('1','0') default '0',
`Date` datetime default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `id_2` (`id`),
KEY `EventLeague` (`EventID`,`LeagueID`),
KEY `EventDriver` (`DriverID`,`EventID`),
KEY `DriverPoints` (`DriverID`,`EventID`,`LeagueID`,`TPoints`),
KEY `TeamPoints` (`EventID`,`LeagueID`,`TeamID`,`TPoints`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1117 ;
--
-- Dump dei dati per la tabella `gpcos_tblresults`
--
INSERT INTO `gpcos_tblresults` VALUES(764, 76, 17, 31, 15, 6, '-', 1, 'BMW 320si E90', 0, 0, 12, 12, 0, 0, 1, 157145, '0', 0, '0', '0', 25, 25, 1, 0, 0, 0, 0, 0, 0, 0, NULL, 3, 2, 'DNF', '0', '2010-10-04 19:23:02');
tab2
codice:
-- phpMyAdmin SQL Dump
-- version 3.3.8
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generato il: 31 ott, 2010 at 06:18 PM
-- Versione MySQL: 5.0.51
-- Versione PHP: 5.2.14
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `iraceonl_gpcos`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `gpcos_tblpointdistribution`
--
DROP TABLE IF EXISTS `gpcos_tblpointdistribution`;
CREATE TABLE IF NOT EXISTS `gpcos_tblpointdistribution` (
`id` int(10) unsigned NOT NULL auto_increment,
`LeagueID` smallint(5) unsigned default NULL,
`PointDistribution` varchar(40) NOT NULL default 'Default',
`FL` tinyint(3) unsigned default '0',
`LL` tinyint(3) default '0',
`MLL` tinyint(3) default '0',
`LastUpdate` datetime default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `id_2` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dump dei dati per la tabella `gpcos_tblpointdistribution`
--
INSERT INTO `gpcos_tblpointdistribution` VALUES(1, 2, 'IRon SE', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2010-08-10 21:00:53');
INSERT INTO `gpcos_tblpointdistribution` VALUES(4, 6, 'IRON_C', 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, '2010-10-31 00:13:19');
INSERT INTO `gpcos_tblpointdistribution` VALUES(8, 9, 'IRON_B', 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 13, 10, 8, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, '2010-10-31 00:14:36');
INSERT INTO `gpcos_tblpointdistribution` VALUES(6, 8, 'IRON_A', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 25, 18, 15, 12, 10, 8, 6, 4, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '2010-10-31 00:13:45');