--
-- Host: localhost    Database: grannyge_testinga2006
-- ------------------------------------------------------


--
-- Current Database: `grannyge_testinga2006`
--

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

USE `grannyge_testinga2006`;

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

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

INSERT INTO `rider` VALUES (15,'Testing Y\'s','regular','unregistered','rider','','Sport','','M','2006-01-01','','','','USA','','','','',0,'','','','large','',''),(16,'Testing Y\'s','regular','unregistered','rider','','Sport','','M','2006-01-01','','','','USA','','','','',0,'','','','large','',''),(14,'Testing Y\'s','regular','unregistered','rider','','Sport','','M','2006-01-01','','','','USA','','','','',0,'','','','large','',''),(13,'Testing Y\'s','captain','Testing','Y\'s','','Sport','','M','1940-01-01','24 Fourth St.','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',1,'asfd','5555555555','','large','',''),(30,'Doe, John','captain','unregistered','rider','','Sport','','M','1940-01-01','','','','USA','','','','',0,'','','','blank','',''),(31,'Doe, John','regular','unregistered','rider','','Sport','','M','2007-01-01','','','','USA','','','','',0,'','','','large','',''),(32,'Doe, John','regular','unregistered','rider','','Sport','','M','2007-01-01','','','','USA','','','','',0,'','','','large','',''),(33,'Doe, John','regular','unregistered','rider','','Sport','','M','2007-01-01','','','','USA','','','','',0,'','','','large','',''),(34,'Doe, John','regular','unregistered','rider','','Sport','','M','2007-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 ('Doe, John','Davis','WV','USA','5M',0,'ghjgj','',0.00,0,'CK','testing','uploads','','Team Song','Sensitive Artist',5);

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



