-- MySQL dump 10.13  Distrib 5.5.61, for Linux (x86_64)
--
-- Host: localhost    Database: grannyge_testing2005
-- ------------------------------------------------------
-- Server version	5.5.61-cll

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Current Database: `grannyge_testing2005`
--

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

USE `grannyge_testing2005`;

--
-- Table structure for table `rider`
--

DROP TABLE IF EXISTS `rider`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `rider` WRITE;
/*!40000 ALTER TABLE `rider` DISABLE KEYS */;
/*!40000 ALTER TABLE `rider` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `rider_rfid`
--

DROP TABLE IF EXISTS `rider_rfid`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `rider_rfid`
--

LOCK TABLES `rider_rfid` WRITE;
/*!40000 ALTER TABLE `rider_rfid` DISABLE KEYS */;
/*!40000 ALTER TABLE `rider_rfid` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `team`
--

DROP TABLE IF EXISTS `team`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `team`
--

LOCK TABLES `team` WRITE;
/*!40000 ALTER TABLE `team` DISABLE KEYS */;
/*!40000 ALTER TABLE `team` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `team_number`
--

DROP TABLE IF EXISTS `team_number`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `team_number`
--

LOCK TABLES `team_number` WRITE;
/*!40000 ALTER TABLE `team_number` DISABLE KEYS */;
/*!40000 ALTER TABLE `team_number` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-12-07 22:45:43
