--
-- Host: localhost    Database: grannyge_landahl2008
-- ------------------------------------------------------


--
-- Current Database: `grannyge_landahl2008`
--

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

USE `grannyge_landahl2008`;

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

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

INSERT INTO `rider` VALUES (1,'Cycle City Racing','captain','Chris','Hershey','S','Sport','496-98-7682','M','1980-09-26','12425 NW 45 HWY','Kansas City','MO','USA','64152','chris.hershey@gmail.com','(816) 591-2863','(816) 591-2863',1,'Carol Hershey','(816) 741-7019','','medium','N/A',''),(2,'Cycle City Racing','regular','Joe','Fox','L','Sport','490-88-8015','M','1983-07-18','8216 NW Waukomis Dr.','Kansas City','MO','USA','64151','cyclecitykc@yahoo.com','816-415-0001','816-820-0366',1,'Kathy Fox','816-820-4052','','large','Cycle City, Cannondale, Gary Fisher, Power Plant, Pizza Shoppe, Ritchey','Owner of Cycle City and purveyor of fine bikes.'),(3,'Cycle City slow crew','captain','John','Harter','E','Sport','','M','1960-04-17','1694 NE 288th Street','Turney','MO','USA','64493','john.harter@am.sony.com','816-729-2260','816-539-2350',1,'Sheri Harter','816-539-2350','','x-large','','Old, Fat and SLOW!'),(4,'Cycle City slow crew','regular','Ben','Bollin','c','Sport','','M','1970-04-05','8902 NE 109th Terr','Kansas City','MO','USA','64157','Ben_Bolin@toyota.com','816-308-7413','',1,'Stacy Bolin','816-916-7586','','large','',''),(5,'Cycle City slow crew','regular','Larry','Jones','J','Sport','','M','1956-12-11','14705 NW 45 HWY','Parkville','MO','USA','64152','ljones742@kc.rr.com','8163925922','',1,'Lucy Jones','816-880-0180','','x-large','',''),(6,'Cycle City slow crew','regular','unregistered','rider','','Sport','','M','2008-01-01','','','','USA','','','','',0,'','','','blank','',''),(7,'Connie don\'t race','captain','Connie','Hochgesang','s','Pro','111-11-1111','F','1962-05-14','HC 70 Box 558','Davis','WV','USA','26260','connie@grannygear.com','304-259-5533','',0,'connie Hochgesang','304-621-2537','','xx-large','',''),(8,'LAKtest','captain','unregistered','rider','','Sport','','M','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(9,'LAKtest','regular','unregistered','rider','','Sport','','M','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(10,'LAKtest','regular','unregistered','rider','','Sport','','M','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(11,'LAKtest','regular','unregistered','rider','','Sport','','W','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(12,'LAKtest','regular','unregistered','rider','','Sport','','F','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(13,'Mike don\'t race','captain','unregistered','rider','','Sport','','M','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(14,'Mike don\'t race','regular','unregistered','rider','','Sport','','M','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(15,'Mike don\'t race','regular','unregistered','rider','','Sport','','M','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(16,'Mike don\'t race','regular','unregistered','rider','','Sport','','W','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(17,'test2','captain','unregistered','rider','','Sport','','F','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(18,'test2','regular','unregistered','rider','','Sport','','F','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(19,'test2','regular','unregistered','rider','','Sport','','F','2009-01-01','','','','USA','','','','',0,'','','','blank','',''),(20,'test2','regular','unregistered','rider','','Sport','','F','2009-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`
--


--
-- 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 ('Cycle City Racing','Kansas City','MO','USA','DP',0,'Cycle City, Fox Holdings, Focus Printing, Dirt Rag, Cannondale, Pizza Shoppe, Power Plant Brewery, Ritchey, C3, AirQ','Giv\'er',455.50,0,'CC','cyclcity','chipotle','','','',2),('Cycle City slow crew','Kansas City','MO','USA','MS',0,'Cycle City','',523.00,0,'CC','harterj','jh041760','','','',4),('Connie don\'t race','','WV','USA','1W',0,'','',153.00,0,'CC','0-sSnlsL','smiley','Purchaser: Mike flynn - box 189  -  - Davis -  - 26260 - US - 304-259-5533 - connie@grannygear.com - 11.04.09','','',1),('LAKtest','Morgantown','WV','USA','5P',0,'blah blah blah','ditto',765.00,0,'CC','0-Vprwmc','mojo6656','Purchaser: Laird Knight - po Box 189 -  - Davis -  - 26260 - US - 13046145090 - laird@grannygear.com - 11.04.09','','',5),('Mike don\'t race','','WV','USA','MP',0,'','',938.00,0,'CC','0-scTFEA','x1xxeBft','Purchaser: Mike Flynn - box 189 -  - davis -  - 26260 - US - 304-259-5533 - connie@grannygear.com - 11.04.09','','',4),('test2','Davis','WV','USA','WP',0,'','',938.00,0,'CC','0-lvvxhZ','mojo6656','Purchaser: Laird Knight - PO Box 189 -  - Davis -  - 26260 - US - 13046145090 - laird@grannygear.com - 11.04.09','','',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`
--



