dreamjob/struktur.sql

891 lines
28 KiB
MySQL
Raw Normal View History

2015-02-11 20:52:58 +01:00
-- phpMyAdmin SQL Dump
-- version 4.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 11, 2015 at 08:50 PM
-- Server version: 10.0.16-MariaDB-log
-- PHP Version: 5.6.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!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 */;
--
-- Database: `muellersql3`
--
-- --------------------------------------------------------
--
-- Table structure for table `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_account_cmpy_pro`
--
CREATE TABLE IF NOT EXISTS `mic_dj_account_cmpy_pro` (
`id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
`worker_mail` tinyint(1) DEFAULT NULL,
`worker_profil` tinyint(1) DEFAULT NULL,
`order` date NOT NULL,
`till` date NOT NULL,
`orderstatus` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_account_isearch`
--
CREATE TABLE IF NOT EXISTS `mic_dj_account_isearch` (
`id` int(11) NOT NULL,
`worker_id` int(11) NOT NULL,
`branch_id` int(11) NOT NULL,
`job_id` int(11) NOT NULL,
`kindofjob_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_cv_entry`
--
CREATE TABLE IF NOT EXISTS `mic_dj_cv_entry` (
`id` int(11) NOT NULL,
`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
) ENGINE=MyISAM AUTO_INCREMENT=270 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_jobs_application`
--
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application` (
`id` int(11) NOT NULL,
`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
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_jobs_application_pages`
--
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_application_pages` (
`id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
`page_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_jobs_msg`
--
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_msg` (
`id` int(11) NOT NULL,
`application_id` int(11) NOT NULL,
`fromcompany` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`saw` tinyint(1) NOT NULL,
`text` longtext NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_jobs_opening`
--
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening` (
`id` int(11) NOT NULL,
`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,
`delete` tinyint(1) NOT NULL DEFAULT '0',
`text` longtext NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_jobs_opening_order`
--
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_order` (
`opening_id` int(11) NOT NULL,
`startorder` date NOT NULL,
`endorder` date NOT NULL,
`orderstatus` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_jobs_opening_worker`
--
CREATE TABLE IF NOT EXISTS `mic_dj_jobs_opening_worker` (
`id` int(11) NOT NULL,
`opening_id` int(11) NOT NULL,
`worker_id` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_branch`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_branch` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_city`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_city` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=1949 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_country`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_country` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_cv-category`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_cv-category` (
`id` int(11) NOT NULL,
`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
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_graducation`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_graducation` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_job`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_job` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=643 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_list_kindofjob`
--
CREATE TABLE IF NOT EXISTS `mic_dj_list_kindofjob` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_page_inh`
--
CREATE TABLE IF NOT EXISTS `mic_dj_page_inh` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`position` smallint(6) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_page_txt`
--
CREATE TABLE IF NOT EXISTS `mic_dj_page_txt` (
`page_ptr_id` int(11) NOT NULL,
`text` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_service`
--
CREATE TABLE IF NOT EXISTS `mic_dj_service` (
`id` int(11) NOT NULL,
`category` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`link` varchar(255) DEFAULT NULL,
`color` char(6) DEFAULT NULL,
`prev_image` varchar(255) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`shorttext` text,
`text` text
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_dj_service_category`
--
CREATE TABLE IF NOT EXISTS `mic_dj_service_category` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_sys_mannerofaddr`
--
CREATE TABLE IF NOT EXISTS `mic_sys_mannerofaddr` (
`id` int(11) NOT NULL,
`name` varchar(100) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_sys_micacc`
--
CREATE TABLE IF NOT EXISTS `mic_sys_micacc` (
`id` int(11) NOT NULL,
`systemwide_app` int(11) DEFAULT 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
) ENGINE=InnoDB AUTO_INCREMENT=248 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_sys_micapp`
--
CREATE TABLE IF NOT EXISTS `mic_sys_micapp` (
`id` int(11) NOT NULL,
`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
) ENGINE=InnoDB AUTO_INCREMENT=217 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_web`
--
CREATE TABLE IF NOT EXISTS `mic_web` (
`id` int(11) NOT NULL,
`domain` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`blog` tinyint(1) NOT NULL,
`blog_title` varchar(255) NOT NULL,
`blog_menu_pos` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_web_page`
--
CREATE TABLE IF NOT EXISTS `mic_web_page` (
`id` int(11) NOT NULL,
`web_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`text` text NOT NULL,
`position` int(11) DEFAULT NULL,
`menu` tinyint(1) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `mic_web_post`
--
CREATE TABLE IF NOT EXISTS `mic_web_post` (
`id` int(11) NOT NULL,
`web_id` int(11) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`title` varchar(255) NOT NULL,
`text` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `mic_dj_account_acc`
--
ALTER TABLE `mic_dj_account_acc`
ADD PRIMARY KEY (`micapplication_ptr_id`), ADD KEY `mic_dj_acc_city` (`city_id`);
--
-- Indexes for table `mic_dj_account_cmpy`
--
ALTER TABLE `mic_dj_account_cmpy`
ADD PRIMARY KEY (`djaccount_ptr_id`), ADD KEY `mic_dj_cmpy_branch` (`branch_id`);
--
-- Indexes for table `mic_dj_account_cmpy_pro`
--
ALTER TABLE `mic_dj_account_cmpy_pro`
ADD PRIMARY KEY (`id`), ADD KEY `mic_dj_account_cmpy_pro_ibfk_1` (`company_id`);
--
-- Indexes for table `mic_dj_account_isearch`
--
ALTER TABLE `mic_dj_account_isearch`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `worker_id` (`worker_id`,`job_id`,`kindofjob_id`,`branch_id`), ADD KEY `mic_dj_account_isearch_20fc5b84` (`worker_id`), ADD KEY `kindofjob_id_refs_id_43b3f292` (`kindofjob_id`), ADD KEY `mic_dj_account_isearch_jobs` (`job_id`), ADD KEY `mic_dj_account_isearch_branchs` (`branch_id`);
--
-- Indexes for table `mic_dj_account_wrk`
--
ALTER TABLE `mic_dj_account_wrk`
ADD PRIMARY KEY (`djaccount_ptr_id`), ADD KEY `mic_dj_account_wrk_b05158b4` (`graducation_id`);
--
-- Indexes for table `mic_dj_cv_entry`
--
ALTER TABLE `mic_dj_cv_entry`
ADD PRIMARY KEY (`id`), ADD KEY `mic_dj_cv_entry_42dc49bc` (`category_id`), ADD KEY `mic_dj_cv_worker` (`worker_id`);
--
-- Indexes for table `mic_dj_jobs_application`
--
ALTER TABLE `mic_dj_jobs_application`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `worker_id` (`worker_id`,`opening_id`), ADD KEY `mic_dj_jobs_application_20fc5b84` (`worker_id`), ADD KEY `mic_dj_jobs_application_5986cc59` (`opening_id`);
--
-- Indexes for table `mic_dj_jobs_application_pages`
--
ALTER TABLE `mic_dj_jobs_application_pages`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `application_id` (`application_id`,`page_id`), ADD KEY `mic_dj_jobs_application_pages_398529ef` (`application_id`), ADD KEY `mic_dj_jobs_application_pages_32d04bc7` (`page_id`);
--
-- Indexes for table `mic_dj_jobs_msg`
--
ALTER TABLE `mic_dj_jobs_msg`
ADD PRIMARY KEY (`id`), ADD KEY `mic_dj_jobs_msg_398529ef` (`application_id`);
--
-- Indexes for table `mic_dj_jobs_opening`
--
ALTER TABLE `mic_dj_jobs_opening`
ADD PRIMARY KEY (`id`), ADD KEY `mic_dj_jobs_opening_543518c6` (`company_id`), ADD KEY `mic_dj_jobs_opening_b05158b4` (`graducation_id`), ADD KEY `mic_dj_jobs_opening_840a080f` (`kindofjob_id`), ADD KEY `mic_dj_opening_branch` (`branch_id`), ADD KEY `mic_dj_opening_city` (`city_id`);
--
-- Indexes for table `mic_dj_jobs_opening_order`
--
ALTER TABLE `mic_dj_jobs_opening_order`
ADD PRIMARY KEY (`opening_id`,`endorder`,`startorder`), ADD KEY `mic_dj_jobs_opening_order_ibfk_1` (`opening_id`);
--
-- Indexes for table `mic_dj_jobs_opening_worker`
--
ALTER TABLE `mic_dj_jobs_opening_worker`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `opening_id` (`opening_id`,`worker_id`), ADD KEY `mic_dj_jobs_opening_worker_favOpening` (`opening_id`), ADD KEY `mic_dj_jobs_opening_worker_favWorker` (`worker_id`);
--
-- Indexes for table `mic_dj_list_branch`
--
ALTER TABLE `mic_dj_list_branch`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_list_city`
--
ALTER TABLE `mic_dj_list_city`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_list_country`
--
ALTER TABLE `mic_dj_list_country`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_list_cv-category`
--
ALTER TABLE `mic_dj_list_cv-category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_list_graducation`
--
ALTER TABLE `mic_dj_list_graducation`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_list_job`
--
ALTER TABLE `mic_dj_list_job`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_list_kindofjob`
--
ALTER TABLE `mic_dj_list_kindofjob`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_dj_page_image`
--
ALTER TABLE `mic_dj_page_image`
ADD PRIMARY KEY (`page_ptr_id`);
--
-- Indexes for table `mic_dj_page_inh`
--
ALTER TABLE `mic_dj_page_inh`
ADD PRIMARY KEY (`id`), ADD KEY `mic_dj_page_inh_fbfc09f1` (`user_id`);
--
-- Indexes for table `mic_dj_page_txt`
--
ALTER TABLE `mic_dj_page_txt`
ADD PRIMARY KEY (`page_ptr_id`);
--
-- Indexes for table `mic_dj_service`
--
ALTER TABLE `mic_dj_service`
ADD PRIMARY KEY (`id`), ADD KEY `category` (`category`);
--
-- Indexes for table `mic_dj_service_category`
--
ALTER TABLE `mic_dj_service_category`
ADD PRIMARY KEY (`id`), ADD KEY `id` (`id`);
--
-- Indexes for table `mic_sys_mannerofaddr`
--
ALTER TABLE `mic_sys_mannerofaddr`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_sys_micacc`
--
ALTER TABLE `mic_sys_micacc`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `mail` (`mail`), ADD KEY `systemwide_app` (`systemwide_app`);
--
-- Indexes for table `mic_sys_micapp`
--
ALTER TABLE `mic_sys_micapp`
ADD PRIMARY KEY (`id`), ADD KEY `mic_sys_micapp_fbfc09f1` (`user_id`), ADD KEY `mic_sys_micapp_6bef5955` (`mannerofaddress_id`);
--
-- Indexes for table `mic_web`
--
ALTER TABLE `mic_web`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mic_web_page`
--
ALTER TABLE `mic_web_page`
ADD PRIMARY KEY (`id`), ADD KEY `web_id` (`web_id`);
--
-- Indexes for table `mic_web_post`
--
ALTER TABLE `mic_web_post`
ADD PRIMARY KEY (`id`), ADD KEY `web_id` (`web_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `mic_dj_account_cmpy_pro`
--
ALTER TABLE `mic_dj_account_cmpy_pro`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `mic_dj_account_isearch`
--
ALTER TABLE `mic_dj_account_isearch`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=105;
--
-- AUTO_INCREMENT for table `mic_dj_cv_entry`
--
ALTER TABLE `mic_dj_cv_entry`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=270;
--
-- AUTO_INCREMENT for table `mic_dj_jobs_application`
--
ALTER TABLE `mic_dj_jobs_application`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `mic_dj_jobs_application_pages`
--
ALTER TABLE `mic_dj_jobs_application_pages`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `mic_dj_jobs_msg`
--
ALTER TABLE `mic_dj_jobs_msg`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=62;
--
-- AUTO_INCREMENT for table `mic_dj_jobs_opening`
--
ALTER TABLE `mic_dj_jobs_opening`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT for table `mic_dj_jobs_opening_worker`
--
ALTER TABLE `mic_dj_jobs_opening_worker`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `mic_dj_list_branch`
--
ALTER TABLE `mic_dj_list_branch`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=70;
--
-- AUTO_INCREMENT for table `mic_dj_list_city`
--
ALTER TABLE `mic_dj_list_city`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=1949;
--
-- AUTO_INCREMENT for table `mic_dj_list_country`
--
ALTER TABLE `mic_dj_list_country`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=177;
--
-- AUTO_INCREMENT for table `mic_dj_list_cv-category`
--
ALTER TABLE `mic_dj_list_cv-category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `mic_dj_list_graducation`
--
ALTER TABLE `mic_dj_list_graducation`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `mic_dj_list_job`
--
ALTER TABLE `mic_dj_list_job`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=643;
--
-- AUTO_INCREMENT for table `mic_dj_list_kindofjob`
--
ALTER TABLE `mic_dj_list_kindofjob`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `mic_dj_page_inh`
--
ALTER TABLE `mic_dj_page_inh`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=93;
--
-- AUTO_INCREMENT for table `mic_dj_service`
--
ALTER TABLE `mic_dj_service`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `mic_dj_service_category`
--
ALTER TABLE `mic_dj_service_category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `mic_sys_mannerofaddr`
--
ALTER TABLE `mic_sys_mannerofaddr`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `mic_sys_micacc`
--
ALTER TABLE `mic_sys_micacc`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=248;
--
-- AUTO_INCREMENT for table `mic_sys_micapp`
--
ALTER TABLE `mic_sys_micapp`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=217;
--
-- AUTO_INCREMENT for table `mic_web`
--
ALTER TABLE `mic_web`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `mic_web_page`
--
ALTER TABLE `mic_web_page`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `mic_web_post`
--
ALTER TABLE `mic_web_post`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `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 for table `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,
ADD CONSTRAINT `mic_dj_cmpy_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Constraints for table `mic_dj_account_cmpy_pro`
--
ALTER TABLE `mic_dj_account_cmpy_pro`
ADD CONSTRAINT `mic_dj_account_cmpy_pro_ibfk_1` FOREIGN KEY (`company_id`) REFERENCES `mic_dj_account_cmpy` (`djaccount_ptr_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `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 `mic_dj_account_isearch_branchs` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`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 for table `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 for table `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 for table `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 for table `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 for table `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,
ADD CONSTRAINT `mic_dj_opening_branch` FOREIGN KEY (`branch_id`) REFERENCES `mic_dj_list_branch` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `mic_dj_opening_city` FOREIGN KEY (`city_id`) REFERENCES `mic_dj_list_city` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Constraints for table `mic_dj_jobs_opening_order`
--
ALTER TABLE `mic_dj_jobs_opening_order`
ADD CONSTRAINT `mic_dj_jobs_opening_order_ibfk_1` FOREIGN KEY (`opening_id`) REFERENCES `mic_dj_jobs_opening` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `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 for table `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 for table `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 for table `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 for table `mic_dj_service`
--
ALTER TABLE `mic_dj_service`
ADD CONSTRAINT `mic_dj_service_category_con` FOREIGN KEY (`category`) REFERENCES `mic_dj_service_category` (`id`) ON UPDATE CASCADE;
--
-- Constraints for table `mic_sys_micacc`
--
ALTER TABLE `mic_sys_micacc`
ADD CONSTRAINT `mic_sys_micacc_ibfk_1` FOREIGN KEY (`systemwide_app`) REFERENCES `mic_sys_micapp` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Constraints for table `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;
--
-- Constraints for table `mic_web_page`
--
ALTER TABLE `mic_web_page`
ADD CONSTRAINT `mic_web_page__mic_web__id` FOREIGN KEY (`web_id`) REFERENCES `mic_web` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `mic_web_post`
--
ALTER TABLE `mic_web_post`
ADD CONSTRAINT `mic_web__id` FOREIGN KEY (`web_id`) REFERENCES `mic_web` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!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 */;