--
-- Host: localhost    Database: grannyge_ozarks2005
-- ------------------------------------------------------


--
-- Current Database: `grannyge_ozarks2005`
--

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

USE `grannyge_ozarks2005`;

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

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

INSERT INTO `rider` VALUES (30,'Testing Utility2','regular','Fake','Racer','','Sport','','M','1940-01-01','24  Fourth St','Davis','','USA','26260','zacharyhall@gmail.com','5555555555','5555555555',1,'asd','1111111111','','large','',''),(31,'Testing Utility2','regular','Testing','Waiver','','Sport','','M','1940-01-01','daalk djflsdf sdp[','fvlzsknvp;zdk','AL','USA','11111','it@grannygear.com','111/111/1111','',0,'dfbzkd aPdjfolsd','111.111.1111','','large','',''),(32,'Testing Utility2','regular','Totally Fake','Rider','','Sport','','M','1940-01-01','111dlfh;osldhgvksfbv','ALdfvol','AL','USA','11111','lscnvlcn vlzv;sdfv@aolf g.net','222.222.2222','',1,'kdlffsvn fsdvlc','222.222.2222','','large','',''),(37,'testingteam','captain','Frances','Hall','','Sport','','M','1940-01-01','24 Fourth St.','davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',1,'asdf','5555555555','','large','',''),(25,'Testing Utility','captain','Zazz','Hazz','A','Sport','','M','1940-01-01','24 Fourth St.','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',1,'ddd','5555555555','','large','',''),(26,'Testing Utility','regular','Testing','Adder','','Sport','','M','1940-01-01','24 Fourth St','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',0,'asdf','5555555555','','large','',''),(27,'Testing Utility','regular','Testing','Name','','Sport','','M','1940-01-01','24 Fourth St','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',1,'asdf','5555555555','','large','',''),(28,'Testing Utility','regular','Hizzazle','Zizzle','M','Sport','','M','1940-01-01','24 Fourth St','Davis','WV','USA','26260','thezah@gmail.com','1111111111','1111111111',1,'dsa','1111111111','','large','',''),(29,'Testing Utility2','captain','Zazzle','Hazzle','','Sport','','M','1940-01-01','PO Box 189','Davis','WV','USA','26260','zacharyhall@gmail.com','4444444444','4444444444',1,'ss','4444444444','','large','',''),(36,'testing jr','regular','unregistered','rider','','Sport','','M','2005-01-01','','','','USA','','','','',0,'','','','large','',''),(35,'testing jr','regular','unregistered','rider','','Sport','','M','2005-01-01','','','','USA','','','','',0,'','','','large','',''),(33,'testing jr','captain','Testing','Junior','','Sport','','M','1990-01-01','24 Fourth','davis','WV','USA','26260','zacharyhall@gmail.com','5555555555','5555555555',0,'asd','5555555555','','small','',''),(34,'testing jr','regular','unregistered','rider','','Sport','','M','2005-01-01','','','','USA','','','','',0,'','','','large','',''),(38,'testingteam','regular','Zack','Hall','','Sport','','M','1940-01-01','24 Fourth St.','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',1,'dddd','5555555555','','large','',''),(39,'testingteam','regular','Fname','Lname','','Sport','','M','1940-01-01','asd','asd','WV','USA','11111','it@grannygear.com','4444444444','4444444444',0,'asdf','4444444444','','large','',''),(40,'testingteam','regular','Testing','Junior','','Sport','','M','1992-08-09','24 Fourth St','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',0,'asdf','5555555555','','small','',''),(41,'Testing Utility2','regular','TestTingT','WaivWerW','','Sport','','M','1940-01-01','24 Fourth St.','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',0,'asdf','5555555555','','large','',''),(42,'Testing Utility2','regular','Frances','Hall','','Sport','','M','1940-01-01','24 Fourth  St.','Davis','WV','USA','26260','it@grannygear.com','5555555555','5555555555',1,'asdf','5555555555','','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 ('Testing Utility','Davis','WV','USA','MS',0,'','',510.00,0,'CC','nonono','ononon','','','',4),('Testing Utility2','Davis','WV','USA','JF',0,'','',510.00,1,'CC','nonono','ononon','','Replacement Song','Nope',6),('testing jr','davis','WV','USA','MJ',0,'','',510.00,0,'CC','nonono','ononon','','','',4),('testingteam','davis','WV','USA','MS',0,'','',510.00,0,'CC','0-1J6wc4','x1x5HIV8','','','',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`
--

INSERT INTO `team_number` VALUES (69,'Testing Utility'),(549,'Testing Utility2');


