diff --git a/.gitignore b/.gitignore
index ed1006e..3771370 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
#################################################
/app/Config/database.php
/app/Config/email.php
+/app/Config/core.php
/app/webroot/uploads/
/app/webroot/img/avatar/
/app/webroot/dreamjob/
@@ -14,6 +15,7 @@
/tags
upload.sh
upload-produktiv.sh
+*daten.sql
*~
# OS generated files #
diff --git a/app/View/Home/company.ctp b/app/View/Home/company.ctp
index 31c233a..d63d16b 100644
--- a/app/View/Home/company.ctp
+++ b/app/View/Home/company.ctp
@@ -7,7 +7,7 @@
=$this->Html->image('start-company.jpg'); ?>
Html->link(__('dreamjob.registration.to'),array('controller'=>'registration', 'action'=>'company'),array("class" => "btn btn-primary"));
?>
diff --git a/muellersql1-structur.sql b/muellersql1-structur.sql
new file mode 100644
index 0000000..a30bfd7
--- /dev/null
+++ b/muellersql1-structur.sql
@@ -0,0 +1,500 @@
+-- phpMyAdmin SQL Dump
+-- version 3.3.7deb7
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Erstellungszeit: 11. Mai 2014 um 16:53
+-- Server Version: 5.1.73
+-- PHP-Version: 5.3.3-7+squeeze19
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+
+/*!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 */;
+
+--
+-- Datenbank: `muellersql1`
+--
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_acc`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_acc` (
+ `micapplication_ptr_id` int(11) NOT NULL,
+ `street` varchar(100) NOT NULL,
+ `city` varchar(100) NULL,
+ `postcode` varchar(100) NOT NULL,
+ PRIMARY KEY (`micapplication_ptr_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_cmpy`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_cmpy` (
+ `djaccount_ptr_id` int(11) NOT NULL,
+ `corporateform` varchar(30) NOT NULL,
+ `owner` varchar(100) NOT NULL,
+ `branch` varchar(100) NULL,
+ `headcount` smallint(6) DEFAULT NULL,
+ `bank_details` varchar(100) DEFAULT NULL,
+ `website` varchar(200) DEFAULT NULL,
+ `css` varchar(200) DEFAULT NULL,
+ `pro_user` int(11) DEFAULT NULL,
+ PRIMARY KEY (`djaccount_ptr_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_isearch`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_isearch` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `worker_id` int(11) NOT NULL,
+ `branch` varchar(100) NOT NULL,
+ `job` varchar(100) NOT NULL,
+ `kindofjob_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `worker_id` (`worker_id`,`job`,`kindofjob_id`,`branch`),
+ KEY `mic_dj_account_isearch_20fc5b84` (`worker_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=96 ;
+
+-- --------------------------------------------------------
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_wrk`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_wrk` (
+ `djaccount_ptr_id` int(11) NOT NULL,
+ `graducation_id` int(11) DEFAULT NULL,
+ `workexperience` smallint(6) DEFAULT NULL,
+ `searchhidden` tinyint(1) NOT NULL,
+ `advertising` tinyint(1) NOT NULL,
+ `leadership_ability` tinyint(1) NOT NULL,
+ `country` varchar(100) NOT NULL,
+ `iam` varchar(300) NOT NULL,
+ PRIMARY KEY (`djaccount_ptr_id`),
+ KEY `mic_dj_account_wrk_b05158b4` (`graducation_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_cv_category`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_cv_category` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `worker_id` int(11) NOT NULL,
+ `category_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_cv_category_20fc5b84` (`worker_id`),
+ KEY `mic_dj_cv_category_42dc49bc` (`category_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=113 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_cv_entry`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_cv_entry` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `category_id` int(11) NOT NULL,
+ `startdate` date DEFAULT NULL,
+ `enddate` date DEFAULT NULL,
+ `title` varchar(100) NOT NULL,
+ `place` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_cv_entry_42dc49bc` (`category_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=141 ;
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_application`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `stars` int(11) NOT NULL,
+ `closed` tinyint(1) NOT NULL,
+ `offered` tinyint(1) NOT NULL,
+ `saw` tinyint(1) NOT NULL,
+ `created` datetime NOT NULL,
+ `worker_id` int(11) NOT NULL,
+ `opening_id` int(11) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `worker_id` (`worker_id`,`opening_id`),
+ KEY `mic_dj_jobs_application_20fc5b84` (`worker_id`),
+ KEY `mic_dj_jobs_application_5986cc59` (`opening_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_application_pages`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application_pages` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `application_id` int(11) NOT NULL,
+ `page_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `application_id` (`application_id`,`page_id`),
+ KEY `mic_dj_jobs_application_pages_398529ef` (`application_id`),
+ KEY `mic_dj_jobs_application_pages_32d04bc7` (`page_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_msg`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_msg` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `application_id` int(11) NOT NULL,
+ `fromcompany` tinyint(1) NOT NULL,
+ `created` datetime NOT NULL,
+ `saw` tinyint(1) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_jobs_msg_398529ef` (`application_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `street` varchar(100) NOT NULL,
+ `city` varchar(100) NOT NULL,
+ `postcode` varchar(100) NOT NULL,
+ `title` varchar(100) NOT NULL,
+ `company_id` int(11) NOT NULL,
+ `graducation_id` int(11) DEFAULT NULL,
+ `branch` varchar(100) NOT NULL,
+ `kindofjob_id` int(11) DEFAULT NULL,
+ `startdate` date NOT NULL,
+ `enddate` date DEFAULT NULL,
+ `active` tinyint(1) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_jobs_opening_543518c6` (`company_id`),
+ KEY `mic_dj_jobs_opening_b05158b4` (`graducation_id`),
+ KEY `mic_dj_jobs_opening_840a080f` (`kindofjob_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening_worker`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_worker` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `opening_id` int(11) NOT NULL,
+ `worker_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `opening_id` (`opening_id`,`worker_id`),
+ KEY `mic_dj_jobs_opening_worker_favOpening` (`opening_id`),
+ KEY `mic_dj_jobs_opening_worker_favWorker` (`worker_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_branch`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_branch` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=70 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_city`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_city` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1949 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_country`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_country` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=177 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_cv-category`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_cv-category` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `position` int(11) NOT NULL,
+ `name` varchar(100) NOT NULL,
+ `place_str` varchar(100) NOT NULL,
+ `place` tinyint(1) NOT NULL,
+ `title_str` varchar(100) NOT NULL,
+ `enddate` tinyint(1) NOT NULL,
+ `startdate` tinyint(1) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_graducation`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_graducation` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_job`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_job` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=643 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_kindofjob`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_kindofjob` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_page_image`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_page_image` (
+ `page_ptr_id` int(11) NOT NULL,
+ `image` varchar(100) NOT NULL,
+ PRIMARY KEY (`page_ptr_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_page_inh`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_page_inh` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `title` varchar(100) NOT NULL,
+ `position` smallint(6) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_page_inh_fbfc09f1` (`user_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=74 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_page_txt`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_page_txt` (
+ `page_ptr_id` int(11) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`page_ptr_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+--
+-- Tabellenstruktur für Tabelle `mic_sys_mannerofaddr`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_sys_mannerofaddr` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_sys_micacc`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_sys_micacc` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(30) NOT NULL,
+ `last_name` varchar(30) NOT NULL,
+ `is_staff` tinyint(1) NOT NULL,
+ `is_active` tinyint(1) NOT NULL,
+ `is_superuser` tinyint(1) NOT NULL,
+ `last_login` datetime DEFAULT NULL,
+ `date_joined` datetime DEFAULT NULL,
+ `password` varchar(128) NOT NULL,
+ `mail` varchar(75) NOT NULL,
+ `code` varchar(255) NOT NULL,
+ `mannerofaddress_id` int(11) DEFAULT NULL,
+ `avatar` varchar(100) DEFAULT NULL,
+ `nickname` varchar(100) DEFAULT NULL,
+ `bday` date DEFAULT NULL,
+ `comment` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `mail` (`mail`),
+ KEY `mic_sys_micacc_6bef5955` (`mannerofaddress_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=112 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_sys_micapp`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_sys_micapp` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `take_systemwide` tinyint(1) NOT NULL,
+ `avatar` varchar(100) DEFAULT NULL,
+ `nickname` varchar(100) DEFAULT NULL,
+ `mannerofaddress_id` int(11) DEFAULT NULL,
+ `first_name` varchar(100) DEFAULT NULL,
+ `last_name` varchar(100) DEFAULT NULL,
+ `bday` date DEFAULT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_sys_micapp_fbfc09f1` (`user_id`),
+ KEY `mic_sys_micapp_6bef5955` (`mannerofaddress_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=107 ;
+
+--
+-- Constraints der exportierten Tabellen
+--
+
+--
+-- Constraints der Tabelle `mic_dj_account_acc`
+--
+ALTER TABLE `mic_dj_account_acc`
+ ADD CONSTRAINT `micapplication_ptr_id_refs_id_c3772207` FOREIGN KEY (`micapplication_ptr_id`) REFERENCES `mic_sys_micapp` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_account_cmpy`
+--
+ALTER TABLE `mic_dj_account_cmpy`
+ ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_a4ed5896` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_account_isearch`
+--
+ALTER TABLE `mic_dj_account_isearch`
+ ADD CONSTRAINT `kindofjob_id_refs_id_43b3f292` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_bd052062` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_account_wrk`
+--
+ALTER TABLE `mic_dj_account_wrk`
+ ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_54e1aa2` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `graducation_id_refs_id_855cd518` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_application`
+--
+ALTER TABLE `mic_dj_jobs_application`
+ ADD CONSTRAINT `opening_id_refs_id_47ff32e9` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_a79561c5` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_application_pages`
+--
+ALTER TABLE `mic_dj_jobs_application_pages`
+ ADD CONSTRAINT `application_id_refs_id_f7848b52` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `page_id_refs_id_e180ca0a` FOREIGN KEY (`page_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_msg`
+--
+ALTER TABLE `mic_dj_jobs_msg`
+ ADD CONSTRAINT `application_id_refs_id_2fd4efa8` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_opening`
+--
+ALTER TABLE `mic_dj_jobs_opening`
+ ADD CONSTRAINT `company_id_refs_djaccount_ptr_id_626487b3` FOREIGN KEY (`company_id`) REFERENCES `mic_dj_account_cmpy` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `graducation_id_refs_id_a8e61a24` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `kindofjob_id_refs_id_5081d52d` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_opening_worker`
+--
+ALTER TABLE `mic_dj_jobs_opening_worker`
+ ADD CONSTRAINT `mic_dj_jobs_opening_worker_favOpening` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `mic_dj_jobs_opening_worker_favWorker` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_page_image`
+--
+ALTER TABLE `mic_dj_page_image`
+ ADD CONSTRAINT `page_ptr_id_refs_id_ea810d69` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_page_inh`
+--
+ALTER TABLE `mic_dj_page_inh`
+ ADD CONSTRAINT `user_id_refs_micapplication_ptr_id_76059a94` FOREIGN KEY (`user_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_page_txt`
+--
+ALTER TABLE `mic_dj_page_txt`
+ ADD CONSTRAINT `page_ptr_id_refs_id_95fe7fae` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_sys_micacc`
+--
+ALTER TABLE `mic_sys_micacc`
+ ADD CONSTRAINT `mannerofaddress_id_refs_id_588ceb1e` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_sys_micapp`
+--
+ALTER TABLE `mic_sys_micapp`
+ ADD CONSTRAINT `mannerofaddress_id_refs_id_451bee0` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `user_id_refs_id_ae61ec29` FOREIGN KEY (`user_id`) REFERENCES `mic_sys_micacc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
diff --git a/muellersql2-structur.sql b/muellersql2-structur.sql
new file mode 100644
index 0000000..a19aae7
--- /dev/null
+++ b/muellersql2-structur.sql
@@ -0,0 +1,507 @@
+-- phpMyAdmin SQL Dump
+-- version 3.3.7deb7
+-- http://www.phpmyadmin.net
+--
+-- Host: localhost
+-- Erstellungszeit: 12. Mai 2014 um 14:22
+-- Server Version: 5.1.73
+-- PHP-Version: 5.3.3-7+squeeze19
+
+SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
+
+
+/*!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 */;
+
+--
+-- Datenbank: `muellersql2`
+--
+CREATE DATABASE `muellersql2` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
+USE `muellersql2`;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_acc`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_acc` (
+ `micapplication_ptr_id` int(11) NOT NULL,
+ `street` varchar(100) NOT NULL,
+ `city_id` int(11) DEFAULT NULL,
+ `postcode` varchar(100) NOT NULL,
+ PRIMARY KEY (`micapplication_ptr_id`),
+ KEY `mic_dj_acc_city` (`city_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_cmpy`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_cmpy` (
+ `djaccount_ptr_id` int(11) NOT NULL,
+ `corporateform` varchar(30) NOT NULL,
+ `owner` varchar(100) NOT NULL,
+ `branch_id` int(11) DEFAULT NULL,
+ `headcount` smallint(6) DEFAULT NULL,
+ `bank_details` varchar(100) DEFAULT NULL,
+ `website` varchar(200) DEFAULT NULL,
+ `css` varchar(200) DEFAULT NULL,
+ `pro_user` int(11) DEFAULT NULL,
+ PRIMARY KEY (`djaccount_ptr_id`),
+ KEY `mic_dj_cmpy_branch` (`branch_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_isearch`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_isearch` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `worker_id` int(11) NOT NULL,
+ `branch_id` int(11) NOT NULL,
+ `job_id` int(11) NOT NULL,
+ `kindofjob_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `worker_id` (`worker_id`,`job_id`,`kindofjob_id`,`branch_id`),
+ KEY `mic_dj_account_isearch_20fc5b84` (`worker_id`),
+ KEY `kindofjob_id_refs_id_43b3f292` (`kindofjob_id`),
+ KEY `mic_dj_account_isearch_jobs` (`job_id`),
+ KEY `mic_dj_account_isearch_branchs` (`branch_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=96 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_account_wrk`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_account_wrk` (
+ `djaccount_ptr_id` int(11) NOT NULL,
+ `graducation_id` int(11) DEFAULT NULL,
+ `workexperience` smallint(6) DEFAULT NULL,
+ `searchhidden` tinyint(1) NOT NULL,
+ `advertising` tinyint(1) NOT NULL,
+ `leadership_ability` tinyint(1) NOT NULL,
+ `country` varchar(100) NOT NULL,
+ `iam` varchar(300) NOT NULL,
+ PRIMARY KEY (`djaccount_ptr_id`),
+ KEY `mic_dj_account_wrk_b05158b4` (`graducation_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_cv_entry`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_cv_entry` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `category_id` int(11) NOT NULL,
+ `worker_id` int(11) NOT NULL,
+ `startdate` date DEFAULT NULL,
+ `enddate` date DEFAULT NULL,
+ `title` varchar(100) NOT NULL,
+ `place` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_cv_entry_42dc49bc` (`category_id`),
+ KEY `mic_dj_cv_worker` (`worker_id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=141 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_application`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `stars` int(11) NOT NULL,
+ `closed` tinyint(1) NOT NULL,
+ `offered` tinyint(1) NOT NULL,
+ `saw` tinyint(1) NOT NULL,
+ `created` datetime NOT NULL,
+ `worker_id` int(11) NOT NULL,
+ `opening_id` int(11) NOT NULL,
+ `subject` varchar(255) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `worker_id` (`worker_id`,`opening_id`),
+ KEY `mic_dj_jobs_application_20fc5b84` (`worker_id`),
+ KEY `mic_dj_jobs_application_5986cc59` (`opening_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_application_pages`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application_pages` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `application_id` int(11) NOT NULL,
+ `page_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `application_id` (`application_id`,`page_id`),
+ KEY `mic_dj_jobs_application_pages_398529ef` (`application_id`),
+ KEY `mic_dj_jobs_application_pages_32d04bc7` (`page_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_msg`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_msg` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `application_id` int(11) NOT NULL,
+ `fromcompany` tinyint(1) NOT NULL,
+ `created` datetime NOT NULL,
+ `saw` tinyint(1) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_jobs_msg_398529ef` (`application_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `street` varchar(100) NOT NULL,
+ `city_id` int(11) DEFAULT NULL,
+ `postcode` varchar(100) NOT NULL,
+ `title` varchar(100) NOT NULL,
+ `company_id` int(11) NOT NULL,
+ `graducation_id` int(11) DEFAULT NULL,
+ `branch_id` int(11) DEFAULT NULL,
+ `kindofjob_id` int(11) DEFAULT NULL,
+ `startdate` date NOT NULL,
+ `enddate` date DEFAULT NULL,
+ `active` tinyint(1) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_jobs_opening_543518c6` (`company_id`),
+ KEY `mic_dj_jobs_opening_b05158b4` (`graducation_id`),
+ KEY `mic_dj_jobs_opening_840a080f` (`kindofjob_id`),
+ KEY `mic_dj_opening_branch` (`branch_id`),
+ KEY `mic_dj_opening_city` (`city_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_jobs_opening_worker`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_worker` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `opening_id` int(11) NOT NULL,
+ `worker_id` int(11) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `opening_id` (`opening_id`,`worker_id`),
+ KEY `mic_dj_jobs_opening_worker_favOpening` (`opening_id`),
+ KEY `mic_dj_jobs_opening_worker_favWorker` (`worker_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_branch`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_branch` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=70 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_city`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_city` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1949 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_country`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_country` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=177 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_cv-category`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_cv-category` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `position` int(11) NOT NULL,
+ `name` varchar(100) NOT NULL,
+ `place_str` varchar(100) NOT NULL,
+ `place` tinyint(1) NOT NULL,
+ `title_str` varchar(100) NOT NULL,
+ `enddate` tinyint(1) NOT NULL,
+ `startdate` tinyint(1) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_graducation`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_graducation` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_job`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_job` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=643 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_list_kindofjob`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_list_kindofjob` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_page_image`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_page_image` (
+ `page_ptr_id` int(11) NOT NULL,
+ `image` varchar(100) NOT NULL,
+ PRIMARY KEY (`page_ptr_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_page_inh`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_page_inh` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `title` varchar(100) NOT NULL,
+ `position` smallint(6) NOT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_dj_page_inh_fbfc09f1` (`user_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=74 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_dj_page_txt`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_dj_page_txt` (
+ `page_ptr_id` int(11) NOT NULL,
+ `text` longtext NOT NULL,
+ PRIMARY KEY (`page_ptr_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_sys_mannerofaddr`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_sys_mannerofaddr` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `name` varchar(100) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_sys_micacc`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_sys_micacc` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `first_name` varchar(30) NOT NULL,
+ `last_name` varchar(30) NOT NULL,
+ `is_staff` tinyint(1) NOT NULL,
+ `is_active` tinyint(1) NOT NULL,
+ `is_superuser` tinyint(1) NOT NULL,
+ `last_login` datetime DEFAULT NULL,
+ `date_joined` datetime DEFAULT NULL,
+ `password` varchar(128) NOT NULL,
+ `mail` varchar(75) NOT NULL,
+ `code` varchar(255) NOT NULL,
+ `mannerofaddress_id` int(11) DEFAULT NULL,
+ `avatar` varchar(100) DEFAULT NULL,
+ `nickname` varchar(100) DEFAULT NULL,
+ `bday` date DEFAULT NULL,
+ `comment` varchar(255) NOT NULL,
+ PRIMARY KEY (`id`),
+ UNIQUE KEY `mail` (`mail`),
+ KEY `mic_sys_micacc_6bef5955` (`mannerofaddress_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=112 ;
+
+-- --------------------------------------------------------
+
+--
+-- Tabellenstruktur für Tabelle `mic_sys_micapp`
+--
+
+CREATE TABLE IF NOT EXISTS `mic_sys_micapp` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `user_id` int(11) NOT NULL,
+ `take_systemwide` tinyint(1) NOT NULL,
+ `avatar` varchar(100) DEFAULT NULL,
+ `nickname` varchar(100) DEFAULT NULL,
+ `mannerofaddress_id` int(11) DEFAULT NULL,
+ `first_name` varchar(100) DEFAULT NULL,
+ `last_name` varchar(100) DEFAULT NULL,
+ `bday` date DEFAULT NULL,
+ PRIMARY KEY (`id`),
+ KEY `mic_sys_micapp_fbfc09f1` (`user_id`),
+ KEY `mic_sys_micapp_6bef5955` (`mannerofaddress_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=107 ;
+
+--
+-- Constraints der exportierten Tabellen
+--
+
+--
+-- Constraints der Tabelle `mic_dj_account_acc`
+--
+ALTER TABLE `mic_dj_account_acc`
+ ADD CONSTRAINT `mic_dj_acc_city` FOREIGN KEY (`city_id`) REFERENCES `mic_dj_list_city` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `micapplication_ptr_id_refs_id_c3772207` FOREIGN KEY (`micapplication_ptr_id`) REFERENCES `mic_sys_micapp` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_account_cmpy`
+--
+ALTER TABLE `mic_dj_account_cmpy`
+ ADD CONSTRAINT `mic_dj_cmpy_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_a4ed5896` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_account_isearch`
+--
+ALTER TABLE `mic_dj_account_isearch`
+ ADD CONSTRAINT `mic_dj_account_isearch_branchs` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `kindofjob_id_refs_id_43b3f292` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `mic_dj_account_isearch_job` FOREIGN KEY (`job_id`) REFERENCES `mic_dj_list_job` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_bd052062` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_account_wrk`
+--
+ALTER TABLE `mic_dj_account_wrk`
+ ADD CONSTRAINT `djaccount_ptr_id_refs_micapplication_ptr_id_54e1aa2` FOREIGN KEY (`djaccount_ptr_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `graducation_id_refs_id_855cd518` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_application`
+--
+ALTER TABLE `mic_dj_jobs_application`
+ ADD CONSTRAINT `opening_id_refs_id_47ff32e9` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `worker_id_refs_djaccount_ptr_id_a79561c5` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_application_pages`
+--
+ALTER TABLE `mic_dj_jobs_application_pages`
+ ADD CONSTRAINT `application_id_refs_id_f7848b52` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `page_id_refs_id_e180ca0a` FOREIGN KEY (`page_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_msg`
+--
+ALTER TABLE `mic_dj_jobs_msg`
+ ADD CONSTRAINT `application_id_refs_id_2fd4efa8` FOREIGN KEY (`application_id`) REFERENCES `mic_dj_jobs_application` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_opening`
+--
+ALTER TABLE `mic_dj_jobs_opening`
+ ADD CONSTRAINT `mic_dj_opening_city` FOREIGN KEY (`city_id`) REFERENCES `mic_dj_list_city` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `company_id_refs_djaccount_ptr_id_626487b3` FOREIGN KEY (`company_id`) REFERENCES `mic_dj_account_cmpy` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `graducation_id_refs_id_a8e61a24` FOREIGN KEY (`graducation_id`) REFERENCES `mic_dj_list_graducation` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `kindofjob_id_refs_id_5081d52d` FOREIGN KEY (`kindofjob_id`) REFERENCES `mic_dj_list_kindofjob` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `mic_dj_opening_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_jobs_opening_worker`
+--
+ALTER TABLE `mic_dj_jobs_opening_worker`
+ ADD CONSTRAINT `mic_dj_jobs_opening_worker_favOpening` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
+ ADD CONSTRAINT `mic_dj_jobs_opening_worker_favWorker` FOREIGN KEY (`worker_id`) REFERENCES `mic_dj_account_wrk` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_page_image`
+--
+ALTER TABLE `mic_dj_page_image`
+ ADD CONSTRAINT `page_ptr_id_refs_id_ea810d69` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_page_inh`
+--
+ALTER TABLE `mic_dj_page_inh`
+ ADD CONSTRAINT `user_id_refs_micapplication_ptr_id_76059a94` FOREIGN KEY (`user_id`) REFERENCES `mic_dj_account_acc` (`micapplication_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_dj_page_txt`
+--
+ALTER TABLE `mic_dj_page_txt`
+ ADD CONSTRAINT `page_ptr_id_refs_id_95fe7fae` FOREIGN KEY (`page_ptr_id`) REFERENCES `mic_dj_page_inh` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_sys_micacc`
+--
+ALTER TABLE `mic_sys_micacc`
+ ADD CONSTRAINT `mannerofaddress_id_refs_id_588ceb1e` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
+
+--
+-- Constraints der Tabelle `mic_sys_micapp`
+--
+ALTER TABLE `mic_sys_micapp`
+ ADD CONSTRAINT `mannerofaddress_id_refs_id_451bee0` FOREIGN KEY (`mannerofaddress_id`) REFERENCES `mic_sys_mannerofaddr` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
+ ADD CONSTRAINT `user_id_refs_id_ae61ec29` FOREIGN KEY (`user_id`) REFERENCES `mic_sys_micacc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;