-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jun 29, 2017 at 08:19 AM
-- Server version: 5.5.55-cll
-- PHP Version: 5.6.30

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

--
-- Database: `kikdatat_mieszkania_bielsko_pl`
--

-- --------------------------------------------------------

--
-- Table structure for table `articles`
--

CREATE TABLE `articles` (
  `idarticles` int(11) NOT NULL,
  `idparent` int(11) DEFAULT NULL,
  `image1` text NOT NULL,
  `image2` text,
  `date` datetime DEFAULT NULL,
  `showorder` double DEFAULT '0',
  `active` tinyint(1) DEFAULT '1',
  `idgalleries` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `articles`
--

INSERT INTO `articles` (`idarticles`, `idparent`, `image1`, `image2`, `date`, `showorder`, `active`, `idgalleries`) VALUES
(1, NULL, '2011_03_08-10_19_18_000000_1.jpg', '', '2010-12-29 12:52:20', 90, 1, NULL),
(2, NULL, '2011_03_08-10_02_13_000000_1.jpg', '', '2010-12-29 12:54:10', 0, 1, NULL),
(3, NULL, '', '', '2011-01-05 08:51:38', 100, 1, 30),
(4, NULL, '2011_03_09-14_32_52_000000_1.jpg', '', '2011-03-07 11:20:41', 0, 1, NULL),
(5, NULL, '', '', '2011-06-01 11:03:18', 0, 1, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `article_languages`
--

CREATE TABLE `article_languages` (
  `idarticle_languages` int(11) NOT NULL,
  `idlanguages` int(11) DEFAULT NULL,
  `idarticles` int(11) DEFAULT NULL,
  `title` text,
  `titleseo` text,
  `content` text,
  `shortdesc` text,
  `keywords` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text,
  `additional_data` text,
  `idlists` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `article_languages`
--

INSERT INTO `article_languages` (`idarticle_languages`, `idlanguages`, `idarticles`, `title`, `titleseo`, `content`, `shortdesc`, `keywords`, `abstract`, `subject`, `topic`, `copyrights`, `friendlyurl`, `additional_data`, `idlists`) VALUES
(1, 3, 1, 'O Firmie', 'Nieruchomości Bielsko Biała - Biuro Rachunkowe Bielsko Biała - KIK Marcin Knieć', '<div class=\"box\">\n<h3></h3>\nJesteśmy firmą rodzinną, biuro mieści się w centrum miasta Bielska-Białej w pięknej zabytkowej kamienicy. <br />\n<br />\nKsięgowością zajmuję się od 18 lat od roku 2001 prowadzimy własną firmę zajmującą się kompleksowo księgowością i kadrami firm z Bielska-Białej i okolic.<br />\n<br />\nOd 2008 roku rozszerzyłem działalność firmy o świadczenie usług kompleksowej obsługi nieruchomościami. W obecnej chwili administrujemy lokalami mieszkalnymi i użytkowymi oraz niezabudowanymi działkami w Bielsku-Białej. <br />\n<br />\n<p></p>\n</div>', 'Agencja nieruchomości oraz biuro rachunkowe w Bielsku Białej. Oferujemy mieszkania na sprzedaż oraz lokale pod wynajem (mieszkania, lokale komercyjne). Świadczymy obsługę dla firm z Bielska- Białej i okolic z zakresu księgowości i kadr. Nasze biuro mieści się w centrum miasta na ul. Cechowej 6/10. Zapraszamy!', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość Bielsko-Biała, lokale wynajem Bielsko-Biała', '', '', '', '', 'o-firmie', '', 0),
(2, 3, 2, 'Kontakt', 'Nieruchomości Bielsko Biała - Biuro Rachunkowe Bielsko Biała - KIK Marcin Knieć', '<br />\n<br />\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"600\">\n    <tbody>\n        <tr>\n            <td valign=\"top\" align=\"left\"><strong>KIK Marcin Knieć<br />\n            <br />\n            </strong>DZIAŁ KSIĘGOWOŚCI <br />\n            <br />\n            Ul. Cechowa 6/10<br />\n            43-300 Bielsko-Biała<br />\n            <br />\n            tel. (33) 816-40-49<br />\n            fax (33) 814-10-49<br />\n            <br />\n            <span style=\"color: #0000ff\"><strong><a href=\"http://marcinkniec@kikbielsko.pl\">marcinkniec@kikbielsko.pl</a><br />\n            </strong></span><u><span style=\"color: #0000ff\"><strong><br />\n            </strong></span></u><u><span style=\"color: #0000ff\"><br />\n            </span></u></td>\n            <td valign=\"top\" align=\"left\"><strong>KIK Marcin Knieć<br />\n            </strong><br />\n            DZIAŁ ADMINISTRACJI<br />\n            <br />\n            Ul. Cechowa 6/10<br />\n            43-300 Bielsko-Biała<br />\n            <br />\n            tel. (33) 816-40-49<br />\n            fax&#160; (33) 814-10-49<br />\n            kom. 504-106-045<br />\n            <br />\n            <u><span style=\"color: #0000ff\"><strong><a href=\"http://katarzynahola@kikbielsko.pl\">katarzynahola@kikbielsko.pl</a><br />\n            </strong></span></u><span style=\"color: #0000ff\"><br />\n            </span></td>\n        </tr>\n    </tbody>\n</table>', 'Agencja nieruchomości oraz biuro rachunkowe w Bielsku Białej. Nasza siedziba mieści się w Bielsku Białej na ul. Cechowej 6/10. Odwiedź nas, zadzwoń 033 816-40-49 lub napisz marcinkniec@kikbielsko.pl', 'Bielsko-Biała nieruchomości, nieruchomosci Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość Bielsko-Biała, lokale wynajem Bielsko-Biała', '', '', '', '', 'kontakt', '', 0),
(3, 4, 1, 'About company', '', '<div class=\"box\">\n<p>We are a family business with the main office in the beautiful and historic city house situated in the very centre of Bielsko-Biała.<br />\n<br />\nI have been an accountant for 18 years. We have been running our accounting and human resources company and providing services for businesses from Bielsko-Biała and surrounding areas since 2001.<br />\n<br />\nIn 2008 I expanded my profile to provide real estate maintenance services. At the moment we manage flats and commercial premises as well as undeveloped properties in Bielsko-Biała<br />\n</p>\n</div>', '', '', '', '', '', '', 'about-company', '', 0),
(5, 3, 3, 'STRONA GŁÓWNA', 'aaa', '<div id=\"content_top\"></div>\n<div id=\"content_main\">\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"930\">\n    <tbody>\n        <tr>\n            <td align=\"left\"><a href=\"/pl/nieruchomosci.html\"><img alt=\"\" width=\"465\" height=\"263\" src=\"/files/img/fckeditor/nieruchomosci_pl.jpg\" /></a></td>\n            <td align=\"right\"><a href=\"/pl/artykul/rachunkowosc-4.html\"><img alt=\"\" width=\"465\" height=\"263\" src=\"/files/img/fckeditor/rachunkowosc_pl.jpg\" /></a></td>\n        </tr>\n        <tr>\n            <td valign=\"top\">\n            <div class=\"content_left_text_box\">\n            <h2 class=\"brown\">Lokale użytkowe i mieszkalne w Bielsku Białej</h2>\n            Oferujemy Państwu różnego rodzaju lokale, zarówno pod wynajem (mieszkania, lokale usługowe i gastronomiczne) oraz mieszkania na sprzedaż<br />\n            <br />\n            <table>\n                <tbody>\n                    <tr>\n                        <td><a href=\"http://www.kikbielsko.pl/pl/nieruchomosci-mieszkania-sprzedaz.html\"><b class=\"brown\">Sprzedaż </b>&gt;</a><br />\n                        <a href=\"http://www.kikbielsko.pl/pl/nieruchomosci-lokale-wynajem.html\"><strong>Wynajem</strong> &gt;</a></td>\n                    </tr>\n                    <tr>\n                        <td></td>\n                    </tr>\n                </tbody>\n            </table>\n            </div>\n            </td>\n            <td valign=\"top\">\n            <div class=\"content_right_text_box\">\n            <h2><span style=\"color: rgb(56,80,124)\">Biuro rachunkowe</span></h2>\n            Świadczymy&#160;usługi z zakresu księgowości i kadr dla firm z Bielska- Białej i okolic. Nasze biuro mieści się w centrum miasta w pięknej zabytkowej kamienicy na ul. Cechowej 6/10.<br />\n            <table style=\"width: 78px; height: 72px\">\n                <tbody>\n                    <tr>\n                        <td><a href=\"http://kikbielsko.pl/pl/artykul/rachunkowosc-4.html\"><span style=\"color: rgb(56,80,124)\"><strong>Więcej &gt;&gt;</strong></span></a></td>\n                    </tr>\n                    <tr>\n                        <td></td>\n                    </tr>\n                </tbody>\n            </table>\n            </div>\n            </td>\n        </tr>\n    </tbody>\n</table>\n</div>', '', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała mieszkania, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, rachunkowość bielsko biała, biuro rachunkowe bielskko biała', '', '', '', '', 'strona-glowna', '', 0),
(6, 4, 3, 'HOMEPAGE', 'HOMEPAGE', '<div id=\"content_top\"></div>\n<div id=\"content_main\">\n<table cellspacing=\"0\" cellpadding=\"0\" width=\"930\">\n    <tbody>\n        <tr>\n            <td align=\"left\"><a href=\"en/properties.html\"><img height=\"263\" width=\"458\" src=\"/files/img/fckeditor/nieruchomosci_en(2).jpg\" alt=\"\" /></a></td>\n            <td align=\"right\"><a href=\"/en/article/accounting-4.html\"><img height=\"263\" width=\"472\" src=\"/files/img/fckeditor/rachunkowosc_en.jpg\" alt=\"\" /></a></td>\n        </tr>\n        <tr>\n            <td>\n            <div class=\"content_left_text_box\">\n            <h2 class=\"brown\">Flats and commercial premises in Bielsko-Biała.</h2>\n            <p>We are happy to offer all sorts of premises for rent (flats, commercial premises, catering premises) as well as flats for sale.</p>\n            <h2 class=\"brown\">\n            <table>\n                <tbody>\n                    <tr>\n                        <td><a href=\"http://kikbielsko.pl/en/properties-houses-sale.html\"><b class=\"brown\">For Sale</b> &gt;</a><br />\n                        <a href=\"http://kikbielsko.pl/en/properties-locals-rent.html\"><strong>For Rent &gt;</strong></a></td>\n                    </tr>\n                    <tr>\n                        <td></td>\n                    </tr>\n                </tbody>\n            </table>\n            </h2>\n            </div>\n            </td>\n            <td>\n            <div class=\"content_text_box\">\n            <h2>Accounting Company</h2>\n            <p>We are happy to provide accounting and HR services for businesses from Bielsko-Biała and surrounding areas. Our main office is located in the beautiful and historic city house in Cechowa Street 6 flat 7.</p>\n            <h2>\n            <table>\n                <tbody>\n                    <tr>\n                        <td><a href=\"http://kikbielsko.pl/en/article/accounting-4.html\"><b>Read more&gt;&gt;</b></a></td>\n                    </tr>\n                    <tr>\n                        <td></td>\n                    </tr>\n                </tbody>\n            </table>\n            </h2>\n            </div>\n            </td>\n        </tr>\n    </tbody>\n</table>\n</div>', '', '', '', '', '', '', 'homepage', '', 0),
(7, 3, 4, 'Rachunkowość', ' Biuro Rachunkowe  Bielsko Biała - Rachunkowość - KIK Marcin Knieć', 'Jesteśmy firma rodzinną, biuro mieści się w centrum miasta Bielska -Białej w pięknej zabytkowej kamienicy. <br />\n<br />\nKsięgowością zajmuję się od 18 lat od roku 2001 prowadzimy własną firmę zajmującą się kompleksowo księgowością i kadrami firm z Bielska- Białej i okolic.<br />\n<br />\nOd 2008 roku rozszerzyłem działalność firmy o świadczenie usług kompleksowej obsługi nieruchomościami. W obecnej chwili administrujemy lokalami mieszkalnymi i użytkowymi oraz niezabudowanymi działkami w Bielsku – Białej. <br />\n<br />\n<strong><br />\n<br />\n<a href=\"http://kikbielsko.pl/pl/artykul/pobierz-druki-5.html\"><img alt=\"\" width=\"204\" height=\"62\" src=\"/files/img/fckeditor/pobierz%20druki.jpg\" /></a><br />\n<br />\n<br />\n</strong><span style=\"color: rgb(56,80,124)\"><strong>Przydatne linki</strong>:</span><br />\n<br />\n<a target=\"_blank\" href=\"http://www.wskazniki.pl\"><strong>www.wskazniki.pl </strong></a><strong><br />\n<br />\n</strong><a target=\"_blank\" href=\"http://www.nbp.pl/home.aspx?f=/kursy/kursya.html\"><strong>www.nbp.pl/kursy</strong></a><strong> <br />\n<br />\n</strong><a target=\"_blank\" href=\"http://www.mf.gov.pl\"><strong>www.mf.gov.pl</strong></a><strong><br />\n<br />\n</strong><br />', 'Biuro rachunkowe w Bielsku Białej. Świadczymy obsługę z zakresu księgowości i kadr dla firm z Bielska- Białej i okolic. Nasze biuro mieści się w centrum miasta w pięknej zabytkowej kamienicy na ul. Cechowej 6/10.', 'rachunkowość Bielsko-Biała , biuro rachunkowe Bielsko-Biała, księgowość Bielsko-Biała, kik Marcin Knieć', '', '', '', '', 'accounting', '', 0),
(8, 4, 4, 'Accounting', 'Accounting', 'We are a family business with the main office in the beautiful and historic city house situated in the very centre of Bielsko-Biała.<br />\n<br />\nI have been an accountant for 18 years. We have been running our accounting and human resources company and providing services for businesses from Bielsko-Biała and surrounding areas since 2001.<br />\n<br />\nIn 2008 I expanded my profile to provide real estate maintenance services. At the moment we manage flats and commercial premises as well as undeveloped properties in Bielsko-Biała<br />\n<br />\n<strong><br />\n<br />\n<a href=\"http://kikbielsko.pl/en/article/download-forms-5.html\"><img height=\"62\" width=\"204\" src=\"/files/img/fckeditor/pobierz%20druki%20en(1).jpg\" alt=\"\" /></a><br />\n<br />\n<br />\n</strong><span style=\"color: rgb(56,80,124)\"><strong>Useful&#160;links</strong>:</span><br />\n<br />\n<a href=\"http://www.wskazniki.pl/\" class=\"moz-txt-link-abbreviated\">www.wskazniki.pl</a> <br />\n<a href=\"http://www.nbp.pl/kursy\" class=\"moz-txt-link-abbreviated\">www.nbp.pl/kursy</a> <a href=\"http://www.mf.gof.pl/\" class=\"moz-txt-link-abbreviated\"><br />\nwww.mf.gof.pl</a><br />', '', '', '', '', '', '', 'accounting', '', 0),
(9, 3, 5, 'Pobierz druki', 'Pobierz druki', '<p><a target=\"_blank\" href=\"/files/img/fckeditor/umowa_najmu_mieszkania.doc\"><strong>Umowa najmu mieszkania</strong></a><strong><br />\n<br />\n</strong><a target=\"_blank\" href=\"/files/img/fckeditor/umowa_najmu_lokalu_uzytkowego_wzor1.doc\"><strong>Umowa najmu lokalu użytkowego</strong></a><strong><br />\n<br />\n</strong><a target=\"_blank\" href=\"/files/img/fckeditor/umowa_najmu_lokalu_na_cele_uzytkowe_wzor1.doc\"><strong>Umowa najmu lokalu na cele użytkowe</strong></a><strong><br />\n<br />\n</strong><a target=\"_blank\" href=\"/files/img/fckeditor/umowa_najmu_nieruchomosci.doc\"><strong>Umowa najmu nieruchomości</strong></a><strong><br />\n<br />\n</strong><a target=\"_blank\" href=\"/files/img/fckeditor/przedwstepna_umowa_kupna-sprzedazy_nieruchomosci.doc\"><strong>Przedwstępna umowa kupna sprzedaży</strong></a><strong><br />\n<br />\n<br />\n<br />\n<br />\n______________________________________________________________________<br />\n<br />\n<a href=\"http://kikbielsko.pl/pl/artykul/rachunkowosc-4.html\">Wróć&#160; &gt;&gt;</a></strong></p>', 'Biuro nieruchomości w Bielsku - Białej. Oferujemy mieszkania na sprzedaż oraz lokale pod wynajem (mieszkania, lokale usługowe i gastronomiczne.) Prowadzimy również biuro rachunkowe. Nasza siedziba mieści się w Bielsku Białej na ul. Cechowej 6/10. Zapraszamy.', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość bielsko biała, Kik Marcin Knieć', '', '', '', '', 'pobierz-druki', '', 0),
(10, 4, 5, 'Download files', 'Download files', '<p><a href=\"/files/img/fckeditor/umowa_najmu_mieszkania.doc\" target=\"_blank\"><strong>Flat Tenancy Agreement</strong></a><br />\n<br />\n<a href=\"/files/img/fckeditor/umowa_najmu_lokalu_uzytkowego_wzor1.doc\" target=\"_blank\"><strong>Commercial Premises Tenancy Agreement</strong></a><br />\n<br />\n<a href=\"/files/img/fckeditor/umowa_najmu_lokalu_na_cele_uzytkowe_wzor1.doc\" target=\"_blank\"><strong>Functional Tenancy Agreement </strong></a><br />\n<br />\n<a href=\"/files/img/fckeditor/umowa_najmu_nieruchomosci.doc\" target=\"_blank\"><strong>Property Tenancy Agreement</strong></a><br />\n<br />\n<a href=\"/files/img/fckeditor/przedwstepna_umowa_kupna-sprzedazy_nieruchomosci.doc\" target=\"_blank\"><strong>Preliminary Sale and Purchase Agreement </strong></a><strong><br />\n<br />\n<br />\n<br />\n<br />\n______________________________________________________________________<br />\n<br />\n<a href=\"http://kikbielsko.pl/en/article/accounting-4.html\">Back&#160; &gt;&gt;</a></strong></p>', '', '', '', '', '', '', 'download-files', '', 0),
(11, 4, 2, 'Contact', '', '<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"600\">\n    <tbody>\n        <tr>\n            <td valign=\"top\" align=\"left\"><strong>KIK Marcin Knieć<br />\n            <br />\n            </strong>ACCOUNTING DEPARTMENT<br />\n            <br />\n            Ul. Cechowa 6/10<br />\n            43-300 Bielsko-Biała<br />\n            <br />\n            tel. (33) 816-40-49<br />\n            fax (33) 814-10-49<br />\n            <br />\n            <a href=\"mailto:kikbielsko@post.pl\"><strong><font color=\"#0000ff\">kikbielsko@post.pl</font></strong></a><strong><br />\n            </strong><br />\n            </td>\n            <td valign=\"top\" align=\"left\"><strong>KIK Marcin Knieć<br />\n            </strong><br />\n            ADMINISTRATION DEPARTMENT<br />\n            <br />\n            Ul. Cechowa 6/7<br />\n            43-300 Bielsko-Biała<br />\n            <br />\n            tel. (33) 818-40-61<br />\n            fax&#160; (33) 814-10-49<br />\n            kom. 504-106-045<br />\n            <br />\n            <a href=\"mailto:administracja@kikbielsko.pl\"><strong><font color=\"#810081\">administracja@kikbielsko.pl</font></strong></a></td>\n        </tr>\n    </tbody>\n</table>\n<br />', '', '', '', '', '', '', 'contact', '', 0);

-- --------------------------------------------------------

--
-- Table structure for table `elements`
--

CREATE TABLE `elements` (
  `idelements` int(11) NOT NULL,
  `name` text,
  `description` text,
  `link` text,
  `menuable` tinyint(1) DEFAULT NULL,
  `translation_field` text,
  `showorder` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `elements`
--

INSERT INTO `elements` (`idelements`, `name`, `description`, `link`, `menuable`, `translation_field`, `showorder`) VALUES
(1, 'index', NULL, '', 0, NULL, 100),
(2, 'users', NULL, 'users', 1, 'uzytkownicy', 6),
(3, 'galleries', NULL, 'galleries', 1, 'galerie', 3),
(4, 'images', NULL, '', 0, NULL, 4),
(5, 'metatags', NULL, 'metatags', 1, 'metatagi', 5),
(6, 'newses', NULL, 'newses', 1, 'newsy', 2),
(7, 'articles', NULL, 'articles', 1, 'artykuly', 1),
(8, 'menus', NULL, 'menus', 1, 'menu', 8),
(9, 'notes', NULL, 'notes', 1, 'notatki', 9),
(10, 'rights', NULL, 'show_rights', 1, 'prawa', 7),
(11, 'languages', NULL, 'languages', 1, 'jezyki', 8.5),
(12, 'sitemap', '', 'generate_sitemap', 1, 'sitemap', 11),
(13, 'htaccess', '', 'generate_htaccess', 1, 'htaccess', 12),
(14, 'backup_database', NULL, 'backup_database', 1, 'backup_database', 12),
(15, 'products', '', 'products', 1, 'produkty', NULL),
(16, 'guest_book', 'guest_book', 'guest_book', 1, 'guest_book', 3),
(17, 'lists', 'lists', 'lists', 1, 'lists', 0),
(18, 'immovables', 'immovables', 'immovables', 1, 'immovables', 0);

-- --------------------------------------------------------

--
-- Table structure for table `galleries`
--

CREATE TABLE `galleries` (
  `idgalleries` int(11) NOT NULL,
  `idparent` int(11) DEFAULT NULL,
  `showorder` double DEFAULT '0',
  `active` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `galleries`
--

INSERT INTO `galleries` (`idgalleries`, `idparent`, `showorder`, `active`) VALUES
(22, NULL, 0, 1),
(23, NULL, 0, 1),
(24, NULL, 0, 1),
(25, NULL, 0, 1),
(26, NULL, 0, 1),
(27, NULL, 0, 1),
(28, NULL, 0, 1),
(36, NULL, 0, 1),
(40, NULL, 0, 1),
(42, NULL, 0, 1),
(54, NULL, 0, 1),
(56, NULL, 0, 1),
(57, NULL, 0, 1),
(58, NULL, 0, 1),
(59, NULL, 0, 1);

-- --------------------------------------------------------

--
-- Table structure for table `galleries_languages`
--

CREATE TABLE `galleries_languages` (
  `idgalleries_languages` int(11) NOT NULL,
  `idgalleries` int(11) NOT NULL,
  `idlanguages` int(11) NOT NULL,
  `title` text,
  `keywords` text,
  `shortdesc` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text,
  `titleseo` text,
  `content` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `galleries_languages`
--

INSERT INTO `galleries_languages` (`idgalleries_languages`, `idgalleries`, `idlanguages`, `title`, `keywords`, `shortdesc`, `abstract`, `subject`, `topic`, `copyrights`, `friendlyurl`, `titleseo`, `content`) VALUES
(8, 36, 3, '11 listopada', '', '', '', '', '', '', '11-listopada', '', '&#160;'),
(12, 40, 3, 'cechowa 6 piwnica', '', '', '', '', '', '', 'cechowa-6-piwnica', '', '&#160;'),
(14, 42, 3, 'Cechowa 8', '', '', '', '', '', '', 'cechowa-8', '', '&#160;'),
(29, 56, 3, 'Cechowa 6/14', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość bielsko biała, Kik Marcin Knieć', 'Biuro nieruchomości w Bielsku - Białej. Oferujemy mieszkania na sprzedaż oraz lokale pod wynajem (mieszkania, lokale usługowe i gastronomiczne.) Prowadzimy również biuro rachunkowe. Nasza siedziba mieści się w Bielsku Białej na ul. Cechowej 6/10. Zapraszamy.', '', '', '', '', 'cechowa-614', '', 'Wynajmę mieszkanie w Bielsku-Białej w centrum miasta o pow. 80,00 mkw położone na III piętrze budynku. Mieszkanie składa się z dwóch pokoi, kuchni, przedpokoju, łazienki i wc. Czynsz w wysokości 1000 zł + media wg wskazań licznika. Wymagana kaucja w wysokości trzykrotnego czynszu czyli 3000 zł (która po rozwiązaniu umowy zostaje zwrócona po zwaloryzowanej stawce GUS) '),
(30, 57, 3, 'Kochanowskiego 41/14', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość bielsko biała, Kik Marcin Knieć', 'Biuro nieruchomości w Bielsku - Białej. Oferujemy mieszkania na sprzedaż oraz lokale pod wynajem (mieszkania, lokale usługowe i gastronomiczne.) Prowadzimy również biuro rachunkowe. Nasza siedziba mieści się w Bielsku Białej na ul. Cechowej 6/10. Zapraszamy.', '', '', '', '', 'kochanowskiego-4114', '', 'Wynajmę mieszkanie w Bielsku-Białej przy ul. Kochanowskiego o pow. 36,60 mkw, położone na II piętrze budynku w bardzo spokojnej dzielnicy. Mieszkanie składa się z pokoju, aneksu jadalnego, przedpokoju, łazienki z wc. Czynsz w wysokości 600 zł + media wg wskazań licznika. Wymagana jest kaucja w wysokości trzykrotnego czynszu czyli 1800 zł (która po zakończeniu umowy zostaje zwrócona) '),
(31, 58, 3, 'Kochanowskiego 41/4', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość bielsko biała, Kik Marcin Knieć', 'Biuro nieruchomości w Bielsku - Białej. Oferujemy mieszkania na sprzedaż oraz lokale pod wynajem (mieszkania, lokale usługowe i gastronomiczne.) Prowadzimy również biuro rachunkowe. Nasza siedziba mieści się w Bielsku Białej na ul. Cechowej 6/10. Zapraszamy.', '', '', '', '', 'kochanowskiego-414', '', 'Wynajmę mieszkanie w Bielsku-Białej przy ul. Kochanowskiego o pow. 37,40 mkw, położone na parterze budynku w bardzo spokojnej dzielnicy. Mieszkanie składa się z pokoju, aneksu jadalnego, przedpokoju, łazienki z wc. Czynsz w wysokości 650 zł + media wg wskazań licznika. Wymagana jest kaucja w wysokości trzykrotnego czynszu czyli 1950 zł (która po zakończeniu umowy zostaje zwrócona) '),
(32, 59, 3, 'Kochanowskiego 41/13', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość bielsko biała, Kik Marcin Knieć', 'Biuro nieruchomości w Bielsku - Białej. Oferujemy mieszkania na sprzedaż oraz lokale pod wynajem (mieszkania, lokale usługowe i gastronomiczne.) Prowadzimy również biuro rachunkowe. Nasza siedziba mieści się w Bielsku Białej na ul. Cechowej 6/10. Zapraszamy.', '', '', '', '', 'kochanowskiego-4113', '', 'Wynajmę mieszkanie w Bielsku-Białej przy ul. Kochanowskiego o pow. 81,80 mkw, położone na II piętrze budynku w bardzo spokojnej dzielnicy. Mieszkanie składa się z dwóch pokoi, kuchni, aneksu jadalnego, przedpokoju, łazienki, wc. Czynsz w wysokości 1200 zł + media wg wskazań licznika. Wymagana jest kaucja w wysokości trzykrotnego czynszu czyli 3600 zł (która po zakończeniu umowy zostaje zwrócona) ');

-- --------------------------------------------------------

--
-- Table structure for table `guest_book`
--

CREATE TABLE `guest_book` (
  `id` int(11) NOT NULL,
  `title` text NOT NULL,
  `text` text NOT NULL,
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `images`
--

CREATE TABLE `images` (
  `idimages` int(11) NOT NULL,
  `idgalleries` int(11) NOT NULL,
  `path` text,
  `showorder` double DEFAULT '0',
  `active` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `images`
--

INSERT INTO `images` (`idimages`, `idgalleries`, `path`, `showorder`, `active`) VALUES
(43, 36, '2011_01_05-09_51_30_000000.jpg', 0, 1),
(71, 40, '2011_01_05-09_58_21_000000.jpg', 0, 1),
(72, 40, '2011_01_05-09_58_27_000000.jpg', 0, 1),
(73, 40, '2011_01_05-09_58_30_000000.jpg', 0, 1),
(74, 40, '2011_01_05-09_58_33_000000.jpg', 0, 1),
(75, 40, '2011_01_05-09_58_35_000000.jpg', 0, 1),
(76, 40, '2011_01_05-09_58_39_000000.jpg', 0, 1),
(77, 40, '2011_01_05-09_58_42_000000.jpg', 0, 1),
(78, 40, '2011_01_05-09_58_44_000000.jpg', 0, 1),
(79, 40, '2011_01_05-09_58_47_000000.jpg', 0, 1),
(80, 40, '2011_01_05-09_58_50_000000.jpg', 0, 1),
(81, 40, '2011_01_05-09_58_53_000000.jpg', 0, 1),
(82, 40, '2011_01_05-09_58_55_000000.jpg', 0, 1),
(83, 40, '2011_01_05-09_58_58_000000.jpg', 0, 1),
(84, 40, '2011_01_05-09_59_01_000000.jpg', 0, 1),
(89, 42, '2011_01_05-10_03_15_000000.jpg', 0, 1),
(90, 42, '2011_01_05-10_03_19_000000.jpg', 0, 1),
(91, 42, '2011_01_05-10_03_23_000000.jpg', 0, 1),
(92, 42, '2011_01_05-10_03_28_000000.jpg', 0, 1),
(94, 42, '2011_01_05-10_03_37_000000.jpg', 0, 1),
(99, 42, '2011_01_05-10_03_57_000000.jpg', 0, 1),
(207, 54, '2012_08_30-12_45_13_000000.jpg', 0, 1);

-- --------------------------------------------------------

--
-- Table structure for table `images_languages`
--

CREATE TABLE `images_languages` (
  `idimages_languages` int(11) NOT NULL,
  `idimages` int(11) NOT NULL,
  `idlanguages` int(11) NOT NULL,
  `title` text,
  `keywords` text,
  `shortdesc` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text,
  `titleseo` text,
  `content` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `images_languages`
--

INSERT INTO `images_languages` (`idimages_languages`, `idimages`, `idlanguages`, `title`, `keywords`, `shortdesc`, `abstract`, `subject`, `topic`, `copyrights`, `friendlyurl`, `titleseo`, `content`) VALUES
(46, 43, 3, 'DSC00209', '', '', '', '', '', '', '', '', ''),
(74, 71, 3, 'DSC00227', '', '', '', '', '', '', '', '', ''),
(75, 72, 3, 'DSC00228', '', '', '', '', '', '', '', '', ''),
(76, 73, 3, 'DSC00229', '', '', '', '', '', '', '', '', ''),
(77, 74, 3, 'DSC00230', '', '', '', '', '', '', '', '', ''),
(78, 75, 3, 'DSC00231', '', '', '', '', '', '', '', '', ''),
(79, 76, 3, 'DSC00232', '', '', '', '', '', '', '', '', ''),
(80, 77, 3, 'DSC00233', '', '', '', '', '', '', '', '', ''),
(81, 78, 3, 'DSC00234', '', '', '', '', '', '', '', '', ''),
(82, 79, 3, 'DSC00235', '', '', '', '', '', '', '', '', ''),
(83, 80, 3, 'DSC00236', '', '', '', '', '', '', '', '', ''),
(84, 81, 3, 'DSC00237', '', '', '', '', '', '', '', '', ''),
(85, 82, 3, 'DSC00238', '', '', '', '', '', '', '', '', ''),
(86, 83, 3, 'DSC00239', '', '', '', '', '', '', '', '', ''),
(87, 84, 3, 'DSC00240', '', '', '', '', '', '', '', '', ''),
(92, 89, 3, 'DSC00216', '', '', '', '', '', '', '', '', ''),
(93, 90, 3, 'DSC00217', '', '', '', '', '', '', '', '', ''),
(94, 91, 3, 'DSC00218', '', '', '', '', '', '', '', '', ''),
(95, 92, 3, 'DSC00219', '', '', '', '', '', '', '', '', ''),
(97, 94, 3, 'DSC00221', '', '', '', '', '', '', '', '', ''),
(102, 99, 3, 'DSC00243', '', '', '', '', '', '', '', '', '');

-- --------------------------------------------------------

--
-- Table structure for table `immovables`
--

CREATE TABLE `immovables` (
  `id` int(11) NOT NULL,
  `building_type_id` int(11) NOT NULL,
  `offer_type_id` int(11) NOT NULL,
  `gallery_id` int(11) NOT NULL,
  `name` varchar(100) DEFAULT NULL,
  `localization` varchar(50) DEFAULT NULL,
  `surface` varchar(50) DEFAULT NULL,
  `rooms` varchar(20) DEFAULT NULL,
  `garage_surface` varchar(20) DEFAULT NULL,
  `nowelty` tinyint(4) DEFAULT NULL,
  `active` tinyint(4) DEFAULT NULL,
  `date_added` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `immovables`
--

INSERT INTO `immovables` (`id`, `building_type_id`, `offer_type_id`, `gallery_id`, `name`, `localization`, `surface`, `rooms`, `garage_surface`, `nowelty`, `active`, `date_added`) VALUES
(30, 2, 2, 40, 'ul. Cechowa 6, piwnica', 'ul. Cechowa 6, piwnica', '212 m2 ', NULL, NULL, 1, 1, '2011-01-11 11:48:19'),
(32, 2, 2, 42, 'ul. Cechowa 8', 'ul. Cechowa 8', '144,7 m2', NULL, NULL, 1, 1, '2011-01-11 12:00:30'),
(52, 1, 2, 56, 'Cechowa 6/14', 'Centrum miasta', '80,00 ', 'II', NULL, 1, 1, '2014-02-26 08:29:18'),
(53, 1, 2, 57, 'Kochanowskiego 41/14', 'Kochanowskiego', '36,60', 'I', NULL, 1, 1, '2014-02-26 08:33:07'),
(54, 1, 2, 58, 'Kochanowskiego 41/4', 'Kochanowskiego', '37,40', 'I', NULL, 1, 1, '2014-02-26 08:34:36'),
(55, 1, 2, 59, 'Kochanowskiego 41/13', 'Kochanowskiego', '81,80', 'II', NULL, 1, 1, '2014-02-26 08:35:57');

-- --------------------------------------------------------

--
-- Table structure for table `immovable_building_types`
--

CREATE TABLE `immovable_building_types` (
  `id` int(11) NOT NULL,
  `name` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='mieszkanie | lokal\n\n';

--
-- Dumping data for table `immovable_building_types`
--

INSERT INTO `immovable_building_types` (`id`, `name`) VALUES
(1, 'mieszkania'),
(2, 'lokale'),
(3, 'działki');

-- --------------------------------------------------------

--
-- Table structure for table `immovable_languages`
--

CREATE TABLE `immovable_languages` (
  `id` int(11) NOT NULL,
  `immovable_id` int(11) NOT NULL,
  `lang_id` int(11) NOT NULL,
  `floor` varchar(50) DEFAULT NULL,
  `price` varchar(50) DEFAULT NULL,
  `plot_type` varchar(100) DEFAULT NULL,
  `description` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `immovable_languages`
--

INSERT INTO `immovable_languages` (`id`, `immovable_id`, `lang_id`, `floor`, `price`, `plot_type`, `description`) VALUES
(37, 30, 3, 'piwnica', 'do negocjacji', '', 'Lokal do wynajęcia<br />\nZlokalizowany w piwnicy w/w budynku o pow. 212 m2 nadający się na<strong> działalność gastronomiczną. </strong><br />\n<br />'),
(39, 32, 3, 'piwnica', 'do negocjacji', '', 'Lokal do wynajęcia. Zlokalizowany w piwnicy w/w budynku o pow. 144,7 m2  połączony schodami z parterem. Budynek zlokalizowany w centrum miasta Bielska-Białej w pobliżu centrum handlowego „Sfera”.<br />\n<br />\n<br />\nKamienica ma odnowioną elewację, nowoczesną kotłownie. Lokale na parterze budynku mają wejścia bezpośrednio z ulicy Cechowej. <br />\n<br />'),
(46, 30, 4, 'Basement', 'To negotiate', '', '<strong>Premises to rent.</strong> Situated in the basement of the building, floor area 212 m2. The premises suitable for<strong> catering services. </strong>'),
(49, 32, 4, 'Basement', 'To negotiate', '', 'Premises to rent. Situated in the basement of the building, floor area 144,7 m2 connected with the ground floor via stairs. The building is situated in the very city centre near the shopping centre \"Sfera\". <br />\n<br />\nThe city house offers a renovated facade and a modern boiler. The premises on the ground floor are accessible directly from Cechowa Street.<br />\n<br />'),
(68, 52, 3, 'III', '1000', NULL, 'Wynajmę mieszkanie w Bielsku-Białej w centrum miasta o pow. 80,00 mkw położone na III piętrze budynku. Mieszkanie składa się z dwóch pokoi, kuchni, przedpokoju, łazienki i wc. Czynsz w wysokości 1000 zł + media wg wskazań licznika. Wymagana kaucja w wysokości trzykrotnego czynszu czyli 3000 zł (która po rozwiązaniu umowy zostaje zwrócona po zwaloryzowanej stawce GUS) '),
(69, 53, 3, 'II', '600', NULL, 'Wynajmę mieszkanie w Bielsku-Białej przy ul. Kochanowskiego o pow. 36,60 mkw, położone na II piętrze budynku w bardzo spokojnej dzielnicy. Mieszkanie składa się z pokoju, aneksu jadalnego, przedpokoju, łazienki z wc. Czynsz w wysokości 600 zł + media wg wskazań licznika. Wymagana jest kaucja w wysokości trzykrotnego czynszu czyli 1800 zł (która po zakończeniu umowy zostaje zwrócona) '),
(70, 54, 3, 'Parter', '650', NULL, 'Wynajmę mieszkanie w Bielsku-Białej przy ul. Kochanowskiego o pow. 37,40 mkw, położone na parterze budynku w bardzo spokojnej dzielnicy. Mieszkanie składa się z pokoju, aneksu jadalnego, przedpokoju, łazienki z wc. Czynsz w wysokości 650 zł + media wg wskazań licznika. Wymagana jest kaucja w wysokości trzykrotnego czynszu czyli 1950 zł (która po zakończeniu umowy zostaje zwrócona) '),
(71, 55, 3, 'II', '1200', NULL, 'Wynajmę mieszkanie w Bielsku-Białej przy ul. Kochanowskiego o pow. 81,80 mkw, położone na II piętrze budynku w bardzo spokojnej dzielnicy. Mieszkanie składa się z dwóch pokoi, kuchni, aneksu jadalnego, przedpokoju, łazienki, wc. Czynsz w wysokości 1200 zł + media wg wskazań licznika. Wymagana jest kaucja w wysokości trzykrotnego czynszu czyli 3600 zł (która po zakończeniu umowy zostaje zwrócona) ');

-- --------------------------------------------------------

--
-- Table structure for table `immovable_offer_types`
--

CREATE TABLE `immovable_offer_types` (
  `id` int(11) NOT NULL,
  `name` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='sprzedaż | wynajem\n';

--
-- Dumping data for table `immovable_offer_types`
--

INSERT INTO `immovable_offer_types` (`id`, `name`) VALUES
(1, 'sprzedaz'),
(2, 'wynajem');

-- --------------------------------------------------------

--
-- Table structure for table `languages`
--

CREATE TABLE `languages` (
  `idlanguages` int(11) NOT NULL,
  `fullname` text,
  `shortname` text,
  `active` tinyint(1) DEFAULT '1',
  `showorder` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `languages`
--

INSERT INTO `languages` (`idlanguages`, `fullname`, `shortname`, `active`, `showorder`) VALUES
(1, 'Deutsch', 'DE', 0, 3),
(3, 'Polski', 'PL', 1, 1),
(4, 'English', 'EN', 1, 2);

-- --------------------------------------------------------

--
-- Table structure for table `lists`
--

CREATE TABLE `lists` (
  `id` int(11) NOT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `name` varchar(100) CHARACTER SET utf8 COLLATE utf8_hungarian_ci NOT NULL,
  `description` text,
  `image` varchar(100) DEFAULT NULL,
  `link` varchar(100) DEFAULT NULL,
  `show_order` tinyint(4) NOT NULL DEFAULT '0',
  `id_galleries` int(11) DEFAULT NULL,
  `param1` varchar(10) DEFAULT NULL,
  `param2` varchar(10) DEFAULT NULL,
  `param3` varchar(10) DEFAULT NULL,
  `param4` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `menus`
--

CREATE TABLE `menus` (
  `idmenus` int(11) NOT NULL,
  `name` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `menus`
--

INSERT INTO `menus` (`idmenus`, `name`) VALUES
(1, 'MAIN_MENU');

-- --------------------------------------------------------

--
-- Table structure for table `menu_items`
--

CREATE TABLE `menu_items` (
  `idmenu_items` int(11) NOT NULL,
  `idmenus` int(11) NOT NULL,
  `idmenu_item_types` int(11) NOT NULL,
  `idelement` int(11) NOT NULL,
  `idparent` int(11) DEFAULT NULL,
  `showorder` double DEFAULT '0',
  `active` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `menu_items`
--

INSERT INTO `menu_items` (`idmenu_items`, `idmenus`, `idmenu_item_types`, `idelement`, `idparent`, `showorder`, `active`) VALUES
(1, 1, 4, 1, NULL, 3, 1),
(2, 1, 7, 1, NULL, 2, 1),
(4, 1, 4, 2, NULL, 0, 1),
(5, 1, 4, 4, NULL, 1, 1);

-- --------------------------------------------------------

--
-- Table structure for table `menu_item_languages`
--

CREATE TABLE `menu_item_languages` (
  `idmenu_item_languages` int(11) NOT NULL,
  `idmenu_items` int(11) NOT NULL,
  `idlanguages` int(11) NOT NULL,
  `friendlyurl` text NOT NULL,
  `elementname` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `menu_item_languages`
--

INSERT INTO `menu_item_languages` (`idmenu_item_languages`, `idmenu_items`, `idlanguages`, `friendlyurl`, `elementname`) VALUES
(1, 1, 3, 'o-firmie', 'O firmie'),
(2, 2, 3, 'nieruchomosci', 'Nieruchomości'),
(4, 4, 3, 'kontakt', 'Kontakt'),
(5, 1, 4, '', 'About '),
(6, 2, 4, 'real-estates', 'Real estates'),
(8, 4, 4, '', 'Contact'),
(9, 5, 3, 'rachunkowosc', 'Rachunkowość'),
(10, 5, 4, 'accounting', 'Accounting');

-- --------------------------------------------------------

--
-- Table structure for table `menu_item_types`
--

CREATE TABLE `menu_item_types` (
  `idmenu_item_types` int(11) NOT NULL,
  `type` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `menu_item_types`
--

INSERT INTO `menu_item_types` (`idmenu_item_types`, `type`) VALUES
(4, 'article'),
(5, 'news'),
(6, 'gallery'),
(7, 'none'),
(8, 'product_category'),
(9, 'product');

-- --------------------------------------------------------

--
-- Table structure for table `metatags`
--

CREATE TABLE `metatags` (
  `idmetatags` int(11) NOT NULL,
  `idmetatag_types` int(11) DEFAULT NULL,
  `idlanguages` int(11) DEFAULT NULL,
  `template` text,
  `title` text,
  `content` text,
  `shortdesc` text,
  `keywords` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `metatags`
--

INSERT INTO `metatags` (`idmetatags`, `idmetatag_types`, `idlanguages`, `template`, `title`, `content`, `shortdesc`, `keywords`, `abstract`, `subject`, `topic`, `copyrights`, `friendlyurl`) VALUES
(42, 18, 3, 'mieszkania.bielsko.pl', '', NULL, '', 'Bielsko Biała nieruchomości, nieruchomosci Bielsko-Biała, Bielsko-Biała sprzedaż mieszkania, lokale wynajem Bielsko-Biała, biuro rachunkowe Bielsko-Biała, rachunkowość bielsko biała, Kik Marcin Knieć', '', '', '', '', NULL),
(43, 18, 4, 'mieszkania.bielsko.pl', 'mieszkania.bielsko.pl', NULL, '', '', '', '', '', '', NULL),
(44, 12, 3, 'mieszkania.bielsko.pl | CMS', 'kikbielsko.pl | CMS', NULL, '', '', '', '', '', '', NULL),
(45, 12, 3, 'mieszkania.bielsko.pl | CMS', 'kikbielsko.pl | CMS', NULL, '', '', '', '', '', '', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `metatag_types`
--

CREATE TABLE `metatag_types` (
  `idmetatag_types` int(11) NOT NULL,
  `name` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `metatag_types`
--

INSERT INTO `metatag_types` (`idmetatag_types`, `name`) VALUES
(12, 'admin'),
(18, 'template');

-- --------------------------------------------------------

--
-- Table structure for table `mit_languages`
--

CREATE TABLE `mit_languages` (
  `idmit_languages` int(11) NOT NULL,
  `idmit` int(11) NOT NULL,
  `idlanguages` int(11) NOT NULL,
  `friendlyurl` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `mit_languages`
--

INSERT INTO `mit_languages` (`idmit_languages`, `idmit`, `idlanguages`, `friendlyurl`) VALUES
(1, 4, 3, 'artykul'),
(2, 5, 3, 'news'),
(3, 6, 3, 'galeria'),
(4, 7, 3, NULL),
(5, 8, 3, 'produkty'),
(6, 9, 3, 'produkt');

-- --------------------------------------------------------

--
-- Table structure for table `newses`
--

CREATE TABLE `newses` (
  `idnewses` int(11) NOT NULL,
  `image` text,
  `date` date DEFAULT NULL,
  `showorder` double DEFAULT '0',
  `active` tinyint(1) DEFAULT '1',
  `defaultmeta` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `news_languages`
--

CREATE TABLE `news_languages` (
  `idnews_languages` int(11) NOT NULL,
  `idnewses` int(11) DEFAULT NULL,
  `idlanguages` int(11) DEFAULT NULL,
  `title` text,
  `titleseo` text,
  `content` text,
  `shortdesc` text,
  `keywords` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `notes`
--

CREATE TABLE `notes` (
  `idnotes` int(11) NOT NULL,
  `idusers` int(11) NOT NULL,
  `date` date NOT NULL,
  `title` text,
  `content` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- --------------------------------------------------------

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `idproducts` int(11) NOT NULL,
  `price` double DEFAULT NULL,
  `name` text,
  `showorder` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `photo` text,
  `idgalleries` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin2;

-- --------------------------------------------------------

--
-- Table structure for table `products_languages`
--

CREATE TABLE `products_languages` (
  `idproducts_languages` int(11) NOT NULL,
  `idlanguages` int(11) DEFAULT NULL,
  `idproducts` int(11) DEFAULT NULL,
  `title` text,
  `titleseo` text,
  `content` text,
  `shortdesc` text,
  `keywords` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text,
  `additional_data` text
) ENGINE=InnoDB DEFAULT CHARSET=latin2;

-- --------------------------------------------------------

--
-- Table structure for table `product_categories`
--

CREATE TABLE `product_categories` (
  `idproduct_categories` int(11) NOT NULL,
  `type` text
) ENGINE=InnoDB DEFAULT CHARSET=latin2;

--
-- Dumping data for table `product_categories`
--

INSERT INTO `product_categories` (`idproduct_categories`, `type`) VALUES
(4, 'Elementy');

-- --------------------------------------------------------

--
-- Table structure for table `product_categories_languages`
--

CREATE TABLE `product_categories_languages` (
  `idproduct_categories_languages` int(11) NOT NULL,
  `idlanguages` int(11) DEFAULT NULL,
  `idproduct_categories` int(11) DEFAULT NULL,
  `title` text,
  `titleseo` text,
  `content` text,
  `shortdesc` text,
  `keywords` text,
  `abstract` text,
  `subject` text,
  `topic` text,
  `copyrights` text,
  `friendlyurl` text
) ENGINE=InnoDB DEFAULT CHARSET=latin2;

--
-- Dumping data for table `product_categories_languages`
--

INSERT INTO `product_categories_languages` (`idproduct_categories_languages`, `idlanguages`, `idproduct_categories`, `title`, `titleseo`, `content`, `shortdesc`, `keywords`, `abstract`, `subject`, `topic`, `copyrights`, `friendlyurl`) VALUES
(5, 3, 4, 'Elementy', '', '', '', '', '', '', '', 'labmatic.com', 'elementy');

-- --------------------------------------------------------

--
-- Table structure for table `product_product_categories`
--

CREATE TABLE `product_product_categories` (
  `idproduct_product_categories` int(11) NOT NULL,
  `idproducts` int(11) DEFAULT NULL,
  `idproduct_categories` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin2;

-- --------------------------------------------------------

--
-- Table structure for table `subproducts`
--

CREATE TABLE `subproducts` (
  `idsubproducts` int(11) NOT NULL,
  `idparent` int(11) DEFAULT NULL,
  `idchild` int(11) DEFAULT NULL,
  `complet_price` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin2;

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `idusers` int(11) NOT NULL,
  `iduser_groups` int(11) NOT NULL,
  `fname` text,
  `lname` text,
  `login` text,
  `password` text,
  `active` tinyint(1) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`idusers`, `iduser_groups`, `fname`, `lname`, `login`, `password`, `active`) VALUES
(4, 3, '', '', 'root', 'cf2ea9253d15abd9e2bf9fb093567d85', 1),
(6, 4, '', '', 'admin', '6c925721ae4347293e1526f64149577b', 1);

-- --------------------------------------------------------

--
-- Table structure for table `user_groups`
--

CREATE TABLE `user_groups` (
  `iduser_groups` int(11) NOT NULL,
  `name` text,
  `description` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_groups`
--

INSERT INTO `user_groups` (`iduser_groups`, `name`, `description`) VALUES
(3, 'admin', NULL),
(4, 'editor', NULL);

-- --------------------------------------------------------

--
-- Table structure for table `user_group_elements`
--

CREATE TABLE `user_group_elements` (
  `iduser_group_elements` int(11) NOT NULL,
  `iduser_groups` int(11) NOT NULL,
  `idelements` int(11) NOT NULL,
  `active` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- Dumping data for table `user_group_elements`
--

INSERT INTO `user_group_elements` (`iduser_group_elements`, `iduser_groups`, `idelements`, `active`) VALUES
(1, 3, 1, 1),
(2, 4, 7, 1),
(3, 3, 3, 1),
(4, 4, 1, 1),
(5, 3, 9, 0),
(6, 4, 9, 0),
(7, 4, 8, 0),
(8, 3, 8, 1),
(9, 3, 7, 1),
(10, 3, 6, 1),
(11, 4, 6, 0),
(12, 4, 2, 0),
(13, 3, 2, 1),
(14, 4, 3, 1),
(15, 4, 4, 1),
(16, 3, 5, 1),
(17, 4, 5, 0),
(18, 3, 4, 1),
(19, 4, 10, 0),
(20, 3, 10, 1),
(21, 3, 11, 1),
(22, 3, 12, 1),
(23, 3, 13, 0),
(24, 3, 14, 0),
(25, 4, 12, 0),
(26, 4, 13, 0),
(27, 4, 14, 0),
(28, 3, 15, 0),
(29, 4, 15, 0),
(30, 3, 16, 1),
(31, 4, 16, 0),
(32, 4, 11, 0),
(33, 3, 17, 1),
(34, 4, 17, 0),
(35, 3, 18, 1),
(36, 4, 18, 1);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `articles`
--
ALTER TABLE `articles`
  ADD PRIMARY KEY (`idarticles`);

--
-- Indexes for table `article_languages`
--
ALTER TABLE `article_languages`
  ADD PRIMARY KEY (`idarticle_languages`),
  ADD KEY `fk_article_languages_languages1` (`idlanguages`),
  ADD KEY `fk_article_languages_articles1` (`idarticles`);

--
-- Indexes for table `elements`
--
ALTER TABLE `elements`
  ADD PRIMARY KEY (`idelements`);

--
-- Indexes for table `galleries`
--
ALTER TABLE `galleries`
  ADD PRIMARY KEY (`idgalleries`);

--
-- Indexes for table `galleries_languages`
--
ALTER TABLE `galleries_languages`
  ADD PRIMARY KEY (`idgalleries_languages`),
  ADD KEY `fk_galleries_languages_language1` (`idlanguages`),
  ADD KEY `fk_galleries_languages_galleries1` (`idgalleries`);

--
-- Indexes for table `guest_book`
--
ALTER TABLE `guest_book`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `images`
--
ALTER TABLE `images`
  ADD PRIMARY KEY (`idimages`),
  ADD KEY `fk_images_galleries1` (`idgalleries`);

--
-- Indexes for table `images_languages`
--
ALTER TABLE `images_languages`
  ADD PRIMARY KEY (`idimages_languages`),
  ADD KEY `fk_images_languages_language1` (`idlanguages`),
  ADD KEY `fk_images_languages_images1` (`idimages`);

--
-- Indexes for table `immovables`
--
ALTER TABLE `immovables`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_immovables_immovable_offer_types1` (`offer_type_id`),
  ADD KEY `fk_immovables_immovable_building_types1` (`building_type_id`);

--
-- Indexes for table `immovable_building_types`
--
ALTER TABLE `immovable_building_types`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `immovable_languages`
--
ALTER TABLE `immovable_languages`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_immovables_languages_immovable1` (`immovable_id`);

--
-- Indexes for table `immovable_offer_types`
--
ALTER TABLE `immovable_offer_types`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
  ADD PRIMARY KEY (`idlanguages`);

--
-- Indexes for table `lists`
--
ALTER TABLE `lists`
  ADD PRIMARY KEY (`id`),
  ADD KEY `fk_lists_lists` (`parent_id`);

--
-- Indexes for table `menus`
--
ALTER TABLE `menus`
  ADD PRIMARY KEY (`idmenus`);

--
-- Indexes for table `menu_items`
--
ALTER TABLE `menu_items`
  ADD PRIMARY KEY (`idmenu_items`),
  ADD KEY `fk_menu_items_menus1` (`idmenus`),
  ADD KEY `fk_menu_items_menu_item_types1` (`idmenu_item_types`);

--
-- Indexes for table `menu_item_languages`
--
ALTER TABLE `menu_item_languages`
  ADD PRIMARY KEY (`idmenu_item_languages`),
  ADD KEY `idmenu_items` (`idmenu_items`),
  ADD KEY `idlanguages` (`idlanguages`);

--
-- Indexes for table `menu_item_types`
--
ALTER TABLE `menu_item_types`
  ADD PRIMARY KEY (`idmenu_item_types`);

--
-- Indexes for table `metatags`
--
ALTER TABLE `metatags`
  ADD PRIMARY KEY (`idmetatags`),
  ADD KEY `fk_metatags_metatag_types1` (`idmetatag_types`),
  ADD KEY `fk_metatags_languages1` (`idlanguages`);

--
-- Indexes for table `metatag_types`
--
ALTER TABLE `metatag_types`
  ADD PRIMARY KEY (`idmetatag_types`);

--
-- Indexes for table `mit_languages`
--
ALTER TABLE `mit_languages`
  ADD PRIMARY KEY (`idmit_languages`),
  ADD KEY `idmit` (`idmit`),
  ADD KEY `idlanguages` (`idlanguages`);

--
-- Indexes for table `newses`
--
ALTER TABLE `newses`
  ADD PRIMARY KEY (`idnewses`);

--
-- Indexes for table `news_languages`
--
ALTER TABLE `news_languages`
  ADD PRIMARY KEY (`idnews_languages`),
  ADD KEY `fk_news_languages_languages1` (`idlanguages`),
  ADD KEY `fk_news_languages_newses1` (`idnewses`);

--
-- Indexes for table `notes`
--
ALTER TABLE `notes`
  ADD PRIMARY KEY (`idnotes`),
  ADD KEY `idusers` (`idusers`);

--
-- Indexes for table `products`
--
ALTER TABLE `products`
  ADD PRIMARY KEY (`idproducts`);

--
-- Indexes for table `products_languages`
--
ALTER TABLE `products_languages`
  ADD PRIMARY KEY (`idproducts_languages`),
  ADD KEY `fk_products_languages_languages1` (`idlanguages`),
  ADD KEY `fk_products_languages_products1` (`idproducts`);

--
-- Indexes for table `product_categories`
--
ALTER TABLE `product_categories`
  ADD PRIMARY KEY (`idproduct_categories`);

--
-- Indexes for table `product_categories_languages`
--
ALTER TABLE `product_categories_languages`
  ADD PRIMARY KEY (`idproduct_categories_languages`),
  ADD KEY `fk_product_categories_languages_languages1` (`idlanguages`),
  ADD KEY `fk_product_categories_languages_product_categories1` (`idproduct_categories`);

--
-- Indexes for table `product_product_categories`
--
ALTER TABLE `product_product_categories`
  ADD PRIMARY KEY (`idproduct_product_categories`),
  ADD KEY `fk_product_product_categories_products1` (`idproducts`),
  ADD KEY `fk_product_product_categories_product_categories1` (`idproduct_categories`);

--
-- Indexes for table `subproducts`
--
ALTER TABLE `subproducts`
  ADD PRIMARY KEY (`idsubproducts`),
  ADD KEY `fk_subproducts_products1` (`idparent`),
  ADD KEY `fk_subproducts_products2` (`idchild`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
  ADD PRIMARY KEY (`idusers`),
  ADD KEY `fk_users_user_groups1` (`iduser_groups`);

--
-- Indexes for table `user_groups`
--
ALTER TABLE `user_groups`
  ADD PRIMARY KEY (`iduser_groups`);

--
-- Indexes for table `user_group_elements`
--
ALTER TABLE `user_group_elements`
  ADD PRIMARY KEY (`iduser_group_elements`),
  ADD KEY `iduser_groups` (`iduser_groups`),
  ADD KEY `idelements` (`idelements`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `articles`
--
ALTER TABLE `articles`
  MODIFY `idarticles` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `article_languages`
--
ALTER TABLE `article_languages`
  MODIFY `idarticle_languages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `elements`
--
ALTER TABLE `elements`
  MODIFY `idelements` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `galleries`
--
ALTER TABLE `galleries`
  MODIFY `idgalleries` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=60;
--
-- AUTO_INCREMENT for table `galleries_languages`
--
ALTER TABLE `galleries_languages`
  MODIFY `idgalleries_languages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT for table `guest_book`
--
ALTER TABLE `guest_book`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `images`
--
ALTER TABLE `images`
  MODIFY `idimages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=208;
--
-- AUTO_INCREMENT for table `images_languages`
--
ALTER TABLE `images_languages`
  MODIFY `idimages_languages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=103;
--
-- AUTO_INCREMENT for table `immovables`
--
ALTER TABLE `immovables`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=56;
--
-- AUTO_INCREMENT for table `immovable_building_types`
--
ALTER TABLE `immovable_building_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `immovable_languages`
--
ALTER TABLE `immovable_languages`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72;
--
-- AUTO_INCREMENT for table `immovable_offer_types`
--
ALTER TABLE `immovable_offer_types`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
  MODIFY `idlanguages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `lists`
--
ALTER TABLE `lists`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `menus`
--
ALTER TABLE `menus`
  MODIFY `idmenus` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `menu_items`
--
ALTER TABLE `menu_items`
  MODIFY `idmenu_items` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `menu_item_languages`
--
ALTER TABLE `menu_item_languages`
  MODIFY `idmenu_item_languages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `menu_item_types`
--
ALTER TABLE `menu_item_types`
  MODIFY `idmenu_item_types` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `metatags`
--
ALTER TABLE `metatags`
  MODIFY `idmetatags` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
--
-- AUTO_INCREMENT for table `metatag_types`
--
ALTER TABLE `metatag_types`
  MODIFY `idmetatag_types` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `mit_languages`
--
ALTER TABLE `mit_languages`
  MODIFY `idmit_languages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `newses`
--
ALTER TABLE `newses`
  MODIFY `idnewses` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `news_languages`
--
ALTER TABLE `news_languages`
  MODIFY `idnews_languages` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `notes`
--
ALTER TABLE `notes`
  MODIFY `idnotes` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
  MODIFY `idproducts` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products_languages`
--
ALTER TABLE `products_languages`
  MODIFY `idproducts_languages` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `product_categories`
--
ALTER TABLE `product_categories`
  MODIFY `idproduct_categories` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `product_categories_languages`
--
ALTER TABLE `product_categories_languages`
  MODIFY `idproduct_categories_languages` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `product_product_categories`
--
ALTER TABLE `product_product_categories`
  MODIFY `idproduct_product_categories` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subproducts`
--
ALTER TABLE `subproducts`
  MODIFY `idsubproducts` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
  MODIFY `idusers` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `user_groups`
--
ALTER TABLE `user_groups`
  MODIFY `iduser_groups` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `user_group_elements`
--
ALTER TABLE `user_group_elements`
  MODIFY `iduser_group_elements` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- Constraints for dumped tables
--

--
-- Constraints for table `article_languages`
--
ALTER TABLE `article_languages`
  ADD CONSTRAINT `fk_article_languages_articles1` FOREIGN KEY (`idarticles`) REFERENCES `articles` (`idarticles`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_article_languages_languages1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `galleries_languages`
--
ALTER TABLE `galleries_languages`
  ADD CONSTRAINT `fk_galleries_languages_galleries1` FOREIGN KEY (`idgalleries`) REFERENCES `galleries` (`idgalleries`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_galleries_languages_language1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `images`
--
ALTER TABLE `images`
  ADD CONSTRAINT `fk_images_galleries1` FOREIGN KEY (`idgalleries`) REFERENCES `galleries` (`idgalleries`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `images_languages`
--
ALTER TABLE `images_languages`
  ADD CONSTRAINT `fk_images_languages_images1` FOREIGN KEY (`idimages`) REFERENCES `images` (`idimages`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_images_languages_language1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `immovables`
--
ALTER TABLE `immovables`
  ADD CONSTRAINT `fk_immovables_immovable_building_types1` FOREIGN KEY (`building_type_id`) REFERENCES `immovable_building_types` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_immovables_immovable_offer_types1` FOREIGN KEY (`offer_type_id`) REFERENCES `immovable_offer_types` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `immovable_languages`
--
ALTER TABLE `immovable_languages`
  ADD CONSTRAINT `fk_immovables_languages_immovable1` FOREIGN KEY (`immovable_id`) REFERENCES `immovables` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `lists`
--
ALTER TABLE `lists`
  ADD CONSTRAINT `fk_lists_lists` FOREIGN KEY (`parent_id`) REFERENCES `lists` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION;

--
-- Constraints for table `menu_items`
--
ALTER TABLE `menu_items`
  ADD CONSTRAINT `fk_menu_items_menus1` FOREIGN KEY (`idmenus`) REFERENCES `menus` (`idmenus`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_menu_items_menu_item_types1` FOREIGN KEY (`idmenu_item_types`) REFERENCES `menu_item_types` (`idmenu_item_types`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `menu_item_languages`
--
ALTER TABLE `menu_item_languages`
  ADD CONSTRAINT `menu_item_languages_ibfk_1` FOREIGN KEY (`idmenu_items`) REFERENCES `menu_items` (`idmenu_items`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `menu_item_languages_ibfk_2` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `metatags`
--
ALTER TABLE `metatags`
  ADD CONSTRAINT `fk_metatags_languages1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_metatags_metatag_types1` FOREIGN KEY (`idmetatag_types`) REFERENCES `metatag_types` (`idmetatag_types`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `mit_languages`
--
ALTER TABLE `mit_languages`
  ADD CONSTRAINT `mit_languages_ibfk_2` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `mit_languages_ibfk_3` FOREIGN KEY (`idmit`) REFERENCES `menu_item_types` (`idmenu_item_types`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `news_languages`
--
ALTER TABLE `news_languages`
  ADD CONSTRAINT `fk_news_languages_languages1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_news_languages_newses1` FOREIGN KEY (`idnewses`) REFERENCES `newses` (`idnewses`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `notes`
--
ALTER TABLE `notes`
  ADD CONSTRAINT `notes_ibfk_1` FOREIGN KEY (`idusers`) REFERENCES `users` (`idusers`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `products_languages`
--
ALTER TABLE `products_languages`
  ADD CONSTRAINT `fk_products_languages_languages1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_products_languages_products1` FOREIGN KEY (`idproducts`) REFERENCES `products` (`idproducts`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `product_categories_languages`
--
ALTER TABLE `product_categories_languages`
  ADD CONSTRAINT `fk_product_categories_languages_languages1` FOREIGN KEY (`idlanguages`) REFERENCES `languages` (`idlanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_product_categories_languages_product_categories1` FOREIGN KEY (`idproduct_categories`) REFERENCES `product_categories` (`idproduct_categories`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `product_product_categories`
--
ALTER TABLE `product_product_categories`
  ADD CONSTRAINT `fk_product_product_categories_products1` FOREIGN KEY (`idproducts`) REFERENCES `products` (`idproducts`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_product_product_categories_product_categories1` FOREIGN KEY (`idproduct_categories`) REFERENCES `product_categories` (`idproduct_categories`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `subproducts`
--
ALTER TABLE `subproducts`
  ADD CONSTRAINT `fk_subproducts_products1` FOREIGN KEY (`idparent`) REFERENCES `products` (`idproducts`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `fk_subproducts_products2` FOREIGN KEY (`idchild`) REFERENCES `products` (`idproducts`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `users`
--
ALTER TABLE `users`
  ADD CONSTRAINT `fk_users_user_groups1` FOREIGN KEY (`iduser_groups`) REFERENCES `user_groups` (`iduser_groups`) ON DELETE NO ACTION ON UPDATE NO ACTION;

--
-- Constraints for table `user_group_elements`
--
ALTER TABLE `user_group_elements`
  ADD CONSTRAINT `user_group_elements_ibfk_1` FOREIGN KEY (`iduser_groups`) REFERENCES `user_groups` (`iduser_groups`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  ADD CONSTRAINT `user_group_elements_ibfk_2` FOREIGN KEY (`idelements`) REFERENCES `elements` (`idelements`) ON DELETE NO ACTION ON UPDATE NO ACTION;

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