--
-- Host: localhost    Database: grannyge_bigbear2010
-- ------------------------------------------------------


--
-- Current Database: `grannyge_bigbear2010`
--

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

USE `grannyge_bigbear2010`;

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

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

INSERT INTO `rider` VALUES (8,'Michaud, Brian','captain','Brian','Michaud','S','Expert','049-80-1897','M','1977-05-19','11801 Hunters Ridge Blvd','Meadville','PA','US','16335','briansmichaud@hotmail.com','8148070958','',0,'Lori Michaud','2037408825','260866','medium','Tomac Mountain Bikes | Magura USA | Industry Nine | Schwalbe Tires | True Temper Sports | Caffélatex',''),(6,'Jason Mahokey/XXCMAG.COM','captain','Jason','Mahokey','D','Expert','211-64-9551','M','1971-07-14','1147 Fawcett Ave.','White Oak','PA','US','15131','xxcmag@gmail.com','412-896-1301','',0,'JoErin O\'Leary','412-316-5858','','x-large','XXC Magazine, Pro Bikes, Twin Six, Salsa Cycles.',''),(9,'Bill Jason','captain','Bill','Jason','','Expert','006-80-9174','M','1969-02-26','8 Rock Ridge Drive','Winslow','ME','US','04901','jasons4@roadrunner.com','207-877-8850','',0,'Kathy Jason','207-877-8850','','small','',''),(10,'Andy & Geoff','captain','andrew','applegate','','Pro','150-66-2177','M','1966-01-14','2 sunrise terrace','black mountain','NC','US','28711','andyapplegate@gmail.com','828 301-2279','',0,'cara applegate','828 301-8138','1829','medium','champion systems\r\ncannondale',''),(11,'Andy & Geoff','regular','unregistered','rider','','Sport','','M','2010-01-01','','','','USA','','','','',0,'','','','blank','',''),(12,'Sivec, James','captain','James','Sivec','M','Sport','','M','1978-11-02','244 Mill Road','Medford','NY','US','11763','sivec1234@aol.com','631 775 0186','',0,'Cristine Sivec','631 357 2660','','xx-large','Rocky Point Cycle, 661',''),(13,'Club Ride Apparel','captain','Glenn','Martin','G','Pro','228-17-4400','M','1972-01-18','PO BOX 1230','Ketchum','ID','US','83340','ketchumgreg@hotmail.com','2087203442','',0,'Rebecca Rusch','2087202676','136763','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,
  `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `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 ('Jason Mahokey/XXCMAG.COM','White Oak','WV','USA','TM',0,'XXC Magazine, Pro Bikes, Twin Six, Salsa Cycles','XXC Magazine is dedicated to the sport of endurance mountain bike racing, epic rides, and multi-day adventures in the dirt. \r\n\r\nThe plan for Big Bear \'10 is to race the 12 Hour Solo, then spend the rest of the time taking pics and covering the 24 hour race. Not to mention  hanging out with friends and drinking a beer or six.',77.00,0,'CC','2010-02-08 17:43:20','0-5z91UR','brennan1','Purchaser: Jason D. Mahokey - 1147 Fawcett Ave. -  - White Oak - PA - 15131 - US - 412-896-1301 - xxcmag@gmail.com - 02.08.10','','',1),('Michaud, Brian','Meadville','PA','USA','MC',0,'Tomac Mountain Bikes | Magura USA | Industry Nine | Schwalbe Tires | True Temper Sports | Caffélatex','',321.00,0,'CC','2010-02-08 20:17:03','0-gpZVaZ','85atc110','Purchaser: Brian S Michaud - 11801 Hunters Ridge Blvd - Apt 1 - Meadville - PA - 16335 - US - 8148070958 - briansmichaud@hotmail.com - 02.08.10','','',1),('Bill Jason','Winslow','ME','USA','M1',0,'','',296.00,0,'CC','2010-02-10 08:54:02','0-Q5OSMe','alexande','Purchaser: William F. Jason - 8 Rock Ridge Drive -  - Winslow - ME - 04901 - US - 207-877-8850 - jasons4@roadrunner.com - 02.10.10','','',1),('Andy & Geoff','asheville','NC','USA','DM',0,'champion systems\r\nsycamore cycles\r\ncannondale','',429.00,0,'CC','2010-02-12 01:00:54','0-KCDqKF','mamacita','Purchaser: andrew applegate - 2 sunrise terrace -  - black mountain - NC - 28711 - US - 828 301-2279 - andyapplegate@gmail.com - 02.11.10','','',2),('Sivec, James','Medford','NY','USA','TM',0,'Rocky Point Cycle, 661','',77.00,0,'CC','2010-02-12 01:20:04','0-MqSBDW','pumpkin','Purchaser: James M Sivec - 244 Mill Road -  - Medford - NY - 11763 - US - 631 775 0186 - sivec1234@aol.com - 02.11.10','','',1),('Club Ride Apparel','Ketchum','ID','USA','SM',0,'Club Ride Apparel, Black Cat Bicycles, American Classic, Sidi, SRAM, Ergon, WTB, Crank Bros., Skins','',133.00,0,'CC','2010-02-16 06:30:46','0-1YTnRf','xcalibur','Purchaser: Glenn Gregory Martin - PO BOX 1230 -  - Ketchum - ID - 83340 - US - 2087203442 - ketchumgreg@hotmail.com - 02.16.10','','',1);

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



