-- MySQL dump 10.11
--
-- Host: localhost    Database: testdb
-- ------------------------------------------------------
-- Server version	5.0.37-community-nt

/*!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 */;

--
-- Table structure for table `projects`
--

DROP TABLE IF EXISTS `projects`;
CREATE TABLE `projects` (
  `ProjectID` int(10) NOT NULL auto_increment,
  `Name` varchar(100) NOT NULL,
  `Description` text,
  `Lead` int(10) NOT NULL,
  `Priority` int(10) default NULL,
  `Target` varchar(50) default NULL,
  `ParentProject` int(10) default NULL,
  `URL` varchar(200) default NULL,
  `TaskIDs` varchar(50) default NULL,
  `Progress` int(10) default NULL,
  `CWS` varchar(50) default NULL,
  `Comments` text,
  `InitialEffortMin` double(10,2) default NULL,
  `DependsOn` int(10) default NULL,
  `Release` int(10) default NULL,
  `EndDate` date default NULL,
  `iTeam` varchar(100) default NULL,
  `InitialEffortMax` double(10,2) default NULL,
  `Category` int(10) NOT NULL,
  `Status` enum('green','yellow','red') default NULL,
  `Team` int(10) default NULL,
  PRIMARY KEY  (`ProjectID`),
  KEY `Priority` (`Priority`),
  KEY `Lead` (`Lead`),
  KEY `Status` (`Progress`),
  KEY `Release` (`Release`),
  CONSTRAINT `projects_ibfk_1` FOREIGN KEY (`Priority`) REFERENCES `priorities` (`PriorityID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `projects`
--

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

--
-- Table structure for table `priorities`
--

DROP TABLE IF EXISTS `priorities`;
CREATE TABLE `priorities` (
  `PriorityID` int(10) NOT NULL auto_increment,
  `Description` varchar(50) NOT NULL,
  PRIMARY KEY  (`PriorityID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `priorities`
--

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

--
-- Table structure for table `release`
--

DROP TABLE IF EXISTS `release`;
CREATE TABLE `release` (
  `ProductID` int(10) NOT NULL auto_increment,
  `Name` varchar(50) default NULL,
  PRIMARY KEY  (`ProductID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `release`
--

LOCK TABLES `release` WRITE;
/*!40000 ALTER TABLE `release` DISABLE KEYS */;
/*!40000 ALTER TABLE `release` 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 2008-12-03 11:03:28
