-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version	5.0.24-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 */;

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


--
-- Create schema firstrails_bsp_doc
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ firstrails_bsp_doc;
USE firstrails_bsp_doc;

--
-- Table structure for table `firstrails_bsp_doc`.`dokumente`
--

DROP TABLE IF EXISTS `dokumente`;
CREATE TABLE `dokumente` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `pfad` varchar(1000) NOT NULL,
  `text` varchar(10000) NOT NULL,
  `typ` varchar(10) NOT NULL,
  `status` varchar(10) NOT NULL,
  `format` varchar(100) NOT NULL,
  `mitarbeiterID` int(11) NOT NULL,
  `abteilung` varchar(100) NOT NULL,
  `produktID` int(11) NOT NULL,
  `schlagwortID_A1` int(11) NOT NULL,
  `schlagwortTyp_A1` varchar(10) NOT NULL,
  `schlagwortID_A2` int(11) NOT NULL,
  `schlagwortTyp_A2` varchar(10) NOT NULL,
  `schlagwortID_A3` int(11) NOT NULL,
  `schlagwortTyp_A3` varchar(10) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Datei der Dokumente';

--
-- Dumping data for table `firstrails_bsp_doc`.`dokumente`
--

/*!40000 ALTER TABLE `dokumente` DISABLE KEYS */;
/*!40000 ALTER TABLE `dokumente` ENABLE KEYS */;


--
-- Table structure for table `firstrails_bsp_doc`.`kommentare`
--

DROP TABLE IF EXISTS `kommentare`;
CREATE TABLE `kommentare` (
  `id` int(11) NOT NULL auto_increment,
  `dokumentID` int(11) NOT NULL,
  `text` varchar(10000) NOT NULL,
  `mitarbeiterID` int(11) NOT NULL,
  `abteilung` varchar(100) NOT NULL,
  `produktID` int(11) NOT NULL,
  `termin` datetime NOT NULL,
  `prio` varchar(10) NOT NULL,
  `status` varchar(10) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Datei der Kommentare';

--
-- Dumping data for table `firstrails_bsp_doc`.`kommentare`
--

/*!40000 ALTER TABLE `kommentare` DISABLE KEYS */;
/*!40000 ALTER TABLE `kommentare` ENABLE KEYS */;


--
-- Table structure for table `firstrails_bsp_doc`.`links`
--

DROP TABLE IF EXISTS `links`;
CREATE TABLE `links` (
  `id` int(11) NOT NULL auto_increment,
  `baum` varchar(100) NOT NULL,
  `schlagwortID_1` int(11) NOT NULL,
  `schlagwortID_2` int(11) NOT NULL,
  `typ` varchar(10) NOT NULL,
  `position` varchar(10) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Datei der Schlagwortverknüpfungen';

--
-- Dumping data for table `firstrails_bsp_doc`.`links`
--

/*!40000 ALTER TABLE `links` DISABLE KEYS */;
/*!40000 ALTER TABLE `links` ENABLE KEYS */;


--
-- Table structure for table `firstrails_bsp_doc`.`schlagworte`
--

DROP TABLE IF EXISTS `schlagworte`;
CREATE TABLE `schlagworte` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(100) NOT NULL,
  `typ` varchar(10) NOT NULL,
  `art` varchar(10) NOT NULL,
  `extern` varchar(10) NOT NULL,
  `phon` varchar(100) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Datei der Stichworte';

--
-- Dumping data for table `firstrails_bsp_doc`.`schlagworte`
--

/*!40000 ALTER TABLE `schlagworte` DISABLE KEYS */;
/*!40000 ALTER TABLE `schlagworte` ENABLE KEYS */;

/*!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 */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
