--
-- Host: localhost    Database: grannyge_tahoe2004
-- ------------------------------------------------------


--
-- Current Database: `grannyge_tahoe2004`
--

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

USE `grannyge_tahoe2004`;

--
-- 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=10 DEFAULT CHARSET=latin1;

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

INSERT INTO `rider` VALUES (1,'MMMM, DONUTS','captain','Jon','Orban','S','Sport','143-66-7736','M','1969-09-10','151 Alice B Toklas, 505','San Francisco','CA','USA','94109','o@companyfinance.com','6504006006','6504006006',1,'mike mulluly','6502816915','','x-large','Crispy Cream','I have been in Spec Ops,  won the overland challange twice.  I have done the Marathon De Sables, Iditasport extreme invatational, etc, etc.'),(2,'MMMM, DONUTS','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(3,'MMMM, DONUTS','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(4,'MMMM, DONUTS','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(5,'Lester, Shawn A.','captain','Shawn','Lester','A','Sport','565-76-8408','M','1963-01-18','1353 Victoria Dr.','Gardnerville','NV','USA','89460','mantispf2000@yahoo.com','775-450-1390','',1,'Kristine Lester','775-450-6141','','x-large','',''),(6,'Snatch','captain','Justin','Decker','D','Sport','307-84-3104','M','1973-09-22','5003 Pacific Ave, 2a','Los Angeles','CA','USA','90292','justindecker@hotmail.com','818-623-3382','',1,'JP Schuerman','310-279-6989','','medium','Specialized, Walt Disney, Nite Rider, and your mom!','Love to ride - not just bikes.  Life is good, time to live.'),(7,'Snatch','regular','JP','Schuerman','','Sport','','M','1970-10-14','1727 Glendon, 204','los angeles','CA','USA','90024','jps@carryOnpr.com','310-279-6989','',0,'nick Schuerman','310-382-6828','','large','CarryOn Communication, Johnny Rockets, and California Aids Cycle','Are there other gay mountain bikers?'),(8,'Snatch','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(9,'Snatch','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','','');

--
-- 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`
--


--
-- 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 ('MMMM, DONUTS','San Mateo','CA','USA','MS',0,'Crispy Cream Donuts','Each of has a skill.  One of us is an expirienced ultra endurance racer and climber.  Another is a mechanic.  We are all gravitationally challanged.  Pound per pound, not the way you think, we are the fastest team on earth.',510.00,0,'CC','mmmdonut','conan8','','','',4),('Lester, Shawn A.','Gardnerville','NV','USA','M1',0,'Team Alaina Sage, Avid, Camelbak, ClifBar, Crank Bros., Fox Shox, L.H. Thomson, NiteRider, Ritchey, 661, T.H.E., Tioga, Truvativ, Voler, W.T.B., Costco, Especially for You, Sierra Handyman, El Charro Avitia, Douglas County Sherrif\'s Protective Association','If you\'ll recall, I rode the 24 Hours of Tahoe last year, completing 8 laps in honor of my daughter, Alaina, who went to Heaven to be with God and Jesus on February 4, 2003.  Alaina was born in August of 199\"8\", so you can see my reasoning for doing 8.  It was the hardest, yet most satisfying, thing I had ever done.  Well, I\'ll be back again, only this time, I\'ll be gunning for 11 laps to honor Alaina\'s Heaven date (2+4+2003=11).  After all, I can\'t honor one date without honoring the other, right?  And, since Alaina\'s birthday is the Saturday before the planned event (the 14th), and that she would be 6 years old, I\'ve asked Granny for #6 for my plate.  I\'ll also be collecting donations for 2 wonderful causes-- Compassionate Friends, a support group we belong to dealing with the grief of losing a child, and Alaina\'s pre-school library program she was attending.  Your loose change donations will quickly add up!!',310.00,0,'CC','pinkies4','asl1999','','','',1),('Snatch','Los Angeles','CA','USA','MS',0,'CarryOn Communication','4 dudes - 1 who loves the sausage fest, 3 the tuna',510.00,0,'CC','Snatch','pussy1','','','',4);

--
-- 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`
--



