--
-- Host: localhost    Database: grannyge_testing2008
-- ------------------------------------------------------


--
-- Current Database: `grannyge_testing2008`
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ `grannyge_testing2008` /*!40100 DEFAULT CHARACTER SET latin1 */;

USE `grannyge_testing2008`;

--
-- Table structure for table `rider`
--

CREATE TABLE `rider` (
  `uid` int(4) NOT NULL AUTO_INCREMENT,
  `team_name` varchar(36) NOT NULL DEFAULT '',
  `rank` varchar(10) NOT NULL DEFAULT '',
  `firstname` varchar(22) NOT NULL DEFAULT '',
  `lastname` varchar(15) NOT NULL DEFAULT '',
  `middleinit` char(1) DEFAULT NULL,
  `class` varchar(28) NOT NULL DEFAULT '',
  `ssn` varchar(11) DEFAULT NULL,
  `gender` char(1) NOT NULL DEFAULT '',
  `dob` date NOT NULL DEFAULT '0000-00-00',
  `addr1` varchar(64) NOT NULL DEFAULT '',
  `city` varchar(26) NOT NULL DEFAULT '',
  `state` varchar(26) DEFAULT NULL,
  `country` varchar(26) NOT NULL DEFAULT '',
  `zip` varchar(12) NOT NULL DEFAULT '',
  `email` varchar(96) DEFAULT NULL,
  `dayphone` varchar(20) DEFAULT NULL,
  `evephone` varchar(20) DEFAULT NULL,
  `a_waiver` tinyint(1) NOT NULL DEFAULT '0',
  `emergency_contact` varchar(40) DEFAULT NULL,
  `emergency_phone` varchar(20) DEFAULT NULL,
  `admin_notes` varchar(255) DEFAULT NULL,
  `t_shirt_size` varchar(20) DEFAULT NULL,
  `sponsors` varchar(255) DEFAULT NULL,
  `anecdote` mediumtext,
  PRIMARY KEY (`uid`),
  UNIQUE KEY `rider_pkey` (`uid`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rider`
--

INSERT INTO `rider` VALUES (1,'Testing New Black Box','captain','Testing','Racer','','Sport','','M','1940-01-01','','','','USA','','','','',1,'','','','blank','',''),(2,'Testing New Black Box','regular','unregistered','rider','','Sport','','M','2008-01-01','','','','USA','','','','',0,'','','','blank','',''),(3,'Testing New Black Box','regular','unregistered','rider','','Sport','','M','2008-01-01','','','','USA','','','','',0,'','','','blank','',''),(4,'Testing New Black Box','regular','unregistered','rider','','Sport','','M','2008-01-01','','','','USA','','','','',0,'','','','blank','',''),(5,'Testing Team Black Box','captain','Team','Racer','','Sport','','M','1940-01-01','24 Fourth St','Davis','WV','USA','26260','it@grannygear.com','5555555555','',1,'afdfs','5555555555','','medium','',''),(6,'Testing Team Black Box','regular','unregistered','rider','','Sport','','M','2008-01-01','','','','USA','','','','',0,'','','','blank','',''),(7,'Testing Team Black Box','regular','unregistered','rider','','Sport','','M','2008-01-01','','','','USA','','','','',0,'','','','blank','','');

--
-- Table structure for table `rider_rfid`
--

CREATE TABLE `rider_rfid` (
  `rfid` int(4) NOT NULL DEFAULT '0',
  `uid` int(4) NOT NULL DEFAULT '0',
  UNIQUE KEY `rider_rfid_pkey` (`rfid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `rider_rfid`
--

INSERT INTO `rider_rfid` VALUES (13943,1),(10164,5);

--
-- Table structure for table `team`
--

CREATE TABLE `team` (
  `name` varchar(36) NOT NULL DEFAULT '',
  `city` varchar(26) DEFAULT NULL,
  `state` varchar(26) DEFAULT NULL,
  `country` varchar(26) NOT NULL DEFAULT '',
  `class` char(2) NOT NULL DEFAULT '',
  `ala` tinyint(1) NOT NULL DEFAULT '0',
  `sponsors` varchar(255) DEFAULT NULL,
  `anecdote` mediumtext,
  `fee_paid` decimal(9,2) DEFAULT NULL,
  `online_reg` tinyint(1) NOT NULL DEFAULT '0',
  `payment_type` char(2) DEFAULT NULL,
  `username` varchar(8) DEFAULT NULL,
  `password` varchar(8) DEFAULT NULL,
  `admin_notes` varchar(255) DEFAULT NULL,
  `song_title` varchar(50) DEFAULT NULL,
  `song_artist` varchar(50) DEFAULT NULL,
  `number_of_riders` int(3) DEFAULT NULL,
  UNIQUE KEY `team_pkey` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `team`
--

INSERT INTO `team` VALUES ('Testing New Black Box','Davis','WV','USA','ME',0,'','',0.00,0,'CK','new0718','x1x5rE0l','','','',4),('Testing Team Black Box','Davis','WV','USA','JF',0,'','',0.00,0,'CK','new0718','x1xqxU1O','','','',3);

--
-- Table structure for table `team_number`
--

CREATE TABLE `team_number` (
  `bib_number` int(4) NOT NULL DEFAULT '0',
  `name` varchar(36) NOT NULL DEFAULT '',
  PRIMARY KEY (`bib_number`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `team_number`
--

INSERT INTO `team_number` VALUES (24,'Testing New Black Box'),(101,'Testing Team Black Box');


