-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version	5.0.22-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 diaryinfonew_dbo
--

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

--
-- Table structure for table `diaryinfonew_dbo`.`dbaccount`
--

DROP TABLE IF EXISTS `dbaccount`;
CREATE TABLE `dbaccount` (
  `AccountId` decimal(18,0) NOT NULL,
  `AccountPayedTotal` decimal(7,2) default NULL,
  `AccountPointsTotal` decimal(9,0) default NULL,
  `AccountDateTime` datetime default NULL,
  `LastAccountPayedTotal` decimal(7,2) default NULL,
  `LastAccountPointsTotal` decimal(9,0) default NULL,
  `LastAccountDateTime` datetime default NULL,
  `PreLastAccountPayedTotal` decimal(7,2) default NULL,
  `PreLastAccountPointsTotal` decimal(9,0) default NULL,
  `PreLastAccountDateTime` datetime default NULL,
  `PayStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`AccountId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbaccount`
--

/*!40000 ALTER TABLE `dbaccount` DISABLE KEYS */;
INSERT INTO `dbaccount` (`AccountId`,`AccountPayedTotal`,`AccountPointsTotal`,`AccountDateTime`,`LastAccountPayedTotal`,`LastAccountPointsTotal`,`LastAccountDateTime`,`PreLastAccountPayedTotal`,`PreLastAccountPointsTotal`,`PreLastAccountDateTime`,`PayStatus`) VALUES 
 ('0','0.00','0',NULL,'0.00','0',NULL,'0.00','0',NULL,'0'),
 ('1001450','80.30','300','2004-04-03 16:00:00','80.30','80','2004-03-31 23:59:00','80.30','80','2004-02-29 23:59:00','1'),
 ('1001451','80.30','90','2004-04-03 12:46:00','80.30','80','2004-03-31 23:59:00','80.30','80','2004-02-29 23:59:00','1'),
 ('1001452','80.30','80','2004-04-30 12:46:00','80.30','80','2004-03-31 23:59:00','80.30','80','2004-02-29 23:59:00','1'),
 ('1001453','80.30','80','2004-04-30 12:46:00','80.30','80','2004-03-31 23:59:00','80.30','80','2004-02-29 23:59:00','1'),
 ('1001454','80.30','80','2004-04-30 12:46:00','80.30','80','2004-03-31 23:59:00','80.30','80','2004-02-29 23:59:00','1'),
 ('1001455','80.30','80','2004-04-30 12:46:00','80.30','80','2004-03-31 23:59:00','80.30','80','2004-02-29 23:59:00','1');
/*!40000 ALTER TABLE `dbaccount` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbaccountentry`
--

DROP TABLE IF EXISTS `dbaccountentry`;
CREATE TABLE `dbaccountentry` (
  `AccountEntryId` decimal(18,0) NOT NULL,
  `EntryId` decimal(18,0) default NULL,
  `AccountId` decimal(18,0) default NULL,
  `Points` decimal(9,0) default NULL,
  `PayedAmmount` decimal(7,2) default NULL,
  PRIMARY KEY  (`AccountEntryId`),
  KEY `DBEntry_DBAccountEntry_FK1` (`EntryId`),
  KEY `DBAccount_DBAccountEntry_FK1` (`AccountId`),
  CONSTRAINT `DBAccount_DBAccountEntry_FK1` FOREIGN KEY (`AccountId`) REFERENCES `dbaccount` (`AccountId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBEntry_DBAccountEntry_FK1` FOREIGN KEY (`EntryId`) REFERENCES `dbentry` (`EntryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbaccountentry`
--

/*!40000 ALTER TABLE `dbaccountentry` DISABLE KEYS */;
INSERT INTO `dbaccountentry` (`AccountEntryId`,`EntryId`,`AccountId`,`Points`,`PayedAmmount`) VALUES 
 ('1001901','1001601','1001450','30',NULL),
 ('1001903','1001603','1001450','30',NULL),
 ('1001904','1001604','1001451','30',NULL),
 ('1001906','1001606','1001451','30',NULL);
/*!40000 ALTER TABLE `dbaccountentry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbadditionaltelephonenumber`
--

DROP TABLE IF EXISTS `dbadditionaltelephonenumber`;
CREATE TABLE `dbadditionaltelephonenumber` (
  `AdditionalTelephoneNumberId` decimal(18,0) NOT NULL,
  `PersonId` decimal(18,0) default NULL,
  `Telephone2AreaCode` varchar(10) default NULL,
  `Telephone2Code` varchar(12) default NULL,
  `Telephone2SuitabilityType` decimal(1,0) default NULL,
  `Telephone3AreaCode` varchar(10) default NULL,
  `Telephone3Code` varchar(12) default NULL,
  `Telephone3SuitabilityType` decimal(1,0) default NULL,
  PRIMARY KEY  (`AdditionalTelephoneNumberId`),
  KEY `DBPerson_DBAdditionalTelephoneNumber_FK1` (`PersonId`),
  CONSTRAINT `DBPerson_DBAdditionalTelephoneNumber_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbadditionaltelephonenumber`
--

/*!40000 ALTER TABLE `dbadditionaltelephonenumber` DISABLE KEYS */;
INSERT INTO `dbadditionaltelephonenumber` (`AdditionalTelephoneNumberId`,`PersonId`,`Telephone2AreaCode`,`Telephone2Code`,`Telephone2SuitabilityType`,`Telephone3AreaCode`,`Telephone3Code`,`Telephone3SuitabilityType`) VALUES 
 ('0',NULL,'','','0','','','0'),
 ('1001520','1000001','0171','889564','1','0179','6335423','1'),
 ('1001521','1000002','049','54987','2','0179','6335423','1'),
 ('1001522','1000004','0173','9008778','1',NULL,NULL,'0'),
 ('1001523','1000003',NULL,NULL,'0','0611','897890','2');
/*!40000 ALTER TABLE `dbadditionaltelephonenumber` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbadvertising`
--

DROP TABLE IF EXISTS `dbadvertising`;
CREATE TABLE `dbadvertising` (
  `AdvertisingId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `Partner` varchar(20) default NULL,
  `PartnerProgram` varchar(20) default NULL,
  `Format` varchar(10) default NULL,
  `HTMLCode` longtext,
  PRIMARY KEY  (`AdvertisingId`),
  KEY `DBLanguage_DBAdvertising_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBAdvertising_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbadvertising`
--

/*!40000 ALTER TABLE `dbadvertising` DISABLE KEYS */;
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200000','1000311','affilinet','AIQUM','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3108&type=b13&bnb=13\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3108&ref=218424&b=13\" BORDER=\"0\"  alt=\"AIQUM - Das Diät - und Wellnessportal\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> '),
 ('1200001','1000311','affilinet','ino-24','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b39&bnb=39\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=39\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> '),
 ('1200002','1000311','affilinet','ino-24','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b40&bnb=40\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=40\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> '),
 ('1200003','1000311','affilinet','ino-24','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b41&bnb=41\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=41\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200004','1000311','affilinet','DocMorris','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3174&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3174&ref=218424&b=1\" BORDER=\"0\"  alt=\"DocMorris - Europas größte Versandapotheke\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> '),
 ('1200005','1000311','affilinet','Augenoptiker','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3192&type=b9&bnb=9\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3192&ref=218424&b=9\" BORDER=\"0\"  alt=\"Kontaktlinsen vom führenden Online Augenoptiker.\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> '),
 ('1200006','1000311','affilinet','NaturalWeight','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=3\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> '),
 ('1200007','1000311','affilinet','Capris','120x600',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2921&type=b15&bnb=15\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2921&ref=218424&b=15\" BORDER=\"0\"  alt=\"Bis 116 Euro pro Sale mit Capris gegen Haarausfall\" WIDTH=\"120\" HEIGHT=\"600\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200100','1000311','affilinet','AIQUM','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3108&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3108&ref=218424&b=4\" BORDER=\"0\"  alt=\"AIQUM - Das Diät - und Wellnessportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200101','1000311','affilinet','AIQUM','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3108&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3108&ref=218424&b=5\" BORDER=\"0\"  alt=\"AIQUM - Das Diät - und Wellnessportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200102','1000311','affilinet','AIQUM','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3108&type=b7&bnb=7\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3108&ref=218424&b=7\" BORDER=\"0\"  alt=\"AIQUM - Das Diät - und Wellnessportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200103','1000311','affilinet','AIQUM','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3108&type=b15&bnb=15\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3108&ref=218424&b=15\" BORDER=\"0\"  alt=\"AIQUM - Das Diät - und Wellnessportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200104','1000311','affilinet','AIQUM','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3108&type=b16&bnb=16\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3108&ref=218424&b=16\" BORDER=\"0\"  alt=\"AIQUM - Das Diät - und Wellnessportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200105','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=1\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200106','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=2\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200107','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=3\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200108','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=4\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200109','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=5\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200110','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b6&bnb=6\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=6\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200111','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b7&bnb=7\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=7\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200112','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b8&bnb=8\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=8\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200113','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b9&bnb=9\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=9\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200114','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b10&bnb=10\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=10\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200115','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b12&bnb=12\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=12\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200116','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b13&bnb=13\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=13\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200117','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b14&bnb=14\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=14\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200118','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b15&bnb=15\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=15\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200119','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b16&bnb=16\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=16\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200120','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b17&bnb=17\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=17\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200121','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b18&bnb=18\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=18\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200122','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b19&bnb=19\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=19\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200123','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b20&bnb=20\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=20\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200125','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b22&bnb=22\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=22\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200126','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b23&bnb=23\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=23\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200127','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b25&bnb=25\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=25\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200128','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b51&bnb=51\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=51\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200129','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=2\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200130','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=3\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200131','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=4\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200132','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=5\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200133','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b6&bnb=6\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=6\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200134','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b7&bnb=7\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=7\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200135','1000311','affilinet','BeitragCheck24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2886&type=b8&bnb=8\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2886&ref=218424&b=8\" BORDER=\"0\"  alt=\"BeitragsCheck24  - Vergleichen & Sparen!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200136','1000311','affilinet','Pharma Kontor','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2762&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2762&ref=218424&b=1\" BORDER=\"0\"  alt=\"Pharma Kontor - Die Discount Apotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200137','1000311','affilinet','Pharma Kontor','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2762&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2762&ref=218424&b=2\" BORDER=\"0\"  alt=\"Pharma Kontor - Die Discount Apotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200138','1000311','affilinet','Pharma Kontor','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2762&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2762&ref=218424&b=3\" BORDER=\"0\"  alt=\"Pharma Kontor - Die Discount Apotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200139','1000311','affilinet','Pharma Kontor','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2762&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2762&ref=218424&b=4\" BORDER=\"0\"  alt=\"Pharma Kontor - Die Discount Apotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200140','1000311','affilinet','Pharma Kontor','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2762&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2762&ref=218424&b=5\" BORDER=\"0\"  alt=\"Pharma Kontor - Die Discount Apotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200141','1000311','affilinet','Pharma Kontor','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2762&type=b6&bnb=6\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2762&ref=218424&b=6\" BORDER=\"0\"  alt=\"Pharma Kontor - Die Discount Apotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200142','1000311','affilinet','DocMorris','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3174&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3174&ref=218424&b=3\" BORDER=\"0\"  alt=\"DocMorris - Europas größte Versandapotheke\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200143','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=2\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200144','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=4\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200145','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=5\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200146','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b12&bnb=12\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=12\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200147','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b13&bnb=13\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=13\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200148','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b14&bnb=14\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=14\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200149','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b15&bnb=15\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=15\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200150','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b16&bnb=16\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=16\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200151','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b17&bnb=17\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=17\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200152','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b18&bnb=18\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=18\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200153','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b20&bnb=20\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=20\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200154','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b21&bnb=21\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=21\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200155','1000311','affilinet','EnergiaVital-Shop','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2201&type=b25&bnb=25\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2201&ref=218424&b=25\" BORDER=\"0\"  alt=\"EnergiaVital-Shop - Tanken Sie Lebensenergie!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200156','1000311','affilinet','Augenoptiker','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3192&type=b6&bnb=6\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3192&ref=218424&b=6\" BORDER=\"0\"  alt=\"Kontaktlinsen vom führenden Online Augenoptiker.\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200157','1000311','affilinet','Lenscare','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3257&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3257&ref=218424&b=1\" BORDER=\"0\"  alt=\"Lenscare - Europas größter Kontaktlinsen-Versand\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200158','1000311','affilinet','Lenscare','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3257&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3257&ref=218424&b=2\" BORDER=\"0\"  alt=\"Lenscare - Europas größter Kontaktlinsen-Versand\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200159','1000311','affilinet','Lenscare','468x60',' <SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\" SRC=\"http://banners.webmasterplan.com/view.asp?site=3257&ref=218424&type=html&hnb=4&js=1\"></SCRIPT> <NOSCRIPT><A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3257&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3257&ref=218424&b=1\" BORDER=\"0\"></A></NOSCRIPT> '),
 ('1200160','1000311','affilinet','BeautyGuard','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2728&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2728&ref=218424&b=1\" BORDER=\"0\"  alt=\"BeautyGuard - Anti Aging Sensation\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200161','1000311','affilinet','BeautyGuard','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2728&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2728&ref=218424&b=2\" BORDER=\"0\"  alt=\"BeautyGuard - Anti Aging Sensation\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200162','1000311','affilinet','BeautyGuard','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2728&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2728&ref=218424&b=3\" BORDER=\"0\"  alt=\"BeautyGuard - Anti Aging Sensation\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200163','1000311','affilinet','BeautyGuard','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2728&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2728&ref=218424&b=4\" BORDER=\"0\"  alt=\"BeautyGuard - Anti Aging Sensation\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200164','1000311','affilinet','BeautyGuard','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2728&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2728&ref=218424&b=5\" BORDER=\"0\"  alt=\"BeautyGuard - Anti Aging Sensation\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200165','1000311','affilinet','BeautyGuard','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2728&type=b6&bnb=6\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2728&ref=218424&b=6\" BORDER=\"0\"  alt=\"BeautyGuard - Anti Aging Sensation\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200166','1000311','affilinet','www.xx-well.com','468x60',' <SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\" SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&type=html&hnb=6&js=1\"></SCRIPT> <NOSCRIPT><A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=1\" BORDER=\"0\"></A></NOSCRIPT> '),
 ('1200167','1000311','affilinet','www.xx-well.com','468x60',' <SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\" SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&type=html&hnb=1&js=1\"></SCRIPT> <NOSCRIPT><A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=1\" BORDER=\"0\"></A></NOSCRIPT> '),
 ('1200168','1000311','affilinet','www.xx-well.com','468x60',' <SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\" SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&type=html&hnb=1&js=1\"></SCRIPT> <NOSCRIPT><A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=1\" BORDER=\"0\"></A></NOSCRIPT> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200169','1000311','affilinet','www.xx-well.com','468x60',' <SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\" SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&type=html&hnb=2&js=1\"></SCRIPT> <NOSCRIPT><A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=1\" BORDER=\"0\"></A></NOSCRIPT> '),
 ('1200170','1000311','affilinet','www.xx-well.com','468x60',' <SCRIPT LANGUAGE=\"javascript\" TYPE=\"text/javascript\" SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&type=html&hnb=2&js=1\"></SCRIPT> <NOSCRIPT><A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=1\" BORDER=\"0\"></A></NOSCRIPT> '),
 ('1200171','1000311','affilinet','www.xx-well.com','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b4&bnb=4\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=4\" BORDER=\"0\"  alt=\"www.xx-well.com - Diät, Fitness, Stop Smoking\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200172','1000311','affilinet','www.xx-well.com','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3206&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3206&ref=218424&b=5\" BORDER=\"0\"  alt=\"www.xx-well.com - Diät, Fitness, Stop Smoking\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200173','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b25&bnb=25\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=25\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200174','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b28&bnb=28\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=28\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200175','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b27&bnb=27\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=27\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200176','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b24&bnb=24\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=24\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200177','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b23&bnb=23\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=23\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200178','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b22&bnb=22\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=22\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200179','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=1\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200180','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b7&bnb=7\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=7\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200181','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b10&bnb=10\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=10\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200182','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b11&bnb=11\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=11\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200183','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b12&bnb=12\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=12\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200184','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b19&bnb=19\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=19\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200185','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b20&bnb=20\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=20\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200186','1000311','affilinet','NaturalWeight','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3329&type=b21&bnb=21\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3329&ref=218424&b=21\" BORDER=\"0\"  alt=\"Das Natural Weight Program\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200187','1000311','affilinet','Capris','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2921&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2921&ref=218424&b=1\" BORDER=\"0\"  alt=\"Bis 116 Euro pro Sale mit Capris gegen Haarausfall\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200188','1000311','affilinet','Capris','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2921&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2921&ref=218424&b=2\" BORDER=\"0\"  alt=\"Bis 116 Euro pro Sale mit Capris gegen Haarausfall\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200189','1000311','affilinet','Capris','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=2921&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=2921&ref=218424&b=3\" BORDER=\"0\"  alt=\"Bis 116 Euro pro Sale mit Capris gegen Haarausfall\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200190','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b1&bnb=1\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=1\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200191','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b2&bnb=2\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=2\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200192','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b3&bnb=3\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=3\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200193','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b5&bnb=5\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=5\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200194','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b6&bnb=6\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=6\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200195','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b7&bnb=7\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=7\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('1200196','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b8&bnb=8\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=8\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1200197','1000311','affilinet','Easy Slim','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=1762&type=b9&bnb=9\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=1762&ref=218424&b=9\" BORDER=\"0\"  alt=\"EasySlim-endlich schlank, erfolgreich und schnell!\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1210114','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b11&bnb=11\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=11\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> '),
 ('1210126','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b24&bnb=24\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=24\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
INSERT INTO `dbadvertising` (`AdvertisingId`,`LanguageId`,`Partner`,`PartnerProgram`,`Format`,`HTMLCode`) VALUES 
 ('12001124','1000311','affilinet','ino-24','468x60',' <A HREF=\"http://partners.webmasterplan.com/click.asp?ref=218424&site=3213&type=b21&bnb=21\" TARGET=\"_top\"> <IMG SRC=\"http://banners.webmasterplan.com/view.asp?site=3213&ref=218424&b=21\" BORDER=\"0\"  alt=\"ino24 - Das Versicherungs- und Finanzportal\" WIDTH=\"468\" HEIGHT=\"60\"></A><br> ');
/*!40000 ALTER TABLE `dbadvertising` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbapparrorder_dbfreeapp`
--

DROP TABLE IF EXISTS `dbapparrorder_dbfreeapp`;
CREATE TABLE `dbapparrorder_dbfreeapp` (
  `AppointmentArrangementOrderId` decimal(18,0) NOT NULL,
  `FreeAppointmentId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`FreeAppointmentId`,`AppointmentArrangementOrderId`),
  KEY `DBAppointmentArrangementOrder_DBAppArrOrder_DBFreeApp_FK1` (`AppointmentArrangementOrderId`),
  CONSTRAINT `DBAppointmentArrangementOrder_DBAppArrOrder_DBFreeApp_FK1` FOREIGN KEY (`AppointmentArrangementOrderId`) REFERENCES `dbappointmentarrangementorder` (`AppointmentArrangementOrderId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBFreeAppointment_DBAppArrOrder_DBFreeApp_FK1` FOREIGN KEY (`FreeAppointmentId`) REFERENCES `dbfreeappointment` (`FreeAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbapparrorder_dbfreeapp`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbapparrorder_dbtrouble`
--

DROP TABLE IF EXISTS `dbapparrorder_dbtrouble`;
CREATE TABLE `dbapparrorder_dbtrouble` (
  `AppointmentArrangementOrderId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`AppointmentArrangementOrderId`,`TroubleId`),
  KEY `DBTrouble_DBAppArrOrder_DBTrouble_FK1` (`TroubleId`),
  CONSTRAINT `DBAppointmentArrangementOrder_DBAppArrOrder_DBTrouble_FK1` FOREIGN KEY (`AppointmentArrangementOrderId`) REFERENCES `dbappointmentarrangementorder` (`AppointmentArrangementOrderId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBAppArrOrder_DBTrouble_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbapparrorder_dbtrouble`
--

/*!40000 ALTER TABLE `dbapparrorder_dbtrouble` DISABLE KEYS */;
INSERT INTO `dbapparrorder_dbtrouble` (`AppointmentArrangementOrderId`,`TroubleId`) VALUES 
 ('1008051','1100631'),
 ('1008052','1100633'),
 ('1008052','1100634');
/*!40000 ALTER TABLE `dbapparrorder_dbtrouble` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbapparrpathstep`
--

DROP TABLE IF EXISTS `dbapparrpathstep`;
CREATE TABLE `dbapparrpathstep` (
  `AppArrPathStepId` decimal(18,0) NOT NULL,
  `AppointmentArrangementPathId` decimal(18,0) default NULL,
  `Number` decimal(2,0) default NULL,
  `TroubleId` decimal(18,0) default NULL,
  `ShortDescription` varchar(30) default NULL,
  `TreatmentPeriodOfTime` varchar(2) default NULL,
  `TextField` varchar(200) default NULL,
  PRIMARY KEY  (`AppArrPathStepId`),
  KEY `DBTrouble_DBAppArrPathStep_FK1` (`TroubleId`),
  KEY `DBAppointmentArrangementPath_DBAppArrPathStep_FK1` (`AppointmentArrangementPathId`),
  CONSTRAINT `DBAppointmentArrangementPath_DBAppArrPathStep_FK1` FOREIGN KEY (`AppointmentArrangementPathId`) REFERENCES `dbappointmentarrangementpath` (`AppointmentArrangementPathId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBAppArrPathStep_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbapparrpathstep`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointment`
--

DROP TABLE IF EXISTS `dbappointment`;
CREATE TABLE `dbappointment` (
  `AppointmentId` decimal(18,0) NOT NULL,
  `InstitutionKindOfAppointmentId` decimal(18,0) default NULL,
  `InstitutionEmployeeId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `AppointmentCode` decimal(5,0) default NULL,
  `AppointmentDateTime` datetime default NULL,
  `ActualAppointmentDateTime` datetime default NULL,
  `PayedForStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`AppointmentId`),
  KEY `DBPerson_DBAppointment_FK1` (`PersonId`),
  KEY `DBInstitutionKindOfAppointment_DBAppointment_FK1` (`InstitutionKindOfAppointmentId`),
  KEY `DBInstitutionEmployee_DBAppointment_FK1` (`InstitutionEmployeeId`),
  CONSTRAINT `DBInstitutionEmployee_DBAppointment_FK1` FOREIGN KEY (`InstitutionEmployeeId`) REFERENCES `dbinstitutionemployee` (`InstitutionEmployeeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionKindOfAppointment_DBAppointment_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBAppointment_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointment`
--

/*!40000 ALTER TABLE `dbappointment` DISABLE KEYS */;
INSERT INTO `dbappointment` (`AppointmentId`,`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`,`PersonId`,`AppointmentCode`,`AppointmentDateTime`,`ActualAppointmentDateTime`,`PayedForStatus`) VALUES 
 ('1003100','1002234','1002254','1000001','3','2004-12-31 15:03:00','2004-12-31 15:15:00','0'),
 ('1003101','1002235','1002254','1000002','4','2004-12-31 15:20:00','2004-12-31 15:33:00','0'),
 ('1003102','1002236','1002254','1000001','5','2004-12-31 16:03:00','2004-12-31 16:23:00','0'),
 ('1003103','1002235','1002255','1000002','6','2004-12-31 16:03:00','2004-12-31 16:03:00','0'),
 ('1003104','1002231','1002251','1000003','7','2004-12-31 17:33:00','2004-12-31 17:33:00','0'),
 ('1003105','1002232','1002253','1000004','8','2004-12-31 18:05:00','2004-12-31 18:33:00','0'),
 ('1003106','1002233','1002251','1000005','9','2004-12-31 18:15:00','2004-12-31 18:33:00','0');
/*!40000 ALTER TABLE `dbappointment` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentarrangement`
--

DROP TABLE IF EXISTS `dbappointmentarrangement`;
CREATE TABLE `dbappointmentarrangement` (
  `AppointmentArrangementId` decimal(18,0) NOT NULL,
  `InstitutionKindOfAppointmentId` decimal(18,0) default NULL,
  `InstitutionEmployeeId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `AppReqOrderPackageId` decimal(18,0) default NULL,
  `AppointmentRequestOrderId` decimal(18,0) default NULL,
  `ArrangementStatus` decimal(1,0) default NULL,
  `AppointmentCode` decimal(5,0) default NULL,
  `AppointmentDateTime` datetime default NULL,
  `Duration` char(10) default NULL,
  `InformationStatus` decimal(1,0) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`AppointmentArrangementId`),
  KEY `DBPerson_DBAppointmentArrangement_FK1` (`PersonId`),
  KEY `DBInstitution_DBAppointmentArrangement_FK1` (`InstitutionId`),
  KEY `DBAppReqOrderPackage_DBAppointmentArrangement_FK1` (`AppReqOrderPackageId`),
  KEY `DBInstitutionKindOfAppointment_DBAppointmentArrangement_FK1` (`InstitutionKindOfAppointmentId`),
  KEY `DBInstitutionEmployee_DBAppointmentArrangement_FK1` (`InstitutionEmployeeId`),
  KEY `DBAppointmentRequestOrder_DBAppointmentArrangement_FK1` (`AppointmentRequestOrderId`),
  CONSTRAINT `DBAppointmentRequestOrder_DBAppointmentArrangement_FK1` FOREIGN KEY (`AppointmentRequestOrderId`) REFERENCES `dbappointmentrequestorder` (`AppointmentRequestOrderId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBAppReqOrderPackage_DBAppointmentArrangement_FK1` FOREIGN KEY (`AppReqOrderPackageId`) REFERENCES `dbappreqorderpackage` (`AppReqOrderPackageId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionEmployee_DBAppointmentArrangement_FK1` FOREIGN KEY (`InstitutionEmployeeId`) REFERENCES `dbinstitutionemployee` (`InstitutionEmployeeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionKindOfAppointment_DBAppointmentArrangement_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBAppointmentArrangement_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBAppointmentArrangement_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentarrangement`
--

/*!40000 ALTER TABLE `dbappointmentarrangement` DISABLE KEYS */;
INSERT INTO `dbappointmentarrangement` (`AppointmentArrangementId`,`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`,`PersonId`,`InstitutionId`,`AppReqOrderPackageId`,`AppointmentRequestOrderId`,`ArrangementStatus`,`AppointmentCode`,`AppointmentDateTime`,`Duration`,`InformationStatus`,`BearTheCostStatus`) VALUES 
 ('1003001','1002231','1002251','1000001','1002102',NULL,NULL,'1','5','2004-12-27 16:07:00','10','0','0'),
 ('1003002','1002232','1002252','1000002','1002102',NULL,NULL,'1','6','2004-12-28 17:08:00','10','1','0'),
 ('1003003','1002234','1002254','1000001','1002101',NULL,NULL,'1','7','2004-12-29 16:20:00','10','1','0'),
 ('1003004','1002235','1002254','1000002','1002101',NULL,NULL,'1','8','2004-12-30 15:03:00','10','1','0');
/*!40000 ALTER TABLE `dbappointmentarrangement` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentarrangementinfo`
--

DROP TABLE IF EXISTS `dbappointmentarrangementinfo`;
CREATE TABLE `dbappointmentarrangementinfo` (
  `AppointmentArrangementInfoId` decimal(18,0) NOT NULL,
  `AppointmentArrangementId` decimal(18,0) default NULL,
  `PaymentId` decimal(18,0) default NULL,
  `InfoTypeId` decimal(18,0) default NULL,
  `InfoDateTime` datetime default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`AppointmentArrangementInfoId`),
  KEY `DBPayment_DBAppointmentArrangementInfo_FK1` (`PaymentId`),
  KEY `DBInfoType_DBAppointmentArrangementInfo_FK1` (`InfoTypeId`),
  KEY `DBAppointmentArrangement_DBAppointmentArrangementInfo_FK1` (`AppointmentArrangementId`),
  CONSTRAINT `DBAppointmentArrangement_DBAppointmentArrangementInfo_FK1` FOREIGN KEY (`AppointmentArrangementId`) REFERENCES `dbappointmentarrangement` (`AppointmentArrangementId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInfoType_DBAppointmentArrangementInfo_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPayment_DBAppointmentArrangementInfo_FK1` FOREIGN KEY (`PaymentId`) REFERENCES `dbpayment` (`PaymentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentarrangementinfo`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentarrangementorder`
--

DROP TABLE IF EXISTS `dbappointmentarrangementorder`;
CREATE TABLE `dbappointmentarrangementorder` (
  `AppointmentArrangementOrderId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `TextField` varchar(200) default NULL,
  `InformationStatus` decimal(1,0) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`AppointmentArrangementOrderId`),
  KEY `DBPerson_DBAppointmentArrangementOrder_FK1` (`PersonId`),
  KEY `DBInstitution_DBAppointmentArrangementOrder_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBAppointmentArrangementOrder_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBAppointmentArrangementOrder_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentarrangementorder`
--

/*!40000 ALTER TABLE `dbappointmentarrangementorder` DISABLE KEYS */;
INSERT INTO `dbappointmentarrangementorder` (`AppointmentArrangementOrderId`,`InstitutionId`,`PersonId`,`TextField`,`InformationStatus`,`BearTheCostStatus`) VALUES 
 ('1008051','1002101','1000001','Persönliche Ergänzung','1','1'),
 ('1008052','1002101','1000002','Persönliche Ergänzung','1','1'),
 ('1008053','1002101','1000001','Persönliche Ergänzung','1','1'),
 ('1008054','1002101','1000002','Persönliche Ergänzung','1','1');
/*!40000 ALTER TABLE `dbappointmentarrangementorder` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentarrangementpath`
--

DROP TABLE IF EXISTS `dbappointmentarrangementpath`;
CREATE TABLE `dbappointmentarrangementpath` (
  `AppointmentArrangementPathId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) default NULL,
  `ShortDescription` varchar(30) default NULL,
  PRIMARY KEY  (`AppointmentArrangementPathId`),
  KEY `DBTrouble_DBAppointmentArrangementPath_FK1` (`TroubleId`),
  CONSTRAINT `DBTrouble_DBAppointmentArrangementPath_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentarrangementpath`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentinfo`
--

DROP TABLE IF EXISTS `dbappointmentinfo`;
CREATE TABLE `dbappointmentinfo` (
  `AppointmentInfoId` decimal(18,0) NOT NULL,
  `AppointmentId` decimal(18,0) default NULL,
  `InfoTypeId` decimal(18,0) default NULL,
  `PaymentId` decimal(18,0) default NULL,
  `InfoDateTime` datetime default NULL,
  `TransmitStatus` decimal(1,0) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`AppointmentInfoId`),
  KEY `DBAppointment_DBAppointmentInfo_FK1` (`AppointmentId`),
  KEY `DBInfoType_DBAppointmentInfo_FK1` (`InfoTypeId`),
  KEY `DBPayment_DBAppointmentInfo_FK1` (`PaymentId`),
  CONSTRAINT `DBAppointment_DBAppointmentInfo_FK1` FOREIGN KEY (`AppointmentId`) REFERENCES `dbappointment` (`AppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInfoType_DBAppointmentInfo_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPayment_DBAppointmentInfo_FK1` FOREIGN KEY (`PaymentId`) REFERENCES `dbpayment` (`PaymentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentinfo`
--

/*!40000 ALTER TABLE `dbappointmentinfo` DISABLE KEYS */;
INSERT INTO `dbappointmentinfo` (`AppointmentInfoId`,`AppointmentId`,`InfoTypeId`,`PaymentId`,`InfoDateTime`,`TransmitStatus`,`MediumTypeCode`) VALUES 
 ('1003201','1003101','1002801','1000603','2004-12-31 15:10:00','1','EMAIL'),
 ('1003202','1003102','1002802','1000601','2004-12-31 15:20:00','1','SMS1'),
 ('1003303','1003103','1002801','1000604','2004-12-31 15:25:00','1','FON1'),
 ('1003404','1003104','1002802','1000602','2004-12-31 15:26:00','1','FON1');
/*!40000 ALTER TABLE `dbappointmentinfo` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentremembering`
--

DROP TABLE IF EXISTS `dbappointmentremembering`;
CREATE TABLE `dbappointmentremembering` (
  `AppointmentRememberingId` decimal(18,0) NOT NULL,
  `AppointmentRememberingStatus` decimal(1,0) default NULL,
  `DaysBeforeAppointment` varchar(10) default NULL,
  `HoursBeforeAppointment` varchar(10) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`AppointmentRememberingId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentremembering`
--

/*!40000 ALTER TABLE `dbappointmentremembering` DISABLE KEYS */;
INSERT INTO `dbappointmentremembering` (`AppointmentRememberingId`,`AppointmentRememberingStatus`,`DaysBeforeAppointment`,`HoursBeforeAppointment`,`MediumTypeCode`) VALUES 
 ('1002501','1','Day0','Hour2','SMS3'),
 ('1002502','1','Day0','Hour0','FON1'),
 ('1002503','1','Day1','Hour0','FON1'),
 ('1002504','1','Day0','Hour0','FON1');
/*!40000 ALTER TABLE `dbappointmentremembering` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentrequestorder`
--

DROP TABLE IF EXISTS `dbappointmentrequestorder`;
CREATE TABLE `dbappointmentrequestorder` (
  `AppointmentRequestOrderId` decimal(18,0) NOT NULL,
  `InstitutionKindOfAppointmentId` decimal(18,0) default NULL,
  `InstitutionEmployeeId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `RequestStatus` decimal(1,0) default NULL,
  `TimeBeforeAppointment` varchar(10) default NULL,
  `StartDate` datetime default NULL,
  `RequestPeriodOfTime` varchar(10) default NULL,
  `TextField` varchar(200) default NULL,
  `InformationStatus` decimal(1,0) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  `Priority` decimal(1,0) default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`AppointmentRequestOrderId`),
  KEY `DBInstitution_DBAppointmentRequestOrder_FK1` (`InstitutionId`),
  KEY `DBPerson_DBAppointmentRequestOrder_FK1` (`PersonId`),
  KEY `DBInstitutionKindOfAppointment_DBAppointmentRequestOrder_FK1` (`InstitutionKindOfAppointmentId`),
  KEY `DBInstitutionEmployee_DBAppointmentRequestOrder_FK1` (`InstitutionEmployeeId`),
  CONSTRAINT `DBInstitutionEmployee_DBAppointmentRequestOrder_FK1` FOREIGN KEY (`InstitutionEmployeeId`) REFERENCES `dbinstitutionemployee` (`InstitutionEmployeeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionKindOfAppointment_DBAppointmentRequestOrder_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBAppointmentRequestOrder_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBAppointmentRequestOrder_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentrequestorder`
--

/*!40000 ALTER TABLE `dbappointmentrequestorder` DISABLE KEYS */;
INSERT INTO `dbappointmentrequestorder` (`AppointmentRequestOrderId`,`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`,`PersonId`,`InstitutionId`,`RequestStatus`,`TimeBeforeAppointment`,`StartDate`,`RequestPeriodOfTime`,`TextField`,`InformationStatus`,`BearTheCostStatus`,`Priority`,`CreationDateTime`) VALUES 
 ('1008071','1002231','1002251','1000001','1002101','1','20','2004-12-31 15:26:00','10','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00'),
 ('1008072','1002235','1002254','1000001','1002101','1','20','2004-12-31 15:26:00','5','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00'),
 ('1008073','1002232','1002251','1000001','1002101','1','20','2004-12-31 15:26:00','15','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00'),
 ('1008074','1002233','1002252','1000002','1002101','1','20','2004-12-31 15:26:00','20','Persönliche Ergänzung','0','0','1','2004-12-31 15:26:00'),
 ('1008075','1002236','1002254','1000002','1002101','1','20','2004-12-31 15:26:00','20','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00'),
 ('1008076','1002231','1002254','1000001','1002101','1','20','2004-12-31 15:26:00','20','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00');
INSERT INTO `dbappointmentrequestorder` (`AppointmentRequestOrderId`,`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`,`PersonId`,`InstitutionId`,`RequestStatus`,`TimeBeforeAppointment`,`StartDate`,`RequestPeriodOfTime`,`TextField`,`InformationStatus`,`BearTheCostStatus`,`Priority`,`CreationDateTime`) VALUES 
 ('1008077','1002235','1002254','1000001','1002101','1','20','2004-12-31 15:26:00','10','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00'),
 ('1008078','1002232','1002254','1000001','1002101','1','20','2004-12-31 15:26:00','20','Persönliche Ergänzung','1','0','1','2004-12-31 15:26:00'),
 ('1008079','1002233','1002254','1000002','1002101','1','20','2004-12-31 15:26:00','15','Persönliche Ergänzung','0','1','1','2004-12-31 15:26:00'),
 ('1008080','1002236','1002254','1000002','1002101','1','20','2004-12-31 15:26:00','10','Persönliche Ergänzung','1','2','1','2004-12-31 15:26:00');
/*!40000 ALTER TABLE `dbappointmentrequestorder` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappointmentshift`
--

DROP TABLE IF EXISTS `dbappointmentshift`;
CREATE TABLE `dbappointmentshift` (
  `AppointmentShiftId` decimal(18,0) NOT NULL,
  `AppointmentShiftStatus` decimal(1,0) default NULL,
  `TimeBeforeAppointment` varchar(10) default NULL,
  `ToleranceTime` varchar(10) default NULL,
  `ActualAppointmentInfoStatus` decimal(1,0) default NULL,
  `ArrangedAppointmentInfoStatus` decimal(1,0) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`AppointmentShiftId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappointmentshift`
--

/*!40000 ALTER TABLE `dbappointmentshift` DISABLE KEYS */;
INSERT INTO `dbappointmentshift` (`AppointmentShiftId`,`AppointmentShiftStatus`,`TimeBeforeAppointment`,`ToleranceTime`,`ActualAppointmentInfoStatus`,`ArrangedAppointmentInfoStatus`,`MediumTypeCode`) VALUES 
 ('1002601','1','Minute3','Minute0','1','0','SMS2'),
 ('1002602','1','Minute2','Minute0','1','1','FON1'),
 ('1002603','1','Minute0','Minute0','0','0','FON1'),
 ('1002604','1','Minute2','Minute0','0','1','FON1');
/*!40000 ALTER TABLE `dbappointmentshift` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbappreqorderpack_dbkindofapp`
--

DROP TABLE IF EXISTS `dbappreqorderpack_dbkindofapp`;
CREATE TABLE `dbappreqorderpack_dbkindofapp` (
  `AppReqOrderPackageId` decimal(18,0) NOT NULL,
  `InstitutionKindOfAppointmentId` decimal(18,0) NOT NULL,
  `RequestStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`AppReqOrderPackageId`,`InstitutionKindOfAppointmentId`),
  KEY `DBInstitutionKindOfAppointment_DBAppReqOrderPack_DBKindOfApp_FK1` (`InstitutionKindOfAppointmentId`),
  CONSTRAINT `DBAppReqOrderPackage_DBAppReqOrderPack_DBKindOfApp_FK1` FOREIGN KEY (`AppReqOrderPackageId`) REFERENCES `dbappreqorderpackage` (`AppReqOrderPackageId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionKindOfAppointment_DBAppReqOrderPack_DBKindOfApp_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappreqorderpack_dbkindofapp`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbappreqorderpackage`
--

DROP TABLE IF EXISTS `dbappreqorderpackage`;
CREATE TABLE `dbappreqorderpackage` (
  `AppReqOrderPackageId` decimal(18,0) NOT NULL,
  `AppReqOrderPackageCode` varchar(10) default NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `TroubleId` decimal(18,0) default NULL,
  `PackageStatus` decimal(1,0) default NULL,
  `StartDate` datetime default NULL,
  `RequestPeriodOfTime` varchar(20) default NULL,
  `TextField` varchar(50) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  `InformationStatus` decimal(1,0) default NULL,
  `Priority` decimal(1,0) default NULL,
  PRIMARY KEY  (`AppReqOrderPackageId`),
  KEY `DBPerson_DBAppReqOrderPackage_FK1` (`PersonId`),
  KEY `DBInstitution_DBAppReqOrderPackage_FK1` (`InstitutionId`),
  KEY `DBTrouble_DBAppReqOrderPackage_FK1` (`TroubleId`),
  CONSTRAINT `DBInstitution_DBAppReqOrderPackage_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBAppReqOrderPackage_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBAppReqOrderPackage_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappreqorderpackage`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbappreqorderpackageperiodoftime`
--

DROP TABLE IF EXISTS `dbappreqorderpackageperiodoftime`;
CREATE TABLE `dbappreqorderpackageperiodoftime` (
  `AppReqOrderPackagePeriodOfTimeId` decimal(18,0) NOT NULL,
  `AppReqOrderPackageId` decimal(18,0) default NULL,
  `DayInWeekId` varchar(1) default NULL,
  `Start` datetime default NULL,
  `End` datetime default NULL,
  PRIMARY KEY  (`AppReqOrderPackagePeriodOfTimeId`),
  KEY `DBAppReqOrderPackage_DBAppReqOrderPackagePeriodOfTime_FK1` (`AppReqOrderPackageId`),
  CONSTRAINT `DBAppReqOrderPackage_DBAppReqOrderPackagePeriodOfTime_FK1` FOREIGN KEY (`AppReqOrderPackageId`) REFERENCES `dbappreqorderpackage` (`AppReqOrderPackageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappreqorderpackageperiodoftime`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbappreqorderperiodoftime`
--

DROP TABLE IF EXISTS `dbappreqorderperiodoftime`;
CREATE TABLE `dbappreqorderperiodoftime` (
  `AppReqOrderPeriodOfTimeId` decimal(18,0) NOT NULL,
  `AppointmentRequestOrderId` decimal(18,0) default NULL,
  `DayInWeekId` varchar(1) default NULL,
  `Start` datetime default NULL,
  `End` datetime default NULL,
  PRIMARY KEY  (`AppReqOrderPeriodOfTimeId`),
  KEY `DBAppointmentRequestOrder_DBAppReqOrderPeriodOfTime_FK1` (`AppointmentRequestOrderId`),
  CONSTRAINT `DBAppointmentRequestOrder_DBAppReqOrderPeriodOfTime_FK1` FOREIGN KEY (`AppointmentRequestOrderId`) REFERENCES `dbappointmentrequestorder` (`AppointmentRequestOrderId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbappreqorderperiodoftime`
--

/*!40000 ALTER TABLE `dbappreqorderperiodoftime` DISABLE KEYS */;
INSERT INTO `dbappreqorderperiodoftime` (`AppReqOrderPeriodOfTimeId`,`AppointmentRequestOrderId`,`DayInWeekId`,`Start`,`End`) VALUES 
 ('1008081','1008071','1','2012-00-00 00:00:00','2014-00-00 00:00:00'),
 ('1008082','1008071','2','2012-00-00 00:00:00','2014-00-00 00:00:00'),
 ('1008083','1008071','3','2012-00-00 00:00:00','2014-00-00 00:00:00'),
 ('1008084','1008071','4','2012-00-00 00:00:00','2014-00-00 00:00:00');
/*!40000 ALTER TABLE `dbappreqorderperiodoftime` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbapprequestorder_dbtrouble`
--

DROP TABLE IF EXISTS `dbapprequestorder_dbtrouble`;
CREATE TABLE `dbapprequestorder_dbtrouble` (
  `AppointmentRequestOrderId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`AppointmentRequestOrderId`,`TroubleId`),
  KEY `DBTrouble_DBAppRequestOrder_DBTrouble_FK1` (`TroubleId`),
  CONSTRAINT `DBAppointmentRequestOrder_DBAppRequestOrder_DBTrouble_FK1` FOREIGN KEY (`AppointmentRequestOrderId`) REFERENCES `dbappointmentrequestorder` (`AppointmentRequestOrderId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBAppRequestOrder_DBTrouble_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbapprequestorder_dbtrouble`
--

/*!40000 ALTER TABLE `dbapprequestorder_dbtrouble` DISABLE KEYS */;
INSERT INTO `dbapprequestorder_dbtrouble` (`AppointmentRequestOrderId`,`TroubleId`) VALUES 
 ('1008071','1100635'),
 ('1008073','1100642'),
 ('1008074','1100643'),
 ('1008076','1100660'),
 ('1008078','1100664'),
 ('1008079','1100669'),
 ('1008075','1100700'),
 ('1008072','1100701'),
 ('1008077','1100720'),
 ('1008080','1100721');
/*!40000 ALTER TABLE `dbapprequestorder_dbtrouble` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbcompany`
--

DROP TABLE IF EXISTS `dbcompany`;
CREATE TABLE `dbcompany` (
  `CompanyId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `CountryId` decimal(18,0) default NULL,
  `CompanyCode` varchar(10) default NULL,
  `CompanyName` varchar(50) default NULL,
  `Share` decimal(2,0) default NULL,
  `TotalAmmountPreLastMonth` decimal(7,2) default NULL,
  `TotalAmmountLastMonth` decimal(7,2) default NULL,
  `TotalAmmountForTurnArround` decimal(7,2) default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`CompanyId`),
  KEY `DBCountry_DBCompany_FK1` (`CountryId`),
  KEY `DBLanguage_DBCompany_FK1` (`LanguageId`),
  CONSTRAINT `DBCountry_DBCompany_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBLanguage_DBCompany_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcompany`
--

/*!40000 ALTER TABLE `dbcompany` DISABLE KEYS */;
INSERT INTO `dbcompany` (`CompanyId`,`LanguageId`,`CountryId`,`CompanyCode`,`CompanyName`,`Share`,`TotalAmmountPreLastMonth`,`TotalAmmountLastMonth`,`TotalAmmountForTurnArround`,`CreationDateTime`) VALUES 
 ('1000651','1000311','1000401','MEDundORG','MED&ORG-GmbH','50','46.88','46.88','2.20',NULL),
 ('1000652','1000311','1000401','MEDISTAR','MEDISTAR Praxiscomputer GmbH','50','46.88','46.88','2.20',NULL);
/*!40000 ALTER TABLE `dbcompany` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbcompanydepartment`
--

DROP TABLE IF EXISTS `dbcompanydepartment`;
CREATE TABLE `dbcompanydepartment` (
  `CompanyDepartmentId` decimal(18,0) NOT NULL,
  `CompanyId` decimal(18,0) default NULL,
  `CompanyDepartmentCode` varchar(10) default NULL,
  `DepartmentName` varchar(30) default NULL,
  `Street` varchar(20) default NULL,
  `HouseNumber` varchar(10) default NULL,
  `ZipCode` varchar(10) default NULL,
  `Town` varchar(20) default NULL,
  `EmailAddress` varchar(50) default NULL,
  `AccountOwnerTitle` decimal(1,0) default NULL,
  `AccountOwnerName` varchar(50) default NULL,
  `BankAccount` varchar(12) default NULL,
  `BankCode` varchar(10) default NULL,
  `Share` decimal(2,0) default NULL,
  `TurnArround` decimal(7,2) default NULL,
  `TurnArroundLastMonth` decimal(7,2) default NULL,
  `TurnArroundPreLastMonth` decimal(7,2) default NULL,
  `AmmountPreLastMonth` decimal(7,2) default NULL,
  `AmmountLastMonth` decimal(7,2) default NULL,
  `AmmountForTurnArround` decimal(7,2) default NULL,
  `TransportCost` decimal(4,2) default NULL,
  `TransportCostLastMonth` decimal(4,2) default NULL,
  `TransportCostPreLastMonth` decimal(4,2) default NULL,
  `NumberOfIdentificationCodes` decimal(4,0) default NULL,
  `LowLimitOfIdentificationCodes` decimal(4,0) default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`CompanyDepartmentId`),
  KEY `DBCompany_DBCompanyDepartment_FK1` (`CompanyId`),
  CONSTRAINT `DBCompany_DBCompanyDepartment_FK1` FOREIGN KEY (`CompanyId`) REFERENCES `dbcompany` (`CompanyId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcompanydepartment`
--

/*!40000 ALTER TABLE `dbcompanydepartment` DISABLE KEYS */;
INSERT INTO `dbcompanydepartment` (`CompanyDepartmentId`,`CompanyId`,`CompanyDepartmentCode`,`DepartmentName`,`Street`,`HouseNumber`,`ZipCode`,`Town`,`EmailAddress`,`AccountOwnerTitle`,`AccountOwnerName`,`BankAccount`,`BankCode`,`Share`,`TurnArround`,`TurnArroundLastMonth`,`TurnArroundPreLastMonth`,`AmmountPreLastMonth`,`AmmountLastMonth`,`AmmountForTurnArround`,`TransportCost`,`TransportCostLastMonth`,`TransportCostPreLastMonth`,`NumberOfIdentificationCodes`,`LowLimitOfIdentificationCodes`,`CreationDateTime`) VALUES 
 ('1000730','1000651','ZT','Zentrale','Schützenwall','59','78074','Niedereschach','info@mediit.de','1','Götz Boesler','504632100','23070700','50','2.20','46.88','46.88','23.44','23.44','1.10','4.44','3.44','4.10','100','50',NULL),
 ('1000731','1000651','VN','Vertrieb Nord','Schützenwall','59','24114','Kiel','info@mediit.de','1','Goetz Boesler','8807612','23050101','50','2.20','46.88','46.88','23.44','23.44','45.10','4.44','3.44','4.10','100','50',NULL);
/*!40000 ALTER TABLE `dbcompanydepartment` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbcompanydepartmentemployee`
--

DROP TABLE IF EXISTS `dbcompanydepartmentemployee`;
CREATE TABLE `dbcompanydepartmentemployee` (
  `CompanyDepartmentEmployeeId` decimal(18,0) NOT NULL,
  `CompanyDepartmentId` decimal(18,0) default NULL,
  `EmployeeRole` varchar(10) default NULL,
  `Position` varchar(20) default NULL,
  `FirstName` varchar(20) default NULL,
  `Name` varchar(20) default NULL,
  `TelephoneAreaCode` varchar(10) default NULL,
  `TelephoneCode` varchar(12) default NULL,
  `EmailAddress` varchar(50) default NULL,
  `PresettingFilenameAndPath` varchar(50) default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`CompanyDepartmentEmployeeId`),
  KEY `DBCompanyDepartment_DBCompanyDepartmentEmployee_FK1` (`CompanyDepartmentId`),
  CONSTRAINT `DBCompanyDepartment_DBCompanyDepartmentEmployee_FK1` FOREIGN KEY (`CompanyDepartmentId`) REFERENCES `dbcompanydepartment` (`CompanyDepartmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcompanydepartmentemployee`
--

/*!40000 ALTER TABLE `dbcompanydepartmentemployee` DISABLE KEYS */;
INSERT INTO `dbcompanydepartmentemployee` (`CompanyDepartmentEmployeeId`,`CompanyDepartmentId`,`EmployeeRole`,`Position`,`FirstName`,`Name`,`TelephoneAreaCode`,`TelephoneCode`,`EmailAddress`,`PresettingFilenameAndPath`,`CreationDateTime`) VALUES 
 ('1000770','1000730','CO','Vertriebsleiter','Hans','Klütz','0431','45567','hans.kluetz@turbomed.de','c:/institutions.csv',NULL),
 ('1000771','1000731','COE','Vertriebsmitarbeiter','Klaus','Malzahn','0431','45569','klaus.malzahn@turbomed.de','c:/institutions.csv',NULL);
/*!40000 ALTER TABLE `dbcompanydepartmentemployee` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbcompanydepartmentidentificationcode`
--

DROP TABLE IF EXISTS `dbcompanydepartmentidentificationcode`;
CREATE TABLE `dbcompanydepartmentidentificationcode` (
  `CompanyDepartmentIdentificationCodeId` decimal(18,0) NOT NULL,
  `CompanyDepartmentId` decimal(18,0) default NULL,
  `InstitutionIdentificationCode` varchar(35) default NULL,
  PRIMARY KEY  (`CompanyDepartmentIdentificationCodeId`),
  KEY `DBCompanyDepartment_DBCompanyDepartmentIdentificationCode_FK1` (`CompanyDepartmentId`),
  CONSTRAINT `DBCompanyDepartment_DBCompanyDepartmentIdentificationCode_FK1` FOREIGN KEY (`CompanyDepartmentId`) REFERENCES `dbcompanydepartment` (`CompanyDepartmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcompanydepartmentidentificationcode`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbcompanydepartmenttransfer`
--

DROP TABLE IF EXISTS `dbcompanydepartmenttransfer`;
CREATE TABLE `dbcompanydepartmenttransfer` (
  `CompanyDepartmentTransferid` decimal(18,0) NOT NULL,
  `CompanyDepartmentId` decimal(18,0) default NULL,
  `TransferDateTime` datetime default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  PRIMARY KEY  (`CompanyDepartmentTransferid`),
  KEY `DBCompanyDepartment_DBCompanyDepartmentTransfer_FK1` (`CompanyDepartmentId`),
  CONSTRAINT `DBCompanyDepartment_DBCompanyDepartmentTransfer_FK1` FOREIGN KEY (`CompanyDepartmentId`) REFERENCES `dbcompanydepartment` (`CompanyDepartmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcompanydepartmenttransfer`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbcompanyturnarround`
--

DROP TABLE IF EXISTS `dbcompanyturnarround`;
CREATE TABLE `dbcompanyturnarround` (
  `CompanyTurnarroundId` decimal(18,0) NOT NULL,
  `CountryId` decimal(18,0) default NULL,
  `TurnarroundInPoints` decimal(9,0) default NULL,
  `Share` decimal(2,0) default NULL,
  PRIMARY KEY  (`CompanyTurnarroundId`),
  KEY `DBCountry_DBCompanyTurnarround_FK1` (`CountryId`),
  CONSTRAINT `DBCountry_DBCompanyTurnarround_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcompanyturnarround`
--

/*!40000 ALTER TABLE `dbcompanyturnarround` DISABLE KEYS */;
INSERT INTO `dbcompanyturnarround` (`CompanyTurnarroundId`,`CountryId`,`TurnarroundInPoints`,`Share`) VALUES 
 ('1000371','1000401','1000','5'),
 ('1000372','1000401','2000','10'),
 ('1000373','1000401','3000','15'),
 ('1000374','1000401','10000','20'),
 ('1000375','1000401','20000','25'),
 ('1000376','1000401','30000','30');
/*!40000 ALTER TABLE `dbcompanyturnarround` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbcounter`
--

DROP TABLE IF EXISTS `dbcounter`;
CREATE TABLE `dbcounter` (
  `CounterName` varchar(50) NOT NULL,
  `CounterValue` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`CounterName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcounter`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbcountry`
--

DROP TABLE IF EXISTS `dbcountry`;
CREATE TABLE `dbcountry` (
  `CountryId` decimal(18,0) NOT NULL,
  `CountryCode` varchar(10) default NULL,
  `CountryDescription` varchar(30) default NULL,
  `CurrencyCode` varchar(10) default NULL,
  `TelephoneCountryCode` varchar(10) default NULL,
  PRIMARY KEY  (`CountryId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcountry`
--

/*!40000 ALTER TABLE `dbcountry` DISABLE KEYS */;
INSERT INTO `dbcountry` (`CountryId`,`CountryCode`,`CountryDescription`,`CurrencyCode`,`TelephoneCountryCode`) VALUES 
 ('1000401','GE','Germany','Euro','0049'),
 ('1000402','CH','Switzerland','Euro','0049'),
 ('1000403','AU','Austria','Euro','0049'),
 ('1000404','EN','England','Pound','0049'),
 ('1000405','FR','FRANCE','Euro','0049'),
 ('1000406','BE','ITALY','Euro','0049'),
 ('1000407','NE','ITALY','Euro','0049'),
 ('1000408','IT','ITALY','Euro','0049'),
 ('1000409','SP','ITALY','Euro','0049'),
 ('1000410','PO','ITALY','Euro','0049'),
 ('1000411','US','ITALY','Euro','0049'),
 ('1000412','CA','CANADA_FRENCH','CA-Dollar','0049'),
 ('1000413','CF','CANADA','CA-Dollar','0049'),
 ('1000414','JA','JAPAN','US-Dollar','0049'),
 ('1000415','KO','KOREA','US-Dollar','0049'),
 ('1000416','CH','CHINA','US-Dollar','0049');
/*!40000 ALTER TABLE `dbcountry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbcustomer`
--

DROP TABLE IF EXISTS `dbcustomer`;
CREATE TABLE `dbcustomer` (
  `CustomerId` decimal(18,0) NOT NULL,
  `CountryId` decimal(18,0) default NULL,
  `PaymentId` decimal(18,0) default NULL,
  `AccountId` decimal(18,0) default NULL,
  `PasswordStatus` decimal(1,0) default NULL,
  `CustomerStatus` varchar(10) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  `LastUseDateTime` datetime default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`CustomerId`),
  KEY `DBCountry_DBCustomer_FK1` (`CountryId`),
  KEY `DBPayment_DBCustomer_FK1` (`PaymentId`),
  KEY `DBAccount_DBCustomer_FK1` (`AccountId`),
  CONSTRAINT `DBAccount_DBCustomer_FK1` FOREIGN KEY (`AccountId`) REFERENCES `dbaccount` (`AccountId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBCountry_DBCustomer_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPayment_DBCustomer_FK1` FOREIGN KEY (`PaymentId`) REFERENCES `dbpayment` (`PaymentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbcustomer`
--

/*!40000 ALTER TABLE `dbcustomer` DISABLE KEYS */;
INSERT INTO `dbcustomer` (`CustomerId`,`CountryId`,`PaymentId`,`AccountId`,`PasswordStatus`,`CustomerStatus`,`BearTheCostStatus`,`LastUseDateTime`,`CreationDateTime`) VALUES 
 ('0','1000401','1000603','0','0','AC','0',NULL,NULL),
 ('1001501','1000401','1000603','1001450','1','NC','1','2004-12-31 10:15:32','2004-12-31 12:46:00'),
 ('1001502','1000401','1000604','1001451','1','AC','1','2004-12-31 10:15:32','2004-12-31 12:46:00'),
 ('1001503','1000401','1000601','1001452','1','AC','1','2004-12-31 10:15:32','2004-12-31 12:46:00'),
 ('1001504','1000401','1000601','1001453','1','AC','1','2004-12-31 10:15:32','2004-12-31 12:46:00'),
 ('1001505','1000401','1000601','1001454','1','AC','1','2004-12-31 10:15:32','2004-12-31 12:46:00');
/*!40000 ALTER TABLE `dbcustomer` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbdeletedaccounts`
--

DROP TABLE IF EXISTS `dbdeletedaccounts`;
CREATE TABLE `dbdeletedaccounts` (
  `DeletedAcoountId` decimal(18,0) NOT NULL,
  `TelephoneNumber` char(20) default NULL,
  `Role` varchar(3) default NULL,
  `Ammount` decimal(7,2) default NULL,
  `Points` decimal(9,0) default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`DeletedAcoountId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbdeletedaccounts`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbemailpattern`
--

DROP TABLE IF EXISTS `dbemailpattern`;
CREATE TABLE `dbemailpattern` (
  `EmailPatternId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `EmailCode` varchar(10) default NULL,
  `TextModuleNumber` decimal(3,0) default NULL,
  `TexPattern` varchar(100) default NULL,
  PRIMARY KEY  (`EmailPatternId`),
  KEY `DBLanguage_DBEmailPattern_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBEmailPattern_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbemailpattern`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbentry`
--

DROP TABLE IF EXISTS `dbentry`;
CREATE TABLE `dbentry` (
  `EntryId` decimal(18,0) NOT NULL,
  `EntryTextId` decimal(18,0) default NULL,
  `DateTime` datetime default NULL,
  `TelephoneNumber` varchar(16) default NULL,
  `BirthDay` datetime default NULL,
  `InstitutionName` varchar(50) default NULL,
  `InstitutionTelephoneNumber` varchar(16) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`EntryId`),
  KEY `DBEntryText_DBEntry_FK1` (`EntryTextId`),
  CONSTRAINT `DBEntryText_DBEntry_FK1` FOREIGN KEY (`EntryTextId`) REFERENCES `dbentrytext` (`EntryTextId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbentry`
--

/*!40000 ALTER TABLE `dbentry` DISABLE KEYS */;
INSERT INTO `dbentry` (`EntryId`,`EntryTextId`,`DateTime`,`TelephoneNumber`,`BirthDay`,`InstitutionName`,`InstitutionTelephoneNumber`,`MediumTypeCode`) VALUES 
 ('1001601','1','2004-04-01 12:46:00','0451-111111','1960-02-02 00:00:00','Praxis Dr. Mayer','0451-2222221','FON1'),
 ('1001602','1','2004-04-03 15:26:00','0451-111111','1960-02-02 00:00:00','Praxis Dr. Mayer','0451-2222221','FON1'),
 ('1001603','1','2004-04-02 14:53:00','0451-111111','1960-02-02 00:00:00','Praxis Dr. Müller','0451-2222222','SMS1'),
 ('1001604','1','2004-04-01 10:13:00','0451-111111','1960-02-02 00:00:00','Praxis Dr. Müller','0451-2222222','SMS1'),
 ('1001605','1','2004-04-03 10:13:00','0451-111111','1960-02-02 00:00:00','Praxis Dr. Müller','0451-2222222','FON1'),
 ('1001606','1','2004-04-02 10:13:00','0451-111111','1960-02-02 00:00:00','Praxis Dr. Müller','0451-2222222','SMS1');
/*!40000 ALTER TABLE `dbentry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbentrypattern`
--

DROP TABLE IF EXISTS `dbentrypattern`;
CREATE TABLE `dbentrypattern` (
  `EntryPatternId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `EntryCode` decimal(2,0) default NULL,
  `TextModuleNumber` decimal(3,0) default NULL,
  `TextPattern` varchar(100) default NULL,
  PRIMARY KEY  (`EntryPatternId`),
  KEY `DBLanguage_DBEntryPattern_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBEntryPattern_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbentrypattern`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbentrytext`
--

DROP TABLE IF EXISTS `dbentrytext`;
CREATE TABLE `dbentrytext` (
  `EntryTextId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `EntryTextCode` varchar(10) default NULL,
  `Text` varchar(250) default NULL,
  `Points` decimal(9,0) default NULL,
  PRIMARY KEY  (`EntryTextId`),
  KEY `DBLanguage_DBEntryText_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBEntryText_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbentrytext`
--

/*!40000 ALTER TABLE `dbentrytext` DISABLE KEYS */;
INSERT INTO `dbentrytext` (`EntryTextId`,`LanguageId`,`EntryTextCode`,`Text`,`Points`) VALUES 
 ('1','1000311','REG','Neuanmeldung von Patient %1:%2','0'),
 ('2','1000311','CP','Abmeldung von Patient %1:%2','0'),
 ('3','1000311','NP','Neuer Patient Tel.: %1 Geb.: %2','0');
/*!40000 ALTER TABLE `dbentrytext` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbfile`
--

DROP TABLE IF EXISTS `dbfile`;
CREATE TABLE `dbfile` (
  `FileId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `FileCode` varchar(10) default NULL,
  `FileName` varchar(20) default NULL,
  PRIMARY KEY  (`FileId`),
  KEY `DBLanguage_DBFile_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBFile_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbfile`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbfilepattern`
--

DROP TABLE IF EXISTS `dbfilepattern`;
CREATE TABLE `dbfilepattern` (
  `FilePatternId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `FileCode` varchar(10) default NULL,
  `TextModuleNumber` decimal(3,0) default NULL,
  `TextPattern` varchar(100) default NULL,
  PRIMARY KEY  (`FilePatternId`),
  KEY `DBLanguage_DBFilePattern_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBFilePattern_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbfilepattern`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbfreeappointment`
--

DROP TABLE IF EXISTS `dbfreeappointment`;
CREATE TABLE `dbfreeappointment` (
  `FreeAppointmentId` decimal(18,0) NOT NULL,
  `InstitutionKindOfAppointmentId` decimal(18,0) default NULL,
  `InstitutionEmployeeId` decimal(18,0) default NULL,
  `AppointmentCode` decimal(5,0) default NULL,
  `AppointmentDateTime` datetime default NULL,
  `Duration` varchar(3) default NULL,
  `Priority` decimal(1,0) default NULL,
  PRIMARY KEY  (`FreeAppointmentId`),
  KEY `DBInstitutionKindOfAppointment_DBFreeAppointment_FK1` (`InstitutionKindOfAppointmentId`),
  KEY `DBInstitutionEmployee_DBFreeAppointment_FK1` (`InstitutionEmployeeId`),
  CONSTRAINT `DBInstitutionEmployee_DBFreeAppointment_FK1` FOREIGN KEY (`InstitutionEmployeeId`) REFERENCES `dbinstitutionemployee` (`InstitutionEmployeeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionKindOfAppointment_DBFreeAppointment_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbfreeappointment`
--

/*!40000 ALTER TABLE `dbfreeappointment` DISABLE KEYS */;
INSERT INTO `dbfreeappointment` (`FreeAppointmentId`,`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`,`AppointmentCode`,`AppointmentDateTime`,`Duration`,`Priority`) VALUES 
 ('1003001','1002234','1002254','3','2006-10-10 15:03:00','20','2'),
 ('1003002','1002235','1002254','4','2006-10-10 15:20:00','20','2'),
 ('1003003','1002236','1002254','5','2006-10-10 16:03:00','20','2'),
 ('1003004','1002235','1002255','6','2006-10-10 16:03:00','20','2'),
 ('1003005','1002231','1002251','7','2006-10-10 17:33:00','20','2'),
 ('1003006','1002232','1002253','8','2006-10-10 18:05:00','20','2'),
 ('1003007','1002233','1002251','9','2006-10-10 18:15:00','20','2'),
 ('1003008','1002231','1002251','7','2006-10-10 17:33:00','20','2'),
 ('1003009','1002232','1002252','8','2006-10-10 18:05:00','20','2'),
 ('1003010','1002233','1002251','9','2006-10-10 18:15:00','20','2');
/*!40000 ALTER TABLE `dbfreeappointment` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinfochannel`
--

DROP TABLE IF EXISTS `dbinfochannel`;
CREATE TABLE `dbinfochannel` (
  `InfoChannelId` decimal(18,0) NOT NULL,
  `PersonInfoDataId` char(10) default NULL,
  `PaymentId` decimal(18,0) default NULL,
  `AppointmentRememberingId` decimal(18,0) default NULL,
  `AppointmentShiftId` decimal(18,0) default NULL,
  PRIMARY KEY  (`InfoChannelId`),
  KEY `DBPayment_DBInfoChannel_FK1` (`PaymentId`),
  KEY `DBAppointmentShift_DBInfoChannel_FK1` (`AppointmentShiftId`),
  KEY `DBAppointmentRemembering_DBInfoChannel_FK1` (`AppointmentRememberingId`),
  KEY `DBPersonInfoData_DBInfoChannel_FK1` (`PersonInfoDataId`),
  CONSTRAINT `DBAppointmentRemembering_DBInfoChannel_FK1` FOREIGN KEY (`AppointmentRememberingId`) REFERENCES `dbappointmentremembering` (`AppointmentRememberingId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBAppointmentShift_DBInfoChannel_FK1` FOREIGN KEY (`AppointmentShiftId`) REFERENCES `dbappointmentshift` (`AppointmentShiftId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPayment_DBInfoChannel_FK1` FOREIGN KEY (`PaymentId`) REFERENCES `dbpayment` (`PaymentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPersonInfoData_DBInfoChannel_FK1` FOREIGN KEY (`PersonInfoDataId`) REFERENCES `dbpersoninfodata` (`PersonInfoDataId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinfochannel`
--

/*!40000 ALTER TABLE `dbinfochannel` DISABLE KEYS */;
INSERT INTO `dbinfochannel` (`InfoChannelId`,`PersonInfoDataId`,`PaymentId`,`AppointmentRememberingId`,`AppointmentShiftId`) VALUES 
 ('1002701','1001000','1000603','1002501','1002601'),
 ('1002702','1001002','1000601','1002502','1002602'),
 ('1002703','1001003','1000604','1002503','1002603'),
 ('1002704','1001004','1000602','1002504','1002604');
/*!40000 ALTER TABLE `dbinfochannel` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinfotext`
--

DROP TABLE IF EXISTS `dbinfotext`;
CREATE TABLE `dbinfotext` (
  `InfoTextId` decimal(18,0) NOT NULL,
  `InfoTypeId` decimal(18,0) default NULL,
  `LanguageId` decimal(18,0) default NULL,
  `ShortDescription` varchar(80) default NULL,
  `InformationDescription` varchar(255) default NULL,
  `SmsInfoDescription` varchar(160) default NULL,
  PRIMARY KEY  (`InfoTextId`),
  UNIQUE KEY `InfoTypeLanguageId` (`InfoTypeId`,`LanguageId`),
  KEY `DBLanguage_DBInfoText_FK1` (`LanguageId`),
  CONSTRAINT `DBInfoType_DBInfoText_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBLanguage_DBInfoText_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinfotext`
--

/*!40000 ALTER TABLE `dbinfotext` DISABLE KEYS */;
INSERT INTO `dbinfotext` (`InfoTextId`,`InfoTypeId`,`LanguageId`,`ShortDescription`,`InformationDescription`,`SmsInfoDescription`) VALUES 
 ('1009999','1002797','1000311','Freischaltung Ihrer Email-Adresse für termininfo','','Ihre Email-Adresse wurde von Ihnen erfolgreich bestätigt. Sie können nun auch per Email informiert werden.'),
 ('1010000','1002798','1000311','Passwort','Ihre Zugangsdaten für termininfo lauten: Benutzername {%ST-USRN%} und Passwort {%ST-PWD%}. Ich wiederhole Benutzername {%ST-USRN%} und Passwort {%ST-PWD%}','Benutzername: {%ST-USRN%}, Passwort: {%ST-PWD%}'),
 ('1010001','1002799','1000311','Email-Adresse für termininfo bestätigen','','Bitte betätigen Sie den folgenden Link: <br><br><a href=\"http://localhost:8080/diaryinfo/signon.jspa?id={%ST-PID%}\">www.termininfo.de</a>.'),
 ('1010002','1002800','1000311','Aktueller Termin','Info für am {%ST-PBDATE%} geborenen Patienten. Kommen Sie bitte am {%ST-ACTDATETIME%} in {%ST-INAME%}.','Info für am {%ST-PBDATE%} geborenen Patienten. Kommen Sie bitte am {%ST-ACTDATE%} in {%ST-INAME%}'),
 ('1010003','1002801','1000311','Terminerinnerung','Info für am {%ST-PBDATE%} geborenen Patienten. Sie haben einen Termin am {%ST-ADATETIME%} in {%ST-INAME%}','Info für am {%ST-PBDATE%} geborenen Patienten: Sie haben einen Termin am {%ST-ADATETIME%} in {%ST-INAME%}');
INSERT INTO `dbinfotext` (`InfoTextId`,`InfoTypeId`,`LanguageId`,`ShortDescription`,`InformationDescription`,`SmsInfoDescription`) VALUES 
 ('1010004','1002802','1000311','Terminverschiebung','Ihr vereinbarter Termin am {%ST-ADATETIME%} in {%ST-INAME%} verschiebt sich auf den {%ST-ACTDATETIME%}. Bitte seien Sie pünktlich.','Verschiebung des Termins am {%ST-ADATETIME%}: Aktueller Termin am {%ST-ACTDATETIME%} in {%ST-INAME%}'),
 ('1010005','1002803','1000311','Notfall','Wir haben einen Notfall. Ihren vereinbarten Termin in {%ST-INAME%} am {%ST-ADATETIME%} müssen wir leider absagen','Notfall: Termin am {%ST-ADATETIME%} in {%ST-INAME%} findet nicht statt.'),
 ('1010006','1002804','1000311','Krankheit','Leider müssen wir Ihren vereinbarten Termin in {%ST-INAME%} am {%ST-ADATETIME%} wegen Krankheit absagen','Krankheit: Termin am {%ST-ADATETIME%} in {%ST-INAME%} findet nicht statt.'),
 ('1010007','1002805','1000311','Geburtstag','Wir gratulieren Ihnen recht herzlich zu Ihrem Geburtstag','Herzlichen Glückwunsch zu Ihrem Geburtstag'),
 ('1010008','1002806','1000311','Gesundheits-Check','Kommen Sie bitte am {%ST-ADATETIME%} in {%ST-INAME%} zu Ihrem Gesundheitscheck','Gesundheitscheck: Kommen Sie am {%ST-ADATETIME%} zum Gesundheits-Check in {%ST-INAME%}.');
INSERT INTO `dbinfotext` (`InfoTextId`,`InfoTypeId`,`LanguageId`,`ShortDescription`,`InformationDescription`,`SmsInfoDescription`) VALUES 
 ('1010009','1002807','1000311','MED&ORG Info 1','MED&ORG Info 1','MED&ORG SMS Info 1'),
 ('1010020','1002900','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010021','1002901','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010022','1002902','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010023','1002903','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010024','1002904','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010025','1002905','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010026','1002906','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010027','1002907','1000311','InstTypeInfo 1','InstTypeInfo 1','InstTypeInfo 1'),
 ('1010050','1002950','1000311','MED&ORG InstTypeInfo 1','MED&ORG InstTypeInfo 1','MED&ORG SMS InstTypeInfo 1'),
 ('1010051','1002951','1000311','MED&ORG InstTypeInfo 2','MED&ORG InstTypeInfo 2','MED&ORG SMS InstTypeInfo 2');
INSERT INTO `dbinfotext` (`InfoTextId`,`InfoTypeId`,`LanguageId`,`ShortDescription`,`InformationDescription`,`SmsInfoDescription`) VALUES 
 ('1010052','1002952','1000311','MED&ORG InstTypeInfo 3','MED&ORG InstTypeInfo 3','MED&ORG SMS InstTypeInfo 3'),
 ('1020001','1010001','1000311','Untersuchung','Kommen Sie bitte zur Untersuchung am {%ST-ADATETIME%}','Ihr Untersuchungstermin ist am {%ST-ADATETIME%}'),
 ('1020002','1010002','1000311','Dr. Mayer ist krank','Herr Dr. Mayer ist krank. Wir müssen deshalb leider Ihren Termin absagen. Vereinbaren Sie bitte einen neuen Termin.','Dr. Mayer ist krank. Vereinbaren Sie bitte einen neuen Termin.'),
 ('1020003','1010003','1000311','Praxis geschlossen','Guten Tag. Die Praxis Dr. Mayer ist am {%ST-ICDB%} geschlossen.','Die Praxis Dr. Mayer ist am {%ST-ICDB%} geschlossen.'),
 ('1020004','1010004','1000311','Notfall','Guten Tag. Herr Dr. Müller hat einen Notfall. Wir müssen deshalb leider Ihren Termin verschieben. Vereinbaren Sie bei uns bitte einen neuen Termin.','Dr. Müller hat einen Notfall. Vereinbaren Sie bitte einen neuen Termin.'),
 ('1020005','1010005','1000311','Gesundheitscheck','Kommen Sie bitte am {%ST-ADATETIME%} in {%ST-INAME%} zu Ihrem Gesundheitscheck','Gesundheitscheck: Kommen Sie zum Gesundheits-Check in {%ST-INAME%} am {%ST-ADATETIME%}.');
INSERT INTO `dbinfotext` (`InfoTextId`,`InfoTypeId`,`LanguageId`,`ShortDescription`,`InformationDescription`,`SmsInfoDescription`) VALUES 
 ('1020006','1010006','1000311','Impftermin','Kommen Sie bitte zu Ihrem vierteljährlichen Impftermin am {%ST-ADATETIME%}.','Ihr vierteljährlicher Impftermin ist am {%ST-ADATETIME%}.');
/*!40000 ALTER TABLE `dbinfotext` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinfotype`
--

DROP TABLE IF EXISTS `dbinfotype`;
CREATE TABLE `dbinfotype` (
  `InfoTypeId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `KindOfInformationTypeStatus` decimal(1,0) default NULL,
  `InfoTypeCode` varchar(20) default NULL,
  `InfoTypeDescription` varchar(80) default NULL,
  `PeriodForTelephoneCall` decimal(3,0) default NULL,
  `TimeForConnectionTrials` decimal(4,0) default NULL,
  PRIMARY KEY  (`InfoTypeId`),
  KEY `DBInstitution_DBInfoType_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInfoType_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinfotype`
--

/*!40000 ALTER TABLE `dbinfotype` DISABLE KEYS */;
INSERT INTO `dbinfotype` (`InfoTypeId`,`InstitutionId`,`KindOfInformationTypeStatus`,`InfoTypeCode`,`InfoTypeDescription`,`PeriodForTelephoneCall`,`TimeForConnectionTrials`) VALUES 
 ('1002797',NULL,'0','Email-C-Answer','email address confirmation answer mail','5','60'),
 ('1002798',NULL,'0','Password','password info','5','60'),
 ('1002799',NULL,'0','Email-Confirm','email address confirmation mail','5','60'),
 ('1002800',NULL,'0','Actual-App','actual appointment info','5','60'),
 ('1002801',NULL,'0','App-Remembering','appointment remembering','5','60'),
 ('1002802',NULL,'0','App-Shift','appointment shift','5','60'),
 ('1002803',NULL,'1','Info3','emergency. appointment has to be canceld','5','60'),
 ('1002804',NULL,'1','Info4','doctor is sick. appointment has to be canceld','5','60'),
 ('1002805',NULL,'1','Info5','congratulations to your birth day','5','60'),
 ('1002806',NULL,'1','Info6','come to your monthly health-check','5','60'),
 ('1002807',NULL,'2','MEDORGInfo1','special MEDORG infotype','5','60'),
 ('1002900',NULL,'3','InstTypeInfo1','insttype infotype','5','60');
INSERT INTO `dbinfotype` (`InfoTypeId`,`InstitutionId`,`KindOfInformationTypeStatus`,`InfoTypeCode`,`InfoTypeDescription`,`PeriodForTelephoneCall`,`TimeForConnectionTrials`) VALUES 
 ('1002901',NULL,'3','InstTypeInfo2','insttype infotype','5','60'),
 ('1002902',NULL,'3','InstTypeInfo3','insttype infotype','5','60'),
 ('1002903',NULL,'3','InstTypeInfo4','insttype infotype','5','60'),
 ('1002904',NULL,'3','InstTypeInfo5','insttype infotype','5','60'),
 ('1002905',NULL,'3','InstTypeInfo6','insttype infotype','5','60'),
 ('1002906',NULL,'3','InstTypeInfo7','insttype infotype','5','60'),
 ('1002907',NULL,'3','InstTypeInfo8','insttype infotype','5','60'),
 ('1002950',NULL,'4','MEDORG InstTypeInfo1','insttype infotype','5','60'),
 ('1002951',NULL,'4','MEDORG InstTypeInfo2','insttype infotype','5','60'),
 ('1002952',NULL,'4','MEDORG InstTypeInfo3','insttype infotype','5','60'),
 ('1010001','1002101','6','FT01','','5','60'),
 ('1010002','1002101','5','InfoIn1','','5','60'),
 ('1010003','1002102','5','InfoIn2','','5','60'),
 ('1010004','1002101','5','InfoIn1','','5','60');
INSERT INTO `dbinfotype` (`InfoTypeId`,`InstitutionId`,`KindOfInformationTypeStatus`,`InfoTypeCode`,`InfoTypeDescription`,`PeriodForTelephoneCall`,`TimeForConnectionTrials`) VALUES 
 ('1010005','1002102','5','InfoIn2','','5','60'),
 ('1010006','1002101','5','Impftermin','','5','60');
/*!40000 ALTER TABLE `dbinfotype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinfotype_dbparameter`
--

DROP TABLE IF EXISTS `dbinfotype_dbparameter`;
CREATE TABLE `dbinfotype_dbparameter` (
  `InfoTypeId` decimal(18,0) NOT NULL,
  `ParameterId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`InfoTypeId`,`ParameterId`),
  KEY `DBParameter_DBInfoType_DBParameter_FK1` (`ParameterId`),
  CONSTRAINT `DBInfoType_DBInfoType_DBParameter_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBParameter_DBInfoType_DBParameter_FK1` FOREIGN KEY (`ParameterId`) REFERENCES `dbparameter` (`ParameterId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinfotype_dbparameter`
--

/*!40000 ALTER TABLE `dbinfotype_dbparameter` DISABLE KEYS */;
INSERT INTO `dbinfotype_dbparameter` (`InfoTypeId`,`ParameterId`) VALUES 
 ('1002807','0'),
 ('1002900','0'),
 ('1002901','0'),
 ('1002902','0'),
 ('1002903','0'),
 ('1002904','0'),
 ('1002905','0'),
 ('1002906','0'),
 ('1002907','0'),
 ('1002950','0'),
 ('1002951','0'),
 ('1002952','0'),
 ('1010002','0'),
 ('1010004','0'),
 ('1010006','0'),
 ('1002801','1008150'),
 ('1002802','1008150'),
 ('1002803','1008150'),
 ('1002804','1008150'),
 ('1002806','1008150'),
 ('1010001','1008150'),
 ('1010005','1008150'),
 ('1002805','1008151'),
 ('1002801','1008153'),
 ('1002802','1008153'),
 ('1002803','1008153'),
 ('1002804','1008153'),
 ('1002806','1008153'),
 ('1010003','1008155');
/*!40000 ALTER TABLE `dbinfotype_dbparameter` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitution`
--

DROP TABLE IF EXISTS `dbinstitution`;
CREATE TABLE `dbinstitution` (
  `InstitutionId` decimal(18,0) NOT NULL,
  `CompanyDepartmentId` decimal(18,0) default NULL,
  `SoftwareTypeId` decimal(18,0) default NULL,
  `CountryId` decimal(18,0) default NULL,
  `LanguageId` decimal(18,0) default NULL,
  `ZipCodeAreaId` decimal(18,0) default NULL,
  `PaymentId` decimal(18,0) default NULL,
  `InstitutionAccountId` decimal(18,0) default NULL,
  `[REDACTED]` varchar(20) default NULL,
  `InstitutionActivityStatus` decimal(1,0) default NULL,
  `InstitutionIdentificationCode` varchar(35) default NULL,
  `TelephoneAreaCode` varchar(10) default NULL,
  `TelephoneCode` varchar(12) default NULL,
  `InternetAddress` varchar(20) default NULL,
  `EmailAddress` varchar(50) default NULL,
  `InstitutionName` varchar(50) default NULL,
  `WAPShortNameTelephone` varchar(16) default NULL,
  `Street` varchar(50) default NULL,
  `HouseNumber` varchar(3) default NULL,
  `ZipCode` varchar(10) default NULL,
  `Town` varchar(35) default NULL,
  `LastTimeOnline` datetime default NULL,
  `FreeAppointmentsAvailableStatus` decimal(1,0) default NULL,
  `PollingStatus` decimal(1,0) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  `AppointmentInquiryStatus` decimal(1,0) default NULL,
  `SchemaVersionNumber` varchar(10) default NULL,
  `DeleteActionDateTime` datetime default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`InstitutionId`),
  KEY `DBCountry_DBInstitution_FK1` (`CountryId`),
  KEY `DBLanguage_DBInstitution_FK1` (`LanguageId`),
  KEY `DBZipCodeArea_DBInstitution_FK1` (`ZipCodeAreaId`),
  KEY `DBSoftwareType_DBInstitution_FK1` (`SoftwareTypeId`),
  KEY `DBPayment_DBInstitution_FK1` (`PaymentId`),
  KEY `DBInstitutionAccount_DBInstitution_FK1` (`InstitutionAccountId`),
  KEY `DBCompanyDepartment_DBInstitution_FK1` (`CompanyDepartmentId`),
  CONSTRAINT `DBCompanyDepartment_DBInstitution_FK1` FOREIGN KEY (`CompanyDepartmentId`) REFERENCES `dbcompanydepartment` (`CompanyDepartmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBCountry_DBInstitution_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionAccount_DBInstitution_FK1` FOREIGN KEY (`InstitutionAccountId`) REFERENCES `dbinstitutionaccount` (`InstitutionAccountId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBLanguage_DBInstitution_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPayment_DBInstitution_FK1` FOREIGN KEY (`PaymentId`) REFERENCES `dbpayment` (`PaymentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBSoftwareType_DBInstitution_FK1` FOREIGN KEY (`SoftwareTypeId`) REFERENCES `dbsoftwaretype` (`SoftwareTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBZipCodeArea_DBInstitution_FK1` FOREIGN KEY (`ZipCodeAreaId`) REFERENCES `dbzipcodearea` (`ZipCodeAreaId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitution`
--

/*!40000 ALTER TABLE `dbinstitution` DISABLE KEYS */;
INSERT INTO `dbinstitution` (`InstitutionId`,`CompanyDepartmentId`,`SoftwareTypeId`,`CountryId`,`LanguageId`,`ZipCodeAreaId`,`PaymentId`,`InstitutionAccountId`,`D2DInstitutionId`,`InstitutionActivityStatus`,`InstitutionIdentificationCode`,`TelephoneAreaCode`,`TelephoneCode`,`InternetAddress`,`EmailAddress`,`InstitutionName`,`WAPShortNameTelephone`,`Street`,`HouseNumber`,`ZipCode`,`Town`,`LastTimeOnline`,`FreeAppointmentsAvailableStatus`,`PollingStatus`,`BearTheCostStatus`,`AppointmentInquiryStatus`,`SchemaVersionNumber`,`DeleteActionDateTime`,`CreationDateTime`) VALUES 
 ('0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2','0','0','0','1.0',NULL,NULL),
 ('5','1000730','1000701','1000401','1000311','1000524','1000610','1002131','2','1','ID0815','0451','2222221','www.mediit.de','rechnung@mediit.de','Praxis Dr. Mayer','Dr. Mayer','Lerchenstrasse','5','23552','Lübeck','2004-12-31 10:15:32','2','1','0','1','1.0','2004-12-31 12:00:00','2004-12-31 12:46:00'),
 ('1002101','1000730','1000701','1000401','1000311','1000524','1000610','1002131','2','1','ID0815','0451','2222221','www.mediit.de','rechnung@mediit.de','Praxis Dr. Mayer','Dr. Mayer','Lerchenstrasse','5','23552','Lübeck','2004-12-31 10:15:32','2','1','0','1','1.0','2004-12-31 12:00:00','2004-12-31 12:46:00');
INSERT INTO `dbinstitution` (`InstitutionId`,`CompanyDepartmentId`,`SoftwareTypeId`,`CountryId`,`LanguageId`,`ZipCodeAreaId`,`PaymentId`,`InstitutionAccountId`,`D2DInstitutionId`,`InstitutionActivityStatus`,`InstitutionIdentificationCode`,`TelephoneAreaCode`,`TelephoneCode`,`InternetAddress`,`EmailAddress`,`InstitutionName`,`WAPShortNameTelephone`,`Street`,`HouseNumber`,`ZipCode`,`Town`,`LastTimeOnline`,`FreeAppointmentsAvailableStatus`,`PollingStatus`,`BearTheCostStatus`,`AppointmentInquiryStatus`,`SchemaVersionNumber`,`DeleteActionDateTime`,`CreationDateTime`) VALUES 
 ('1002102','1000731','1000702','1000401','1000311','1000524','1000609','1002132','2','1','ID4711','0451','2222222','www.mediit.de','info@mediit.de','Praxis Dr. Müller','Dr. Müller','Sternstrasse','23','23564','Lübeck','2004-12-31 10:15:32','2','1','0','1','1.0','2004-12-31 08:00:00','2004-12-31 12:46:00');
/*!40000 ALTER TABLE `dbinstitution` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitution_dbapparrpath`
--

DROP TABLE IF EXISTS `dbinstitution_dbapparrpath`;
CREATE TABLE `dbinstitution_dbapparrpath` (
  `InstitutionId` decimal(18,0) NOT NULL,
  `AppointmentArrangementPathId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`InstitutionId`,`AppointmentArrangementPathId`),
  KEY `DBAppointmentArrangementPath_DBInstitution_DBAppArrPath_FK1` (`AppointmentArrangementPathId`),
  CONSTRAINT `DBAppointmentArrangementPath_DBInstitution_DBAppArrPath_FK1` FOREIGN KEY (`AppointmentArrangementPathId`) REFERENCES `dbappointmentarrangementpath` (`AppointmentArrangementPathId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBInstitution_DBAppArrPath_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitution_dbapparrpath`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitution_dbinstitutiontype`
--

DROP TABLE IF EXISTS `dbinstitution_dbinstitutiontype`;
CREATE TABLE `dbinstitution_dbinstitutiontype` (
  `InstitutionId` decimal(18,0) NOT NULL,
  `InstitutionTypeId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`InstitutionTypeId`,`InstitutionId`),
  KEY `DBInstitution_DBInstitution_DBInstitutionType_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitutionType_DBInstitution_DBInstitutionType_FK1` FOREIGN KEY (`InstitutionTypeId`) REFERENCES `dbinstitutiontype` (`InstitutionTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBInstitution_DBInstitutionType_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitution_dbinstitutiontype`
--

/*!40000 ALTER TABLE `dbinstitution_dbinstitutiontype` DISABLE KEYS */;
INSERT INTO `dbinstitution_dbinstitutiontype` (`InstitutionId`,`InstitutionTypeId`) VALUES 
 ('1002101','1000901'),
 ('1002101','1000903'),
 ('1002101','1000928'),
 ('1002102','1000930'),
 ('1002102','1000931'),
 ('1002102','1000932'),
 ('1002102','1000933');
/*!40000 ALTER TABLE `dbinstitution_dbinstitutiontype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionaccount`
--

DROP TABLE IF EXISTS `dbinstitutionaccount`;
CREATE TABLE `dbinstitutionaccount` (
  `InstitutionAccountId` decimal(18,0) NOT NULL,
  `AccountOwnerTitle` decimal(1,0) default NULL,
  `AccountOwnerName` varchar(50) default NULL,
  `EmailAddress` varchar(50) default NULL,
  `BankCode` varchar(12) default NULL,
  `BankAccount` varchar(12) default NULL,
  `AccountPayedTotal` decimal(7,2) default NULL,
  `AccountPointsTotal` decimal(9,0) default NULL,
  `AccountDateTime` datetime default NULL,
  `LastAccountPayedTotal` decimal(7,2) default NULL,
  `LastAccountPointsTotal` decimal(9,0) default NULL,
  `LastAccountDateTime` datetime default NULL,
  `PreLastAccountPayedTotal` decimal(7,2) default NULL,
  `PreLastAccountPointsTotal` decimal(9,0) default NULL,
  `PreLastAccountDateTime` datetime default NULL,
  `KindOfSendingBill` decimal(1,0) default NULL,
  `DebitStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`InstitutionAccountId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionaccount`
--

/*!40000 ALTER TABLE `dbinstitutionaccount` DISABLE KEYS */;
INSERT INTO `dbinstitutionaccount` (`InstitutionAccountId`,`AccountOwnerTitle`,`AccountOwnerName`,`EmailAddress`,`BankCode`,`BankAccount`,`AccountPayedTotal`,`AccountPointsTotal`,`AccountDateTime`,`LastAccountPayedTotal`,`LastAccountPointsTotal`,`LastAccountDateTime`,`PreLastAccountPayedTotal`,`PreLastAccountPointsTotal`,`PreLastAccountDateTime`,`KindOfSendingBill`,`DebitStatus`) VALUES 
 ('0','0',NULL,NULL,NULL,NULL,'0.00','0',NULL,'0.00','0',NULL,'0.00','0',NULL,'1','0'),
 ('1002131','1','Götz Boesler','goetz.boesler@mediit.de','23070700','504632100','1.10','-110','2004-04-03 12:35:32','30.00','-3750','2004-03-31 00:00:15','30.00','-3750','2004-02-29 00:00:15','1','0'),
 ('1002132','1','Götz Boesler','goetz.boesler@mediit.de','23050101','8807612','1.10','-110','2004-04-03 15:15:32','16.88','-1875','2004-03-31 00:00:15','16.88','-1875','2004-02-29 00:00:15','1','0');
/*!40000 ALTER TABLE `dbinstitutionaccount` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionaccountentry`
--

DROP TABLE IF EXISTS `dbinstitutionaccountentry`;
CREATE TABLE `dbinstitutionaccountentry` (
  `InstitutionAccountEntryId` decimal(18,0) NOT NULL,
  `InstitutionAccountId` decimal(18,0) default NULL,
  `InstitutionEntryId` decimal(18,0) default NULL,
  `Points` decimal(9,0) default NULL,
  `PayedAmmount` decimal(7,2) default NULL,
  PRIMARY KEY  (`InstitutionAccountEntryId`),
  KEY `DBInstitutionEntry_DBInstitutionAccountEntry_FK1` (`InstitutionEntryId`),
  KEY `DBInstitutionAccount_DBInstitutionAccountEntry_FK1` (`InstitutionAccountId`),
  CONSTRAINT `DBInstitutionAccount_DBInstitutionAccountEntry_FK1` FOREIGN KEY (`InstitutionAccountId`) REFERENCES `dbinstitutionaccount` (`InstitutionAccountId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionEntry_DBInstitutionAccountEntry_FK1` FOREIGN KEY (`InstitutionEntryId`) REFERENCES `dbinstitutionentry` (`InstitutionEntryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionaccountentry`
--

/*!40000 ALTER TABLE `dbinstitutionaccountentry` DISABLE KEYS */;
INSERT INTO `dbinstitutionaccountentry` (`InstitutionAccountEntryId`,`InstitutionAccountId`,`InstitutionEntryId`,`Points`,`PayedAmmount`) VALUES 
 ('1002401','1002131','1002301','30',NULL),
 ('1002402','1002131','1002302','30',NULL),
 ('1002403','1002131','1002303','20',NULL),
 ('1002404','1002131','1002304','30',NULL),
 ('1002406','1002132','1002306','30',NULL),
 ('1002407','1002132','1002307','30',NULL),
 ('1002408','1002132','1002308','20',NULL),
 ('1002409','1002132','1002309','30',NULL);
/*!40000 ALTER TABLE `dbinstitutionaccountentry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionbill`
--

DROP TABLE IF EXISTS `dbinstitutionbill`;
CREATE TABLE `dbinstitutionbill` (
  `InstitutionBillId` decimal(18,0) NOT NULL,
  `InstitutionAccountId` decimal(18,0) default NULL,
  `BillDateTime` datetime default NULL,
  `Ammount` decimal(7,2) default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  `BillPayedStatus` char(10) default NULL,
  PRIMARY KEY  (`InstitutionBillId`),
  KEY `DBInstitutionAccount_DBInstitutionBill_FK1` (`InstitutionAccountId`),
  CONSTRAINT `DBInstitutionAccount_DBInstitutionBill_FK1` FOREIGN KEY (`InstitutionAccountId`) REFERENCES `dbinstitutionaccount` (`InstitutionAccountId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionbill`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionclient`
--

DROP TABLE IF EXISTS `dbinstitutionclient`;
CREATE TABLE `dbinstitutionclient` (
  `InstitutionClientId` char(10) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `InstitutionClientCode` decimal(4,0) default NULL,
  `Transaction` varchar(20) default NULL,
  PRIMARY KEY  (`InstitutionClientId`),
  KEY `DBInstitution_DBInstitutionClient_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInstitutionClient_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionclient`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionemployee`
--

DROP TABLE IF EXISTS `dbinstitutionemployee`;
CREATE TABLE `dbinstitutionemployee` (
  `InstitutionEmployeeId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `EmployeeCode` varchar(10) default NULL,
  `AvailabilityStatus` decimal(1,0) default NULL,
  `Name` varchar(20) default NULL,
  PRIMARY KEY  (`InstitutionEmployeeId`),
  KEY `DBInstitution_DBInstitutionEmployee_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInstitutionEmployee_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionemployee`
--

/*!40000 ALTER TABLE `dbinstitutionemployee` DISABLE KEYS */;
INSERT INTO `dbinstitutionemployee` (`InstitutionEmployeeId`,`InstitutionId`,`EmployeeCode`,`AvailabilityStatus`,`Name`) VALUES 
 ('1002251','1002101','PMA','1','Peter Mayer'),
 ('1002252','1002101','BMA','1','Brigitte Mayer'),
 ('1002253','1002101','ARO','1','Anke Roht'),
 ('1002254','1002102','MU','1','Dr. Müller'),
 ('1002255','1002102','HO','1','Fr. Holler'),
 ('1002256','1002102','PA','1','Dr. Papen');
/*!40000 ALTER TABLE `dbinstitutionemployee` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionentry`
--

DROP TABLE IF EXISTS `dbinstitutionentry`;
CREATE TABLE `dbinstitutionentry` (
  `InstitutionEntryId` decimal(18,0) NOT NULL,
  `InstitutionEntryTextId` decimal(18,0) default NULL,
  `DateTime` datetime default NULL,
  `RoundInfoCode` varchar(20) default NULL,
  `TelephoneNumber` varchar(20) default NULL,
  `BirthDay` datetime default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`InstitutionEntryId`),
  KEY `DBInstitutionEntryText_DBInstitutionEntry_FK1` (`InstitutionEntryTextId`),
  CONSTRAINT `DBInstitutionEntryText_DBInstitutionEntry_FK1` FOREIGN KEY (`InstitutionEntryTextId`) REFERENCES `dbinstitutionentrytext` (`InstitutionEntryTextId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionentry`
--

/*!40000 ALTER TABLE `dbinstitutionentry` DISABLE KEYS */;
INSERT INTO `dbinstitutionentry` (`InstitutionEntryId`,`InstitutionEntryTextId`,`DateTime`,`RoundInfoCode`,`TelephoneNumber`,`BirthDay`,`MediumTypeCode`) VALUES 
 ('1002301','1','2005-09-01 12:46:00','RI1','0451-3445654','1980-11-20 00:00:00','EMAIL'),
 ('1002302','2','2005-09-02 16:27:00','RI1','0451-3445654','1980-11-20 00:00:00','EMAIL'),
 ('1002303','10','2005-09-03 15:18:00','RI1','0451-3445654','1980-11-20 00:00:00','SMS1'),
 ('1002304','11','2005-09-04 16:07:00','RI2','0451-3445654','1980-11-20 00:00:00','EMAIL'),
 ('1002305','12','2005-09-05 13:37:00','RI3','0451-3445654','1980-11-20 00:00:00','EMAIL'),
 ('1002306','20','2005-09-06 12:46:00','RI1','0451-3445654','1980-11-20 00:00:00','SMS1'),
 ('1002307','21','2005-09-07 16:27:00','RI4','0451-3445654','1980-11-20 00:00:00','FON1'),
 ('1002308','22','2005-09-08 15:18:00','RI1','0451-3445654','1980-11-20 00:00:00','SMS1'),
 ('1002309','30','2005-09-09 16:07:00','RI5','0451-3445654','1980-11-20 00:00:00','EMAIL'),
 ('1002310','31','2005-09-10 11:07:00','RI1','0451-3445654','1980-11-20 00:00:00','SMS2');
/*!40000 ALTER TABLE `dbinstitutionentry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionentrytext`
--

DROP TABLE IF EXISTS `dbinstitutionentrytext`;
CREATE TABLE `dbinstitutionentrytext` (
  `InstitutionEntryTextId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `EntryTextCode` varchar(40) default NULL,
  `Text` varchar(250) default NULL,
  `Points` decimal(9,0) default NULL,
  PRIMARY KEY  (`InstitutionEntryTextId`),
  KEY `DBLanguage_DBInstitutionEntryText_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBInstitutionEntryText_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionentrytext`
--

/*!40000 ALTER TABLE `dbinstitutionentrytext` DISABLE KEYS */;
INSERT INTO `dbinstitutionentrytext` (`InstitutionEntryTextId`,`LanguageId`,`EntryTextCode`,`Text`,`Points`) VALUES 
 ('1','1000311','Registration','%1 Neuanmeldung','0'),
 ('2','1000311','CancleParticipation','%1 Abmeldung','0'),
 ('10','1000311','NewPerson','Neuer Patient Tel.: %1 Geb.: %2','0'),
 ('11','1000311','ChangePerson','Patient Tel.: %1 Geb.: %2 geändert','0'),
 ('12','1000311','DeletePerson','Patient Tel.: %1 Geb.: %2 gelöscht','0'),
 ('20','1000311','NewPersonIC','Neuer Infokanal für Patient Tel.: %1 Geb.: %2','0'),
 ('21','1000311','ChangePersonIC','Infokanal für Patient Tel.: %1 Geb.: %2 geändert','0'),
 ('22','1000311','DeletePersonIC','Infokanal für Patient Tel.: %1 Geb.: %2 gelöscht','0'),
 ('30','1000311','NewEmployee','Neuer Mitarbeiter %1','0'),
 ('31','1000311','ChangeEmployee','Mitarbeiter %1 geändert','0'),
 ('32','1000311','DeleteEmployee','Mitarbeiter %1 gelöscht','0'),
 ('40','1000311','NewKindOfApp','Neue Terminart %1','0'),
 ('41','1000311','ChangeKindOfApp','Terminart %1 geändert','0'),
 ('42','1000311','DeleteKindOfApp','Terminart %1 gelöscht','0');
INSERT INTO `dbinstitutionentrytext` (`InstitutionEntryTextId`,`LanguageId`,`EntryTextCode`,`Text`,`Points`) VALUES 
 ('50','1000311','NewTroubleDur','Neuer Behandlungszeit für %1: %2','0'),
 ('51','1000311','ChangeTroubleDur','Behandlungszeit für %1 auf %2 Minuten geändert','0'),
 ('52','1000311','DeleteTroubleDur','Behandlungszeit für %1 gelöscht','0'),
 ('60','1000311','NewInfoType','Neuer Informationstyp %1','0'),
 ('61','1000311','ChangeInfoType','Informationstyp %1 geändert','0'),
 ('62','1000311','DeleteInfoType','Informationstyp %1 gelöscht','0'),
 ('70','1000311','NewRoundInfo','Neue Rundinformation %1','0'),
 ('71','1000311','ChangeRoundInfo','Rundinformation %1 geändert','0'),
 ('72','1000311','DeleteRoundInfo','Rundinformation %1 gelöscht','0'),
 ('80','1000311','RoundInfoEmail','Email','20'),
 ('81','1000311','RoundInfoSMS','SMS an %1','30'),
 ('82','1000311','RoundInfoFon','Anruf an %1','40'),
 ('90','1000311','RoundInfoEmailError','Fehler bei Email','0'),
 ('91','1000311','RoundInfoSMSError','Fehler bei SMS an %1','0'),
 ('92','1000311','RoundInfoFonError','Fehler bei Anruf an %1','0');
INSERT INTO `dbinstitutionentrytext` (`InstitutionEntryTextId`,`LanguageId`,`EntryTextCode`,`Text`,`Points`) VALUES 
 ('100','1000311','Transfer','Rechnung mit BLZ: %1 Nr. %2 Betrag: %3 €','0'),
 ('101','1000311','Debit','Bankeinzug bei BLZ: %1 Nr. %2  Betrag: %3 €','0');
/*!40000 ALTER TABLE `dbinstitutionentrytext` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionerror`
--

DROP TABLE IF EXISTS `dbinstitutionerror`;
CREATE TABLE `dbinstitutionerror` (
  `InstitutionErrorId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `ErrorCode` decimal(3,0) default NULL,
  `DateTime` datetime default NULL,
  PRIMARY KEY  (`InstitutionErrorId`),
  KEY `DBInstitution_DBInstitutionError_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInstitutionError_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionerror`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionkindofappointment`
--

DROP TABLE IF EXISTS `dbinstitutionkindofappointment`;
CREATE TABLE `dbinstitutionkindofappointment` (
  `InstitutionKindOfAppointmentId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `KindOfAppointmentCode` varchar(10) default NULL,
  `AvailabilityStatus` decimal(1,0) default NULL,
  `Description` varchar(50) default NULL,
  `ActualWaitingTime` decimal(4,0) default NULL,
  `ActualWaitingTimeInWaitingRoom` decimal(4,0) default NULL,
  PRIMARY KEY  (`InstitutionKindOfAppointmentId`),
  KEY `DBInstitution_DBInstitutionKindOfAppointment_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInstitutionKindOfAppointment_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionkindofappointment`
--

/*!40000 ALTER TABLE `dbinstitutionkindofappointment` DISABLE KEYS */;
INSERT INTO `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`,`InstitutionId`,`KindOfAppointmentCode`,`AvailabilityStatus`,`Description`,`ActualWaitingTime`,`ActualWaitingTimeInWaitingRoom`) VALUES 
 ('1002231','1002101','BE','1','Behandlung','0','0'),
 ('1002232','1002101','RO','1','Röntgen','0','0'),
 ('1002233','1002101','BL','1','Blutabnahme','0','0'),
 ('1002234','1002102','ET','1','Einzeltherapie','0','0'),
 ('1002235','1002102','PT','1','Paartherapie','0','0'),
 ('1002236','1002102','GT','1','Gruppentherapie','0','0');
/*!40000 ALTER TABLE `dbinstitutionkindofappointment` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionlogbookentry`
--

DROP TABLE IF EXISTS `dbinstitutionlogbookentry`;
CREATE TABLE `dbinstitutionlogbookentry` (
  `InstitutionLogbookEntryId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `InstitutionEntryId` decimal(18,0) default NULL,
  PRIMARY KEY  (`InstitutionLogbookEntryId`),
  KEY `DBInstitution_DBInstitutionLogbookEntry_FK1` (`InstitutionId`),
  KEY `DBInstitutionEntry_DBInstitutionLogbookEntry_FK1` (`InstitutionEntryId`),
  CONSTRAINT `DBInstitutionEntry_DBInstitutionLogbookEntry_FK1` FOREIGN KEY (`InstitutionEntryId`) REFERENCES `dbinstitutionentry` (`InstitutionEntryId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBInstitutionLogbookEntry_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionlogbookentry`
--

/*!40000 ALTER TABLE `dbinstitutionlogbookentry` DISABLE KEYS */;
INSERT INTO `dbinstitutionlogbookentry` (`InstitutionLogbookEntryId`,`InstitutionId`,`InstitutionEntryId`) VALUES 
 ('1002401','1002101','1002301'),
 ('1002402','1002101','1002302'),
 ('1002403','1002102','1002303'),
 ('1002404','1002102','1002304');
/*!40000 ALTER TABLE `dbinstitutionlogbookentry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionpersoninfo`
--

DROP TABLE IF EXISTS `dbinstitutionpersoninfo`;
CREATE TABLE `dbinstitutionpersoninfo` (
  `InstitutionPersonInfoId` decimal(18,0) NOT NULL,
  `InstitutionRoundInfoId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`InstitutionPersonInfoId`),
  KEY `DBPerson_DBInstitutionPersonInfo_FK1` (`PersonId`),
  KEY `DBInstitutionRoundInfo_DBInstitutionPersonInfo_FK1` (`InstitutionRoundInfoId`),
  CONSTRAINT `DBInstitutionRoundInfo_DBInstitutionPersonInfo_FK1` FOREIGN KEY (`InstitutionRoundInfoId`) REFERENCES `dbinstitutionroundinfo` (`InstitutionRoundInfoId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBInstitutionPersonInfo_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionpersoninfo`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionpricetable`
--

DROP TABLE IF EXISTS `dbinstitutionpricetable`;
CREATE TABLE `dbinstitutionpricetable` (
  `InstitutionPriceTableId` decimal(18,0) NOT NULL,
  `CountryId` decimal(18,0) default NULL,
  `LowLimit` decimal(9,0) default NULL,
  `HighLimit` decimal(9,0) default NULL,
  `PricePerPoint` decimal(2,2) default NULL,
  PRIMARY KEY  (`InstitutionPriceTableId`),
  KEY `DBCountry_DBInstitutionPriceTable_FK1` (`CountryId`),
  CONSTRAINT `DBCountry_DBInstitutionPriceTable_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionpricetable`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionroundinfo`
--

DROP TABLE IF EXISTS `dbinstitutionroundinfo`;
CREATE TABLE `dbinstitutionroundinfo` (
  `InstitutionRoundInfoId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `InfoTypeId` decimal(18,0) default NULL,
  `RoundInfoCode` varchar(20) default NULL,
  `InfoDateTime` datetime default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  PRIMARY KEY  (`InstitutionRoundInfoId`),
  KEY `DBInstitution_DBInstitutionRoundInfo_FK1` (`InstitutionId`),
  KEY `DBInfoType_DBInstitutionRoundInfo_FK1` (`InfoTypeId`),
  CONSTRAINT `DBInfoType_DBInstitutionRoundInfo_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBInstitutionRoundInfo_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionroundinfo`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutionsubscription`
--

DROP TABLE IF EXISTS `dbinstitutionsubscription`;
CREATE TABLE `dbinstitutionsubscription` (
  `InstitutionSubscriptionId` decimal(18,0) NOT NULL,
  `SubsciptingInstitutionId` decimal(18,0) default NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `BearTheCostStatus` decimal(1,0) default NULL,
  `SubscriptionStart` datetime default NULL,
  `SubscriptionEnd` datetime default NULL,
  PRIMARY KEY  (`InstitutionSubscriptionId`),
  KEY `DBInstitution_DBInstitutionSubscription_FK1` (`SubsciptingInstitutionId`),
  KEY `DBInstitution_DBInstitutionSubscription_FK2` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInstitutionSubscription_FK1` FOREIGN KEY (`SubsciptingInstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitution_DBInstitutionSubscription_FK2` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutionsubscription`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontextparameter`
--

DROP TABLE IF EXISTS `dbinstitutiontextparameter`;
CREATE TABLE `dbinstitutiontextparameter` (
  `InstitutionTextParameterId` decimal(18,0) NOT NULL,
  `InstitutionEntryId` decimal(18,0) default NULL,
  `Number` decimal(2,0) default NULL,
  `TextParameter` varchar(40) default NULL,
  PRIMARY KEY  (`InstitutionTextParameterId`),
  KEY `DBInstitutionEntry_DBInstitutionTextParameter_FK1` (`InstitutionEntryId`),
  CONSTRAINT `DBInstitutionEntry_DBInstitutionTextParameter_FK1` FOREIGN KEY (`InstitutionEntryId`) REFERENCES `dbinstitutionentry` (`InstitutionEntryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontextparameter`
--

/*!40000 ALTER TABLE `dbinstitutiontextparameter` DISABLE KEYS */;
INSERT INTO `dbinstitutiontextparameter` (`InstitutionTextParameterId`,`InstitutionEntryId`,`Number`,`TextParameter`) VALUES 
 ('1002350','1002303','1','0171-3889689'),
 ('1002353','1002306','1','0178-3009689'),
 ('1002356','1002307','1','040-45654543'),
 ('1002359','1002308','1','0171-3333689'),
 ('1002362','1002310','1','0179-5634522');
/*!40000 ALTER TABLE `dbinstitutiontextparameter` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontroubleadvice`
--

DROP TABLE IF EXISTS `dbinstitutiontroubleadvice`;
CREATE TABLE `dbinstitutiontroubleadvice` (
  `InstitutionTroubleAdviceId` char(10) NOT NULL,
  `TroubleId` decimal(18,0) default NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `Advice` varchar(200) default NULL,
  `AdviceForPerson` varchar(200) default NULL,
  PRIMARY KEY  (`InstitutionTroubleAdviceId`),
  KEY `DBInstitution_DBInstitutionTroubleAdvice_FK1` (`InstitutionId`),
  KEY `DBTrouble_DBInstitutionTroubleAdvice_FK1` (`TroubleId`),
  CONSTRAINT `DBInstitution_DBInstitutionTroubleAdvice_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBInstitutionTroubleAdvice_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontroubleadvice`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontroubleduration`
--

DROP TABLE IF EXISTS `dbinstitutiontroubleduration`;
CREATE TABLE `dbinstitutiontroubleduration` (
  `InstitutionTroubleDurationId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) default NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `Duration` varchar(3) default NULL,
  PRIMARY KEY  (`InstitutionTroubleDurationId`),
  KEY `DBTrouble_DBInstitutionTroubleDuration_FK1` (`TroubleId`),
  KEY `DBInstitution_DBInstitutionTroubleDuration_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBInstitutionTroubleDuration_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBInstitutionTroubleDuration_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontroubleduration`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontype`
--

DROP TABLE IF EXISTS `dbinstitutiontype`;
CREATE TABLE `dbinstitutiontype` (
  `InstitutionTypeId` decimal(18,0) NOT NULL,
  `InstitutionTypeCode` varchar(10) default NULL,
  `ShortDescription` varchar(150) default NULL,
  PRIMARY KEY  (`InstitutionTypeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontype`
--

/*!40000 ALTER TABLE `dbinstitutiontype` DISABLE KEYS */;
INSERT INTO `dbinstitutiontype` (`InstitutionTypeId`,`InstitutionTypeCode`,`ShortDescription`) VALUES 
 ('1000901','IT01','Arzt'),
 ('1000902','IT02','Praktischer Arzt'),
 ('1000903','IT03','Allgemeinmedizin'),
 ('1000904','IT04','Anästhesiologie'),
 ('1000905','IT05','Anatomie'),
 ('1000906','IT06','Arbeitsmedizin'),
 ('1000907','IT07','Augenheilkunde'),
 ('1000909','IT09','Biochemie'),
 ('1000910','IT10','Chirurgie'),
 ('1000911','IT11','Diag. Radiologie'),
 ('1000913','IT13','Frauenheilkunde / Gynäkologie'),
 ('1000914','IT14','Hals-Nasen-Ohren-Heilkunde'),
 ('1000915','IT15','Dermatologie'),
 ('1000916','IT16','Herzchirurgie'),
 ('1000917','IT17','Humangenetik'),
 ('1000918','IT18','Hygiene / Umweltmedizin'),
 ('1000920','IT20','Innere Medizin'),
 ('1000921','IT21','Lungen- und Bronchialheilkunde'),
 ('1000922','IT22','Kinderchirurgie'),
 ('1000923','IT23','Kinderheilkunde'),
 ('1000925','IT25','Kinder- und Jugendpsychiatrie'),
 ('1000926','IT26','Klinische Pharmakologie'),
 ('1000928','IT28','Laboratoriumsmedizin'),
 ('1000930','IT30','Mikrobiologie');
INSERT INTO `dbinstitutiontype` (`InstitutionTypeId`,`InstitutionTypeCode`,`ShortDescription`) VALUES 
 ('1000931','IT31','Mund-Kiefer-Gesichtschirurgie'),
 ('1000932','IT32','Nervenheilkunde'),
 ('1000933','IT33','Neurochirurgie'),
 ('1000934','IT34','Neurologie'),
 ('1000935','IT35','Neuropathologie'),
 ('1000936','IT36','Nuklearmedizin'),
 ('1000937','IT37','Öffentliches Gesundheitswesen'),
 ('1000938','IT38','Orthopädie'),
 ('1000940','IT40','Pathologie'),
 ('1000942','IT42','Pharmakologie und Toxikologie'),
 ('1000943','IT43','Phoniatrie und Pädaudiologie'),
 ('1000944','IT44','Physikalische und Reh. Medizin'),
 ('1000945','IT45','Physiologie'),
 ('1000947','IT47','Plastische Chirurgie'),
 ('1000949','IT49','Psychatrie und Psychotherapie'),
 ('1000950','IT50','Psychotherapeutische Medizin'),
 ('1000954','IT54','Rechtsmedizin'),
 ('1000957','IT57','Strahlentherapie'),
 ('1000958','IT58','Transfusionsmedizin'),
 ('1000959','IT59','Urologie'),
 ('1000960','IT60','Chirotherapie'),
 ('1000962','IT62','Früherkennungsuntersuchungen');
INSERT INTO `dbinstitutiontype` (`InstitutionTypeId`,`InstitutionTypeCode`,`ShortDescription`) VALUES 
 ('1000963','IT63','Gastroenterologie'),
 ('1000964','IT64','Lungen- und Bronchialheilkunde'),
 ('1000965','IT65','Pädiatrie '),
 ('1000967','IT67','Psychagogie'),
 ('1000968','IT68','Psychatrie'),
 ('1000969','IT69','Psychologische Psychoanalytik'),
 ('1000970','IT70','Psychologische Verhaltenstherapie'),
 ('1000971','IT71','Psychotherapie'),
 ('1000972','IT72','Radiologie'),
 ('1000973','IT73','Zahnarzt');
/*!40000 ALTER TABLE `dbinstitutiontype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontype_dbapparrpath`
--

DROP TABLE IF EXISTS `dbinstitutiontype_dbapparrpath`;
CREATE TABLE `dbinstitutiontype_dbapparrpath` (
  `InstitutionTypeId` decimal(18,0) NOT NULL,
  `AppointmentArrangementPathId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`InstitutionTypeId`,`AppointmentArrangementPathId`),
  KEY `DBAppointmentArrangementPath_DBInstitutionType_DBAppArrPath_FK1` (`AppointmentArrangementPathId`),
  CONSTRAINT `DBAppointmentArrangementPath_DBInstitutionType_DBAppArrPath_FK1` FOREIGN KEY (`AppointmentArrangementPathId`) REFERENCES `dbappointmentarrangementpath` (`AppointmentArrangementPathId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionType_DBInstitutionType_DBAppArrPath_FK1` FOREIGN KEY (`InstitutionTypeId`) REFERENCES `dbinstitutiontype` (`InstitutionTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontype_dbapparrpath`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontype_dbinfotype`
--

DROP TABLE IF EXISTS `dbinstitutiontype_dbinfotype`;
CREATE TABLE `dbinstitutiontype_dbinfotype` (
  `InstitutionTypeId` decimal(18,0) NOT NULL,
  `InfoTypeId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`InfoTypeId`,`InstitutionTypeId`),
  KEY `DBInstitutionType_DBInstitutionType_DBInfoType_FK1` (`InstitutionTypeId`),
  CONSTRAINT `DBInfoType_DBInstitutionType_DBInfoType_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionType_DBInstitutionType_DBInfoType_FK1` FOREIGN KEY (`InstitutionTypeId`) REFERENCES `dbinstitutiontype` (`InstitutionTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontype_dbinfotype`
--

/*!40000 ALTER TABLE `dbinstitutiontype_dbinfotype` DISABLE KEYS */;
INSERT INTO `dbinstitutiontype_dbinfotype` (`InstitutionTypeId`,`InfoTypeId`) VALUES 
 ('1000901','1002900'),
 ('1000901','1002901'),
 ('1000901','1002902'),
 ('1000901','1002950'),
 ('1000901','1002951'),
 ('1000903','1002903'),
 ('1000903','1002904'),
 ('1000930','1002905'),
 ('1000930','1002906'),
 ('1000930','1002907'),
 ('1000930','1002951'),
 ('1000930','1002952');
/*!40000 ALTER TABLE `dbinstitutiontype_dbinfotype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontype_dbtrouble`
--

DROP TABLE IF EXISTS `dbinstitutiontype_dbtrouble`;
CREATE TABLE `dbinstitutiontype_dbtrouble` (
  `InstitutionTypeId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`TroubleId`,`InstitutionTypeId`),
  KEY `DBInstitutionType_DBInstitutionType_DBTrouble_FK1` (`InstitutionTypeId`),
  CONSTRAINT `DBInstitutionType_DBInstitutionType_DBTrouble_FK1` FOREIGN KEY (`InstitutionTypeId`) REFERENCES `dbinstitutiontype` (`InstitutionTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBInstitutionType_DBTrouble_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontype_dbtrouble`
--

/*!40000 ALTER TABLE `dbinstitutiontype_dbtrouble` DISABLE KEYS */;
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000901','1100631'),
 ('1000901','1100632'),
 ('1000901','1100633'),
 ('1000901','1100634'),
 ('1000901','1100635'),
 ('1000901','1100636'),
 ('1000901','1100637'),
 ('1000901','1100638'),
 ('1000901','1100639'),
 ('1000901','1100640'),
 ('1000901','1100641'),
 ('1000901','1100642'),
 ('1000901','1100643'),
 ('1000901','1100644'),
 ('1000901','1100645'),
 ('1000901','1100646'),
 ('1000901','1100647'),
 ('1000901','1100648'),
 ('1000901','1100649'),
 ('1000901','1100650'),
 ('1000901','1100651'),
 ('1000901','1100652'),
 ('1000901','1100653'),
 ('1000901','1100654'),
 ('1000901','1100655'),
 ('1000901','1100656'),
 ('1000901','1100657'),
 ('1000901','1100658'),
 ('1000901','1100659'),
 ('1000901','1100660'),
 ('1000901','1100661'),
 ('1000901','1100662'),
 ('1000901','1100663'),
 ('1000901','1100664'),
 ('1000901','1100665'),
 ('1000901','1100666'),
 ('1000901','1100667'),
 ('1000901','1100668'),
 ('1000901','1100669'),
 ('1000901','1100670');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000901','1100671'),
 ('1000901','1100672'),
 ('1000901','1100673'),
 ('1000901','1100674'),
 ('1000901','1100675'),
 ('1000901','1100676'),
 ('1000901','1100677'),
 ('1000901','1100678'),
 ('1000901','1100679'),
 ('1000901','1100680'),
 ('1000901','1100772'),
 ('1000901','1100776'),
 ('1000901','1100874'),
 ('1000901','1100876'),
 ('1000901','1100908'),
 ('1000902','1100631'),
 ('1000902','1100632'),
 ('1000902','1100633'),
 ('1000902','1100634'),
 ('1000902','1100635'),
 ('1000902','1100636'),
 ('1000902','1100637'),
 ('1000902','1100638'),
 ('1000902','1100639'),
 ('1000902','1100640'),
 ('1000902','1100641'),
 ('1000902','1100642'),
 ('1000902','1100643'),
 ('1000902','1100644'),
 ('1000902','1100645'),
 ('1000902','1100646'),
 ('1000902','1100647'),
 ('1000902','1100648'),
 ('1000902','1100649'),
 ('1000902','1100650'),
 ('1000902','1100651'),
 ('1000902','1100652'),
 ('1000902','1100653'),
 ('1000902','1100654'),
 ('1000902','1100655');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000902','1100656'),
 ('1000902','1100657'),
 ('1000902','1100658'),
 ('1000902','1100659'),
 ('1000902','1100660'),
 ('1000902','1100661'),
 ('1000902','1100662'),
 ('1000902','1100663'),
 ('1000902','1100664'),
 ('1000902','1100665'),
 ('1000902','1100666'),
 ('1000902','1100667'),
 ('1000902','1100668'),
 ('1000902','1100669'),
 ('1000902','1100670'),
 ('1000902','1100671'),
 ('1000902','1100672'),
 ('1000902','1100673'),
 ('1000902','1100674'),
 ('1000902','1100675'),
 ('1000902','1100676'),
 ('1000902','1100677'),
 ('1000902','1100678'),
 ('1000902','1100679'),
 ('1000902','1100680'),
 ('1000902','1100772'),
 ('1000902','1100776'),
 ('1000902','1100874'),
 ('1000902','1100876'),
 ('1000902','1100908'),
 ('1000903','1100631'),
 ('1000903','1100632'),
 ('1000903','1100633'),
 ('1000903','1100634'),
 ('1000903','1100635'),
 ('1000903','1100636'),
 ('1000903','1100637'),
 ('1000903','1100638'),
 ('1000903','1100639'),
 ('1000903','1100640');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000903','1100641'),
 ('1000903','1100642'),
 ('1000903','1100643'),
 ('1000903','1100644'),
 ('1000903','1100645'),
 ('1000903','1100646'),
 ('1000903','1100647'),
 ('1000903','1100648'),
 ('1000903','1100649'),
 ('1000903','1100650'),
 ('1000903','1100651'),
 ('1000903','1100652'),
 ('1000903','1100653'),
 ('1000903','1100654'),
 ('1000903','1100655'),
 ('1000903','1100656'),
 ('1000903','1100657'),
 ('1000903','1100658'),
 ('1000903','1100659'),
 ('1000903','1100660'),
 ('1000903','1100661'),
 ('1000903','1100662'),
 ('1000903','1100663'),
 ('1000903','1100664'),
 ('1000903','1100665'),
 ('1000903','1100666'),
 ('1000903','1100667'),
 ('1000903','1100668'),
 ('1000903','1100669'),
 ('1000903','1100670'),
 ('1000903','1100671'),
 ('1000903','1100672'),
 ('1000903','1100673'),
 ('1000903','1100674'),
 ('1000903','1100675'),
 ('1000903','1100676'),
 ('1000903','1100677'),
 ('1000903','1100678'),
 ('1000903','1100679'),
 ('1000903','1100680');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000903','1100772'),
 ('1000903','1100776'),
 ('1000903','1100874'),
 ('1000903','1100876'),
 ('1000903','1100908'),
 ('1000904','1100772'),
 ('1000904','1100776'),
 ('1000904','1100874'),
 ('1000904','1100876'),
 ('1000904','1100908'),
 ('1000905','1100772'),
 ('1000905','1100776'),
 ('1000905','1100874'),
 ('1000905','1100876'),
 ('1000905','1100908'),
 ('1000906','1100772'),
 ('1000906','1100776'),
 ('1000906','1100874'),
 ('1000906','1100876'),
 ('1000906','1100908'),
 ('1000907','1100631'),
 ('1000907','1100635'),
 ('1000907','1100664'),
 ('1000907','1100681'),
 ('1000907','1100682'),
 ('1000907','1100683'),
 ('1000907','1100684'),
 ('1000907','1100685'),
 ('1000907','1100686'),
 ('1000907','1100687'),
 ('1000907','1100688'),
 ('1000907','1100689'),
 ('1000907','1100690'),
 ('1000907','1100691'),
 ('1000907','1100692'),
 ('1000907','1100693'),
 ('1000907','1100694'),
 ('1000907','1100695'),
 ('1000907','1100696'),
 ('1000907','1100697');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000907','1100698'),
 ('1000907','1100699'),
 ('1000907','1100700'),
 ('1000907','1100701'),
 ('1000907','1100702'),
 ('1000907','1100772'),
 ('1000907','1100776'),
 ('1000907','1100874'),
 ('1000907','1100876'),
 ('1000907','1100908'),
 ('1000909','1100772'),
 ('1000909','1100776'),
 ('1000909','1100874'),
 ('1000909','1100876'),
 ('1000909','1100908'),
 ('1000910','1100633'),
 ('1000910','1100639'),
 ('1000910','1100642'),
 ('1000910','1100646'),
 ('1000910','1100651'),
 ('1000910','1100652'),
 ('1000910','1100668'),
 ('1000910','1100669'),
 ('1000910','1100672'),
 ('1000910','1100673'),
 ('1000910','1100674'),
 ('1000910','1100680'),
 ('1000910','1100703'),
 ('1000910','1100704'),
 ('1000910','1100705'),
 ('1000910','1100706'),
 ('1000910','1100707'),
 ('1000910','1100708'),
 ('1000910','1100709'),
 ('1000910','1100710'),
 ('1000910','1100711'),
 ('1000910','1100712'),
 ('1000910','1100713'),
 ('1000910','1100714'),
 ('1000910','1100715');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000910','1100716'),
 ('1000910','1100717'),
 ('1000910','1100718'),
 ('1000910','1100719'),
 ('1000910','1100720'),
 ('1000910','1100721'),
 ('1000910','1100722'),
 ('1000910','1100723'),
 ('1000910','1100724'),
 ('1000910','1100725'),
 ('1000910','1100726'),
 ('1000910','1100727'),
 ('1000910','1100728'),
 ('1000910','1100729'),
 ('1000910','1100731'),
 ('1000910','1100732'),
 ('1000910','1100733'),
 ('1000910','1100734'),
 ('1000910','1100735'),
 ('1000910','1100736'),
 ('1000910','1100737'),
 ('1000910','1100738'),
 ('1000910','1100739'),
 ('1000910','1100740'),
 ('1000910','1100741'),
 ('1000910','1100772'),
 ('1000910','1100776'),
 ('1000910','1100874'),
 ('1000910','1100876'),
 ('1000910','1100908'),
 ('1000911','1100772'),
 ('1000911','1100776'),
 ('1000911','1100874'),
 ('1000911','1100876'),
 ('1000911','1100908'),
 ('1000913','1100633'),
 ('1000913','1100637'),
 ('1000913','1100649'),
 ('1000913','1100656'),
 ('1000913','1100665');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000913','1100668'),
 ('1000913','1100670'),
 ('1000913','1100678'),
 ('1000913','1100742'),
 ('1000913','1100743'),
 ('1000913','1100744'),
 ('1000913','1100745'),
 ('1000913','1100746'),
 ('1000913','1100747'),
 ('1000913','1100748'),
 ('1000913','1100749'),
 ('1000913','1100750'),
 ('1000913','1100751'),
 ('1000913','1100753'),
 ('1000913','1100754'),
 ('1000913','1100755'),
 ('1000913','1100756'),
 ('1000913','1100757'),
 ('1000913','1100758'),
 ('1000913','1100759'),
 ('1000913','1100760'),
 ('1000913','1100761'),
 ('1000913','1100762'),
 ('1000913','1100763'),
 ('1000913','1100764'),
 ('1000913','1100765'),
 ('1000913','1100766'),
 ('1000913','1100767'),
 ('1000913','1100768'),
 ('1000913','1100769'),
 ('1000913','1100770'),
 ('1000913','1100771'),
 ('1000913','1100772'),
 ('1000913','1100773'),
 ('1000913','1100774'),
 ('1000913','1100776'),
 ('1000913','1100777'),
 ('1000913','1100778'),
 ('1000913','1100779'),
 ('1000913','1100780');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000913','1100781'),
 ('1000913','1100782'),
 ('1000913','1100783'),
 ('1000913','1100864'),
 ('1000913','1100874'),
 ('1000913','1100876'),
 ('1000913','1100908'),
 ('1000914','1100633'),
 ('1000914','1100642'),
 ('1000914','1100643'),
 ('1000914','1100645'),
 ('1000914','1100652'),
 ('1000914','1100653'),
 ('1000914','1100662'),
 ('1000914','1100698'),
 ('1000914','1100772'),
 ('1000914','1100776'),
 ('1000914','1100784'),
 ('1000914','1100785'),
 ('1000914','1100786'),
 ('1000914','1100787'),
 ('1000914','1100788'),
 ('1000914','1100789'),
 ('1000914','1100791'),
 ('1000914','1100792'),
 ('1000914','1100793'),
 ('1000914','1100794'),
 ('1000914','1100795'),
 ('1000914','1100796'),
 ('1000914','1100797'),
 ('1000914','1100798'),
 ('1000914','1100799'),
 ('1000914','1100801'),
 ('1000914','1100802'),
 ('1000914','1100803'),
 ('1000914','1100804'),
 ('1000914','1100805'),
 ('1000914','1100806'),
 ('1000914','1100807'),
 ('1000914','1100808');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000914','1100809'),
 ('1000914','1100810'),
 ('1000914','1100811'),
 ('1000914','1100812'),
 ('1000914','1100813'),
 ('1000914','1100814'),
 ('1000914','1100815'),
 ('1000914','1100817'),
 ('1000914','1100818'),
 ('1000914','1100819'),
 ('1000914','1100821'),
 ('1000914','1100823'),
 ('1000914','1100824'),
 ('1000914','1100825'),
 ('1000914','1100826'),
 ('1000914','1100828'),
 ('1000914','1100829'),
 ('1000914','1100874'),
 ('1000914','1100876'),
 ('1000914','1100908'),
 ('1000915','1100639'),
 ('1000915','1100645'),
 ('1000915','1100647'),
 ('1000915','1100662'),
 ('1000915','1100666'),
 ('1000915','1100668'),
 ('1000915','1100673'),
 ('1000915','1100674'),
 ('1000915','1100689'),
 ('1000915','1100707'),
 ('1000915','1100715'),
 ('1000915','1100718'),
 ('1000915','1100733'),
 ('1000915','1100735'),
 ('1000915','1100737'),
 ('1000915','1100747'),
 ('1000915','1100765'),
 ('1000915','1100766'),
 ('1000915','1100772'),
 ('1000915','1100776');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000915','1100830'),
 ('1000915','1100831'),
 ('1000915','1100832'),
 ('1000915','1100833'),
 ('1000915','1100834'),
 ('1000915','1100835'),
 ('1000915','1100836'),
 ('1000915','1100837'),
 ('1000915','1100838'),
 ('1000915','1100839'),
 ('1000915','1100840'),
 ('1000915','1100841'),
 ('1000915','1100842'),
 ('1000915','1100844'),
 ('1000915','1100845'),
 ('1000915','1100846'),
 ('1000915','1100847'),
 ('1000915','1100848'),
 ('1000915','1100849'),
 ('1000915','1100850'),
 ('1000915','1100851'),
 ('1000915','1100852'),
 ('1000915','1100853'),
 ('1000915','1100854'),
 ('1000915','1100856'),
 ('1000915','1100857'),
 ('1000915','1100858'),
 ('1000915','1100859'),
 ('1000915','1100860'),
 ('1000915','1100861'),
 ('1000915','1100862'),
 ('1000915','1100864'),
 ('1000915','1100874'),
 ('1000915','1100876'),
 ('1000915','1100908'),
 ('1000916','1100772'),
 ('1000916','1100776'),
 ('1000916','1100874'),
 ('1000916','1100876'),
 ('1000916','1100908');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000917','1100772'),
 ('1000917','1100776'),
 ('1000917','1100874'),
 ('1000917','1100876'),
 ('1000917','1100908'),
 ('1000918','1100772'),
 ('1000918','1100776'),
 ('1000918','1100874'),
 ('1000918','1100876'),
 ('1000918','1100908'),
 ('1000920','1100631'),
 ('1000920','1100632'),
 ('1000920','1100633'),
 ('1000920','1100634'),
 ('1000920','1100635'),
 ('1000920','1100636'),
 ('1000920','1100637'),
 ('1000920','1100638'),
 ('1000920','1100639'),
 ('1000920','1100640'),
 ('1000920','1100641'),
 ('1000920','1100643'),
 ('1000920','1100644'),
 ('1000920','1100647'),
 ('1000920','1100648'),
 ('1000920','1100649'),
 ('1000920','1100651'),
 ('1000920','1100652'),
 ('1000920','1100653'),
 ('1000920','1100654'),
 ('1000920','1100655'),
 ('1000920','1100658'),
 ('1000920','1100660'),
 ('1000920','1100661'),
 ('1000920','1100662'),
 ('1000920','1100667'),
 ('1000920','1100668'),
 ('1000920','1100671'),
 ('1000920','1100678'),
 ('1000920','1100679');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000920','1100744'),
 ('1000920','1100772'),
 ('1000920','1100776'),
 ('1000920','1100865'),
 ('1000920','1100866'),
 ('1000920','1100868'),
 ('1000920','1100869'),
 ('1000920','1100870'),
 ('1000920','1100871'),
 ('1000920','1100872'),
 ('1000920','1100873'),
 ('1000920','1100874'),
 ('1000920','1100875'),
 ('1000920','1100876'),
 ('1000920','1100877'),
 ('1000920','1100878'),
 ('1000920','1100879'),
 ('1000920','1100880'),
 ('1000920','1100881'),
 ('1000920','1100882'),
 ('1000920','1100883'),
 ('1000920','1100884'),
 ('1000920','1100908'),
 ('1000921','1100772'),
 ('1000921','1100776'),
 ('1000921','1100874'),
 ('1000921','1100876'),
 ('1000921','1100908'),
 ('1000922','1100772'),
 ('1000922','1100776'),
 ('1000922','1100874'),
 ('1000922','1100876'),
 ('1000922','1100908'),
 ('1000923','1100637'),
 ('1000923','1100638'),
 ('1000923','1100643'),
 ('1000923','1100644'),
 ('1000923','1100645'),
 ('1000923','1100647'),
 ('1000923','1100660');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000923','1100662'),
 ('1000923','1100665'),
 ('1000923','1100666'),
 ('1000923','1100667'),
 ('1000923','1100674'),
 ('1000923','1100678'),
 ('1000923','1100679'),
 ('1000923','1100689'),
 ('1000923','1100747'),
 ('1000923','1100772'),
 ('1000923','1100776'),
 ('1000923','1100785'),
 ('1000923','1100791'),
 ('1000923','1100792'),
 ('1000923','1100793'),
 ('1000923','1100794'),
 ('1000923','1100798'),
 ('1000923','1100801'),
 ('1000923','1100802'),
 ('1000923','1100805'),
 ('1000923','1100812'),
 ('1000923','1100824'),
 ('1000923','1100832'),
 ('1000923','1100847'),
 ('1000923','1100850'),
 ('1000923','1100865'),
 ('1000923','1100866'),
 ('1000923','1100868'),
 ('1000923','1100869'),
 ('1000923','1100870'),
 ('1000923','1100871'),
 ('1000923','1100872'),
 ('1000923','1100873'),
 ('1000923','1100874'),
 ('1000923','1100875'),
 ('1000923','1100876'),
 ('1000923','1100877'),
 ('1000923','1100878'),
 ('1000923','1100879'),
 ('1000923','1100880');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000923','1100881'),
 ('1000923','1100882'),
 ('1000923','1100883'),
 ('1000923','1100884'),
 ('1000923','1100886'),
 ('1000923','1100887'),
 ('1000923','1100888'),
 ('1000923','1100889'),
 ('1000923','1100890'),
 ('1000923','1100891'),
 ('1000923','1100892'),
 ('1000923','1100893'),
 ('1000923','1100894'),
 ('1000923','1100895'),
 ('1000923','1100896'),
 ('1000923','1100897'),
 ('1000923','1100898'),
 ('1000923','1100899'),
 ('1000923','1100900'),
 ('1000923','1100901'),
 ('1000923','1100902'),
 ('1000923','1100903'),
 ('1000923','1100905'),
 ('1000923','1100906'),
 ('1000923','1100907'),
 ('1000923','1100908'),
 ('1000925','1100772'),
 ('1000925','1100776'),
 ('1000925','1100874'),
 ('1000925','1100876'),
 ('1000925','1100908'),
 ('1000926','1100772'),
 ('1000926','1100776'),
 ('1000926','1100874'),
 ('1000926','1100876'),
 ('1000926','1100908'),
 ('1000928','1100772'),
 ('1000928','1100776'),
 ('1000928','1100874'),
 ('1000928','1100876');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000928','1100908'),
 ('1000930','1100772'),
 ('1000930','1100776'),
 ('1000930','1100874'),
 ('1000930','1100876'),
 ('1000930','1100908'),
 ('1000931','1100772'),
 ('1000931','1100776'),
 ('1000931','1100874'),
 ('1000931','1100876'),
 ('1000931','1100908'),
 ('1000932','1100631'),
 ('1000932','1100633'),
 ('1000932','1100642'),
 ('1000932','1100649'),
 ('1000932','1100652'),
 ('1000932','1100656'),
 ('1000932','1100657'),
 ('1000932','1100659'),
 ('1000932','1100664'),
 ('1000932','1100672'),
 ('1000932','1100714'),
 ('1000932','1100764'),
 ('1000932','1100772'),
 ('1000932','1100776'),
 ('1000932','1100809'),
 ('1000932','1100810'),
 ('1000932','1100811'),
 ('1000932','1100874'),
 ('1000932','1100876'),
 ('1000932','1100877'),
 ('1000932','1100908'),
 ('1000932','1100909'),
 ('1000932','1100910'),
 ('1000932','1100911'),
 ('1000932','1100912'),
 ('1000932','1100913'),
 ('1000932','1100914'),
 ('1000932','1100915'),
 ('1000932','1100916');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000932','1100917'),
 ('1000932','1100918'),
 ('1000932','1100919'),
 ('1000932','1100920'),
 ('1000932','1100921'),
 ('1000932','1100922'),
 ('1000932','1100923'),
 ('1000932','1100924'),
 ('1000932','1100925'),
 ('1000932','1100926'),
 ('1000932','1100927'),
 ('1000932','1100928'),
 ('1000932','1100929'),
 ('1000932','1100930'),
 ('1000932','1100931'),
 ('1000932','1100932'),
 ('1000932','1100933'),
 ('1000932','1100934'),
 ('1000932','1100935'),
 ('1000932','1100936'),
 ('1000932','1100937'),
 ('1000932','1100938'),
 ('1000932','1100939'),
 ('1000932','1100940'),
 ('1000932','1100941'),
 ('1000932','1100942'),
 ('1000933','1100772'),
 ('1000933','1100776'),
 ('1000933','1100874'),
 ('1000933','1100876'),
 ('1000933','1100908'),
 ('1000934','1100631'),
 ('1000934','1100633'),
 ('1000934','1100642'),
 ('1000934','1100649'),
 ('1000934','1100652'),
 ('1000934','1100656'),
 ('1000934','1100657'),
 ('1000934','1100659'),
 ('1000934','1100664');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000934','1100672'),
 ('1000934','1100714'),
 ('1000934','1100764'),
 ('1000934','1100772'),
 ('1000934','1100776'),
 ('1000934','1100809'),
 ('1000934','1100810'),
 ('1000934','1100811'),
 ('1000934','1100874'),
 ('1000934','1100876'),
 ('1000934','1100877'),
 ('1000934','1100908'),
 ('1000934','1100909'),
 ('1000934','1100910'),
 ('1000934','1100911'),
 ('1000934','1100912'),
 ('1000934','1100913'),
 ('1000934','1100914'),
 ('1000934','1100915'),
 ('1000934','1100916'),
 ('1000934','1100917'),
 ('1000934','1100918'),
 ('1000934','1100919'),
 ('1000934','1100920'),
 ('1000934','1100921'),
 ('1000934','1100922'),
 ('1000934','1100923'),
 ('1000934','1100924'),
 ('1000934','1100925'),
 ('1000934','1100926'),
 ('1000934','1100927'),
 ('1000934','1100928'),
 ('1000934','1100929'),
 ('1000934','1100930'),
 ('1000934','1100931'),
 ('1000934','1100932'),
 ('1000934','1100933'),
 ('1000934','1100934'),
 ('1000934','1100935'),
 ('1000934','1100936');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000934','1100937'),
 ('1000934','1100938'),
 ('1000934','1100939'),
 ('1000934','1100940'),
 ('1000934','1100941'),
 ('1000934','1100942'),
 ('1000935','1100772'),
 ('1000935','1100776'),
 ('1000935','1100874'),
 ('1000935','1100876'),
 ('1000935','1100908'),
 ('1000936','1100772'),
 ('1000936','1100776'),
 ('1000936','1100874'),
 ('1000936','1100876'),
 ('1000936','1100908'),
 ('1000937','1100772'),
 ('1000937','1100776'),
 ('1000937','1100874'),
 ('1000937','1100876'),
 ('1000937','1100908'),
 ('1000938','1100633'),
 ('1000938','1100637'),
 ('1000938','1100639'),
 ('1000938','1100642'),
 ('1000938','1100646'),
 ('1000938','1100651'),
 ('1000938','1100652'),
 ('1000938','1100654'),
 ('1000938','1100656'),
 ('1000938','1100669'),
 ('1000938','1100672'),
 ('1000938','1100674'),
 ('1000938','1100676'),
 ('1000938','1100680'),
 ('1000938','1100693'),
 ('1000938','1100703'),
 ('1000938','1100705'),
 ('1000938','1100708'),
 ('1000938','1100709');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000938','1100712'),
 ('1000938','1100713'),
 ('1000938','1100714'),
 ('1000938','1100716'),
 ('1000938','1100717'),
 ('1000938','1100722'),
 ('1000938','1100726'),
 ('1000938','1100727'),
 ('1000938','1100729'),
 ('1000938','1100736'),
 ('1000938','1100741'),
 ('1000938','1100772'),
 ('1000938','1100776'),
 ('1000938','1100811'),
 ('1000938','1100826'),
 ('1000938','1100874'),
 ('1000938','1100876'),
 ('1000938','1100908'),
 ('1000938','1100943'),
 ('1000938','1100944'),
 ('1000938','1100946'),
 ('1000938','1100947'),
 ('1000938','1100948'),
 ('1000938','1100949'),
 ('1000938','1100950'),
 ('1000938','1100951'),
 ('1000938','1100952'),
 ('1000938','1100953'),
 ('1000938','1100954'),
 ('1000938','1100955'),
 ('1000938','1100956'),
 ('1000938','1100957'),
 ('1000938','1100958'),
 ('1000938','1100959'),
 ('1000938','1100960'),
 ('1000938','1100961'),
 ('1000938','1100962'),
 ('1000938','1100963'),
 ('1000938','1100964'),
 ('1000940','1100772');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000940','1100776'),
 ('1000940','1100874'),
 ('1000940','1100876'),
 ('1000940','1100908'),
 ('1000942','1100772'),
 ('1000942','1100776'),
 ('1000942','1100874'),
 ('1000942','1100876'),
 ('1000942','1100908'),
 ('1000943','1100772'),
 ('1000943','1100776'),
 ('1000943','1100874'),
 ('1000943','1100876'),
 ('1000943','1100908'),
 ('1000944','1100772'),
 ('1000944','1100776'),
 ('1000944','1100874'),
 ('1000944','1100876'),
 ('1000944','1100908'),
 ('1000945','1100772'),
 ('1000945','1100776'),
 ('1000945','1100874'),
 ('1000945','1100876'),
 ('1000945','1100908'),
 ('1000947','1100772'),
 ('1000947','1100776'),
 ('1000947','1100874'),
 ('1000947','1100876'),
 ('1000947','1100908'),
 ('1000949','1100772'),
 ('1000949','1100776'),
 ('1000949','1100874'),
 ('1000949','1100876'),
 ('1000949','1100908'),
 ('1000950','1100772'),
 ('1000950','1100776'),
 ('1000950','1100874'),
 ('1000950','1100876'),
 ('1000950','1100908'),
 ('1000954','1100772');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000954','1100776'),
 ('1000954','1100874'),
 ('1000954','1100876'),
 ('1000954','1100908'),
 ('1000957','1100772'),
 ('1000957','1100776'),
 ('1000957','1100874'),
 ('1000957','1100876'),
 ('1000957','1100908'),
 ('1000958','1100772'),
 ('1000958','1100776'),
 ('1000958','1100874'),
 ('1000958','1100876'),
 ('1000958','1100908'),
 ('1000959','1100631'),
 ('1000959','1100633'),
 ('1000959','1100634'),
 ('1000959','1100635'),
 ('1000959','1100637'),
 ('1000959','1100638'),
 ('1000959','1100656'),
 ('1000959','1100663'),
 ('1000959','1100664'),
 ('1000959','1100665'),
 ('1000959','1100668'),
 ('1000959','1100678'),
 ('1000959','1100698'),
 ('1000959','1100700'),
 ('1000959','1100732'),
 ('1000959','1100744'),
 ('1000959','1100761'),
 ('1000959','1100771'),
 ('1000959','1100772'),
 ('1000959','1100773'),
 ('1000959','1100774'),
 ('1000959','1100776'),
 ('1000959','1100840'),
 ('1000959','1100874'),
 ('1000959','1100876'),
 ('1000959','1100903');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000959','1100908'),
 ('1000959','1100961'),
 ('1000959','1100962'),
 ('1000959','1100963'),
 ('1000959','1100964'),
 ('1000959','1100965'),
 ('1000959','1100966'),
 ('1000959','1100967'),
 ('1000959','1100968'),
 ('1000959','1100969'),
 ('1000959','1100970'),
 ('1000959','1100971'),
 ('1000959','1100972'),
 ('1000959','1100973'),
 ('1000959','1100974'),
 ('1000959','1100975'),
 ('1000959','1100976'),
 ('1000959','1100977'),
 ('1000959','1100978'),
 ('1000959','1100979'),
 ('1000959','1100980'),
 ('1000959','1100981'),
 ('1000959','1100982'),
 ('1000959','1100983'),
 ('1000959','1100984'),
 ('1000959','1100985'),
 ('1000959','1100986'),
 ('1000960','1100772'),
 ('1000960','1100776'),
 ('1000960','1100874'),
 ('1000960','1100876'),
 ('1000960','1100908'),
 ('1000963','1100772'),
 ('1000963','1100776'),
 ('1000963','1100874'),
 ('1000963','1100876'),
 ('1000963','1100908'),
 ('1000964','1100772'),
 ('1000964','1100776'),
 ('1000964','1100874');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000964','1100876'),
 ('1000964','1100908'),
 ('1000965','1100772'),
 ('1000965','1100776'),
 ('1000965','1100874'),
 ('1000965','1100876'),
 ('1000965','1100908'),
 ('1000967','1100772'),
 ('1000967','1100776'),
 ('1000967','1100874'),
 ('1000967','1100876'),
 ('1000967','1100908'),
 ('1000968','1100772'),
 ('1000968','1100776'),
 ('1000968','1100874'),
 ('1000968','1100876'),
 ('1000968','1100908'),
 ('1000969','1100772'),
 ('1000969','1100776'),
 ('1000969','1100874'),
 ('1000969','1100876'),
 ('1000969','1100908'),
 ('1000970','1100772'),
 ('1000970','1100776'),
 ('1000970','1100874'),
 ('1000970','1100876'),
 ('1000970','1100908'),
 ('1000971','1100772'),
 ('1000971','1100776'),
 ('1000971','1100874'),
 ('1000971','1100876'),
 ('1000971','1100908'),
 ('1000972','1100772'),
 ('1000972','1100776'),
 ('1000972','1100874'),
 ('1000972','1100876'),
 ('1000972','1100908'),
 ('1000973','1100772'),
 ('1000973','1100776'),
 ('1000973','1100874');
INSERT INTO `dbinstitutiontype_dbtrouble` (`InstitutionTypeId`,`TroubleId`) VALUES 
 ('1000973','1100876'),
 ('1000973','1100908');
/*!40000 ALTER TABLE `dbinstitutiontype_dbtrouble` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstitutiontypedescription`
--

DROP TABLE IF EXISTS `dbinstitutiontypedescription`;
CREATE TABLE `dbinstitutiontypedescription` (
  `InstitutionTypeDescriptionId` decimal(18,0) NOT NULL,
  `InstitutionTypeId` decimal(18,0) default NULL,
  `LanguageId` decimal(18,0) default NULL,
  `Description` varchar(150) default NULL,
  PRIMARY KEY  (`InstitutionTypeDescriptionId`),
  KEY `DBInstitutionType_DBInstitutionTypeDescription_FK1` (`InstitutionTypeId`),
  KEY `DBLanguage_DBInstitutionTypeDescription_FK1` (`LanguageId`),
  CONSTRAINT `DBInstitutionType_DBInstitutionTypeDescription_FK1` FOREIGN KEY (`InstitutionTypeId`) REFERENCES `dbinstitutiontype` (`InstitutionTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBLanguage_DBInstitutionTypeDescription_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstitutiontypedescription`
--

/*!40000 ALTER TABLE `dbinstitutiontypedescription` DISABLE KEYS */;
INSERT INTO `dbinstitutiontypedescription` (`InstitutionTypeDescriptionId`,`InstitutionTypeId`,`LanguageId`,`Description`) VALUES 
 ('1001000','1000901','1000311','Arzt'),
 ('1001001','1000902','1000311','Praktischer Arzt'),
 ('1001002','1000903','1000311','Allgemeinmedizin'),
 ('1001003','1000904','1000311','Anästhesiologie'),
 ('1001004','1000905','1000311','Anatomie'),
 ('1001005','1000906','1000311','Arbeitsmedizin'),
 ('1001006','1000907','1000311','Augenheilkunde'),
 ('1001007','1000909','1000311','Biochemie'),
 ('1001009','1000910','1000311','Chirurgie'),
 ('1001010','1000911','1000311','Diag. Radiologie'),
 ('1001011','1000913','1000311','Frauenheilkunde / Gynäkologie'),
 ('1001012','1000914','1000311','Hals-Nasen-Ohren-Heilkunde'),
 ('1001013','1000915','1000311','Dermatologie'),
 ('1001014','1000916','1000311','Herzchirurgie'),
 ('1001015','1000917','1000311','Humangenetik'),
 ('1001016','1000918','1000311','Hygiene / Umweltmedizin'),
 ('1001017','1000920','1000311','Innere Medizin'),
 ('1001018','1000921','1000311','Lungen- und Bronchialheilkunde');
INSERT INTO `dbinstitutiontypedescription` (`InstitutionTypeDescriptionId`,`InstitutionTypeId`,`LanguageId`,`Description`) VALUES 
 ('1001019','1000922','1000311','Kinderchirurgie'),
 ('1001020','1000923','1000311','Kinderheilkunde'),
 ('1001021','1000925','1000311','Kinder- und Jugendpsychiatrie'),
 ('1001022','1000926','1000311','Klinische Pharmakologie'),
 ('1001023','1000928','1000311','Laboratoriumsmedizin'),
 ('1001024','1000930','1000311','Mikrobiologie'),
 ('1001025','1000931','1000311','Mund-Kiefer-Gesichtschirurgie'),
 ('1001026','1000932','1000311','Nervenheilkunde'),
 ('1001027','1000933','1000311','Neurochirurgie'),
 ('1001028','1000934','1000311','Neurologie'),
 ('1001029','1000935','1000311','Neuropathologie'),
 ('1001030','1000936','1000311','Nuklearmedizin'),
 ('1001031','1000937','1000311','Öffentliches Gesundheitswesen'),
 ('1001032','1000938','1000311','Orthopädie'),
 ('1001033','1000940','1000311','Pathologie'),
 ('1001034','1000942','1000311','Pharmakologie und Toxikologie'),
 ('1001035','1000943','1000311','Phoniatrie und Pädaudiologie');
INSERT INTO `dbinstitutiontypedescription` (`InstitutionTypeDescriptionId`,`InstitutionTypeId`,`LanguageId`,`Description`) VALUES 
 ('1001036','1000944','1000311','Physikalische und Reh. Medizin'),
 ('1001037','1000945','1000311','Physiologie'),
 ('1001038','1000947','1000311','Plastische Chirurgie'),
 ('1001039','1000949','1000311','Psychatrie und Psychotherapie'),
 ('1001040','1000950','1000311','Psychotherapeutische Medizin'),
 ('1001041','1000954','1000311','Rechtsmedizin'),
 ('1001042','1000957','1000311','Strahlentherapie'),
 ('1001043','1000958','1000311','Transfusionsmedizin'),
 ('1001044','1000959','1000311','Urologie'),
 ('1001045','1000960','1000311','Chirotherapie'),
 ('1001046','1000962','1000311','Früherkennungsuntersuchungen'),
 ('1001047','1000963','1000311','Gastroenterologie'),
 ('1001048','1000964','1000311','Lungen- und Bronchialheilkunde'),
 ('1001049','1000965','1000311','Pädiatrie '),
 ('1001050','1000967','1000311','Psychagogie'),
 ('1001051','1000968','1000311','Psychatrie'),
 ('1001052','1000969','1000311','Psychologische Psychoanalytik');
INSERT INTO `dbinstitutiontypedescription` (`InstitutionTypeDescriptionId`,`InstitutionTypeId`,`LanguageId`,`Description`) VALUES 
 ('1001053','1000970','1000311','Psychologische Verhaltenstherapie'),
 ('1001054','1000971','1000311','Psychotherapie'),
 ('1001055','1000972','1000311','Radiologie'),
 ('1001056','1000973','1000311','Zahnarzt');
/*!40000 ALTER TABLE `dbinstitutiontypedescription` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbinstkindofappclosement`
--

DROP TABLE IF EXISTS `dbinstkindofappclosement`;
CREATE TABLE `dbinstkindofappclosement` (
  `InstKindOfAppClosementId` decimal(18,0) NOT NULL,
  `InstitutionKindOfAppointmentId` decimal(18,0) default NULL,
  `ClosementDateStart` datetime default NULL,
  `ClosementDateEnd` datetime default NULL,
  PRIMARY KEY  (`InstKindOfAppClosementId`),
  KEY `DBInstitutionKindOfAppointment_DBInstKindOfAppClosement_FK1` (`InstitutionKindOfAppointmentId`),
  CONSTRAINT `DBInstitutionKindOfAppointment_DBInstKindOfAppClosement_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbinstkindofappclosement`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbkindofapp_dbemployee`
--

DROP TABLE IF EXISTS `dbkindofapp_dbemployee`;
CREATE TABLE `dbkindofapp_dbemployee` (
  `InstitutionKindOfAppointmentId` decimal(18,0) NOT NULL,
  `InstitutionEmployeeId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`),
  KEY `DBInstitutionEmployee_DBKindOfApp_DBEmployee_FK1` (`InstitutionEmployeeId`),
  CONSTRAINT `DBInstitutionEmployee_DBKindOfApp_DBEmployee_FK1` FOREIGN KEY (`InstitutionEmployeeId`) REFERENCES `dbinstitutionemployee` (`InstitutionEmployeeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBInstitutionKindOfAppointment_DBKindOfApp_DBEmployee_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbkindofapp_dbemployee`
--

/*!40000 ALTER TABLE `dbkindofapp_dbemployee` DISABLE KEYS */;
INSERT INTO `dbkindofapp_dbemployee` (`InstitutionKindOfAppointmentId`,`InstitutionEmployeeId`) VALUES 
 ('1002231','1002251'),
 ('1002231','1002252'),
 ('1002232','1002253'),
 ('1002233','1002253'),
 ('1002234','1002254'),
 ('1002234','1002255'),
 ('1002235','1002256'),
 ('1002236','1002256');
/*!40000 ALTER TABLE `dbkindofapp_dbemployee` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbkindofapp_dbtrouble`
--

DROP TABLE IF EXISTS `dbkindofapp_dbtrouble`;
CREATE TABLE `dbkindofapp_dbtrouble` (
  `InstitutionKindOfAppointmentId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`TroubleId`,`InstitutionKindOfAppointmentId`),
  KEY `DBInstitutionKindOfAppointment_DBKindOfApp_DBTrouble_FK1` (`InstitutionKindOfAppointmentId`),
  CONSTRAINT `DBInstitutionKindOfAppointment_DBKindOfApp_DBTrouble_FK1` FOREIGN KEY (`InstitutionKindOfAppointmentId`) REFERENCES `dbinstitutionkindofappointment` (`InstitutionKindOfAppointmentId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBKindOfApp_DBTrouble_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbkindofapp_dbtrouble`
--

/*!40000 ALTER TABLE `dbkindofapp_dbtrouble` DISABLE KEYS */;
INSERT INTO `dbkindofapp_dbtrouble` (`InstitutionKindOfAppointmentId`,`TroubleId`) VALUES 
 ('1002231','1100631'),
 ('1002231','1100632'),
 ('1002231','1100633'),
 ('1002231','1100634'),
 ('1002231','1100635'),
 ('1002231','1100636'),
 ('1002231','1100637'),
 ('1002231','1100638'),
 ('1002231','1100639'),
 ('1002232','1100631'),
 ('1002232','1100632'),
 ('1002233','1100631'),
 ('1002233','1100632'),
 ('1002234','1100631'),
 ('1002234','1100632');
/*!40000 ALTER TABLE `dbkindofapp_dbtrouble` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dblanguage`
--

DROP TABLE IF EXISTS `dblanguage`;
CREATE TABLE `dblanguage` (
  `LanguageId` decimal(18,0) NOT NULL,
  `LanguageCode` varchar(10) default NULL,
  `LanguageDescription` varchar(50) default NULL,
  PRIMARY KEY  (`LanguageId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dblanguage`
--

/*!40000 ALTER TABLE `dblanguage` DISABLE KEYS */;
INSERT INTO `dblanguage` (`LanguageId`,`LanguageCode`,`LanguageDescription`) VALUES 
 ('1000311','de','GERMAN'),
 ('1000312','en','ENGLISH'),
 ('1000314','it','ITALIAN'),
 ('1000315','es','SPANISH'),
 ('1000316','pt','PORTUGUESE'),
 ('1000317','fr','FRENCH'),
 ('1000318','ja','JAPANESE'),
 ('1000319','ko','KOREAN'),
 ('1000320','nl','DUTCH'),
 ('1000321','da','DANISH');
/*!40000 ALTER TABLE `dblanguage` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dblogbookentry`
--

DROP TABLE IF EXISTS `dblogbookentry`;
CREATE TABLE `dblogbookentry` (
  `LogbookEntryId` decimal(18,0) NOT NULL,
  `EntryId` decimal(18,0) default NULL,
  `CustomerId` decimal(18,0) default NULL,
  PRIMARY KEY  (`LogbookEntryId`),
  KEY `DBCustomer_DBLogbookEntry_FK1` (`CustomerId`),
  KEY `DBEntry_DBLogbookEntry_FK1` (`EntryId`),
  CONSTRAINT `DBCustomer_DBLogbookEntry_FK1` FOREIGN KEY (`CustomerId`) REFERENCES `dbcustomer` (`CustomerId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBEntry_DBLogbookEntry_FK1` FOREIGN KEY (`EntryId`) REFERENCES `dbentry` (`EntryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dblogbookentry`
--

/*!40000 ALTER TABLE `dblogbookentry` DISABLE KEYS */;
INSERT INTO `dblogbookentry` (`LogbookEntryId`,`EntryId`,`CustomerId`) VALUES 
 ('1001801','1001601','1001501'),
 ('1001802','1001602','1001501'),
 ('1001803','1001603','1001502'),
 ('1001804','1001604','1001502');
/*!40000 ALTER TABLE `dblogbookentry` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dblogin`
--

DROP TABLE IF EXISTS `dblogin`;
CREATE TABLE `dblogin` (
  `UserId` decimal(18,0) NOT NULL,
  `Username` varchar(20) default NULL,
  `Password` varchar(10) default NULL,
  `Role` varchar(3) default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  `CreationDateTime` datetime default NULL,
  PRIMARY KEY  (`UserId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dblogin`
--

/*!40000 ALTER TABLE `dblogin` DISABLE KEYS */;
INSERT INTO `dblogin` (`UserId`,`Username`,`Password`,`Role`,`TransmitStatus`,`CreationDateTime`) VALUES 
 ('0',NULL,NULL,'P','0',NULL),
 ('1000001','c1','c1','P','1','2004-12-31 12:15:32'),
 ('1000002','c2','c2','P','1','2004-08-09 12:15:32'),
 ('1000003','c3','c3','P','1','2004-08-09 12:15:32'),
 ('1000004','c4','c4','P','1','2004-08-09 12:15:32'),
 ('1000005','c5','c5','P','1','2004-08-09 12:15:32'),
 ('1000006','c41','c41','P','1','2004-08-09 12:15:32'),
 ('1000007','c11','c11','P','1','2004-08-09 12:15:32'),
 ('1000770','co1','co1','CO','1','2004-08-09 12:15:32'),
 ('1000771','co2','co2','CO','1','2004-08-09 12:15:32');
/*!40000 ALTER TABLE `dblogin` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbmediumtype`
--

DROP TABLE IF EXISTS `dbmediumtype`;
CREATE TABLE `dbmediumtype` (
  `MediumTypeId` decimal(18,0) NOT NULL,
  `MediumTypeCode` varchar(10) default NULL,
  `MediumDescription` varchar(40) default NULL,
  `RepeatTimeForCall` varchar(3) default NULL,
  `PeriodForCalls` varchar(6) default NULL,
  `Points` decimal(9,0) default NULL,
  `TransmitCost` decimal(2,0) default NULL,
  PRIMARY KEY  (`MediumTypeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbmediumtype`
--

/*!40000 ALTER TABLE `dbmediumtype` DISABLE KEYS */;
INSERT INTO `dbmediumtype` (`MediumTypeId`,`MediumTypeCode`,`MediumDescription`,`RepeatTimeForCall`,`PeriodForCalls`,`Points`,`TransmitCost`) VALUES 
 ('1000301','SMS1','SMS1 Info','0','0','30','4'),
 ('1000302','EMAIL','Email Info','0','0','20','0'),
 ('1000303','FON1','Telephone Info','5','0','40','14'),
 ('1000304','SMS2','SMS2 Info','0','0','30','4'),
 ('1000305','EMAIL2','Email2 Info','0','0','20','0'),
 ('1000306','FON2','Telephone2 Info','5','0','40','14'),
 ('1000307','SMS3','SMS3 Info','0','0','30','4'),
 ('1000308','EMAIL3','Email3 Info','0','0','20','0'),
 ('1000309','FON3','Telephone3 Info','5','0','40','14');
/*!40000 ALTER TABLE `dbmediumtype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbparameter`
--

DROP TABLE IF EXISTS `dbparameter`;
CREATE TABLE `dbparameter` (
  `ParameterId` decimal(18,0) NOT NULL,
  `KindOfParameterStatus` decimal(1,0) default NULL,
  `ParameterDescription` varchar(100) default NULL,
  `DummyVariable` varchar(20) default NULL,
  PRIMARY KEY  (`ParameterId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbparameter`
--

/*!40000 ALTER TABLE `dbparameter` DISABLE KEYS */;
INSERT INTO `dbparameter` (`ParameterId`,`KindOfParameterStatus`,`ParameterDescription`,`DummyVariable`) VALUES 
 ('0','0','kein Parameter',''),
 ('1','1','Benutzername','ST-USRN'),
 ('2','1','Passwort','ST-PWD'),
 ('1008150','1','Zeitpunkt des vereinbarten Termins','ST-ADATETIME'),
 ('1008151','1','Geburtstag des Patienten','ST-PBDATE'),
 ('1008152','1','Telefonnummer des Patienten','ST-PTEL'),
 ('1008153','1','Name der Einrichtung','ST-INAME'),
 ('1008154','1','Telefonnummer der Einrichtung','ST-ITEL'),
 ('1008155','1','Schließung der Einrichtung Beginn Tag','ST-ICBEGINDATE'),
 ('1008156','1','Schließung der Einrichtung Ende Tag','ST-ICENDDATE'),
 ('1008157','1','Schließung der Einrichtung Beginn Tag mit Zeit','ST-ICBEGINDATETIME'),
 ('1008158','1','Schließung der Einrichtung Endem Tag mit Zeit','ST-ICENDDATETIME'),
 ('1008159','1','behandelnder Mitarbeiter der Einrichtung','ST-PEMP'),
 ('1008160','1','Terminart der Einrichtung','ST-PKOFA'),
 ('1008161','1','Zeitpunkt des aktuellen Termins','ST-ACTDATETIME'),
 ('1008162','2','Datum einer Blutanalyse','BADATE');
INSERT INTO `dbparameter` (`ParameterId`,`KindOfParameterStatus`,`ParameterDescription`,`DummyVariable`) VALUES 
 ('1008163','2','Datum einer Urinuntersuchung','UUDATETIME');
/*!40000 ALTER TABLE `dbparameter` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbparametervalue`
--

DROP TABLE IF EXISTS `dbparametervalue`;
CREATE TABLE `dbparametervalue` (
  `ParameterValueId` char(10) NOT NULL,
  `InstitutionRoundInfoId` decimal(18,0) default NULL,
  `ParameterId` decimal(18,0) default NULL,
  `Value` varchar(20) default NULL,
  PRIMARY KEY  (`ParameterValueId`),
  KEY `DBParameter_DBParameterValue_FK1` (`ParameterId`),
  KEY `DBInstitutionRoundInfo_DBParameterValue_FK1` (`InstitutionRoundInfoId`),
  CONSTRAINT `DBInstitutionRoundInfo_DBParameterValue_FK1` FOREIGN KEY (`InstitutionRoundInfoId`) REFERENCES `dbinstitutionroundinfo` (`InstitutionRoundInfoId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBParameter_DBParameterValue_FK1` FOREIGN KEY (`ParameterId`) REFERENCES `dbparameter` (`ParameterId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbparametervalue`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbpayment`
--

DROP TABLE IF EXISTS `dbpayment`;
CREATE TABLE `dbpayment` (
  `PaymentId` decimal(18,0) NOT NULL,
  `CountryId` decimal(18,0) default NULL,
  `PaymentCode` varchar(20) default NULL,
  `PaymentDescription` varchar(50) default NULL,
  `PayedByStatus` decimal(1,0) default NULL,
  `PayedAmmount` decimal(7,2) default NULL,
  `Points` decimal(9,0) default NULL,
  `AboStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`PaymentId`),
  KEY `DBCountry_DBPayment_FK1` (`CountryId`),
  CONSTRAINT `DBCountry_DBPayment_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpayment`
--

/*!40000 ALTER TABLE `dbpayment` DISABLE KEYS */;
INSERT INTO `dbpayment` (`PaymentId`,`CountryId`,`PaymentCode`,`PaymentDescription`,`PayedByStatus`,`PayedAmmount`,`Points`,`AboStatus`) VALUES 
 ('1000601','1000401','SERVICE','C-Payment by Service-Call','1',NULL,'0','0'),
 ('1000602','1000401','PREMIUM-SMS1','C-Payment by Premium-SMS1','1','2.00','80','0'),
 ('1000603','1000401','T-PAY-C2','C-Payment by T-Pay','1','2.00','100','0'),
 ('1000604','1000401','T-PAY-C5','C-Payment by T-Pay','1','5.00','280','0'),
 ('1000605','1000401','T-PAY-C10','C-Payment by T-Pay','1','10.00','600','0'),
 ('1000606','1000401','T-PAY-C4A','C-Payment by T-Pay','1','4.40','30','1'),
 ('1000607','1000401','T-PAY-C8A','C-Payment by T-Pay','1','4.40','30','1'),
 ('1000608','1000401','T-PAY-C12A','C-Payment by T-Pay','1','4.40','15','1'),
 ('1000609','1000401','BILL','I-Payment by Bill','2',NULL,'0','0'),
 ('1000610','1000401','DEBIT','I-Payment by Debit','2',NULL,'0','1'),
 ('1000611','1000401','T-PAY-I20','I-Payment by T-Pay','2','4.40','23','0'),
 ('1000612','1000401','T-PAY-I60','I-Payment by T-Pay','2','4.40','70','0'),
 ('1000613','1000401','T-PAY-I120','I-Payment by T-Pay','2','4.40','150','0');
INSERT INTO `dbpayment` (`PaymentId`,`CountryId`,`PaymentCode`,`PaymentDescription`,`PayedByStatus`,`PayedAmmount`,`Points`,`AboStatus`) VALUES 
 ('1000614','1000401','T-PAY-I20A','I-Payment by T-Pay','2','4.40','23','1'),
 ('1000615','1000401','T-PAY-I60A','I-Payment by T-Pay','2','4.40','70','1'),
 ('1000616','1000401','T-PAY-I120A','I-Payment by T-Pay','2','4.40','150','1'),
 ('1000617','1000401','T-PAY-C20','C-Payment by T-Pay','1','20.00','1300','0');
/*!40000 ALTER TABLE `dbpayment` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbperson`
--

DROP TABLE IF EXISTS `dbperson`;
CREATE TABLE `dbperson` (
  `PersonId` decimal(18,0) NOT NULL,
  `LanguageId` decimal(18,0) default NULL,
  `PresettingId` decimal(18,0) default NULL,
  `PersonArrangementDataId` decimal(18,0) default NULL,
  `CustomerId` decimal(18,0) default NULL,
  `PersonRole` varchar(10) default NULL,
  `TelephoneAreaCode` varchar(10) default NULL,
  `TelephoneCode` varchar(12) default NULL,
  `TelephoneSuitabilityType` decimal(1,0) default NULL,
  `BirthDay` datetime default NULL,
  `EmailAddress` varchar(50) default NULL,
  `EmailAddressConfirmed` decimal(1,0) default NULL,
  `AdvertisingStatus` decimal(1,0) default NULL,
  `StandardMediumTypeCode` varchar(10) default NULL,
  `CompleteInfoStatus` decimal(1,0) default NULL,
  `SecondCustomerId` decimal(18,0) default NULL,
  `TransmitStatus` decimal(2,0) default NULL,
  PRIMARY KEY  (`PersonId`),
  KEY `DBLanguage_DBPerson_FK1` (`LanguageId`),
  KEY `DBCustomer_DBPerson_FK1` (`CustomerId`),
  KEY `DBPresetting_DBPerson_FK1` (`PresettingId`),
  KEY `DBPersonArrangementData_DBPerson_FK1` (`PersonArrangementDataId`),
  CONSTRAINT `DBCustomer_DBPerson_FK1` FOREIGN KEY (`CustomerId`) REFERENCES `dbcustomer` (`CustomerId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBLanguage_DBPerson_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPersonArrangementData_DBPerson_FK1` FOREIGN KEY (`PersonArrangementDataId`) REFERENCES `dbpersonarrangementdata` (`PersonArrangementDataId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPresetting_DBPerson_FK1` FOREIGN KEY (`PresettingId`) REFERENCES `dbpresetting` (`PresettingId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbperson`
--

/*!40000 ALTER TABLE `dbperson` DISABLE KEYS */;
INSERT INTO `dbperson` (`PersonId`,`LanguageId`,`PresettingId`,`PersonArrangementDataId`,`CustomerId`,`PersonRole`,`TelephoneAreaCode`,`TelephoneCode`,`TelephoneSuitabilityType`,`BirthDay`,`EmailAddress`,`EmailAddressConfirmed`,`AdvertisingStatus`,`StandardMediumTypeCode`,`CompleteInfoStatus`,`SecondCustomerId`,`TransmitStatus`) VALUES 
 ('0','1000311','0',NULL,NULL,'P',NULL,NULL,'0',NULL,NULL,'0','0','FON1','1',NULL,'0'),
 ('1000001','1000311','1001201','1001553','1001501','C','01111','11111','0','1960-03-22 00:00:00','goetz.boesler@mediit.de','0','1','FON1','1','1001501','1'),
 ('1000002','1000311','1001202','1001554','1001501','C','0451','344343','0','1961-03-22 00:00:00','paula.tietz@gmx.de','0','1','FON1','1','1001502','1'),
 ('1000003','1000311','1001203',NULL,'1001501','C','0451','1111113','1','1960-03-22 00:00:00','info@mediit.de','0','1','FON1','1','1001503','1'),
 ('1000004','1000311','1001203',NULL,'1001501','CWP','0451','1111114','1','1960-03-22 00:00:00',NULL,'0','1','FON1','1','1001504','1'),
 ('1000005','1000311','1001205',NULL,'1001501','CR','0451','1111111','1','1960-03-22 00:00:00',NULL,'0','1','FON1','1','1001501','1');
INSERT INTO `dbperson` (`PersonId`,`LanguageId`,`PresettingId`,`PersonArrangementDataId`,`CustomerId`,`PersonRole`,`TelephoneAreaCode`,`TelephoneCode`,`TelephoneSuitabilityType`,`BirthDay`,`EmailAddress`,`EmailAddressConfirmed`,`AdvertisingStatus`,`StandardMediumTypeCode`,`CompleteInfoStatus`,`SecondCustomerId`,`TransmitStatus`) VALUES 
 ('1000006','1000311','1001203',NULL,'1001501','P','0451','1111114','1','1960-03-22 00:00:00',NULL,'0','1','FON1','1','1001504','1'),
 ('1000007','1000311','1001201',NULL,'1001501','CR','0451','1111111','1','1960-03-22 00:00:00','klaus.tietz@gmx.de','0','1','FON1','1','1001501','1');
/*!40000 ALTER TABLE `dbperson` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpersonarrangementdata`
--

DROP TABLE IF EXISTS `dbpersonarrangementdata`;
CREATE TABLE `dbpersonarrangementdata` (
  `PersonArrangementDataId` decimal(18,0) NOT NULL,
  `Title` decimal(1,0) default NULL,
  `AcadDegree` varchar(20) default NULL,
  `FirstName` varchar(50) default NULL,
  `Name` varchar(50) default NULL,
  `StandardMediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`PersonArrangementDataId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpersonarrangementdata`
--

/*!40000 ALTER TABLE `dbpersonarrangementdata` DISABLE KEYS */;
INSERT INTO `dbpersonarrangementdata` (`PersonArrangementDataId`,`Title`,`AcadDegree`,`FirstName`,`Name`,`StandardMediumTypeCode`) VALUES 
 ('0','0','','','','FON1'),
 ('1001553','1','','Tietz','Heinz','FON1'),
 ('1001554','0','','Tietz','Paula','FON2'),
 ('1001555','1','Dr.','Tietz','Klaus','FON1');
/*!40000 ALTER TABLE `dbpersonarrangementdata` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpersoninfodata`
--

DROP TABLE IF EXISTS `dbpersoninfodata`;
CREATE TABLE `dbpersoninfodata` (
  `PersonInfoDataId` char(10) NOT NULL,
  `InstitutionId` decimal(18,0) default NULL,
  `PersonId` decimal(18,0) default NULL,
  `ArrangementStatus` decimal(1,0) default NULL,
  `ArrangementMediumTypeCode` varchar(10) default NULL,
  `RoundinfoStatus` decimal(1,0) default NULL,
  `RoundinfoMediumTypeCode` varchar(10) default NULL,
  `AdvertisingStatus` decimal(1,0) default NULL,
  PRIMARY KEY  (`PersonInfoDataId`),
  KEY `DBInstitution_DBPersonInfoData_FK1` (`InstitutionId`),
  KEY `DBPerson_DBPersonInfoData_FK1` (`PersonId`),
  CONSTRAINT `DBInstitution_DBPersonInfoData_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPerson_DBPersonInfoData_FK1` FOREIGN KEY (`PersonId`) REFERENCES `dbperson` (`PersonId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpersoninfodata`
--

/*!40000 ALTER TABLE `dbpersoninfodata` DISABLE KEYS */;
INSERT INTO `dbpersoninfodata` (`PersonInfoDataId`,`InstitutionId`,`PersonId`,`ArrangementStatus`,`ArrangementMediumTypeCode`,`RoundinfoStatus`,`RoundinfoMediumTypeCode`,`AdvertisingStatus`) VALUES 
 ('1001000','1002101','1000001','1','SMS1','1','SMS1','1'),
 ('1001002','1002101','1000002','1','FON1','1','FON1','1'),
 ('1001003','1002101','1000003','1','FON1','1','EMAIL','1'),
 ('1001004','1002102','1000001','1','FON1','1','FON1','1'),
 ('1001005','1002102','1000002','1','FON1','1','FON1','1');
/*!40000 ALTER TABLE `dbpersoninfodata` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresetting`
--

DROP TABLE IF EXISTS `dbpresetting`;
CREATE TABLE `dbpresetting` (
  `PresettingId` decimal(18,0) NOT NULL,
  `PresettingAppointmentRememberingId` decimal(18,0) default NULL,
  `PresettingAppointmentShiftId` decimal(18,0) default NULL,
  `TimeBeforeAppointment` varchar(10) default NULL,
  `Period` varchar(2) default NULL,
  PRIMARY KEY  (`PresettingId`),
  KEY `DBPresettingAppointmentRemembering_DBPresetting_FK1` (`PresettingAppointmentRememberingId`),
  KEY `DBPresettingAppointmentShift_DBPresetting_FK1` (`PresettingAppointmentShiftId`),
  CONSTRAINT `DBPresettingAppointmentRemembering_DBPresetting_FK1` FOREIGN KEY (`PresettingAppointmentRememberingId`) REFERENCES `dbpresettingappointmentremembering` (`PresettingAppointmentRememberingId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPresettingAppointmentShift_DBPresetting_FK1` FOREIGN KEY (`PresettingAppointmentShiftId`) REFERENCES `dbpresettingappointmentshift` (`PresettingAppointmentShiftId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresetting`
--

/*!40000 ALTER TABLE `dbpresetting` DISABLE KEYS */;
INSERT INTO `dbpresetting` (`PresettingId`,`PresettingAppointmentRememberingId`,`PresettingAppointmentShiftId`,`TimeBeforeAppointment`,`Period`) VALUES 
 ('0','0','0','10','10'),
 ('1001201','1001001','1001101','10','10'),
 ('1001202','1001002','1001102','10','10'),
 ('1001203','1001003','1001103','10','10'),
 ('1001204','1001004','1001104','10','10'),
 ('1001205','1001005','1001105','10','10'),
 ('1001206','1001006','1001106','10','10'),
 ('1002001','1001007','1001107','10','10'),
 ('1002002','1001008','1001108','10','10'),
 ('1002003','1001009','1001109','10','10'),
 ('1002004','1001010','1001110','10','10'),
 ('1002005','1001011','1001111','10','10'),
 ('1002006','1001012','1001112','10','10');
/*!40000 ALTER TABLE `dbpresetting` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresetting_dbinstitution`
--

DROP TABLE IF EXISTS `dbpresetting_dbinstitution`;
CREATE TABLE `dbpresetting_dbinstitution` (
  `PresettingId` decimal(18,0) NOT NULL,
  `InstitutionId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`PresettingId`,`InstitutionId`),
  KEY `DBInstitution_DBPresetting_DBInstitution_FK1` (`InstitutionId`),
  CONSTRAINT `DBInstitution_DBPresetting_DBInstitution_FK1` FOREIGN KEY (`InstitutionId`) REFERENCES `dbinstitution` (`InstitutionId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPresetting_DBPresetting_DBInstitution_FK1` FOREIGN KEY (`PresettingId`) REFERENCES `dbpresetting` (`PresettingId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresetting_dbinstitution`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresetting_dbinstitutiontype`
--

DROP TABLE IF EXISTS `dbpresetting_dbinstitutiontype`;
CREATE TABLE `dbpresetting_dbinstitutiontype` (
  `PresettingId` decimal(18,0) NOT NULL,
  `InstitutionTypeId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`PresettingId`,`InstitutionTypeId`),
  KEY `DBInstitutionType_DBPresetting_DBInstitutionType_FK1` (`InstitutionTypeId`),
  CONSTRAINT `DBInstitutionType_DBPresetting_DBInstitutionType_FK1` FOREIGN KEY (`InstitutionTypeId`) REFERENCES `dbinstitutiontype` (`InstitutionTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBPresetting_DBPresetting_DBInstitutionType_FK1` FOREIGN KEY (`PresettingId`) REFERENCES `dbpresetting` (`PresettingId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresetting_dbinstitutiontype`
--

/*!40000 ALTER TABLE `dbpresetting_dbinstitutiontype` DISABLE KEYS */;
INSERT INTO `dbpresetting_dbinstitutiontype` (`PresettingId`,`InstitutionTypeId`) VALUES 
 ('1001201','1000901'),
 ('1001204','1000901'),
 ('1002001','1000901'),
 ('1002002','1000901'),
 ('1002003','1000901'),
 ('1002004','1000901'),
 ('1002005','1000901'),
 ('1002006','1000901'),
 ('1001201','1000903'),
 ('1001202','1000903'),
 ('1002001','1000903'),
 ('1002002','1000903'),
 ('1002003','1000903'),
 ('1002005','1000903'),
 ('1001203','1000928'),
 ('1002002','1000928'),
 ('1002004','1000928'),
 ('1002005','1000928'),
 ('1001201','1000930'),
 ('1001206','1000930'),
 ('1002003','1000930'),
 ('1001202','1000932'),
 ('1002001','1000932'),
 ('1001202','1000933'),
 ('1001205','1000933'),
 ('1002001','1000933'),
 ('1002004','1000933');
/*!40000 ALTER TABLE `dbpresetting_dbinstitutiontype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresetting_dbtrouble`
--

DROP TABLE IF EXISTS `dbpresetting_dbtrouble`;
CREATE TABLE `dbpresetting_dbtrouble` (
  `PresettingId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`PresettingId`,`TroubleId`),
  KEY `DBTrouble_DBPresetting_DBTrouble_FK1` (`TroubleId`),
  CONSTRAINT `DBPresetting_DBPresetting_DBTrouble_FK1` FOREIGN KEY (`PresettingId`) REFERENCES `dbpresetting` (`PresettingId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBPresetting_DBTrouble_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresetting_dbtrouble`
--

/*!40000 ALTER TABLE `dbpresetting_dbtrouble` DISABLE KEYS */;
INSERT INTO `dbpresetting_dbtrouble` (`PresettingId`,`TroubleId`) VALUES 
 ('1001201','1100631'),
 ('1001202','1100631'),
 ('1001203','1100631'),
 ('1001204','1100631'),
 ('1001205','1100631'),
 ('1001206','1100631'),
 ('1002001','1100631'),
 ('1002002','1100631'),
 ('1002003','1100631'),
 ('1002004','1100631'),
 ('1002005','1100631'),
 ('1002006','1100631'),
 ('1001201','1100632'),
 ('1001206','1100632'),
 ('1001206','1100633');
/*!40000 ALTER TABLE `dbpresetting_dbtrouble` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresetting_dbzipcodearea`
--

DROP TABLE IF EXISTS `dbpresetting_dbzipcodearea`;
CREATE TABLE `dbpresetting_dbzipcodearea` (
  `PresettingId` decimal(18,0) NOT NULL,
  `ZipCodeAreaId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`PresettingId`,`ZipCodeAreaId`),
  KEY `DBZipCodeArea_DBPresetting_DBZipCodeArea_FK1` (`ZipCodeAreaId`),
  CONSTRAINT `DBPresetting_DBPresetting_DBZipCodeArea_FK1` FOREIGN KEY (`PresettingId`) REFERENCES `dbpresetting` (`PresettingId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBZipCodeArea_DBPresetting_DBZipCodeArea_FK1` FOREIGN KEY (`ZipCodeAreaId`) REFERENCES `dbzipcodearea` (`ZipCodeAreaId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresetting_dbzipcodearea`
--

/*!40000 ALTER TABLE `dbpresetting_dbzipcodearea` DISABLE KEYS */;
INSERT INTO `dbpresetting_dbzipcodearea` (`PresettingId`,`ZipCodeAreaId`) VALUES 
 ('1002004','1000503'),
 ('1002005','1000504'),
 ('1002006','1000505'),
 ('1001206','1000516'),
 ('1002001','1000516'),
 ('1001203','1000518'),
 ('1001201','1000524'),
 ('1001202','1000524'),
 ('1001204','1000532'),
 ('1001206','1000546'),
 ('1002002','1000546'),
 ('1001205','1000556'),
 ('1001206','1000556'),
 ('1002003','1000556');
/*!40000 ALTER TABLE `dbpresetting_dbzipcodearea` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresettingappointmentremembering`
--

DROP TABLE IF EXISTS `dbpresettingappointmentremembering`;
CREATE TABLE `dbpresettingappointmentremembering` (
  `PresettingAppointmentRememberingId` decimal(18,0) NOT NULL,
  `AppointmentRememberingStatus` decimal(1,0) default NULL,
  `DaysBeforeAppointment` varchar(10) default NULL,
  `HoursBeforeAppointment` varchar(10) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`PresettingAppointmentRememberingId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresettingappointmentremembering`
--

/*!40000 ALTER TABLE `dbpresettingappointmentremembering` DISABLE KEYS */;
INSERT INTO `dbpresettingappointmentremembering` (`PresettingAppointmentRememberingId`,`AppointmentRememberingStatus`,`DaysBeforeAppointment`,`HoursBeforeAppointment`,`MediumTypeCode`) VALUES 
 ('0','0','Day0','Hour0','SMS1'),
 ('1001001','1','Day0','Hour2','SMS2'),
 ('1001002','1','Day1','Hour0','FON1'),
 ('1001003','1','Day1','Hour3','SMS1'),
 ('1001004','1','Day0','Hour4','FON1'),
 ('1001005','1','Day2','Hour3','SMS1'),
 ('1001006','1','Day0','Hour1','FON1'),
 ('1001007','1','Day0','Hour2','SMS1'),
 ('1001008','1','Day1','Hour0','FON1'),
 ('1001009','1','Day1','Hour3','SMS1'),
 ('1001010','1','Day0','Hour4','FON1'),
 ('1001011','1','Day2','Hour3','SMS1'),
 ('1001012','1','Day0','Hour1','FON1');
/*!40000 ALTER TABLE `dbpresettingappointmentremembering` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresettingappointmentshift`
--

DROP TABLE IF EXISTS `dbpresettingappointmentshift`;
CREATE TABLE `dbpresettingappointmentshift` (
  `PresettingAppointmentShiftId` decimal(18,0) NOT NULL,
  `AppointmentShiftStatus` decimal(1,0) default NULL,
  `ToleranceTime` varchar(10) default NULL,
  `TimeBeforeAppointment` varchar(10) default NULL,
  `ActualAppointmentInfoStatus` decimal(1,0) default NULL,
  `ArrangedAppointmentInfoStatus` decimal(1,0) default NULL,
  `MediumTypeCode` varchar(10) default NULL,
  PRIMARY KEY  (`PresettingAppointmentShiftId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresettingappointmentshift`
--

/*!40000 ALTER TABLE `dbpresettingappointmentshift` DISABLE KEYS */;
INSERT INTO `dbpresettingappointmentshift` (`PresettingAppointmentShiftId`,`AppointmentShiftStatus`,`ToleranceTime`,`TimeBeforeAppointment`,`ActualAppointmentInfoStatus`,`ArrangedAppointmentInfoStatus`,`MediumTypeCode`) VALUES 
 ('0','0','Minute0','Minute0','0','0','SMS1'),
 ('1001101','1','Minute0','Minute4','1','0','SMS2'),
 ('1001102','1','Minute1','Minute3','1','0','SMS1'),
 ('1001103','1','Minute2','Minute5','1','1','SMS1'),
 ('1001104','1','Minute1','Minute4','0','1','FON1'),
 ('1001105','1','Minute0','Minute6','1','0','FON1'),
 ('1001106','1','Minute2','Minute6','1','1','FON1'),
 ('1001107','1','Minute0','Minute4','1','0','SMS1'),
 ('1001108','1','Minute1','Minute3','1','0','SMS1'),
 ('1001109','1','Minute2','Minute5','1','1','SMS1'),
 ('1001110','1','Minute1','Minute4','0','1','FON1'),
 ('1001111','1','Minute0','Minute6','1','0','FON1'),
 ('1001112','1','Minute2','Minute6','1','1','FON1');
/*!40000 ALTER TABLE `dbpresettingappointmentshift` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbpresettingperiodoftime`
--

DROP TABLE IF EXISTS `dbpresettingperiodoftime`;
CREATE TABLE `dbpresettingperiodoftime` (
  `PresettingPeriodOfTimeId` decimal(18,0) NOT NULL,
  `PresettingId` decimal(18,0) default NULL,
  `DayInWeekId` varchar(1) default NULL,
  `Start` datetime default NULL,
  `End` datetime default NULL,
  PRIMARY KEY  (`PresettingPeriodOfTimeId`),
  KEY `DBPresetting_DBPresettingPeriodOfTime_FK1` (`PresettingId`),
  CONSTRAINT `DBPresetting_DBPresettingPeriodOfTime_FK1` FOREIGN KEY (`PresettingId`) REFERENCES `dbpresetting` (`PresettingId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbpresettingperiodoftime`
--

/*!40000 ALTER TABLE `dbpresettingperiodoftime` DISABLE KEYS */;
INSERT INTO `dbpresettingperiodoftime` (`PresettingPeriodOfTimeId`,`PresettingId`,`DayInWeekId`,`Start`,`End`) VALUES 
 ('0',NULL,'0','1970-01-01 08:00:00','1970-01-01 18:00:00'),
 ('1002050','1001201','1','1970-01-01 07:00:00','1970-01-01 14:00:00'),
 ('1002051','1001201','2','1970-01-01 12:00:00','1970-01-01 14:00:00'),
 ('1002052','1001201','3','1970-01-01 12:00:00','1970-01-01 14:00:00'),
 ('1002053','1001201','4','1970-01-01 12:00:00','1970-01-01 14:00:00');
/*!40000 ALTER TABLE `dbpresettingperiodoftime` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbsentinfo`
--

DROP TABLE IF EXISTS `dbsentinfo`;
CREATE TABLE `dbsentinfo` (
  `SentInfoId` decimal(18,0) NOT NULL,
  `TelephoneNumber` varchar(20) default NULL,
  `Text` varchar(130) default NULL,
  `ContentType` decimal(2,0) default NULL,
  `Id` decimal(18,0) default NULL,
  PRIMARY KEY  (`SentInfoId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbsentinfo`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbsoftwaretype`
--

DROP TABLE IF EXISTS `dbsoftwaretype`;
CREATE TABLE `dbsoftwaretype` (
  `SoftwareTypeId` decimal(18,0) NOT NULL,
  `SoftwareCode` varchar(10) default NULL,
  `SoftwareDescription` varchar(100) default NULL,
  PRIMARY KEY  (`SoftwareTypeId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbsoftwaretype`
--

/*!40000 ALTER TABLE `dbsoftwaretype` DISABLE KEYS */;
INSERT INTO `dbsoftwaretype` (`SoftwareTypeId`,`SoftwareCode`,`SoftwareDescription`) VALUES 
 ('1000701','MedOrgV23','MedOrganizer Windows Version'),
 ('1000702','MedOrgV30','MedOrganizer Windows Version'),
 ('1000703','MedOrgV33','MedOrganizer Windows Version'),
 ('1000704','MEDISTAR','Medistar Praxissoftware');
/*!40000 ALTER TABLE `dbsoftwaretype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbsoftwaretype_dbinfotype`
--

DROP TABLE IF EXISTS `dbsoftwaretype_dbinfotype`;
CREATE TABLE `dbsoftwaretype_dbinfotype` (
  `InfoTypeId` decimal(18,0) NOT NULL,
  `SoftwareTypeId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`SoftwareTypeId`,`InfoTypeId`),
  KEY `DBInfoType_DBSoftwareType_DBInfoType_FK1` (`InfoTypeId`),
  CONSTRAINT `DBInfoType_DBSoftwareType_DBInfoType_FK1` FOREIGN KEY (`InfoTypeId`) REFERENCES `dbinfotype` (`InfoTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBSoftwareType_DBSoftwareType_DBInfoType_FK1` FOREIGN KEY (`SoftwareTypeId`) REFERENCES `dbsoftwaretype` (`SoftwareTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbsoftwaretype_dbinfotype`
--

/*!40000 ALTER TABLE `dbsoftwaretype_dbinfotype` DISABLE KEYS */;
INSERT INTO `dbsoftwaretype_dbinfotype` (`InfoTypeId`,`SoftwareTypeId`) VALUES 
 ('1002807','1000702'),
 ('1002807','1000703'),
 ('1002950','1000702'),
 ('1002950','1000703'),
 ('1002951','1000702'),
 ('1002951','1000703'),
 ('1002952','1000702'),
 ('1002952','1000703');
/*!40000 ALTER TABLE `dbsoftwaretype_dbinfotype` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbsoftwaretype_dbparameter`
--

DROP TABLE IF EXISTS `dbsoftwaretype_dbparameter`;
CREATE TABLE `dbsoftwaretype_dbparameter` (
  `SoftwareTypeId` decimal(18,0) NOT NULL,
  `ParameterId` decimal(18,0) NOT NULL,
  PRIMARY KEY  (`SoftwareTypeId`,`ParameterId`),
  KEY `DBParameter_DBSoftwareType_DBParameter_FK1` (`ParameterId`),
  CONSTRAINT `DBParameter_DBSoftwareType_DBParameter_FK1` FOREIGN KEY (`ParameterId`) REFERENCES `dbparameter` (`ParameterId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBSoftwareType_DBSoftwareType_DBParameter_FK1` FOREIGN KEY (`SoftwareTypeId`) REFERENCES `dbsoftwaretype` (`SoftwareTypeId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbsoftwaretype_dbparameter`
--

/*!40000 ALTER TABLE `dbsoftwaretype_dbparameter` DISABLE KEYS */;
INSERT INTO `dbsoftwaretype_dbparameter` (`SoftwareTypeId`,`ParameterId`) VALUES 
 ('1000702','1008162'),
 ('1000703','1008162'),
 ('1000702','1008163'),
 ('1000703','1008163');
/*!40000 ALTER TABLE `dbsoftwaretype_dbparameter` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbtextparameter`
--

DROP TABLE IF EXISTS `dbtextparameter`;
CREATE TABLE `dbtextparameter` (
  `TextParameterId` decimal(18,0) NOT NULL,
  `EntryId` decimal(18,0) default NULL,
  `Number` decimal(2,0) default NULL,
  `TextParameter` varchar(40) default NULL,
  PRIMARY KEY  (`TextParameterId`),
  KEY `DBEntry_DBTextParameter_FK1` (`EntryId`),
  CONSTRAINT `DBEntry_DBTextParameter_FK1` FOREIGN KEY (`EntryId`) REFERENCES `dbentry` (`EntryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbtextparameter`
--

/*!40000 ALTER TABLE `dbtextparameter` DISABLE KEYS */;
INSERT INTO `dbtextparameter` (`TextParameterId`,`EntryId`,`Number`,`TextParameter`) VALUES 
 ('1001701','1001601','1','0451-2222221'),
 ('1001702','1001601','1','22.03.1960'),
 ('1001703','1001601','1','0451-2222221'),
 ('1001704','1001601','1','22.03.1960');
/*!40000 ALTER TABLE `dbtextparameter` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbtimeperiod`
--

DROP TABLE IF EXISTS `dbtimeperiod`;
CREATE TABLE `dbtimeperiod` (
  `TimePeriodId` decimal(18,0) NOT NULL,
  `DaysInLogbook` decimal(3,0) default NULL,
  `MonthForAccount` varchar(10) default NULL,
  PRIMARY KEY  (`TimePeriodId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbtimeperiod`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbtrouble`
--

DROP TABLE IF EXISTS `dbtrouble`;
CREATE TABLE `dbtrouble` (
  `TroubleId` decimal(18,0) NOT NULL,
  `ShortDescription` varchar(150) default NULL,
  `Duration` varchar(5) default NULL,
  `Priority` decimal(1,0) default NULL,
  PRIMARY KEY  (`TroubleId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbtrouble`
--

/*!40000 ALTER TABLE `dbtrouble` DISABLE KEYS */;
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100631','Essentielle (primäre) Hypertonie','20','2'),
 ('1100632','Störung des Lipoproteinstoffwechsels und sonstige Lipidämie','20','2'),
 ('1100633','Rückenschmerzen','20','0'),
 ('1100634','Chronische ischämische Herzkrankheit','20','2'),
 ('1100635','Nicht primär insulinabhängiger Diabetes mellitus [Typ-II]','20','1'),
 ('1100636','Sonstiges nichttoxisches Struma','20','2'),
 ('1100637','Adipositas','20','2'),
 ('1100638','Störung des Purin- und Pyrimidinstoffwechsels','20','2'),
 ('1100639','Varizen der unteren Extremitäten','20','2'),
 ('1100640','Gastritis und Duodenitis','20','1'),
 ('1100641','Sonstige Krankheit der Leber','20','1'),
 ('1100642','Sonstige Krankheit der Wirbelsäule und des Rückens, andernorts nicht klassif.','20','1'),
 ('1100643','Akute Bronchitis','20','0'),
 ('1100644','Sonstige chronische obstruktive Lungenkrankheit','20','1'),
 ('1100645','Vasomotorische und allergische Rhinopathie','20','2'),
 ('1100646','Gonarthrose [Arthrose des Kniegelenkes]','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100647','Asthma bronchiale','20','2'),
 ('1100648','Herzinsuffizienz','20','1'),
 ('1100649','Depressive Episode','20','2'),
 ('1100650','Akute Infektion','20','0'),
 ('1100651','Spondylose','20','0'),
 ('1100652','Sonstiger Bandscheibenschaden','20','1'),
 ('1100653','Gastroösophageale Refluxkrankheit','20','1'),
 ('1100654','Osteoporose ohne pathologische Fraktur','20','2'),
 ('1100655','Sonstige kardiale Arrhythmie','20','2'),
 ('1100656','Somatoforme Störung','20','2'),
 ('1100657','Schlafstörung','20','1'),
 ('1100658','Cholelithiasis','20','1'),
 ('1100659','Migräne','20','0'),
 ('1100660','Bronchitis, nicht als akut oder chronisch bezeichnet','20','2'),
 ('1100661','Notwendigkeit der Impfung [Immunisierung] gegen andere einz. Viruskr.','20','2'),
 ('1100662','Unerwünschte Nebenwirkung, anderenorts nicht klassifiziert','20','2'),
 ('1100663','Prostatahyperplasie','20','2'),
 ('1100664','Nicht näher bezeichneter Diabetes mellitus','20','1'),
 ('1100665','Sonstige Krankheit des Harnsystems','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100666','Sonstige Dermatitis','20','2'),
 ('1100667','Sonstige nichtinfektiöse Gastroenteritis und Kolitis','20','1'),
 ('1100668','Hämorrhoiden','20','0'),
 ('1100669','Koxarthrose [Arthrose des Hüftgelenkes]','20','2'),
 ('1100670','Klimakterische Störung','20','2'),
 ('1100671','Jodmangelbedingte Schilddrüsenkrankheit und verwandter Zustand','20','2'),
 ('1100672','Sonstige Krankheit des Weichteilgewebes, anderenorts nicht klassif.','20','2'),
 ('1100673','Sonstige Venenkrankheit','20','2'),
 ('1100674','Verletzung an einer nicht näher bezeichneten Körperregion','20','0'),
 ('1100675','Psychische und Verhaltensstörung durch Tabak','20','2'),
 ('1100676','Skoliose','20','2'),
 ('1100677','Hypotonie','20','2'),
 ('1100678','Bauch- und Beckenschmerzen','20','0'),
 ('1100679','Sonstige periphere Gefäßkrankheit','20','1'),
 ('1100680','Schulterläsion','20','0'),
 ('1100681','Akkommodationsstörung und Refraktionsfehler','20','2'),
 ('1100682','Sonstiger Strabismus','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100683','Glaukom','20','0'),
 ('1100684','Sonstige Affektion der Netzhaut','20','0'),
 ('1100685','Sehstörung','20','1'),
 ('1100686','Cataracta senilis','20','2'),
 ('1100687','Sonstige Kataraktform','20','2'),
 ('1100688','Netzhautablösung und Netzhautriß','20','0'),
 ('1100689','Konjunktivitis','20','0'),
 ('1100690','Affektion des Tränenapparates','20','0'),
 ('1100691','Sonstige Affektion des Nervus opticus [II. Hirnnerv] u. d. Sehbahn','20','1'),
 ('1100692','Sonstige Affektion der Konjunktiva','20','1'),
 ('1100693','Vorhandensein von anderen funktionellen Implantaten','20','2'),
 ('1100694','Affektion des Glaskörpers','20','0'),
 ('1100695','Sonstige Krankheit mit Systembeteiligung des Bindegewebes','20','2'),
 ('1100696','Sonstige Affektion der Linse','20','0'),
 ('1100697','Sonstige Affektion des Augenlides','20','0'),
 ('1100698','Versorgen mit und Anpassen von anderen medizinischen Geräten oder Hilfsmitteln','20','2'),
 ('1100699','Sonstige Störung der Blickbewegungen','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100700','Primär insulinabhängiger Diabetes mellitus [Typ-I-Diabetes]','20','1'),
 ('1100701','Hordeolum und Chalazion','20','1'),
 ('1100702','Sonstige Affektion der Hornhaut','20','1'),
 ('1100703','Sonstige Enthesopathie','20','1'),
 ('1100704','Luxation, Verstauchung und Zerrung der Gelenke u. Bänder (Fuß)','20','0'),
 ('1100705','Sonstige Gelenkkrankheit, anderenorts nicht klassifiziert','20','2'),
 ('1100706','Fraktur des Unterarmes','20','0'),
 ('1100707','Hautabszeß, Furunkel und Karbunkel','20','0'),
 ('1100708','Krankh. des Weichteilgew. im Zusammenh. mit Beanspr., Überb. u. Druck','20','2'),
 ('1100709','Synovitis und Tenosynovitis','20','1'),
 ('1100710','Phlegmone','20','1'),
 ('1100711','Neubildung unsicheren o. unbekannten Verhaltens an sonst.u. n.n.bez. Lokal.','20','2'),
 ('1100712','Binnenschädigung des Kniegelenkes [internal derangement]','20','2'),
 ('1100713','Sonstige Arthrose','20','1'),
 ('1100714','Mononeuropathie der oberen Extremität','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100715','Krankheit der Nägel','20','1'),
 ('1100716','Fraktur des Unterschenkels, einschließlich des oberen Sprunggelenkes','20','0'),
 ('1100717','Sonstige Krankheit der Synovialis und der Sehnen','20','1'),
 ('1100718','Follikuläre Zyste der Haut und der Unterhaut','20','1'),
 ('1100719','Luxation, Verstauchung u. Zerrung von Gelenken u. Bänder (Hand)','20','0'),
 ('1100720','Fraktur im Bereich des Handgelenkes und der Hand','20','0'),
 ('1100721','Oberflächliche Verletzung des Unterschenkels','20','1'),
 ('1100722','Luxation, Verstauchung u. Zerrung des Kniegelenkes u. Bändern des Kniegelenkes','20','0'),
 ('1100723','Fraktur des Fußes [ausgenommen oberes Sprunggelenk]','20','0'),
 ('1100724','Fissur und Fistel in der Anal- und Rektalregion','20','0'),
 ('1100725','Stuhlinkontinenz','20','1'),
 ('1100726','Erworbene Deformität der Finger und Zehen','20','2'),
 ('1100727','Sonstige erworbene Deformität der Extremitäten','20','2'),
 ('1100728','Fraktur im Bereich der Schulter und des Oberarmes','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100729','Krankheit der Patella','20','1'),
 ('1100731','Oberflächliche Verletzung des Handgelenkes und der Hand','20','2'),
 ('1100732','Hernia inguinalis','20','2'),
 ('1100733','Viruswarzen','20','2'),
 ('1100734','Oberflächliche Verletzung der Knöchelregion und des Fußes','20','2'),
 ('1100735','Hühneraugen und Horn-(Haut-)Schwielen','20','2'),
 ('1100736','Biomechanische Funktionsstörungen, anderenorts nicht klassifiziert','20','2'),
 ('1100737','Sonstige gutartige Neubildung der Haut','20','2'),
 ('1100738','Oberflächliche Verletzung des Thorax','20','1'),
 ('1100739','Oberflächliche Verletzung des Kopfes','20','1'),
 ('1100740','Gutartige Neubildung des Fettgewebes','20','2'),
 ('1100741','Sonstige Arthritis','20','2'),
 ('1100742','Kontrazeptive Maßnahme','20','2'),
 ('1100743','Sonstige nichtentzündliche Krankheit der Vagina','20','1'),
 ('1100744','Spezielles Verfahren zur Untersuchung auf Neubildungen','20','2'),
 ('1100745','Sonstige entzündliche Krankheit der Vagina und Vulva','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100746','Schmerz u. andere Zustände im Zusammenhang mit den weibl. Genitalorg. u. Mzykl.','20','0'),
 ('1100747','Kandidose','20','1'),
 ('1100748','Erosion und Ektropium der Cervix uteri','20','2'),
 ('1100749','Nichtentzündliche Krankheit des Ovars, der Tuba uterina und des Lig. latum uteri','20','1'),
 ('1100750','Sonstige Krankheit der Mamma [Brustdrüse]','20','2'),
 ('1100751','Leiomyom des Uterus','20','1'),
 ('1100753','Genitalprolaps bei der Frau','20','1'),
 ('1100754','Ausgebliebene, zu schwache oder zu seltene Menstruation','20','2'),
 ('1100755','Ovarielle Dysfunktion','20','2'),
 ('1100756','Sonstige abnorme Uterus- oder Vaginalblutung','20','0'),
 ('1100757','Überwachung einer normalen Schwangerschaft','20','2'),
 ('1100758','Gutartige Mammadysplasie [Brustdrüsendysplasie]','20','1'),
 ('1100759','Sonstige nichtentzündliche Krankheit des Uterus, ausgenommen der Zervix','20','1'),
 ('1100760','Bösartige Neubildung der Brustdrüse [Mamma]','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100761','Verlust von Organen, anderenorts nicht klassifiziert','20','2'),
 ('1100762','Hypertrichose','20','1'),
 ('1100763','Abnormer Befund in Untersuchungsmaterialien aus den weibl. Genitalorganen','20','0'),
 ('1100764','Reaktionen auf schwere Belastungen und Anpassungsstörung','20','1'),
 ('1100765','Pruritus','20','1'),
 ('1100766','Akne','20','2'),
 ('1100767','Sonstige endokrine Störung','20','1'),
 ('1100768','Neubildung unsicheren oder unbekannten Verhaltens der weibl. Genitalorgane','20','1'),
 ('1100769','Sonstige nichtentzündliche Krankheit der Cervix uteri','20','2'),
 ('1100770','Sonstige entzündliche Krankheit im weiblichen Becken','20','1'),
 ('1100771','Nicht näher bezeichnete Harninkontinenz','20','1'),
 ('1100772','Sonstige spez. Untersuchung u. Abkl. bei Person ohne Beschw. /Diagnose','20','2'),
 ('1100773','Zystitis','20','2'),
 ('1100774','Schmerzen beim Wasserlassen','20','0'),
 ('1100776','Person, die d. Gesundheitsw. zum Zw. and. Berat. o. ärztl. Konsult. i.A.n. a.n.klass.','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100777','Dysplasie der Cervix uteri','20','1'),
 ('1100778','Sonstiges Symptom, die das Verdauungssystem und das Abdomen betreffend','20','1'),
 ('1100779','Sonstige nichtentzündliche Krankheit der Vagina und Vulva','20','1'),
 ('1100780','Überwachung einer Risikoschwangerschaft','20','0'),
 ('1100781','Untersuchung und Test zur Feststellung einer Schwangerschaft','20','2'),
 ('1100782','Sonst.Krankh. d.Mutter, die anderorts klassifizierbar ist, jedoch S/G/W komplizieren','20','1'),
 ('1100783','Psychische und Verhaltensstörung in Verbindung mit der sex. Entw. u. Orientierung','20','2'),
 ('1100784','Sonstige Krankheit des äußeren Ohres','20','2'),
 ('1100785','Sonstiger Hörverlust','20','0'),
 ('1100786','Akute Sinusitis','20','0'),
 ('1100787','Otitis externa','20','1'),
 ('1100788','Hörverlust durch Schalleitungs- oder Schallempfindungsstörung','20','2'),
 ('1100789','Sonstige Krankheit der Nase und der Nasennebenhöhlen','20','1'),
 ('1100791','Akute Pharyngitis','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100792','Chronische Krankheit der Gaumen- und Rachenmandeln','20','1'),
 ('1100793','Chronische Rhinitis, Rhinopharyngitis und Pharyngitis','20','1'),
 ('1100794','Nichteitrige Otitis media','20','1'),
 ('1100795','Chronische Sinusitis','20','2'),
 ('1100796','Otalgie und Ohrenfluß','20','1'),
 ('1100797','Sonstige Krankheit des Trommelfells','20','1'),
 ('1100798','Eitrige und nicht näher bezeichnete Otitis media','20','0'),
 ('1100799','Entzündung und Verschluß der Tuba auditiva','20','0'),
 ('1100801','Akute Infektion an mehreren oder nicht näher bezeichnet','20','0'),
 ('1100802','Akute Tonsillitis','20','0'),
 ('1100803','Sonstige Krankheit des Mittelohres und des Warzenfortsatzes','20','1'),
 ('1100804','Sonstige Krankheit der oberen Atemwege','20','1'),
 ('1100805','Akute Rhinopharyngitis [Erkältungsschnupfen]','20','0'),
 ('1100806','Krankheit der Stimmlippen und des Kehlkopfes, anderenorts nicht klassifiziert','20','2'),
 ('1100807','Blutung aus den Atemwegen','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100808','Störung der Stimme','20','1'),
 ('1100809','Störung der Vestibularfunktion','20','1'),
 ('1100810','Kopfschmerz','20','1'),
 ('1100811','Schwindel und Taumel','20','1'),
 ('1100812','Umschriebene Entwicklungsstörung des Sprechens und der Sprache','20','2'),
 ('1100813','Sonstige Krankheit der Tuba auditiva','20','2'),
 ('1100814','Nasenpolyp','20','2'),
 ('1100815','Störung der Atmung','20','0'),
 ('1100817','Fremdkörper im Ohr','20','0'),
 ('1100818','Trommelfellperforation','20','0'),
 ('1100819','Dysphagie','20','0'),
 ('1100821','Chronische Laryngitis und Laryngotracheitis','20','2'),
 ('1100823','Hals- und Brustschmerzen','20','1'),
 ('1100824','Husten','20','2'),
 ('1100825','Dentofaziale Anomalie [einschließlich fehlerhafter Okklusion]','20','2'),
 ('1100826','Sonstiger Zustand nach chirurgischem Eingriff','20','1'),
 ('1100828','Akute Lymphadenitis','20','0'),
 ('1100829','Sonstige Krankheit des Innenohres','20','2'),
 ('1100830','Melanozytennävus','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100831','Dermatophytose [Tinea]','20','2'),
 ('1100832','Atopisches [endogenes] Ekzem','20','2'),
 ('1100833','Psoriasis','20','1'),
 ('1100834','Rosazea','20','1'),
 ('1100835','Seborrhoisches Ekzem','20','1'),
 ('1100836','Sonstige bösartige Neubildung der Haut','20','0'),
 ('1100837','Seborrhoische Keratose','20','2'),
 ('1100838','Hautveränderung durch chron. Exposition gegenüber nichtionisierender Strahlung','20','1'),
 ('1100839','Allergische Kontaktdermatitis','20','2'),
 ('1100840','Bösartiges Melanom der Haut','20','0'),
 ('1100841','Sonstige oberflächliche Mykose','20','1'),
 ('1100842','Sonstiger Haarausfall ohne Narbenbildung','20','2'),
 ('1100844','Nicht näher bezeichnete Kontaktdermatitis','20','2'),
 ('1100845','Urtikaria','20','1'),
 ('1100846','Alopecia androgenetica','20','1'),
 ('1100847','Nicht näher bezeichnete Mykose','20','2'),
 ('1100848','Sonstige Epidermisverdickung','20','2'),
 ('1100849','Sonstige Krankheit der Haarfollikel','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100850','Sonstige Virusinfektion, die durch Haut- u. Schleimhautläsionen gekennz. ist, a.n.k.','20','1'),
 ('1100851','Sonstige lokale Infektion der Haut und der Unterhaut','20','1'),
 ('1100852','Sonstige Störung der Hautpigmentierung','20','2'),
 ('1100853','Impetigo','20','1'),
 ('1100854','Sonstige gutartige Neubildung des Bindegewebes u. and. Weichteilgewebe','20','2'),
 ('1100856','Infektion durch Herpesviren [Herpes simplex]','20','1'),
 ('1100857','Hämangiom und Lymphangiom','20','1'),
 ('1100858','Lichen simplex chronicus und Prurigo','20','2'),
 ('1100859','Sonstige akute Hautveränderung durch Ultraviolettstrahlung','20','2'),
 ('1100860','Skabies','20','1'),
 ('1100861','Alopecia areata','20','1'),
 ('1100862','Sonstige angeborene Fehlbildung der Haut','20','2'),
 ('1100864','Zu starke, zu häufige oder unregelmäßige Menstruation','20','2'),
 ('1100865','Sonstige Krankheit des Darmes','20','1'),
 ('1100866','Divertikulose des Darmes','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100868','Bösartige Neubildung des Kolons','20','0'),
 ('1100869','Gutartige Neubildung des Kolons, des Rektums/ Analkanals/ Anus','20','2'),
 ('1100870','Hernia diaphragmatica','20','2'),
 ('1100871','Vorhandensein von kardialen oder vaskulären Implantaten','20','2'),
 ('1100872','Nichtrheumatische Aortenklappenkrankheit','20','0'),
 ('1100873','Vorhofflattern und Vorhofflimmern','20','0'),
 ('1100874','Allgemeinunters. und Abklärung bei Person ohne Beschwerden/Diagnose','20','2'),
 ('1100875','Nichtrheumatische Mitralklappenkrankheit','20','0'),
 ('1100876','Sonstige medizinische Behandlung','20','2'),
 ('1100877','Sonstige zerebrovaskuläre Krankheit','20','1'),
 ('1100878','Sonstige Krankheit des Magens und des Duodenums','20','2'),
 ('1100879','Atherosklerose','20','2'),
 ('1100880','Ulcus duodeni','20','0'),
 ('1100881','Komplikation einer Herzkrankheit und ungenau beschriebene Herzkrankheit','20','0'),
 ('1100882','Hypertensive Herzkrankheit','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100883','Akuter Myokardinfarkt','20','0'),
 ('1100884','Störungen des Herzschlages','20','0'),
 ('1100886','Notwendigkeit der kombi. Impfung [Immunisierung] gegen kombi. Infektionskr.','20','2'),
 ('1100887','Fieber unbekannter Ursache','20','0'),
 ('1100888','Viruskrankheit nicht näher bezeichneter Lokalisation','20','0'),
 ('1100889','Notwendigkeit der Impfung [Immunisierung] gegen andere einzelne Infektionskr.','20','2'),
 ('1100890','Sonstige und nicht näher bezeichnete Infektionskrankheit','20','0'),
 ('1100891','Übelkeit und Erbrechen','20','0'),
 ('1100892','Sonstige Krankheit der Atemwege','20','1'),
 ('1100893','Umschriebene Entwicklungsstörung der motorischen Funktionen','20','2'),
 ('1100894','Nicht näher bezeichnete Entwicklungsstörung','20','2'),
 ('1100895','Diarrhoe und Gastroenteritis, vermutlich infektiösen Ursache','20','0'),
 ('1100896','Notwendigkeit der Impfung [Immunisierung] gegen bestimmte einzelne Infektionskr.','20','2'),
 ('1100897','Varizellen [Windpocken]','20','0');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100898','Sonstige Koordinationsstörung','20','1'),
 ('1100899','Hyperkinetische Störung','20','1'),
 ('1100900','Ausbleiben der erwarteten normalen physiologischen Entwicklung','20','2'),
 ('1100901','Bakterielle Infektion nicht näher bezeichneter Lokalisation','20','0'),
 ('1100902','Akute Laryngitis und Tracheitis','20','0'),
 ('1100903','Vorhauthypertrophie, Phimose und Paraphimose','20','1'),
 ('1100905','Andere Verhaltens- u. emotionale Störung mit Beginn in der Kindheit u. Jugend','20','2'),
 ('1100906','Symptome, die die Nahrungs- und Flüssigkeitsaufnahme betreffen','20','2'),
 ('1100907','Störung der Zahnentwicklung und des Zahndurchbruchs','20','2'),
 ('1100908','Notwendigkeit von anderen prophylaktischen Maßnahmen','20','2'),
 ('1100909','Epilepsie','20','1'),
 ('1100910','Andere Angststörung','20','2'),
 ('1100911','Andere psych. Störung aufgr. Schädigung o. Funktionsst. d. Gehirns o. körp. Kr.','20','2'),
 ('1100912','Schizophrenie','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100913','Rezidivierende depressive Störung','20','2'),
 ('1100914','Sonstiges Kopfschmerzsyndrom','20','1'),
 ('1100915','Sonstige Polyneuropathie','20','2'),
 ('1100916','Primäres Parkinson-Syndrom','20','2'),
 ('1100917','Anhaltende affektive Störung','20','2'),
 ('1100918','Spezifische Persönlichkeitsstörung','20','2'),
 ('1100919','Multiple Sklerose [Encephalomyelitis disseminata]','20','2'),
 ('1100920','Sonstige extrapyramidale Krankheit und Bewegungsstörung','20','2'),
 ('1100921','Alzheimer-Krankheit','20','2'),
 ('1100922','Andere neurotische Störung','20','2'),
 ('1100923','Zerebrale transitorische ischämische Attacke und verwandtes Syndrom','20','1'),
 ('1100924','Nicht näher bezeichnete Demenz','20','2'),
 ('1100925','Hirninfarkt','20','0'),
 ('1100926','Verschluß und Stenose präzerebraler Arterien ohne result. Hirninfarkt','20','0'),
 ('1100927','Psychische und Verhaltensstörung durch Alkohol','20','2'),
 ('1100928','Sonstige Krankheit des Gehirns','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100929','Nichtorganische Schlafstörung','20','1'),
 ('1100930','Folgen einer zerebrovaskulären Krankheit','20','1'),
 ('1100931','Vaskuläre Demenz','20','2'),
 ('1100932','Synkope und Kollaps','20','0'),
 ('1100933','Phobische Störung','20','1'),
 ('1100934','Schizoaffektive Störung','20','1'),
 ('1100935','Sekundäres Parkinson-Syndrom','20','2'),
 ('1100936','Mononeuropathie der unteren Extremität','20','2'),
 ('1100937','Krankheit des Nervus trigeminus [V. Hirnnerv]','20','1'),
 ('1100938','Sonstige Krankheit des Ohres, anderenorts nicht klassifiziert','20','1'),
 ('1100939','Sensibilitätsstörung der Haut','20','2'),
 ('1100940','Krankheit von Nervenwurzeln und Nervenplexus','20','1'),
 ('1100941','Persönlichk.- u. Verhaltensstör. aufgr. Krankheit/Schädigung/Funktionsst. d. Gehirns','20','1'),
 ('1100942','Bipolare affektive Störung','20','1'),
 ('1100943','Angeborene Deformität der Füße','20','2'),
 ('1100944','Osteochondrose der Wirbelsäule','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100946','Kyphose und Lordose','20','2'),
 ('1100947','Zervikaler Bandscheibenschaden','20','0'),
 ('1100948','Sonstige Spondylopathie','20','1'),
 ('1100949','Sonstige Deformität der Wirbelsäule und des Rückens','20','2'),
 ('1100950','Komplikation durch orthopädische Endoprothesen, Implantate o. Transplantate','20','0'),
 ('1100951','Luxation, Verstauchung und Zerrung der Gelenke und Bänder','20','0'),
 ('1100952','Sonstige Muskelkrankheit','20','1'),
 ('1100953','Sonstige erworbene Deformität des Muskel-Skelett-SystemsPolyarthrose','20','2'),
 ('1100954','Rhizarthrose [Arthrose des Daumensattelgelenkes]','20','2'),
 ('1100955','Angeborene Deformität der Hüfte','20','2'),
 ('1100956','Enthesopathie der unteren Extremität mit Ausnahme des Fußes','20','2'),
 ('1100957','Krankheit des Muskel-Skelett-Systems nach medizinischen Maßnahmen, a.n.k.','20','2'),
 ('1100958','Osteoporose mit pathologischer Fraktur','20','0'),
 ('1100959','Sonstige näher bezeichnete Gelenkschädigung','20','1');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100960','Sonstiges Symptom, das Nervensystem und das Muskel-Skelett-System betreffend','20','2'),
 ('1100961','Bösartige Neubildung der Prostata','20','0'),
 ('1100962','Nieren- und Ureterstein','20','1'),
 ('1100963','Sonstiges Symptom, das Harnsystem betreffend','20','2'),
 ('1100964','Sexuelle Funktionsstörungen, nicht verursacht durch organische Störung/Krankheit','20','2'),
 ('1100965','Neuromuskuläre Dysfunktion der Harnblase, anderenorts nicht klassifiziert','20','2'),
 ('1100966','Sonstige Krankheit der Niere und des Ureters, anderenorts nicht klassifiziert','20','1'),
 ('1100967','Entzündliche Krankheit der Prostata','20','0'),
 ('1100968','Sonstige Krankheit des Penis','20','1'),
 ('1100969','Bösartige Neubildung der Harnblase','20','0'),
 ('1100970','Nicht näher bezeichnete Hämaturie','20','1'),
 ('1100971','Zystische Nierenkrankheit','20','2'),
 ('1100972','Sonstige Krankheit der Prostata','20','2'),
 ('1100973','Harnröhrenstriktur','20','2');
INSERT INTO `dbtrouble` (`TroubleId`,`ShortDescription`,`Duration`,`Priority`) VALUES 
 ('1100974','Hydrozele und Spermatozele','20','2'),
 ('1100975','Obstruktive Uropathie und Refluxuropathie','20','2'),
 ('1100976','Orchitis und Epididymitis','20','1'),
 ('1100977','Andere Nachbehandlung nach chirurgischem Eingriff','20','2'),
 ('1100978','Sonstige Krankheit der männlichen Genitalorgane','20','2'),
 ('1100979','Bösartige Neubildung sonstiger und nicht näher bezeichnet','20','0'),
 ('1100980','Gutartige Neubildung der männlichen Genitalorgane','20','1'),
 ('1100981','Sterilität beim Mann','20','2'),
 ('1100982','Bösartige Neubildung des Rektums','20','0'),
 ('1100983','Bösartige Neubildung der Niere, ausgenommen Nierenbecken','20','0'),
 ('1100984','Schlaganfall, nicht als Blutung oder Infarkt bezeichnet','20','0'),
 ('1100985','Medizinische Behandlung in der Eigenanamnese','20','2'),
 ('1100986','Chronische Niereninsuffizienz','20','1');
/*!40000 ALTER TABLE `dbtrouble` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbtroubledescription`
--

DROP TABLE IF EXISTS `dbtroubledescription`;
CREATE TABLE `dbtroubledescription` (
  `TroubleDescriptionId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) default NULL,
  `LanguageId` decimal(18,0) default NULL,
  `Description` varchar(150) default NULL,
  `DescriptionForPerson` varchar(150) default NULL,
  `Advice` varchar(250) default NULL,
  `AdviceForPerson` varchar(250) default NULL,
  PRIMARY KEY  (`TroubleDescriptionId`),
  KEY `DBTrouble_DBTroubleDescription_FK1` (`TroubleId`),
  KEY `DBLanguage_DBTroubleDescription_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBTroubleDescription_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBTroubleDescription_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbtroubledescription`
--

/*!40000 ALTER TABLE `dbtroubledescription` DISABLE KEYS */;
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101500','1100631','1000311','Essentielle (primäre) Hypertonie','Essentielle (primäre) Hypertonie','',''),
 ('1101501','1100632','1000311','Störung des Lipoproteinstoffwechsels und sonstige Lipidämie','Störung des Lipoproteinstoffwechsels und sonstige Lipidämie','',''),
 ('1101502','1100633','1000311','Rückenschmerzen','Rückenschmerzen','',''),
 ('1101503','1100634','1000311','Chronische ischämische Herzkrankheit','Chronische ischämische Herzkrankheit','',''),
 ('1101504','1100635','1000311','Nicht primär insulinabhängiger Diabetes mellitus [Typ-II]','Nicht primär insulinabhängiger Diabetes mellitus [Typ-II]','',''),
 ('1101505','1100636','1000311','Sonstiges nichttoxisches Struma','Sonstiges nichttoxisches Struma','',''),
 ('1101506','1100637','1000311','Adipositas','Adipositas','',''),
 ('1101507','1100638','1000311','Störung des Purin- und Pyrimidinstoffwechsels','Störung des Purin- und Pyrimidinstoffwechsels','',''),
 ('1101508','1100639','1000311','Varizen der unteren Extremitäten','Varizen der unteren Extremitäten','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101509','1100640','1000311','Gastritis und Duodenitis','Gastritis und Duodenitis','',''),
 ('1101510','1100641','1000311','Sonstige Krankheit der Leber','Sonstige Krankheit der Leber','',''),
 ('1101511','1100642','1000311','Sonstige Krankheit der Wirbelsäule und des Rückens, andernorts nicht klassif.','Sonstige Krankheit der Wirbelsäule und des Rückens, andernorts nicht klassif.','',''),
 ('1101512','1100643','1000311','Akute Bronchitis','Akute Bronchitis','',''),
 ('1101513','1100644','1000311','Sonstige chronische obstruktive Lungenkrankheit','Sonstige chronische obstruktive Lungenkrankheit','',''),
 ('1101514','1100645','1000311','Vasomotorische und allergische Rhinopathie','Vasomotorische und allergische Rhinopathie','',''),
 ('1101515','1100646','1000311','Gonarthrose [Arthrose des Kniegelenkes]','Gonarthrose [Arthrose des Kniegelenkes]','',''),
 ('1101516','1100647','1000311','Asthma bronchiale','Asthma bronchiale','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101517','1100648','1000311','Herzinsuffizienz','Herzinsuffizienz','',''),
 ('1101518','1100649','1000311','Depressive Episode','Depressive Episode','',''),
 ('1101519','1100650','1000311','Akute Infektion','Akute Infektion','',''),
 ('1101520','1100651','1000311','Spondylose','Spondylose','',''),
 ('1101521','1100652','1000311','Sonstiger Bandscheibenschaden','Sonstiger Bandscheibenschaden','',''),
 ('1101522','1100653','1000311','Gastroösophageale Refluxkrankheit','Gastroösophageale Refluxkrankheit','',''),
 ('1101523','1100654','1000311','Osteoporose ohne pathologische Fraktur','Osteoporose ohne pathologische Fraktur','',''),
 ('1101524','1100655','1000311','Sonstige kardiale Arrhythmie','Sonstige kardiale Arrhythmie','',''),
 ('1101525','1100656','1000311','Somatoforme Störung','Somatoforme Störung','',''),
 ('1101526','1100657','1000311','Schlafstörung','Schlafstörung','',''),
 ('1101527','1100658','1000311','Cholelithiasis','Cholelithiasis','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101528','1100659','1000311','Migräne','Migräne','',''),
 ('1101529','1100660','1000311','Bronchitis, nicht als akut oder chronisch bezeichnet','Bronchitis, nicht als akut oder chronisch bezeichnet','',''),
 ('1101530','1100661','1000311','Notwendigkeit der Impfung [Immunisierung] gegen andere einz. Viruskr.','Notwendigkeit der Impfung [Immunisierung] gegen andere einz. Viruskr.','',''),
 ('1101531','1100662','1000311','Unerwünschte Nebenwirkung, anderenorts nicht klassifiziert','Unerwünschte Nebenwirkung, anderenorts nicht klassifiziert','',''),
 ('1101532','1100663','1000311','Prostatahyperplasie','Prostatahyperplasie','',''),
 ('1101533','1100664','1000311','Nicht näher bezeichneter Diabetes mellitus','Nicht näher bezeichneter Diabetes mellitus','',''),
 ('1101534','1100665','1000311','Sonstige Krankheit des Harnsystems','Sonstige Krankheit des Harnsystems','',''),
 ('1101535','1100666','1000311','Sonstige Dermatitis','Sonstige Dermatitis','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101536','1100667','1000311','Sonstige nichtinfektiöse Gastroenteritis und Kolitis','Sonstige nichtinfektiöse Gastroenteritis und Kolitis','',''),
 ('1101537','1100668','1000311','Hämorrhoiden','Hämorrhoiden','',''),
 ('1101538','1100669','1000311','Koxarthrose [Arthrose des Hüftgelenkes]','Koxarthrose [Arthrose des Hüftgelenkes]','',''),
 ('1101539','1100670','1000311','Klimakterische Störung','Klimakterische Störung','',''),
 ('1101540','1100671','1000311','Jodmangelbedingte Schilddrüsenkrankheit und verwandter Zustand','Jodmangelbedingte Schilddrüsenkrankheit und verwandter Zustand','',''),
 ('1101541','1100672','1000311','Sonstige Krankheit des Weichteilgewebes, anderenorts nicht klassif.','Sonstige Krankheit des Weichteilgewebes, anderenorts nicht klassif.','',''),
 ('1101542','1100673','1000311','Sonstige Venenkrankheit','Sonstige Venenkrankheit','',''),
 ('1101543','1100674','1000311','Verletzung an einer nicht näher bezeichneten Körperregion','Verletzung an einer nicht näher bezeichneten Körperregion','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101544','1100675','1000311','Psychische und Verhaltensstörung durch Tabak','Psychische und Verhaltensstörung durch Tabak','',''),
 ('1101545','1100676','1000311','Skoliose','Skoliose','',''),
 ('1101546','1100677','1000311','Hypotonie','Hypotonie','',''),
 ('1101547','1100678','1000311','Bauch- und Beckenschmerzen','Bauch- und Beckenschmerzen','',''),
 ('1101548','1100679','1000311','Sonstige periphere Gefäßkrankheit','Sonstige periphere Gefäßkrankheit','',''),
 ('1101549','1100680','1000311','Schulterläsion','Schulterläsion','',''),
 ('1101550','1100681','1000311','Akkommodationsstörung und Refraktionsfehler','Akkommodationsstörung und Refraktionsfehler','',''),
 ('1101551','1100682','1000311','Sonstiger Strabismus','Sonstiger Strabismus','',''),
 ('1101552','1100683','1000311','Glaukom','Glaukom','',''),
 ('1101553','1100684','1000311','Sonstige Affektion der Netzhaut','Sonstige Affektion der Netzhaut','',''),
 ('1101554','1100685','1000311','Sehstörung','Sehstörung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101555','1100686','1000311','Cataracta senilis','Cataracta senilis','',''),
 ('1101556','1100687','1000311','Sonstige Kataraktform','Sonstige Kataraktform','',''),
 ('1101557','1100688','1000311','Netzhautablösung und Netzhautriß','Netzhautablösung und Netzhautriß','',''),
 ('1101558','1100689','1000311','Konjunktivitis','Konjunktivitis','',''),
 ('1101559','1100690','1000311','Affektion des Tränenapparates','Affektion des Tränenapparates','',''),
 ('1101560','1100691','1000311','Sonstige Affektion des Nervus opticus [II. Hirnnerv] u. d. Sehbahn','Sonstige Affektion des Nervus opticus [II. Hirnnerv] u. d. Sehbahn','',''),
 ('1101561','1100692','1000311','Sonstige Affektion der Konjunktiva','Sonstige Affektion der Konjunktiva','',''),
 ('1101562','1100693','1000311','Vorhandensein von anderen funktionellen Implantaten','Vorhandensein von anderen funktionellen Implantaten','',''),
 ('1101563','1100694','1000311','Affektion des Glaskörpers','Affektion des Glaskörpers','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101564','1100695','1000311','Sonstige Krankheit mit Systembeteiligung des Bindegewebes','Sonstige Krankheit mit Systembeteiligung des Bindegewebes','',''),
 ('1101565','1100696','1000311','Sonstige Affektion der Linse','Sonstige Affektion der Linse','',''),
 ('1101566','1100697','1000311','Sonstige Affektion des Augenlides','Sonstige Affektion des Augenlides','',''),
 ('1101567','1100698','1000311','Versorgen mit und Anpassen von anderen medizinischen Geräten oder Hilfsmitteln','Versorgen mit und Anpassen von anderen medizinischen Geräten oder Hilfsmitteln','',''),
 ('1101568','1100699','1000311','Sonstige Störung der Blickbewegungen','Sonstige Störung der Blickbewegungen','',''),
 ('1101569','1100700','1000311','Primär insulinabhängiger Diabetes mellitus [Typ-I-Diabetes]','Primär insulinabhängiger Diabetes mellitus [Typ-I-Diabetes]','',''),
 ('1101570','1100701','1000311','Hordeolum und Chalazion','Hordeolum und Chalazion','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101571','1100702','1000311','Sonstige Affektion der Hornhaut','Sonstige Affektion der Hornhaut','',''),
 ('1101572','1100703','1000311','Sonstige Enthesopathie','Sonstige Enthesopathie','',''),
 ('1101573','1100704','1000311','Luxation, Verstauchung und Zerrung der Gelenke u. Bänder (Fuß)','Luxation, Verstauchung und Zerrung der Gelenke u. Bänder (Fuß)','',''),
 ('1101574','1100705','1000311','Sonstige Gelenkkrankheit, anderenorts nicht klassifiziert','Sonstige Gelenkkrankheit, anderenorts nicht klassifiziert','',''),
 ('1101575','1100706','1000311','Fraktur des Unterarmes','Fraktur des Unterarmes','',''),
 ('1101576','1100707','1000311','Hautabszeß, Furunkel und Karbunkel','Hautabszeß, Furunkel und Karbunkel','',''),
 ('1101577','1100708','1000311','Krankh. des Weichteilgew. im Zusammenh. mit Beanspr., Überb. u. Druck','Krankh. des Weichteilgew. im Zusammenh. mit Beanspr., Überb. u. Druck','',''),
 ('1101578','1100709','1000311','Synovitis und Tenosynovitis','Synovitis und Tenosynovitis','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101579','1100710','1000311','Phlegmone','Phlegmone','',''),
 ('1101580','1100711','1000311','Neubildung unsicheren o. unbekannten Verhaltens an sonst.u. n.n.bez. Lokal.','Neubildung unsicheren o. unbekannten Verhaltens an sonst.u. n.n.bez. Lokal.','',''),
 ('1101581','1100712','1000311','Binnenschädigung des Kniegelenkes [internal derangement]','Binnenschädigung des Kniegelenkes [internal derangement]','',''),
 ('1101582','1100713','1000311','Sonstige Arthrose','Sonstige Arthrose','',''),
 ('1101583','1100714','1000311','Mononeuropathie der oberen Extremität','Mononeuropathie der oberen Extremität','',''),
 ('1101584','1100715','1000311','Krankheit der Nägel','Krankheit der Nägel','',''),
 ('1101585','1100716','1000311','Fraktur des Unterschenkels, einschließlich des oberen Sprunggelenkes','Fraktur des Unterschenkels, einschließlich des oberen Sprunggelenkes','',''),
 ('1101586','1100717','1000311','Sonstige Krankheit der Synovialis und der Sehnen','Sonstige Krankheit der Synovialis und der Sehnen','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101587','1100718','1000311','Follikuläre Zyste der Haut und der Unterhaut','Follikuläre Zyste der Haut und der Unterhaut','',''),
 ('1101588','1100719','1000311','Luxation, Verstauchung u. Zerrung von Gelenken u. Bänder (Hand)','Luxation, Verstauchung u. Zerrung von Gelenken u. Bänder (Hand)','',''),
 ('1101589','1100720','1000311','Fraktur im Bereich des Handgelenkes und der Hand','Fraktur im Bereich des Handgelenkes und der Hand','',''),
 ('1101590','1100721','1000311','Oberflächliche Verletzung des Unterschenkels','Oberflächliche Verletzung des Unterschenkels','',''),
 ('1101591','1100722','1000311','Luxation, Verstauchung u. Zerrung des Kniegelenkes u. Bändern des Kniegelenkes','Luxation, Verstauchung u. Zerrung des Kniegelenkes u. Bändern des Kniegelenkes','',''),
 ('1101592','1100723','1000311','Fraktur des Fußes [ausgenommen oberes Sprunggelenk]','Fraktur des Fußes [ausgenommen oberes Sprunggelenk]','',''),
 ('1101593','1100724','1000311','Fissur und Fistel in der Anal- und Rektalregion','Fissur und Fistel in der Anal- und Rektalregion','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101594','1100725','1000311','Stuhlinkontinenz','Stuhlinkontinenz','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101595','1100726','1000311','Erworbene Deformität der Finger und Zehen','Erworbene Deformität der Finger und Zehen','',''),
 ('1101596','1100727','1000311','Sonstige erworbene Deformität der Extremitäten','Sonstige erworbene Deformität der Extremitäten','',''),
 ('1101597','1100728','1000311','Fraktur im Bereich der Schulter und des Oberarmes','Fraktur im Bereich der Schulter und des Oberarmes','',''),
 ('1101598','1100729','1000311','Krankheit der Patella','Krankheit der Patella','',''),
 ('1101599','1100731','1000311','Oberflächliche Verletzung des Handgelenkes und der Hand','Oberflächliche Verletzung des Handgelenkes und der Hand','',''),
 ('1101600','1100732','1000311','Hernia inguinalis','Hernia inguinalis','',''),
 ('1101601','1100733','1000311','Viruswarzen','Viruswarzen','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101602','1100734','1000311','Oberflächliche Verletzung der Knöchelregion und des Fußes','Oberflächliche Verletzung der Knöchelregion und des Fußes','',''),
 ('1101603','1100735','1000311','Hühneraugen und Horn-(Haut-)Schwielen','Hühneraugen und Horn-(Haut-)Schwielen','',''),
 ('1101604','1100736','1000311','Biomechanische Funktionsstörungen, anderenorts nicht klassifiziert','Biomechanische Funktionsstörungen, anderenorts nicht klassifiziert','',''),
 ('1101605','1100737','1000311','Sonstige gutartige Neubildung der Haut','Sonstige gutartige Neubildung der Haut','',''),
 ('1101606','1100738','1000311','Oberflächliche Verletzung des Thorax','Oberflächliche Verletzung des Thorax','',''),
 ('1101607','1100739','1000311','Oberflächliche Verletzung des Kopfes','Oberflächliche Verletzung des Kopfes','',''),
 ('1101608','1100740','1000311','Gutartige Neubildung des Fettgewebes','Gutartige Neubildung des Fettgewebes','',''),
 ('1101609','1100741','1000311','Sonstige Arthritis','Sonstige Arthritis','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101610','1100742','1000311','Kontrazeptive Maßnahme','Kontrazeptive Maßnahme','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101611','1100743','1000311','Sonstige nichtentzündliche Krankheit der Vagina','Sonstige nichtentzündliche Krankheit der Vagina','',''),
 ('1101612','1100744','1000311','Spezielles Verfahren zur Untersuchung auf Neubildungen','Spezielles Verfahren zur Untersuchung auf Neubildungen','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101613','1100745','1000311','Sonstige entzündliche Krankheit der Vagina und Vulva','Sonstige entzündliche Krankheit der Vagina und Vulva','',''),
 ('1101614','1100746','1000311','Schmerz u. andere Zustände im Zusammenhang mit den weibl. Genitalorg. u. Mzykl.','Schmerz u. andere Zustände im Zusammenhang mit den weibl. Genitalorg. u. Mzykl.','',''),
 ('1101615','1100747','1000311','Kandidose','Kandidose','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101616','1100748','1000311','Erosion und Ektropium der Cervix uteri','Erosion und Ektropium der Cervix uteri','',''),
 ('1101617','1100749','1000311','Nichtentzündliche Krankheit des Ovars, der Tuba uterina und des Lig. latum uteri','Nichtentzündliche Krankheit des Ovars, der Tuba uterina und des Lig. latum uteri','',''),
 ('1101618','1100750','1000311','Sonstige Krankheit der Mamma [Brustdrüse]','Sonstige Krankheit der Mamma [Brustdrüse]','',''),
 ('1101619','1100751','1000311','Leiomyom des Uterus','Leiomyom des Uterus','',''),
 ('1101620','1100753','1000311','Genitalprolaps bei der Frau','Genitalprolaps bei der Frau','',''),
 ('1101621','1100754','1000311','Ausgebliebene, zu schwache oder zu seltene Menstruation','Ausgebliebene, zu schwache oder zu seltene Menstruation','',''),
 ('1101622','1100755','1000311','Ovarielle Dysfunktion','Ovarielle Dysfunktion','',''),
 ('1101623','1100756','1000311','Sonstige abnorme Uterus- oder Vaginalblutung','Sonstige abnorme Uterus- oder Vaginalblutung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101624','1100757','1000311','Überwachung einer normalen Schwangerschaft','Überwachung einer normalen Schwangerschaft','',''),
 ('1101625','1100758','1000311','Gutartige Mammadysplasie [Brustdrüsendysplasie]','Gutartige Mammadysplasie [Brustdrüsendysplasie]','',''),
 ('1101626','1100759','1000311','Sonstige nichtentzündliche Krankheit des Uterus, ausgenommen der Zervix','Sonstige nichtentzündliche Krankheit des Uterus, ausgenommen der Zervix','',''),
 ('1101627','1100760','1000311','Bösartige Neubildung der Brustdrüse [Mamma]','Bösartige Neubildung der Brustdrüse [Mamma]','',''),
 ('1101628','1100761','1000311','Verlust von Organen, anderenorts nicht klassifiziert','Verlust von Organen, anderenorts nicht klassifiziert','',''),
 ('1101629','1100762','1000311','Hypertrichose','Hypertrichose','',''),
 ('1101630','1100763','1000311','Abnormer Befund in Untersuchungsmaterialien aus den weibl. Genitalorganen','Abnormer Befund in Untersuchungsmaterialien aus den weibl. Genitalorganen','',''),
 ('1101631','1100764','1000311','Reaktionen auf schwere Belastungen und Anpassungsstörung','Reaktionen auf schwere Belastungen und Anpassungsstörung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101632','1100765','1000311','Pruritus','Pruritus','',''),
 ('1101633','1100766','1000311','Akne','Akne','',''),
 ('1101634','1100767','1000311','Sonstige endokrine Störung','Sonstige endokrine Störung','',''),
 ('1101635','1100768','1000311','Neubildung unsicheren oder unbekannten Verhaltens der weibl. Genitalorgane','Neubildung unsicheren oder unbekannten Verhaltens der weibl. Genitalorgane','',''),
 ('1101636','1100769','1000311','Sonstige nichtentzündliche Krankheit der Cervix uteri','Sonstige nichtentzündliche Krankheit der Cervix uteri','',''),
 ('1101637','1100770','1000311','Sonstige entzündliche Krankheit im weiblichen Becken','Sonstige entzündliche Krankheit im weiblichen Becken','',''),
 ('1101638','1100771','1000311','Nicht näher bezeichnete Harninkontinenz','Nicht näher bezeichnete Harninkontinenz','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101639','1100772','1000311','Sonstige spez. Untersuchung u. Abkl. bei Person ohne Beschw. /Diagnose','Sonstige spez. Untersuchung u. Abkl. bei Person ohne Beschw. /Diagnose','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101640','1100773','1000311','Zystitis','Zystitis','',''),
 ('1101641','1100774','1000311','Schmerzen beim Wasserlassen','Schmerzen beim Wasserlassen','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101642','1100776','1000311','Person, die d. Gesundheitsw. zum Zw. and. Berat. o. ärztl. Konsult. i.A.n. a.n.klass.','Person, die d. Gesundheitsw. zum Zw. and. Berat. o. ärztl. Konsult. i.A.n. a.n.klass.','',''),
 ('1101643','1100777','1000311','Dysplasie der Cervix uteri','Dysplasie der Cervix uteri','',''),
 ('1101644','1100778','1000311','Sonstiges Symptom, die das Verdauungssystem und das Abdomen betreffend','Sonstiges Symptom, die das Verdauungssystem und das Abdomen betreffend','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101645','1100779','1000311','Sonstige nichtentzündliche Krankheit der Vagina und Vulva','Sonstige nichtentzündliche Krankheit der Vagina und Vulva','',''),
 ('1101646','1100780','1000311','Überwachung einer Risikoschwangerschaft','Überwachung einer Risikoschwangerschaft','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101647','1100781','1000311','Untersuchung und Test zur Feststellung einer Schwangerschaft','Untersuchung und Test zur Feststellung einer Schwangerschaft','',''),
 ('1101648','1100782','1000311','Sonst.Krankh. d.Mutter, die anderorts klassifizierbar ist, jedoch S/G/W komplizieren','Sonst.Krankh. d.Mutter, die anderorts klassifizierbar ist, jedoch S/G/W komplizieren','',''),
 ('1101649','1100783','1000311','Psychische und Verhaltensstörung in Verbindung mit der sex. Entw. u. Orientierung','Psychische und Verhaltensstörung in Verbindung mit der sex. Entw. u. Orientierung','',''),
 ('1101650','1100784','1000311','Sonstige Krankheit des äußeren Ohres','Sonstige Krankheit des äußeren Ohres','',''),
 ('1101651','1100785','1000311','Sonstiger Hörverlust','Sonstiger Hörverlust','',''),
 ('1101652','1100786','1000311','Akute Sinusitis','Akute Sinusitis','',''),
 ('1101653','1100787','1000311','Otitis externa','Otitis externa','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101654','1100788','1000311','Hörverlust durch Schalleitungs- oder Schallempfindungsstörung','Hörverlust durch Schalleitungs- oder Schallempfindungsstörung','',''),
 ('1101655','1100789','1000311','Sonstige Krankheit der Nase und der Nasennebenhöhlen','Sonstige Krankheit der Nase und der Nasennebenhöhlen','',''),
 ('1101656','1100791','1000311','Akute Pharyngitis','Akute Pharyngitis','',''),
 ('1101657','1100792','1000311','Chronische Krankheit der Gaumen- und Rachenmandeln','Chronische Krankheit der Gaumen- und Rachenmandeln','',''),
 ('1101658','1100793','1000311','Chronische Rhinitis, Rhinopharyngitis und Pharyngitis','Chronische Rhinitis, Rhinopharyngitis und Pharyngitis','',''),
 ('1101659','1100794','1000311','Nichteitrige Otitis media','Nichteitrige Otitis media','',''),
 ('1101660','1100795','1000311','Chronische Sinusitis','Chronische Sinusitis','',''),
 ('1101661','1100796','1000311','Otalgie und Ohrenfluß','Otalgie und Ohrenfluß','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101662','1100797','1000311','Sonstige Krankheit des Trommelfells','Sonstige Krankheit des Trommelfells','',''),
 ('1101663','1100798','1000311','Eitrige und nicht näher bezeichnete Otitis media','Eitrige und nicht näher bezeichnete Otitis media','',''),
 ('1101664','1100799','1000311','Entzündung und Verschluß der Tuba auditiva','Entzündung und Verschluß der Tuba auditiva','',''),
 ('1101665','1100801','1000311','Akute Infektion an mehreren oder nicht näher bezeichnet','Akute Infektion an mehreren oder nicht näher bezeichnet','',''),
 ('1101666','1100802','1000311','Akute Tonsillitis','Akute Tonsillitis','',''),
 ('1101667','1100803','1000311','Sonstige Krankheit des Mittelohres und des Warzenfortsatzes','Sonstige Krankheit des Mittelohres und des Warzenfortsatzes','',''),
 ('1101668','1100804','1000311','Sonstige Krankheit der oberen Atemwege','Sonstige Krankheit der oberen Atemwege','',''),
 ('1101669','1100805','1000311','Akute Rhinopharyngitis [Erkältungsschnupfen]','Akute Rhinopharyngitis [Erkältungsschnupfen]','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101670','1100806','1000311','Krankheit der Stimmlippen und des Kehlkopfes, anderenorts nicht klassifiziert','Krankheit der Stimmlippen und des Kehlkopfes, anderenorts nicht klassifiziert','',''),
 ('1101671','1100807','1000311','Blutung aus den Atemwegen','Blutung aus den Atemwegen','',''),
 ('1101672','1100808','1000311','Störung der Stimme','Störung der Stimme','',''),
 ('1101673','1100809','1000311','Störung der Vestibularfunktion','Störung der Vestibularfunktion','',''),
 ('1101674','1100810','1000311','Kopfschmerz','Kopfschmerz','',''),
 ('1101675','1100811','1000311','Schwindel und Taumel','Schwindel und Taumel','',''),
 ('1101676','1100812','1000311','Umschriebene Entwicklungsstörung des Sprechens und der Sprache','Umschriebene Entwicklungsstörung des Sprechens und der Sprache','',''),
 ('1101677','1100813','1000311','Sonstige Krankheit der Tuba auditiva','Sonstige Krankheit der Tuba auditiva','',''),
 ('1101678','1100814','1000311','Nasenpolyp','Nasenpolyp','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101679','1100815','1000311','Störung der Atmung','Störung der Atmung','',''),
 ('1101680','1100817','1000311','Fremdkörper im Ohr','Fremdkörper im Ohr','',''),
 ('1101681','1100818','1000311','Trommelfellperforation','Trommelfellperforation','',''),
 ('1101682','1100819','1000311','Dysphagie','Dysphagie','',''),
 ('1101683','1100821','1000311','Chronische Laryngitis und Laryngotracheitis','Chronische Laryngitis und Laryngotracheitis','',''),
 ('1101684','1100823','1000311','Hals- und Brustschmerzen','Hals- und Brustschmerzen','',''),
 ('1101685','1100824','1000311','Husten','Husten','',''),
 ('1101686','1100825','1000311','Dentofaziale Anomalie [einschließlich fehlerhafter Okklusion]','Dentofaziale Anomalie [einschließlich fehlerhafter Okklusion]','',''),
 ('1101687','1100826','1000311','Sonstiger Zustand nach chirurgischem Eingriff','Sonstiger Zustand nach chirurgischem Eingriff','',''),
 ('1101688','1100828','1000311','Akute Lymphadenitis','Akute Lymphadenitis','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101689','1100829','1000311','Sonstige Krankheit des Innenohres','Sonstige Krankheit des Innenohres','',''),
 ('1101690','1100830','1000311','Melanozytennävus','Melanozytennävus','',''),
 ('1101691','1100831','1000311','Dermatophytose [Tinea]','Dermatophytose [Tinea]','',''),
 ('1101692','1100832','1000311','Atopisches [endogenes] Ekzem','Atopisches [endogenes] Ekzem','',''),
 ('1101693','1100833','1000311','Psoriasis','Psoriasis','',''),
 ('1101694','1100834','1000311','Rosazea','Rosazea','',''),
 ('1101695','1100835','1000311','Seborrhoisches Ekzem','Seborrhoisches Ekzem','',''),
 ('1101696','1100836','1000311','Sonstige bösartige Neubildung der Haut','Sonstige bösartige Neubildung der Haut','',''),
 ('1101697','1100837','1000311','Seborrhoische Keratose','Seborrhoische Keratose','',''),
 ('1101698','1100838','1000311','Hautveränderung durch chron. Exposition gegenüber nichtionisierender Strahlung','Hautveränderung durch chron. Exposition gegenüber nichtionisierender Strahlung','',''),
 ('1101699','1100839','1000311','Allergische Kontaktdermatitis','Allergische Kontaktdermatitis','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101700','1100840','1000311','Bösartiges Melanom der Haut','Bösartiges Melanom der Haut','',''),
 ('1101701','1100841','1000311','Sonstige oberflächliche Mykose','Sonstige oberflächliche Mykose','',''),
 ('1101702','1100842','1000311','Sonstiger Haarausfall ohne Narbenbildung','Sonstiger Haarausfall ohne Narbenbildung','',''),
 ('1101703','1100844','1000311','Nicht näher bezeichnete Kontaktdermatitis','Nicht näher bezeichnete Kontaktdermatitis','',''),
 ('1101704','1100845','1000311','Urtikaria','Urtikaria','',''),
 ('1101705','1100846','1000311','Alopecia androgenetica','Alopecia androgenetica','',''),
 ('1101706','1100847','1000311','Nicht näher bezeichnete Mykose','Nicht näher bezeichnete Mykose','',''),
 ('1101707','1100848','1000311','Sonstige Epidermisverdickung','Sonstige Epidermisverdickung','',''),
 ('1101708','1100849','1000311','Sonstige Krankheit der Haarfollikel','Sonstige Krankheit der Haarfollikel','',''),
 ('1101709','1100850','1000311','Sonstige Virusinfektion, die durch Haut- u. Schleimhautläsionen gekennz. ist, a.n.k.','Sonstige Virusinfektion, die durch Haut- u. Schleimhautläsionen gekennz. ist, a.n.k.','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101710','1100851','1000311','Sonstige lokale Infektion der Haut und der Unterhaut','Sonstige lokale Infektion der Haut und der Unterhaut','',''),
 ('1101711','1100852','1000311','Sonstige Störung der Hautpigmentierung','Sonstige Störung der Hautpigmentierung','',''),
 ('1101712','1100853','1000311','Impetigo','Impetigo','',''),
 ('1101713','1100854','1000311','Sonstige gutartige Neubildung des Bindegewebes u. and. Weichteilgewebe','Sonstige gutartige Neubildung des Bindegewebes u. and. Weichteilgewebe','',''),
 ('1101714','1100856','1000311','Infektion durch Herpesviren [Herpes simplex]','Infektion durch Herpesviren [Herpes simplex]','',''),
 ('1101715','1100857','1000311','Hämangiom und Lymphangiom','Hämangiom und Lymphangiom','',''),
 ('1101716','1100858','1000311','Lichen simplex chronicus und Prurigo','Lichen simplex chronicus und Prurigo','',''),
 ('1101717','1100859','1000311','Sonstige akute Hautveränderung durch Ultraviolettstrahlung','Sonstige akute Hautveränderung durch Ultraviolettstrahlung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101718','1100860','1000311','Skabies','Skabies','',''),
 ('1101719','1100861','1000311','Alopecia areata','Alopecia areata','',''),
 ('1101720','1100862','1000311','Sonstige angeborene Fehlbildung der Haut','Sonstige angeborene Fehlbildung der Haut','',''),
 ('1101721','1100864','1000311','Zu starke, zu häufige oder unregelmäßige Menstruation','Zu starke, zu häufige oder unregelmäßige Menstruation','',''),
 ('1101722','1100865','1000311','Sonstige Krankheit des Darmes','Sonstige Krankheit des Darmes','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101723','1100866','1000311','Divertikulose des Darmes','Divertikulose des Darmes','',''),
 ('1101724','1100868','1000311','Bösartige Neubildung des Kolons','Bösartige Neubildung des Kolons','',''),
 ('1101725','1100869','1000311','Gutartige Neubildung des Kolons, des Rektums/ Analkanals/ Anus','Gutartige Neubildung des Kolons, des Rektums/ Analkanals/ Anus','',''),
 ('1101726','1100870','1000311','Hernia diaphragmatica','Hernia diaphragmatica','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101727','1100871','1000311','Vorhandensein von kardialen oder vaskulären Implantaten','Vorhandensein von kardialen oder vaskulären Implantaten','',''),
 ('1101728','1100872','1000311','Nichtrheumatische Aortenklappenkrankheit','Nichtrheumatische Aortenklappenkrankheit','',''),
 ('1101729','1100873','1000311','Vorhofflattern und Vorhofflimmern','Vorhofflattern und Vorhofflimmern','',''),
 ('1101730','1100874','1000311','Allgemeinunters. und Abklärung bei Person ohne Beschwerden/Diagnose','Allgemeinunters. und Abklärung bei Person ohne Beschwerden/Diagnose','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101731','1100875','1000311','Nichtrheumatische Mitralklappenkrankheit','Nichtrheumatische Mitralklappenkrankheit','',''),
 ('1101732','1100876','1000311','Sonstige medizinische Behandlung','Sonstige medizinische Behandlung','',''),
 ('1101733','1100877','1000311','Sonstige zerebrovaskuläre Krankheit','Sonstige zerebrovaskuläre Krankheit','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101734','1100878','1000311','Sonstige Krankheit des Magens und des Duodenums','Sonstige Krankheit des Magens und des Duodenums','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101735','1100879','1000311','Atherosklerose','Atherosklerose','',''),
 ('1101736','1100880','1000311','Ulcus duodeni','Ulcus duodeni','',''),
 ('1101737','1100881','1000311','Komplikation einer Herzkrankheit und ungenau beschriebene Herzkrankheit','Komplikation einer Herzkrankheit und ungenau beschriebene Herzkrankheit','',''),
 ('1101738','1100882','1000311','Hypertensive Herzkrankheit','Hypertensive Herzkrankheit','',''),
 ('1101739','1100883','1000311','Akuter Myokardinfarkt','Akuter Myokardinfarkt','',''),
 ('1101740','1100884','1000311','Störungen des Herzschlages','Störungen des Herzschlages','',''),
 ('1101741','1100886','1000311','Notwendigkeit der kombi. Impfung [Immunisierung] gegen kombi. Infektionskr.','Notwendigkeit der kombi. Impfung [Immunisierung] gegen kombi. Infektionskr.','Bitte bringen Sie Ihren Impfpass mit','Bitte bringen Sie Ihren Impfpass mit'),
 ('1101742','1100887','1000311','Fieber unbekannter Ursache','Fieber unbekannter Ursache','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101743','1100888','1000311','Viruskrankheit nicht näher bezeichneter Lokalisation','Viruskrankheit nicht näher bezeichneter Lokalisation','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101744','1100889','1000311','Notwendigkeit der Impfung [Immunisierung] gegen andere einzelne Infektionskr.','Notwendigkeit der Impfung [Immunisierung] gegen andere einzelne Infektionskr.','Bitte bringen Sie Ihren Impfpass mit','Bitte bringen Sie Ihren Impfpass mit'),
 ('1101745','1100890','1000311','Sonstige und nicht näher bezeichnete Infektionskrankheit','Sonstige und nicht näher bezeichnete Infektionskrankheit','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101746','1100891','1000311','Übelkeit und Erbrechen','Übelkeit und Erbrechen','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101747','1100892','1000311','Sonstige Krankheit der Atemwege','Sonstige Krankheit der Atemwege','',''),
 ('1101748','1100893','1000311','Umschriebene Entwicklungsstörung der motorischen Funktionen','Umschriebene Entwicklungsstörung der motorischen Funktionen','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101749','1100894','1000311','Nicht näher bezeichnete Entwicklungsstörung','Nicht näher bezeichnete Entwicklungsstörung','',''),
 ('1101750','1100895','1000311','Diarrhoe und Gastroenteritis, vermutlich infektiösen Ursache','Diarrhoe und Gastroenteritis, vermutlich infektiösen Ursache','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101751','1100896','1000311','Notwendigkeit der Impfung [Immunisierung] gegen bestimmte einzelne Infektionskr.','Notwendigkeit der Impfung [Immunisierung] gegen bestimmte einzelne Infektionskr.','Bitte bringen Sie Ihren Impfpass mit','Bitte bringen Sie Ihren Impfpass mit'),
 ('1101752','1100897','1000311','Varizellen [Windpocken]','Varizellen [Windpocken]','',''),
 ('1101753','1100898','1000311','Sonstige Koordinationsstörung','Sonstige Koordinationsstörung','',''),
 ('1101754','1100899','1000311','Hyperkinetische Störung','Hyperkinetische Störung','',''),
 ('1101755','1100900','1000311','Ausbleiben der erwarteten normalen physiologischen Entwicklung','Ausbleiben der erwarteten normalen physiologischen Entwicklung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101756','1100901','1000311','Bakterielle Infektion nicht näher bezeichneter Lokalisation','Bakterielle Infektion nicht näher bezeichneter Lokalisation','',''),
 ('1101757','1100902','1000311','Akute Laryngitis und Tracheitis','Akute Laryngitis und Tracheitis','',''),
 ('1101758','1100903','1000311','Vorhauthypertrophie, Phimose und Paraphimose','Vorhauthypertrophie, Phimose und Paraphimose','',''),
 ('1101759','1100905','1000311','Andere Verhaltens- u. emotionale Störung mit Beginn in der Kindheit u. Jugend','Andere Verhaltens- u. emotionale Störung mit Beginn in der Kindheit u. Jugend','',''),
 ('1101760','1100906','1000311','Symptome, die die Nahrungs- und Flüssigkeitsaufnahme betreffen','Symptome, die die Nahrungs- und Flüssigkeitsaufnahme betreffen','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101761','1100907','1000311','Störung der Zahnentwicklung und des Zahndurchbruchs','Störung der Zahnentwicklung und des Zahndurchbruchs','',''),
 ('1101762','1100908','1000311','Notwendigkeit von anderen prophylaktischen Maßnahmen','Notwendigkeit von anderen prophylaktischen Maßnahmen','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101763','1100909','1000311','Epilepsie','Epilepsie','',''),
 ('1101764','1100910','1000311','Andere Angststörung','Andere Angststörung','',''),
 ('1101765','1100911','1000311','Andere psych. Störung aufgr. Schädigung o. Funktionsst. d. Gehirns o. körp. Kr.','Andere psych. Störung aufgr. Schädigung o. Funktionsst. d. Gehirns o. körp. Kr.','',''),
 ('1101766','1100912','1000311','Schizophrenie','Schizophrenie','',''),
 ('1101767','1100913','1000311','Rezidivierende depressive Störung','Rezidivierende depressive Störung','',''),
 ('1101768','1100914','1000311','Sonstiges Kopfschmerzsyndrom','Sonstiges Kopfschmerzsyndrom','',''),
 ('1101769','1100915','1000311','Sonstige Polyneuropathie','Sonstige Polyneuropathie','',''),
 ('1101770','1100916','1000311','Primäres Parkinson-Syndrom','Primäres Parkinson-Syndrom','',''),
 ('1101771','1100917','1000311','Anhaltende affektive Störung','Anhaltende affektive Störung','',''),
 ('1101772','1100918','1000311','Spezifische Persönlichkeitsstörung','Spezifische Persönlichkeitsstörung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101773','1100919','1000311','Multiple Sklerose [Encephalomyelitis disseminata]','Multiple Sklerose [Encephalomyelitis disseminata]','',''),
 ('1101774','1100920','1000311','Sonstige extrapyramidale Krankheit und Bewegungsstörung','Sonstige extrapyramidale Krankheit und Bewegungsstörung','',''),
 ('1101775','1100921','1000311','Alzheimer-Krankheit','Alzheimer-Krankheit','',''),
 ('1101776','1100922','1000311','Andere neurotische Störung','Andere neurotische Störung','',''),
 ('1101777','1100923','1000311','Zerebrale transitorische ischämische Attacke und verwandtes Syndrom','Zerebrale transitorische ischämische Attacke und verwandtes Syndrom','',''),
 ('1101778','1100924','1000311','Nicht näher bezeichnete Demenz','Nicht näher bezeichnete Demenz','',''),
 ('1101779','1100925','1000311','Hirninfarkt','Hirninfarkt','',''),
 ('1101780','1100926','1000311','Verschluß und Stenose präzerebraler Arterien ohne result. Hirninfarkt','Verschluß und Stenose präzerebraler Arterien ohne result. Hirninfarkt','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101781','1100927','1000311','Psychische und Verhaltensstörung durch Alkohol','Psychische und Verhaltensstörung durch Alkohol','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101782','1100928','1000311','Sonstige Krankheit des Gehirns','Sonstige Krankheit des Gehirns','',''),
 ('1101783','1100929','1000311','Nichtorganische Schlafstörung','Nichtorganische Schlafstörung','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101784','1100930','1000311','Folgen einer zerebrovaskulären Krankheit','Folgen einer zerebrovaskulären Krankheit','',''),
 ('1101785','1100931','1000311','Vaskuläre Demenz','Vaskuläre Demenz','',''),
 ('1101786','1100932','1000311','Synkope und Kollaps','Synkope und Kollaps','',''),
 ('1101787','1100933','1000311','Phobische Störung','Phobische Störung','',''),
 ('1101788','1100934','1000311','Schizoaffektive Störung','Schizoaffektive Störung','',''),
 ('1101789','1100935','1000311','Sekundäres Parkinson-Syndrom','Sekundäres Parkinson-Syndrom','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101790','1100936','1000311','Mononeuropathie der unteren Extremität','Mononeuropathie der unteren Extremität','',''),
 ('1101791','1100937','1000311','Krankheit des Nervus trigeminus [V. Hirnnerv]','Krankheit des Nervus trigeminus [V. Hirnnerv]','',''),
 ('1101792','1100938','1000311','Sonstige Krankheit des Ohres, anderenorts nicht klassifiziert','Sonstige Krankheit des Ohres, anderenorts nicht klassifiziert','',''),
 ('1101793','1100939','1000311','Sensibilitätsstörung der Haut','Sensibilitätsstörung der Haut','',''),
 ('1101794','1100940','1000311','Krankheit von Nervenwurzeln und Nervenplexus','Krankheit von Nervenwurzeln und Nervenplexus','',''),
 ('1101795','1100941','1000311','Persönlichk.- u. Verhaltensstör. aufgr. Krankheit/Schädigung/Funktionsst. d. Gehirns','Persönlichk.- u. Verhaltensstör. aufgr. Krankheit/Schädigung/Funktionsst. d. Gehirns','',''),
 ('1101796','1100942','1000311','Bipolare affektive Störung','Bipolare affektive Störung','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101797','1100943','1000311','Angeborene Deformität der Füße','Angeborene Deformität der Füße','',''),
 ('1101798','1100944','1000311','Osteochondrose der Wirbelsäule','Osteochondrose der Wirbelsäule','',''),
 ('1101799','1100946','1000311','Kyphose und Lordose','Kyphose und Lordose','',''),
 ('1101800','1100947','1000311','Zervikaler Bandscheibenschaden','Zervikaler Bandscheibenschaden','',''),
 ('1101801','1100948','1000311','Sonstige Spondylopathie','Sonstige Spondylopathie','',''),
 ('1101802','1100949','1000311','Sonstige Deformität der Wirbelsäule und des Rückens','Sonstige Deformität der Wirbelsäule und des Rückens','',''),
 ('1101803','1100950','1000311','Komplikation durch orthopädische Endoprothesen, Implantate o. Transplantate','Komplikation durch orthopädische Endoprothesen, Implantate o. Transplantate','',''),
 ('1101804','1100951','1000311','Luxation, Verstauchung und Zerrung der Gelenke und Bänder','Luxation, Verstauchung und Zerrung der Gelenke und Bänder','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101805','1100952','1000311','Sonstige Muskelkrankheit','Sonstige Muskelkrankheit','',''),
 ('1101806','1100953','1000311','Sonstige erworbene Deformität des Muskel-Skelett-SystemsPolyarthrose','Sonstige erworbene Deformität des Muskel-Skelett-SystemsPolyarthrose','',''),
 ('1101807','1100954','1000311','Rhizarthrose [Arthrose des Daumensattelgelenkes]','Rhizarthrose [Arthrose des Daumensattelgelenkes]','',''),
 ('1101808','1100955','1000311','Angeborene Deformität der Hüfte','Angeborene Deformität der Hüfte','',''),
 ('1101809','1100956','1000311','Enthesopathie der unteren Extremität mit Ausnahme des Fußes','Enthesopathie der unteren Extremität mit Ausnahme des Fußes','',''),
 ('1101810','1100957','1000311','Krankheit des Muskel-Skelett-Systems nach medizinischen Maßnahmen, a.n.k.','Krankheit des Muskel-Skelett-Systems nach medizinischen Maßnahmen, a.n.k.','',''),
 ('1101811','1100958','1000311','Osteoporose mit pathologischer Fraktur','Osteoporose mit pathologischer Fraktur','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101812','1100959','1000311','Sonstige näher bezeichnete Gelenkschädigung','Sonstige näher bezeichnete Gelenkschädigung','',''),
 ('1101813','1100960','1000311','Sonstiges Symptom, das Nervensystem und das Muskel-Skelett-System betreffend','Sonstiges Symptom, das Nervensystem und das Muskel-Skelett-System betreffend','',''),
 ('1101814','1100961','1000311','Bösartige Neubildung der Prostata','Bösartige Neubildung der Prostata','',''),
 ('1101815','1100962','1000311','Nieren- und Ureterstein','Nieren- und Ureterstein','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101816','1100963','1000311','Sonstiges Symptom, das Harnsystem betreffend','Sonstiges Symptom, das Harnsystem betreffend','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101817','1100964','1000311','Sexuelle Funktionsstörungen, nicht verursacht durch organische Störung/Krankheit','Sexuelle Funktionsstörungen, nicht verursacht durch organische Störung/Krankheit','',''),
 ('1101818','1100965','1000311','Neuromuskuläre Dysfunktion der Harnblase, anderenorts nicht klassifiziert','Neuromuskuläre Dysfunktion der Harnblase, anderenorts nicht klassifiziert','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101819','1100966','1000311','Sonstige Krankheit der Niere und des Ureters, anderenorts nicht klassifiziert','Sonstige Krankheit der Niere und des Ureters, anderenorts nicht klassifiziert','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101820','1100967','1000311','Entzündliche Krankheit der Prostata','Entzündliche Krankheit der Prostata','',''),
 ('1101821','1100968','1000311','Sonstige Krankheit des Penis','Sonstige Krankheit des Penis','',''),
 ('1101822','1100969','1000311','Bösartige Neubildung der Harnblase','Bösartige Neubildung der Harnblase','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101823','1100970','1000311','Nicht näher bezeichnete Hämaturie','Nicht näher bezeichnete Hämaturie','',''),
 ('1101824','1100971','1000311','Zystische Nierenkrankheit','Zystische Nierenkrankheit','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101825','1100972','1000311','Sonstige Krankheit der Prostata','Sonstige Krankheit der Prostata','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101826','1100973','1000311','Harnröhrenstriktur','Harnröhrenstriktur','Bitte kommen Sie nüchtern','Bitte kommen Sie nüchtern'),
 ('1101827','1100974','1000311','Hydrozele und Spermatozele','Hydrozele und Spermatozele','',''),
 ('1101828','1100975','1000311','Obstruktive Uropathie und Refluxuropathie','Obstruktive Uropathie und Refluxuropathie','',''),
 ('1101829','1100976','1000311','Orchitis und Epididymitis','Orchitis und Epididymitis','',''),
 ('1101830','1100977','1000311','Andere Nachbehandlung nach chirurgischem Eingriff','Andere Nachbehandlung nach chirurgischem Eingriff','',''),
 ('1101831','1100978','1000311','Sonstige Krankheit der männlichen Genitalorgane','Sonstige Krankheit der männlichen Genitalorgane','',''),
 ('1101832','1100979','1000311','Bösartige Neubildung sonstiger und nicht näher bezeichnet','Bösartige Neubildung sonstiger und nicht näher bezeichnet','',''),
 ('1101833','1100980','1000311','Gutartige Neubildung der männlichen Genitalorgane','Gutartige Neubildung der männlichen Genitalorgane','','');
INSERT INTO `dbtroubledescription` (`TroubleDescriptionId`,`TroubleId`,`LanguageId`,`Description`,`DescriptionForPerson`,`Advice`,`AdviceForPerson`) VALUES 
 ('1101834','1100981','1000311','Sterilität beim Mann','Sterilität beim Mann','',''),
 ('1101835','1100982','1000311','Bösartige Neubildung des Rektums','Bösartige Neubildung des Rektums','',''),
 ('1101836','1100983','1000311','Bösartige Neubildung der Niere, ausgenommen Nierenbecken','Bösartige Neubildung der Niere, ausgenommen Nierenbecken','',''),
 ('1101837','1100984','1000311','Schlaganfall, nicht als Blutung oder Infarkt bezeichnet','Schlaganfall, nicht als Blutung oder Infarkt bezeichnet','',''),
 ('1101838','1100985','1000311','Medizinische Behandlung in der Eigenanamnese','Medizinische Behandlung in der Eigenanamnese','',''),
 ('1101839','1100986','1000311','Chronische Niereninsuffizienz','Chronische Niereninsuffizienz','','');
/*!40000 ALTER TABLE `dbtroubledescription` ENABLE KEYS */;


--
-- Table structure for table `diaryinfonew_dbo`.`dbtroubletext`
--

DROP TABLE IF EXISTS `dbtroubletext`;
CREATE TABLE `dbtroubletext` (
  `DBTroubleTextId` decimal(18,0) NOT NULL,
  `TroubleId` decimal(18,0) default NULL,
  `LanguageId` decimal(18,0) default NULL,
  `Text` varchar(50) default NULL,
  PRIMARY KEY  (`DBTroubleTextId`),
  KEY `DBTrouble_DBTroubleText_FK1` (`TroubleId`),
  KEY `DBLanguage_DBTroubleText_FK1` (`LanguageId`),
  CONSTRAINT `DBLanguage_DBTroubleText_FK1` FOREIGN KEY (`LanguageId`) REFERENCES `dblanguage` (`LanguageId`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `DBTrouble_DBTroubleText_FK1` FOREIGN KEY (`TroubleId`) REFERENCES `dbtrouble` (`TroubleId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbtroubletext`
--

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


--
-- Table structure for table `diaryinfonew_dbo`.`dbzipcodearea`
--

DROP TABLE IF EXISTS `dbzipcodearea`;
CREATE TABLE `dbzipcodearea` (
  `ZipCodeAreaId` decimal(18,0) NOT NULL,
  `CountryId` decimal(18,0) default NULL,
  `ZipCodeAreaCode` varchar(10) default NULL,
  `ZipCodeAreaDescription` varchar(50) default NULL,
  PRIMARY KEY  (`ZipCodeAreaId`),
  KEY `DBCountry_DBZipCodeArea_FK1` (`CountryId`),
  CONSTRAINT `DBCountry_DBZipCodeArea_FK1` FOREIGN KEY (`CountryId`) REFERENCES `dbcountry` (`CountryId`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `diaryinfonew_dbo`.`dbzipcodearea`
--

/*!40000 ALTER TABLE `dbzipcodearea` DISABLE KEYS */;
INSERT INTO `dbzipcodearea` (`ZipCodeAreaId`,`CountryId`,`ZipCodeAreaCode`,`ZipCodeAreaDescription`) VALUES 
 ('1000501','1000401','ZC01','00000 - 00999'),
 ('1000502','1000401','ZC02','01000 - 01999'),
 ('1000503','1000401','ZC03','02000 - 02999'),
 ('1000504','1000401','ZC04','03000 - 03999'),
 ('1000505','1000401','ZC05','04000 - 04999'),
 ('1000506','1000401','ZC06','05000 - 05999'),
 ('1000507','1000401','ZC07','06000 - 06999'),
 ('1000508','1000401','ZC08','07000 - 07999'),
 ('1000509','1000401','ZC09','08000 - 08999'),
 ('1000510','1000401','ZC10','09000 - 09999'),
 ('1000511','1000401','ZC11','10000 - 10999'),
 ('1000512','1000401','ZC12','11000 - 11999'),
 ('1000513','1000401','ZC13','12000 - 12999'),
 ('1000514','1000401','ZC14','13000 - 13999'),
 ('1000515','1000401','ZC15','14000 - 14999'),
 ('1000516','1000401','ZC16','15000 - 15999'),
 ('1000517','1000401','ZC17','16000 - 16999'),
 ('1000518','1000401','ZC18','17000 - 17999'),
 ('1000519','1000401','ZC19','18000 - 18999'),
 ('1000520','1000401','ZC20','19000 - 19999');
INSERT INTO `dbzipcodearea` (`ZipCodeAreaId`,`CountryId`,`ZipCodeAreaCode`,`ZipCodeAreaDescription`) VALUES 
 ('1000521','1000401','ZC21','20000 - 20999'),
 ('1000522','1000401','ZC22','21000 - 21999'),
 ('1000523','1000401','ZC23','22000 - 22999'),
 ('1000524','1000401','ZC24','23000 - 23999'),
 ('1000525','1000401','ZC25','24000 - 24999'),
 ('1000526','1000401','ZC26','25000 - 25999'),
 ('1000527','1000401','ZC27','26000 - 26999'),
 ('1000528','1000401','ZC28','27000 - 27999'),
 ('1000529','1000401','ZC29','28000 - 28999'),
 ('1000530','1000401','ZC30','29000 - 29999'),
 ('1000531','1000401','ZC31','30000 - 30999'),
 ('1000532','1000401','ZC32','31000 - 31999'),
 ('1000533','1000401','ZC33','32000 - 32999'),
 ('1000534','1000401','ZC34','33000 - 33999'),
 ('1000535','1000401','ZC35','34000 - 34999'),
 ('1000536','1000401','ZC36','35000 - 35999'),
 ('1000537','1000401','ZC37','36000 - 36999'),
 ('1000538','1000401','ZC38','37000 - 37999'),
 ('1000539','1000401','ZC39','38000 - 38999'),
 ('1000540','1000401','ZC40','39000 - 39999');
INSERT INTO `dbzipcodearea` (`ZipCodeAreaId`,`CountryId`,`ZipCodeAreaCode`,`ZipCodeAreaDescription`) VALUES 
 ('1000541','1000401','ZC41','40000 - 40999'),
 ('1000542','1000401','ZC42','41000 - 41999'),
 ('1000543','1000401','ZC43','42000 - 42999'),
 ('1000544','1000401','ZC44','43000 - 43999'),
 ('1000545','1000401','ZC45','44000 - 44999'),
 ('1000546','1000401','ZC46','45000 - 45999'),
 ('1000547','1000401','ZC47','46000 - 46999'),
 ('1000548','1000401','ZC48','47000 - 47999'),
 ('1000549','1000401','ZC49','48000 - 48999'),
 ('1000550','1000401','ZC50','49000 - 49999'),
 ('1000551','1000401','ZC51','50000 - 51999'),
 ('1000552','1000401','ZC52','51000 - 51999'),
 ('1000553','1000401','ZC53','52000 - 52999'),
 ('1000554','1000401','ZC54','53000 - 53999'),
 ('1000555','1000401','ZC55','54000 - 54999'),
 ('1000556','1000401','ZC56','55000 - 55999'),
 ('1000557','1000401','ZC57','56000 - 56999'),
 ('1000558','1000401','ZC58','57000 - 57999'),
 ('1000559','1000401','ZC59','58000 - 58999'),
 ('1000560','1000401','ZC60','59000 - 59999');
INSERT INTO `dbzipcodearea` (`ZipCodeAreaId`,`CountryId`,`ZipCodeAreaCode`,`ZipCodeAreaDescription`) VALUES 
 ('1000561','1000401','ZC61','60000 - 60999'),
 ('1000562','1000401','ZC62','61000 - 61999'),
 ('1000563','1000401','ZC63','62000 - 62999'),
 ('1000564','1000401','ZC64','63000 - 63999'),
 ('1000565','1000401','ZC65','64000 - 64999'),
 ('1000566','1000401','ZC66','65000 - 65999'),
 ('1000567','1000401','ZC67','66000 - 66999'),
 ('1000568','1000401','ZC68','67000 - 67999'),
 ('1000569','1000401','ZC69','68000 - 68999'),
 ('1000570','1000401','ZC70','69000 - 69999'),
 ('1000571','1000401','ZC71','70000 - 70999'),
 ('1000572','1000401','ZC72','71000 - 71999'),
 ('1000573','1000401','ZC73','72000 - 72999'),
 ('1000574','1000401','ZC74','73000 - 73999'),
 ('1000575','1000401','ZC75','74000 - 74999'),
 ('1000576','1000401','ZC76','75000 - 75999'),
 ('1000577','1000401','ZC77','76000 - 76999'),
 ('1000578','1000401','ZC78','77000 - 77999'),
 ('1000579','1000401','ZC79','78000 - 78999'),
 ('1000580','1000401','ZC80','79000 - 79999');
INSERT INTO `dbzipcodearea` (`ZipCodeAreaId`,`CountryId`,`ZipCodeAreaCode`,`ZipCodeAreaDescription`) VALUES 
 ('1000581','1000401','ZC81','80000 - 80999'),
 ('1000582','1000401','ZC82','81000 - 81999'),
 ('1000583','1000401','ZC83','82000 - 82999'),
 ('1000584','1000401','ZC84','83000 - 83999'),
 ('1000585','1000401','ZC85','84000 - 84999'),
 ('1000586','1000401','ZC86','85000 - 85999'),
 ('1000587','1000401','ZC87','86000 - 86999'),
 ('1000588','1000401','ZC88','87000 - 87999'),
 ('1000589','1000401','ZC89','88000 - 88999'),
 ('1000590','1000401','ZC90','89000 - 89999'),
 ('1000591','1000401','ZC91','90000 - 90999'),
 ('1000592','1000401','ZC92','91000 - 91999'),
 ('1000593','1000401','ZC93','92000 - 92999'),
 ('1000594','1000401','ZC94','93000 - 93999'),
 ('1000595','1000401','ZC95','94000 - 94999'),
 ('1000596','1000401','ZC96','95000 - 95999'),
 ('1000597','1000401','ZC97','96000 - 96999'),
 ('1000598','1000401','ZC98','97000 - 97999'),
 ('1000599','1000401','ZC99','98000 - 98999'),
 ('1000600','1000401','ZC100','99000 - 99999');
/*!40000 ALTER TABLE `dbzipcodearea` 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 */;
