--
-- Host: localhost    Database: grannyge_testing2004
-- ------------------------------------------------------


--
-- Current Database: `grannyge_testing2004`
--

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

USE `grannyge_testing2004`;

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

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

INSERT INTO `rider` VALUES (1,'Test Team For Chas','captain','Chas','Mick','E','Sport','123-45-6789','M','1975-01-01','Here','Roanokde','WV','USA','122345','chas.mick@cox.net','333-333-3333','333-333-3333',1,'me','333-332-3333','adding changes','x-large','my sponsors for chas','my anecdote'),(2,'Test Team For Chas','regular','Chuck','Mixalot','D','Sport','123-45-6789','M','1975-03-24','Here','There','WA','USA','22342','cha.mick@here.com','333-333-3333','333-333-3333',1,'You','333-332-3333','','small','my specific stuff','my spicecif anectdote'),(3,'Test Team For Chas','regular','Chas','Mick','E','Sport','123-45-6789','M','1975-01-01','Hi','There','VT','USA','12345','chas.mick@cox.net','333-333-3333','333-333-3333',0,'YOU','333-332-3333','','small','',''),(4,'Test Team For Chas','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(5,'Don\'s Test Team','captain','Donald','Parks','J','Sport','','M','1963-10-12','85 Kingwood St','Morgantown','WV','USA','26501','parksd@sheriancorp.com','304-598-0569 x6','304-291-6963',1,'Heather Bury','304-216-4467','','small','Sherian Corp','I\'m good at what I do... but what if I don\'t do anything? Would that make me good at nothing? Or just good for nothing?'),(6,'Don\'s Test Team','regular','Charles','Mick','E','Sport','123-45-6789','M','1975-01-01','5013 South Gala','Roanoke','ID','USA','12345','chas.mick@cox.net','333-333-3333','333-333-3333',0,'Nobody','333-333-3333','','large','Blue Ridge Parkway','Hey...Is this you John Wayne?'),(7,'Don\'s Test Team','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(8,'Don\'s Test Team','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(9,'Don\'s Test Team','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(10,'Don\'s Test Team','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(11,'Clay Babies','captain','Red','Dog','E','Sport','123-45-6789','M','1977-01-01','Here','There','VT','USA','12345','cha.mick@here.com','333-333-3333','333-333-3333',0,'tt','333-332-3333','','large','',''),(12,'Clay Babies','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(13,'Clay Babies','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(14,'Clay Babies','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(15,'Mountain High','','Just','Testing','T','Pro','123-45-6789','M','1944-01-01','Here','roanoke','WV','USA','122345','chas.mick@cox.net','333-333-3333','333-333-3333',1,'You','333-332-3333','','x-large','Me','Yuy'),(16,'Mountain High','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(17,'Mountain High','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(18,'Mountain High','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(19,'Green Hat','','Elmer','Fudd','H','Pro','123-45-6789','M','1940-01-01','Warner Road','Bonsack','WV','USA','122345','chas.mick@cox.net','333-333-3333','333-333-3333',1,'Chas','333-333-3333','','small','My spnosrs','My bio'),(20,'Green Hat','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(21,'Green Hat','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(22,'Green Hat','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(23,'White Cat','captain','Kitty','Ville','D','Sport','123-45-6789','M','1976-01-01','Here','Kittyville','WV','USA','12345','chas.mick@cox.net','333-333-3333','333-333-3333',1,'Doggy','333-333-3333','','small','tennis balls','fence walker'),(24,'White Cat','regular','Doggy','Doo','D','Sport','123-45-6789','M','1975-01-01','Here','There','VT','USA','12345','chas.mick@cox.net','333-333-3333','333-333-3333',1,'You','333-333-3333','','small','nobody','special'),(25,'White Cat','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(26,'White Cat','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(34,'White Kitties','captain','Chas','Mick','E','Sport','123-45-6789','M','1974-01-01','Nowhere','Roanoke','VT','USA','12345','chas.mick@cox.net','333-333-3333','333-333-3333',1,'Steve','333-333-3333','','large','Bob Marley','RastaMan!'),(35,'White Kitties','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(36,'White Kitties','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(37,'White Kitties','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(38,'White Kitties','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(39,'White Kitties','regular','unregistered','rider','','Sport','','M','2004-01-01','','','','USA','','','','',0,'','','','large','',''),(40,'White Kitties','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`
--

INSERT INTO `rider_rfid` VALUES (12553,5),(1971,6),(1239,2);

--
-- 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 ('Test Team For Chas','Roanokde','WV','USA','MS',0,'sponsors','anecdote',510.00,0,'CC','cmickcmi','l0ngbeac','','Blue Ridge','Oak Ridge Boys',4),('Don\'s Test Team','Morgantown','WV','USA','JF',0,'Blue Ridge IT Services','We\'re here to try and break whatever it is our sponsor creates!',760.00,0,'CC','donparks','password','','FreeStyle','Sublime',6),('Clay Babies','Here','WV','USA','MS',0,'you','me',0.00,0,'CK','cmickcmi','cmickcmi','','','',4),('Mountain High','roanoke','WV','USA','MS',1,'Hi','Wahtever',510.00,0,'CC','cmickcmi','l0ngbeac','','','',4),('Green Hat','Bonsack','WV','USA','MS',1,'Help','mE',510.00,0,'CC','cmickcmi','l0ngbeac','','','',4),('White Cat','Kittyville','WY','USA','MS',1,'Kitty','kitty with gray dots.',0.00,0,'CC','cmickcmi','l0ngbeac','','','',4),('White Kitties','Roanoke','VT','USA','JF',0,'Beer, Bob Marley','Less Red Tape, More Red Stripe',885.00,0,'CC','cmickcmi','l0ngbeac','','','',7);

--
-- 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 (111,'White Cat'),(222,'Don\'s Test Team');


