-- MariaDB dump 10.19  Distrib 10.11.6-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: mariadb    Database: phpunit_test
-- ------------------------------------------------------
-- Server version	10.11.6-MariaDB-1

/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `admin_filters`
--

DROP TABLE IF EXISTS `admin_filters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `admin_filters` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT NULL,
  `description` mediumtext DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `list` mediumtext DEFAULT NULL,
  `sort` mediumtext DEFAULT NULL,
  `global` enum('Y','N') DEFAULT 'N',
  `position` int(11) DEFAULT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `color` char(7) DEFAULT '#AAB2BD',
  `favorite` enum('Y','N') DEFAULT 'N',
  `default_filter` enum('Y','N') DEFAULT 'N',
  `columns` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `admin_filters_admin_id_fk` (`id_admin`),
  CONSTRAINT `admin_filters_admin_id_fk` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admin_filters`
--

LOCK TABLES `admin_filters` WRITE;
/*!40000 ALTER TABLE `admin_filters` DISABLE KEYS */;
/*!40000 ALTER TABLE `admin_filters` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `admins`
--

DROP TABLE IF EXISTS `admins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `admins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) DEFAULT '',
  `login` varchar(50) NOT NULL DEFAULT '',
  `email` varchar(50) NOT NULL DEFAULT '',
  `password` varchar(256) NOT NULL,
  `token` varchar(32) DEFAULT NULL,
  `privilege` longtext NOT NULL,
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_reg` date DEFAULT NULL,
  `date_valid` varchar(19) NOT NULL DEFAULT '',
  `data` mediumtext DEFAULT NULL,
  `date_login` date DEFAULT NULL,
  `language` varchar(10) DEFAULT NULL,
  `date_check_error` datetime DEFAULT NULL,
  `date_check_changelog` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `admins_token_index` (`token`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tab. s adminy, kteří mají právo upravovat v sekci admin' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admins`
--

LOCK TABLES `admins` WRITE;
/*!40000 ALTER TABLE `admins` DISABLE KEYS */;
INSERT INTO `admins` VALUES
(1,'','demo','email@kupshop.cz','$2y$10$rSMJt/DbcMvZtzdPvofLBeEsfKnNSYS0XE1WVyGW7Yh5eECtLWFhi','7b37429817eaed4','ALL_RIGHTS','Y','2013-09-13','',NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `admins` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `admins_accesses`
--

DROP TABLE IF EXISTS `admins_accesses`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `admins_accesses` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_admin` int(11) NOT NULL DEFAULT 0,
  `date_access` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ip` varchar(25) NOT NULL DEFAULT '',
  `ip_name` varchar(60) NOT NULL DEFAULT '',
  `login_status` varchar(5) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `id_admin` (`id_admin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='seznam prihlaseni administratoru' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `admins_accesses`
--

LOCK TABLES `admins_accesses` WRITE;
/*!40000 ALTER TABLE `admins_accesses` DISABLE KEYS */;
/*!40000 ALTER TABLE `admins_accesses` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `articles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_block` int(11) unsigned DEFAULT NULL,
  `title` varchar(100) NOT NULL DEFAULT '',
  `keywords` varchar(255) NOT NULL DEFAULT '',
  `source` varchar(100) NOT NULL DEFAULT '',
  `lead_in` longtext NOT NULL,
  `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `figure` enum('Y','N') NOT NULL DEFAULT 'Y',
  `show_in_search` enum('Y','N') DEFAULT 'Y',
  `seen` int(11) NOT NULL DEFAULT 0,
  `link` varchar(255) NOT NULL DEFAULT '',
  `type` enum('A','L') NOT NULL DEFAULT 'A',
  `rating_value` mediumint(4) unsigned NOT NULL DEFAULT 1,
  `rating_voted` mediumint(4) unsigned NOT NULL DEFAULT 1,
  `comments` enum('Y','N') NOT NULL DEFAULT 'Y',
  `comment_question` varchar(100) NOT NULL DEFAULT '',
  `data` longtext DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `meta_title` varchar(100) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id` (`id`,`title`,`keywords`),
  KEY `id_block` (`id_block`),
  CONSTRAINT `articles_ibfk_1` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='začátek článku a jeho data - tělo je v tab. articles_bo' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `articles` WRITE;
/*!40000 ALTER TABLE `articles` DISABLE KEYS */;
INSERT INTO `articles` VALUES
(2,33,'Lorem Ipsum','','','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut tempus purus at lorem. Integer rutrum, orci vestibulum ullamcorper ultricies.','2013-09-27 16:39:52','Y','Y',3,'','A',0,0,'Y','',NULL,NULL,NULL,NULL),
(3,35,'První novinka','','','Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut tempus purus at lorem.','2014-10-02 12:37:00','Y','Y',0,'','A',0,0,'Y','',NULL,NULL,NULL,NULL),
(4,37,'Druhá novinka','','','Nullam lectus justo, vulputate eget mollis sed, tempor sed magna.','2014-10-02 12:37:20','Y','Y',0,'','A',0,0,'Y','',NULL,NULL,NULL,NULL),
(5,39,'Třetí novinka','','','Curabitur ligula sapien, pulvinar a vestibulum quis, facilisis vel sapien.','2014-10-02 12:38:00','Y','Y',0,'','A',0,0,'Y','',NULL,NULL,NULL,NULL),
(6,41,'Článek o Kupshopu 2015','článek, kupshop, 2015, eshop','','Kupshop 2015','2015-02-16 09:33:00','Y','Y',0,'','A',0,0,'Y','',NULL,NULL,NULL,NULL),
(7,43,'Novinový článek','Co je novinový článek','','Novinový článek','2015-02-16 09:34:00','Y','Y',0,'','A',0,0,'Y','',NULL,NULL,NULL,NULL),
(8,45,'První článek','','','Jak psát první článek','2015-02-16 09:53:00','Y','Y',0,'','A',0,0,'Y','',NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `articles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_authors`
--

DROP TABLE IF EXISTS `articles_authors`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_authors` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL DEFAULT '',
  `surname` varchar(25) NOT NULL DEFAULT '',
  `nick` varchar(30) NOT NULL DEFAULT '',
  `note` mediumtext NOT NULL,
  `email` varchar(50) NOT NULL DEFAULT '',
  `address` varchar(255) NOT NULL DEFAULT '',
  `phone` varchar(30) NOT NULL DEFAULT '',
  `date_borned` date DEFAULT NULL,
  `sex` enum('M','F') NOT NULL DEFAULT 'M',
  `photo` varchar(250) DEFAULT NULL,
  `active` enum('Y','N') DEFAULT 'Y',
  `date_reg` date NOT NULL DEFAULT '0000-00-00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_authors`
--

LOCK TABLES `articles_authors` WRITE;
/*!40000 ALTER TABLE `articles_authors` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_authors` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_authors_admins`
--

DROP TABLE IF EXISTS `articles_authors_admins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_authors_admins` (
  `id_admin` int(11) NOT NULL DEFAULT 0,
  `id_auth` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_admin`,`id_auth`),
  KEY `id_auth` (`id_auth`),
  CONSTRAINT `articles_authors_admins_ibfk_1` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `articles_authors_admins_ibfk_2` FOREIGN KEY (`id_auth`) REFERENCES `articles_authors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_authors_admins`
--

LOCK TABLES `articles_authors_admins` WRITE;
/*!40000 ALTER TABLE `articles_authors_admins` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_authors_admins` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_authors_relation`
--

DROP TABLE IF EXISTS `articles_authors_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_authors_relation` (
  `id_art` int(11) NOT NULL DEFAULT 0,
  `id_auth` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_art`,`id_auth`),
  KEY `id_auth` (`id_auth`),
  CONSTRAINT `articles_authors_relation_ibfk1` FOREIGN KEY (`id_art`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `articles_authors_relation_ibfk2` FOREIGN KEY (`id_auth`) REFERENCES `articles_authors` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='spojovací tab. mezi autory a články' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_authors_relation`
--

LOCK TABLES `articles_authors_relation` WRITE;
/*!40000 ALTER TABLE `articles_authors_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_authors_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_branches`
--

DROP TABLE IF EXISTS `articles_branches`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_branches` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL DEFAULT '',
  `descr` mediumtext NOT NULL,
  `top_branch` int(11) DEFAULT NULL,
  `figure` enum('Y','N') NOT NULL DEFAULT 'Y',
  `behaviour` enum('1','2') NOT NULL DEFAULT '1',
  `orderby` enum('date','title','rating','seen') NOT NULL DEFAULT 'date',
  `orderdir` enum('ASC','DESC') NOT NULL DEFAULT 'DESC',
  `date` date DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `template` varchar(255) DEFAULT NULL,
  `items_per_page` int(11) DEFAULT NULL,
  `meta_title` varchar(100) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `top_branch` (`top_branch`),
  CONSTRAINT `articles_branches_ibfk_1` FOREIGN KEY (`top_branch`) REFERENCES `articles_branches` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_branches`
--

LOCK TABLES `articles_branches` WRITE;
/*!40000 ALTER TABLE `articles_branches` DISABLE KEYS */;
INSERT INTO `articles_branches` VALUES
(1,'Články','',NULL,'Y','2','date','DESC','2013-09-27',NULL,NULL,NULL,NULL,NULL),
(2,'Novinky','',NULL,'Y','1','date','ASC','2014-10-02',NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `articles_branches` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_branches_admins`
--

DROP TABLE IF EXISTS `articles_branches_admins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_branches_admins` (
  `id_admin` int(11) NOT NULL DEFAULT 0,
  `id_branch` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_admin`,`id_branch`),
  KEY `id_branch` (`id_branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_branches_admins`
--

LOCK TABLES `articles_branches_admins` WRITE;
/*!40000 ALTER TABLE `articles_branches_admins` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_branches_admins` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_branches_translations`
--

DROP TABLE IF EXISTS `articles_branches_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_branches_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_articles_branch` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `descr` mediumtext DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  `meta_title` varchar(100) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_articles_branch` (`id_articles_branch`),
  CONSTRAINT `articles_branches_translations_ibfk_1` FOREIGN KEY (`id_articles_branch`) REFERENCES `articles_branches` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_branches_translations`
--

LOCK TABLES `articles_branches_translations` WRITE;
/*!40000 ALTER TABLE `articles_branches_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_branches_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_related`
--

DROP TABLE IF EXISTS `articles_related`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_related` (
  `id_article` int(11) NOT NULL,
  `id_article_related` int(11) NOT NULL,
  `position` int(11) DEFAULT 0,
  PRIMARY KEY (`id_article`,`id_article_related`),
  KEY `articles_related_relation_articles_id_related_fk` (`id_article_related`),
  CONSTRAINT `articles_related_relation_articles_id_fk` FOREIGN KEY (`id_article`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `articles_related_relation_articles_id_related_fk` FOREIGN KEY (`id_article_related`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_related`
--

LOCK TABLES `articles_related` WRITE;
/*!40000 ALTER TABLE `articles_related` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_related` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_articles_related BEFORE INSERT ON articles_related
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(articles_related.position) + 1, 0) FROM articles_related WHERE id_article = NEW.id_article);
                    END IF;
                END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `articles_relation`
--

DROP TABLE IF EXISTS `articles_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_relation` (
  `id_art` int(11) NOT NULL DEFAULT 0,
  `id_branch` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_art`,`id_branch`),
  KEY `id_branch` (`id_branch`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='spojovací tab. mezi články a sekcemi' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_relation`
--

LOCK TABLES `articles_relation` WRITE;
/*!40000 ALTER TABLE `articles_relation` DISABLE KEYS */;
INSERT INTO `articles_relation` VALUES
(3,2),
(4,2),
(5,2),
(6,1),
(7,1),
(8,1);
/*!40000 ALTER TABLE `articles_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_tags`
--

DROP TABLE IF EXISTS `articles_tags`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_tags` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `tag` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `tag` (`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_tags`
--

LOCK TABLES `articles_tags` WRITE;
/*!40000 ALTER TABLE `articles_tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_tags` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_tags_relation`
--

DROP TABLE IF EXISTS `articles_tags_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_tags_relation` (
  `id_article` int(11) NOT NULL,
  `id_tag` int(11) NOT NULL,
  PRIMARY KEY (`id_article`,`id_tag`),
  KEY `articles_tags_relation_articles_tags_id_fk` (`id_tag`),
  CONSTRAINT `articles_tags_relation_articles_id_fk` FOREIGN KEY (`id_article`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `articles_tags_relation_articles_tags_id_fk` FOREIGN KEY (`id_tag`) REFERENCES `articles_tags` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_tags_relation`
--

LOCK TABLES `articles_tags_relation` WRITE;
/*!40000 ALTER TABLE `articles_tags_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_tags_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_tags_translations`
--

DROP TABLE IF EXISTS `articles_tags_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_tags_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_articles_tag` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `tag` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `at_translations_id_at_id_language_uindex` (`id_articles_tag`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `articles_tags_translations_ibfk_1` FOREIGN KEY (`id_articles_tag`) REFERENCES `articles_tags` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `articles_tags_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `articles_tags_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_tags_translations`
--

LOCK TABLES `articles_tags_translations` WRITE;
/*!40000 ALTER TABLE `articles_tags_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_tags_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `articles_translations`
--

DROP TABLE IF EXISTS `articles_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `articles_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_article` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `lead_in` longtext DEFAULT NULL,
  `keywords` varchar(255) DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `articles_translations_id_article_id_language_uindex` (`id_article`,`id_language`),
  CONSTRAINT `articles_translations_ibfk_1` FOREIGN KEY (`id_article`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `articles_translations`
--

LOCK TABLES `articles_translations` WRITE;
/*!40000 ALTER TABLE `articles_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `articles_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `attachments`
--

DROP TABLE IF EXISTS `attachments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachments` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_product` int(11) unsigned NOT NULL DEFAULT 0,
  `title` varchar(50) NOT NULL DEFAULT '',
  `link` mediumtext NOT NULL,
  `date` date NOT NULL DEFAULT '0000-00-00',
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_product` (`id_product`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='prilohy k produktu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `attachments`
--

LOCK TABLES `attachments` WRITE;
/*!40000 ALTER TABLE `attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `automation_configurator`
--

DROP TABLE IF EXISTS `automation_configurator`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `automation_configurator` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  `context` varchar(100) DEFAULT NULL,
  `descr` text DEFAULT NULL,
  `detailLog` enum('Y','N') DEFAULT 'N',
  `active` enum('Y','N') DEFAULT 'N',
  `applyOnlyOnce` enum('Y','N') DEFAULT 'Y',
  `appData` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `automation_configurator`
--

LOCK TABLES `automation_configurator` WRITE;
/*!40000 ALTER TABLE `automation_configurator` DISABLE KEYS */;
/*!40000 ALTER TABLE `automation_configurator` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `automation_configurator_history`
--

DROP TABLE IF EXISTS `automation_configurator_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `automation_configurator_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_configurator` int(11) NOT NULL,
  `id_order` int(10) unsigned DEFAULT NULL,
  `id_sale` int(11) unsigned DEFAULT NULL,
  `date` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `automation_configurator_history_automation_configurator_id_fk` (`id_configurator`),
  KEY `automation_configurator_history_orders_id_fk` (`id_order`),
  KEY `FK_automation_configurator_history_id_sale` (`id_sale`),
  CONSTRAINT `FK_automation_configurator_history_id_sale` FOREIGN KEY (`id_sale`) REFERENCES `sales` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `automation_configurator_history_automation_configurator_id_fk` FOREIGN KEY (`id_configurator`) REFERENCES `automation_configurator` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `automation_configurator_history_orders_id_fk` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `automation_configurator_history`
--

LOCK TABLES `automation_configurator_history` WRITE;
/*!40000 ALTER TABLE `automation_configurator_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `automation_configurator_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `balikonos`
--

DROP TABLE IF EXISTS `balikonos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `balikonos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user` varchar(50) DEFAULT NULL,
  `id_order` int(10) unsigned DEFAULT NULL,
  `id_delivery` int(10) unsigned DEFAULT NULL,
  `close` tinyint(1) NOT NULL DEFAULT 0,
  `id_shop_delivery` int(11) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `balikonos_id_order_index` (`id_order`),
  KEY `balikonos_shop_delivery_fk` (`id_shop_delivery`),
  CONSTRAINT `balikonos_relations_ibfk_1` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `balikonos_shop_delivery_fk` FOREIGN KEY (`id_shop_delivery`) REFERENCES `delivery_type_delivery` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `balikonos`
--

LOCK TABLES `balikonos` WRITE;
/*!40000 ALTER TABLE `balikonos` DISABLE KEYS */;
/*!40000 ALTER TABLE `balikonos` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `blocks`
--

DROP TABLE IF EXISTS `blocks`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `blocks` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_root` int(11) unsigned DEFAULT NULL,
  `id_parent` int(11) unsigned DEFAULT NULL,
  `position` int(11) unsigned NOT NULL DEFAULT 0,
  `date_updated` datetime DEFAULT NULL ON UPDATE current_timestamp(),
  `identifier` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(100) DEFAULT NULL,
  `content` longtext DEFAULT NULL,
  `json_content` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `position` (`position`),
  KEY `fk_id_root` (`id_root`),
  KEY `fk_id_parent` (`id_parent`),
  CONSTRAINT `fk_id_parent` FOREIGN KEY (`id_parent`) REFERENCES `blocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_id_root` FOREIGN KEY (`id_root`) REFERENCES `blocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8202 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='editovane HTML bloky stranky' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `blocks`
--

LOCK TABLES `blocks` WRITE;
/*!40000 ALTER TABLE `blocks` DISABLE KEYS */;
INSERT INTO `blocks` VALUES
(1,8,8,1,NULL,'','Kontakt','<h1>Kontakt</h1>\r\n\r\n<div class=\"row\">\r\n<div class=\"col-md-4 col-sm-6\">\r\n<h3>Fakturační adresa</h3>\r\n\r\n<p>Fügnerova 1288 (zimní stadion)<br />\r\n543 01 Vrchlabí<br />\r\ntel.: 498 100 222<br />\r\n<br />\r\nIČ: 28860608<br />\r\nDIČ: CZ28860608</p>\r\n</div>\r\n\r\n<div class=\"col-md-4 col-sm-6\">\r\n<h3>Dodací adresa</h3>\r\n\r\n<p>Fügnerova 1288 (zimní stadion)<br />\r\n543 01 Vrchlabí</p>\r\n</div>\r\n\r\n<div class=\"col-md-4 col-sm-6\">\r\n<h3>Kontakt</h3>\r\n\r\n<p><a class=\"alternate\" href=\"http://www.kupshop.cz\">www.kupshop.cz</a><br />\r\n<a class=\"alternate\" href=\"http://www.wpj.cz\">www.wpj.cz</a></p>\r\n\r\n<p>Tel. 498 100 222<br />\r\n<a class=\"alternate\" href=\"mailto:wpj@wpj.cz\">wpj@wpj.cz</a></p>\r\n</div>\r\n</div>\r\n\r\n<div class=\"hompage-help\">\r\n<div class=\"row\">\r\n<div class=\"col-md-6 col-sm-6\">\r\n<h3>Potřebujete se zeptat <span>na konkrétní zboží nebo stav vaší objednávky?</span></h3>\r\n</div>\r\n\r\n<div class=\"col-md-6 col-sm-6\">\r\n<h2>Volejte <strong>498 100 222</strong></h2>\r\n\r\n<p>po - pá 8 - 17 hodin, so 8 - 11.30 hodin</p>\r\n</div>\r\n</div>\r\n</div>\r\n\r\n<div class=\"row\">\r\n<div class=\"col-md-4 col-sm-6\">\r\n<h3>Vedení společnosti</h3>\r\n\r\n<p>Jaroslav Novák<br />\r\n<a class=\"alternate\" href=\"mailto:wpj@wpj.cz\">wpj@wpj.cz</a><br />\r\n+498 100 222</p>\r\n</div>\r\n\r\n<div class=\"col-md-4 col-sm-6\">\r\n<h3>Prodejna Praha</h3>\r\n\r\n<p>Květoslav Novák<br />\r\n<a class=\"alternate\" href=\"mailto:wpj@wpj.cz\">wpj@wpj.cz</a><br />\r\n+498 100 222</p>\r\n</div>\r\n\r\n<div class=\"col-md-4 col-sm-6\">\r\n<h3>Velkoobchod</h3>\r\n\r\n<p>Radoslav Novák<br />\r\n<a class=\"alternate\" href=\"mailto:wpj@wpj.cz\">wpj@wpj.cz</a><br />\r\n+498 100 222</p>\r\n</div>\r\n</div>\r\n\r\n<div class=\"row\">\r\n<div class=\"col-md-12\"><iframe frameborder=\"0\" height=\"333\" scrolling=\"no\" src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d5062.429606984642!2d15.611697130859788!3d50.62312633537453!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x470e954f294a6f15%3A0xbbc41d8a6cdd4737!2swpj+s.r.o.!5e0!3m2!1scs!2scz!4v1424079502269\" style=\"border:0; margin-top:30px; width:100%\"></iframe></div>\r\n</div>','[{\"type\":\"legacy\",\"id\":\"9aacbc29-67ac-43cc-87ad-d4ba269276d4\",\"settings\":{\"html\":\"<h1>Kontakt<\\/h1>\\r\\n\\r\\n<div class=\\\"row\\\">\\r\\n<div class=\\\"col-md-4 col-sm-6\\\">\\r\\n<h3>Faktura\\u010dn\\u00ed adresa<\\/h3>\\r\\n\\r\\n<p>F\\u00fcgnerova 1288 (zimn\\u00ed stadion)<br \\/>\\r\\n543 01 Vrchlab\\u00ed<br \\/>\\r\\ntel.: 498 100 222<br \\/>\\r\\n<br \\/>\\r\\nI\\u010c: 28860608<br \\/>\\r\\nDI\\u010c: CZ28860608<\\/p>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"col-md-4 col-sm-6\\\">\\r\\n<h3>Dodac\\u00ed adresa<\\/h3>\\r\\n\\r\\n<p>F\\u00fcgnerova 1288 (zimn\\u00ed stadion)<br \\/>\\r\\n543 01 Vrchlab\\u00ed<\\/p>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"col-md-4 col-sm-6\\\">\\r\\n<h3>Kontakt<\\/h3>\\r\\n\\r\\n<p><a class=\\\"alternate\\\" href=\\\"http:\\/\\/www.kupshop.cz\\\">www.kupshop.cz<\\/a><br \\/>\\r\\n<a class=\\\"alternate\\\" href=\\\"http:\\/\\/www.wpj.cz\\\">www.wpj.cz<\\/a><\\/p>\\r\\n\\r\\n<p>Tel. 498 100 222<br \\/>\\r\\n<a class=\\\"alternate\\\" href=\\\"mailto:wpj@wpj.cz\\\">wpj@wpj.cz<\\/a><\\/p>\\r\\n<\\/div>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"hompage-help\\\">\\r\\n<div class=\\\"row\\\">\\r\\n<div class=\\\"col-md-6 col-sm-6\\\">\\r\\n<h3>Pot\\u0159ebujete se zeptat <span>na konkr\\u00e9tn\\u00ed zbo\\u017e\\u00ed nebo stav va\\u0161\\u00ed objedn\\u00e1vky?<\\/span><\\/h3>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"col-md-6 col-sm-6\\\">\\r\\n<h2>Volejte <strong>498 100 222<\\/strong><\\/h2>\\r\\n\\r\\n<p>po - p\\u00e1 8 - 17 hodin, so 8 - 11.30 hodin<\\/p>\\r\\n<\\/div>\\r\\n<\\/div>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"row\\\">\\r\\n<div class=\\\"col-md-4 col-sm-6\\\">\\r\\n<h3>Veden\\u00ed spole\\u010dnosti<\\/h3>\\r\\n\\r\\n<p>Jaroslav Nov\\u00e1k<br \\/>\\r\\n<a class=\\\"alternate\\\" href=\\\"mailto:wpj@wpj.cz\\\">wpj@wpj.cz<\\/a><br \\/>\\r\\n+498 100 222<\\/p>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"col-md-4 col-sm-6\\\">\\r\\n<h3>Prodejna Praha<\\/h3>\\r\\n\\r\\n<p>Kv\\u011btoslav Nov\\u00e1k<br \\/>\\r\\n<a class=\\\"alternate\\\" href=\\\"mailto:wpj@wpj.cz\\\">wpj@wpj.cz<\\/a><br \\/>\\r\\n+498 100 222<\\/p>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"col-md-4 col-sm-6\\\">\\r\\n<h3>Velkoobchod<\\/h3>\\r\\n\\r\\n<p>Radoslav Nov\\u00e1k<br \\/>\\r\\n<a class=\\\"alternate\\\" href=\\\"mailto:wpj@wpj.cz\\\">wpj@wpj.cz<\\/a><br \\/>\\r\\n+498 100 222<\\/p>\\r\\n<\\/div>\\r\\n<\\/div>\\r\\n\\r\\n<div class=\\\"row\\\">\\r\\n<div class=\\\"col-md-12\\\"><iframe frameborder=\\\"0\\\" height=\\\"333\\\" scrolling=\\\"no\\\" src=\\\"https:\\/\\/www.google.com\\/maps\\/embed?pb=!1m18!1m12!1m3!1d5062.429606984642!2d15.611697130859788!3d50.62312633537453!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x470e954f294a6f15%3A0xbbc41d8a6cdd4737!2swpj+s.r.o.!5e0!3m2!1scs!2scz!4v1424079502269\\\" style=\\\"border:0; margin-top:30px; width:100%\\\"><\\/iframe><\\/div>\\r\\n<\\/div>\"}}]'),
(2,9,9,1,NULL,'','O firmě','<h1>\r\n	O firmě</h1>\r\n<p>\r\n	Firma byla založena roku 1889</p>\r\n','[{\"type\":\"legacy\",\"id\":\"8b11f680-df15-4fc8-a07c-9bf2d679593d\",\"settings\":{\"html\":\"<h1>\\r\\n\\tO firm\\u011b<\\/h1>\\r\\n<p>\\r\\n\\tFirma byla zalo\\u017eena roku 1889<\\/p>\\r\\n\"}}]'),
(3,10,10,1,NULL,'','Úvodní stránka','<h1>Úvodní stránka </h1>\r\n\r\n<h3>Vítr skoro nefouká a tak by se na první pohled mohlo zdát, že se balónky snad vůbec nepohybují. Jenom tak klidně levitují ve vzduchu. Jelikož slunce jasně září</h3>\r\n\r\n<p><a href=\"http://www.kupshop.cz\">http://www.kupshop.cz</a></p>\r\n\r\n<h2>Nadpis 2</h2>\r\n\r\n<h3>Nadpis 3</h3>\r\n\r\n<h4>Nadpis 4</h4>\r\n\r\n<p>Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by m</p>\r\n\r\n<p>ohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>\r\n\r\n<h3>Tabulka (šířka 630px)</h3>\r\n\r\n<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:630px\">\r\n	<thead>\r\n		<tr>\r\n			<th scope=\"col\">Hlavička</th>\r\n			<th scope=\"col\">Hlavička</th>\r\n			<th scope=\"col\">Hlavička</th>\r\n			<th scope=\"col\">Hlavička</th>\r\n		</tr>\r\n	</thead>\r\n	<tbody>\r\n		<tr>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n		</tr>\r\n		<tr>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n		</tr>\r\n		<tr>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n			<td>Obsah</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n\r\n<h3>Seznam - odrážky</h3>\r\n\r\n<ul>\r\n	<li>položka 1</li>\r\n	<li>položka 2</li>\r\n	<li>položka 3</li>\r\n	<li>položka 4</li>\r\n</ul>\r\n\r\n<h3>Seznam - čísla</h3>\r\n\r\n<ol>\r\n	<li>položka</li>\r\n	<li>položka</li>\r\n	<li>položka</li>\r\n	<li>položka</li>\r\n</ol>\r\n\r\n<div id=\"fotogalerie\">\r\n<p><img alt=\"\" src=\"/static/demo/products/p19.jpg\" style=\"width: 500px; height: 388px;\" /></p>\r\n\r\n<div class=\"cleaner\"> </div>\r\n</div>','[{\"type\":\"legacy\",\"id\":\"7fd2d492-2cd8-41ff-a1aa-8088b935fd3f\",\"settings\":{\"html\":\"<h1>\\u00davodn\\u00ed str\\u00e1nka\\u00a0<\\/h1>\\r\\n\\r\\n<h3>V\\u00edtr skoro nefouk\\u00e1 a tak by se na prvn\\u00ed pohled mohlo zd\\u00e1t, \\u017ee se bal\\u00f3nky snad v\\u016fbec nepohybuj\\u00ed. Jenom tak klidn\\u011b levituj\\u00ed ve vzduchu. Jeliko\\u017e slunce jasn\\u011b z\\u00e1\\u0159\\u00ed<\\/h3>\\r\\n\\r\\n<p><a href=\\\"http:\\/\\/www.kupshop.cz\\\">http:\\/\\/www.kupshop.cz<\\/a><\\/p>\\r\\n\\r\\n<h2>Nadpis 2<\\/h2>\\r\\n\\r\\n<h3>Nadpis 3<\\/h3>\\r\\n\\r\\n<h4>Nadpis 4<\\/h4>\\r\\n\\r\\n<p>Jen\\u017ee kv\\u016fli v\\u0161udy p\\u0159\\u00edtomn\\u00e9 tr\\u00e1v\\u011b jsou st\\u00edny bal\\u00f3nk\\u016f sotva vid\\u011bt, nato\\u017e aby \\u0161lo rozeznat, jakou barvu tyto st\\u00edny maj\\u00ed. Uvid\\u011bt tak bal\\u00f3nky n\\u00e1hodn\\u00fd kolemjdouc\\u00ed, jist\\u011b by si pomyslel, \\u017ee u\\u017e tu takhle poletuj\\u00ed snad tis\\u00edc let. St\\u00e1le si v\\u00edcem\\u00e9n\\u011b dr\\u017e\\u00ed v\\u00fd\\u0161ku a ani do stran se p\\u0159\\u00edli\\u0161 nepohybuj\\u00ed. Proti slunci to vypad\\u00e1, \\u017ee se slunce pohybuje k z\\u00e1padu rychleji ne\\u017e bal\\u00f3nky, a mo\\u017en\\u00e1 to tak skute\\u010dn\\u011b je. Nejeden filozof by m<\\/p>\\r\\n\\r\\n<p>ohl tvrdit, \\u017ee bal\\u00f3nky se sluncem z\\u00e1vod\\u00ed, ale fyzikov\\u00e9 by to jist\\u011b vyvr\\u00e1tili. Z fyzik\\u00e1ln\\u00edho pohledu toti\\u017e bal\\u00f3nky p\\u016fsob\\u00ed zcela nezaj\\u00edmav\\u011b.<\\/p>\\r\\n\\r\\n<h3>Tabulka (\\u0161\\u00ed\\u0159ka 630px)<\\/h3>\\r\\n\\r\\n<table border=\\\"0\\\" cellpadding=\\\"1\\\" cellspacing=\\\"1\\\" style=\\\"width:630px\\\">\\r\\n\\t<thead>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<th scope=\\\"col\\\">Hlavi\\u010dka<\\/th>\\r\\n\\t\\t\\t<th scope=\\\"col\\\">Hlavi\\u010dka<\\/th>\\r\\n\\t\\t\\t<th scope=\\\"col\\\">Hlavi\\u010dka<\\/th>\\r\\n\\t\\t\\t<th scope=\\\"col\\\">Hlavi\\u010dka<\\/th>\\r\\n\\t\\t<\\/tr>\\r\\n\\t<\\/thead>\\r\\n\\t<tbody>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t\\t<tr>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t\\t<td>Obsah<\\/td>\\r\\n\\t\\t<\\/tr>\\r\\n\\t<\\/tbody>\\r\\n<\\/table>\\r\\n\\r\\n<h3>Seznam - odr\\u00e1\\u017eky<\\/h3>\\r\\n\\r\\n<ul>\\r\\n\\t<li>polo\\u017eka 1<\\/li>\\r\\n\\t<li>polo\\u017eka 2<\\/li>\\r\\n\\t<li>polo\\u017eka 3<\\/li>\\r\\n\\t<li>polo\\u017eka 4<\\/li>\\r\\n<\\/ul>\\r\\n\\r\\n<h3>Seznam - \\u010d\\u00edsla<\\/h3>\\r\\n\\r\\n<ol>\\r\\n\\t<li>polo\\u017eka<\\/li>\\r\\n\\t<li>polo\\u017eka<\\/li>\\r\\n\\t<li>polo\\u017eka<\\/li>\\r\\n\\t<li>polo\\u017eka<\\/li>\\r\\n<\\/ol>\\r\\n\\r\\n<div id=\\\"fotogalerie\\\">\\r\\n<p><img alt=\\\"\\\" src=\\\"\\/static\\/demo\\/products\\/p19.jpg\\\" style=\\\"width: 500px; height: 388px;\\\" \\/><\\/p>\\r\\n\\r\\n<div class=\\\"cleaner\\\">\\u00a0<\\/div>\\r\\n<\\/div>\"}}]'),
(4,11,11,1,NULL,'','Obchodní podmínky','<h1>\r\n	<b>OBCHODN&Iacute; PODM&Iacute;NKY<br />\r\n	</b></h1>\r\n<p>\r\n	<b>Vzorov&eacute; podm&iacute;nky naleznete na <a href=\"http://www.apek.cz/vzorove-obchodni-podminky/\">http://www.apek.cz/vzorove-obchodni-podminky/</a></b></p>\r\n<div align=\"CENTER\">\r\n	obchodn&iacute; společnosti</div>\r\n<div align=\"CENTER\">\r\n	&ensp;&ensp;&ensp;&ensp;&ensp;</div>\r\n<div align=\"CENTER\">\r\n	se s&iacute;dlem &ensp;&ensp;&ensp;&ensp;&ensp;</div>\r\n<div align=\"CENTER\">\r\n	identifikačn&iacute; č&iacute;slo: &ensp;&ensp;&ensp;&ensp;&ensp;</div>\r\n<div align=\"CENTER\">\r\n	zapsan&eacute; v obchodn&iacute;m rejstř&iacute;ku veden&eacute;m &ensp;&ensp;&ensp;&ensp;&ensp;, odd&iacute;l&nbsp;&ensp;&ensp;&ensp;&ensp;&ensp;, vložka &ensp;&ensp;&ensp;&ensp;&ensp;</div>\r\n<div align=\"CENTER\">\r\n	pro prodej zbož&iacute; prostřednictv&iacute;m on-line obchodu um&iacute;stěn&eacute;ho na internetov&eacute; adrese &ensp;&ensp;&ensp;&ensp;&ensp;</div>\r\n<div align=\"JUSTIFY\">\r\n	<b>1.&Uacute;VODN&Iacute; USTANOVEN&Iacute;</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Tyto obchodn&iacute; podm&iacute;nky (d&aacute;le jen &bdquo;<b>obchodn&iacute; podm&iacute;nky</b>&ldquo;) obchodn&iacute; společnosti &ensp;&ensp;&ensp;&ensp;&ensp;, se&nbsp;s&iacute;dlem &ensp;&ensp;&ensp;&ensp;&ensp;, identifikačn&iacute; č&iacute;slo: &ensp;&ensp;&ensp;&ensp;&ensp;, zapsan&eacute; v obchodn&iacute;m rejstř&iacute;ku veden&eacute;m &ensp;&ensp;&ensp;&ensp;&ensp;, odd&iacute;l &ensp;&ensp;&ensp;&ensp;&ensp;, vložka &ensp;&ensp;&ensp;&ensp;&ensp; (d&aacute;le jen &bdquo;<b>prod&aacute;vaj&iacute;c&iacute;</b>&ldquo;) upravuj&iacute; vz&aacute;jemn&aacute; pr&aacute;va a povinnosti smluvn&iacute;ch stran vznikl&eacute; v&nbsp;souvislosti nebo na z&aacute;kladě kupn&iacute; smlouvy (d&aacute;le jen &bdquo;<b>kupn&iacute; smlouva</b>&ldquo;) uzav&iacute;ran&eacute; mezi prod&aacute;vaj&iacute;c&iacute;m a&nbsp;jinou fyzickou či pr&aacute;vnickou osobou (d&aacute;le jen &bdquo;<b>kupuj&iacute;c&iacute;</b>&ldquo;) prostřednictv&iacute;m internetov&eacute;ho obchodu prod&aacute;vaj&iacute;c&iacute;ho. Internetov&yacute; obchod je&nbsp;prod&aacute;vaj&iacute;c&iacute;m provozov&aacute;n na internetov&eacute; adrese &ensp;&ensp;&ensp;&ensp;&ensp;, a to prostřednictv&iacute;m webov&eacute;ho rozhran&iacute; (d&aacute;le jen &bdquo;<b>webov&eacute; rozhran&iacute; obchodu</b>&ldquo;).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Obchodn&iacute; podm&iacute;nky d&aacute;le upravuj&iacute; pr&aacute;va a povinnosti smluvn&iacute;ch stran při využ&iacute;v&aacute;n&iacute; webov&eacute; str&aacute;nky prod&aacute;vaj&iacute;c&iacute;ho um&iacute;stěn&eacute; na adrese &ensp;&ensp;&ensp;&ensp;&ensp; (d&aacute;le jen &bdquo;<b>webov&aacute; str&aacute;nka</b>&ldquo;) a dal&scaron;&iacute; souvisej&iacute;c&iacute; pr&aacute;vn&iacute; vztahy. Obchodn&iacute; podm&iacute;nky se nevztahuj&iacute; na př&iacute;pady, kdy osoba, kter&aacute; m&aacute; v &uacute;myslu nakoupit zbož&iacute; od prod&aacute;vaj&iacute;c&iacute;ho, jedn&aacute; při objedn&aacute;v&aacute;n&iacute; zbož&iacute; v r&aacute;mci sv&eacute; podnikatelsk&eacute; činnosti.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Ustanoven&iacute; odchyln&aacute; od obchodn&iacute;ch podm&iacute;nek je možn&eacute; sjednat v kupn&iacute; smlouvě. Odchyln&aacute; ujedn&aacute;n&iacute; v kupn&iacute; smlouvě maj&iacute; přednost před ustanoven&iacute;mi obchodn&iacute;ch podm&iacute;nek.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Ustanoven&iacute; obchodn&iacute;ch podm&iacute;nek jsou ned&iacute;lnou souč&aacute;st&iacute; kupn&iacute; smlouvy. Kupn&iacute; smlouva a&nbsp;obchodn&iacute; podm&iacute;nky jsou vyhotoveny v česk&eacute;m jazyce. Kupn&iacute; smlouvu lze uzavř&iacute;t v&nbsp;česk&eacute;m jazyce.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Zněn&iacute; obchodn&iacute;ch podm&iacute;nek může prod&aacute;vaj&iacute;c&iacute; měnit či doplňovat. T&iacute;mto ustanoven&iacute;m nejsou dotčena pr&aacute;va a povinnosti vznikl&aacute; po dobu &uacute;činnosti předchoz&iacute;ho zněn&iacute; obchodn&iacute;ch podm&iacute;nek.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>2.uživatelsk&yacute; &uacute;čet</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Na z&aacute;kladě registrace kupuj&iacute;c&iacute;ho proveden&eacute; na webov&eacute; str&aacute;nce může kupuj&iacute;c&iacute; přistupovat do&nbsp;sv&eacute;ho uživatelsk&eacute;ho rozhran&iacute;. Ze&nbsp;sv&eacute;ho uživatelsk&eacute;ho rozhran&iacute; může kupuj&iacute;c&iacute; prov&aacute;dět objedn&aacute;v&aacute;n&iacute; zbož&iacute; (d&aacute;le jen &bdquo;<b>uživatelsk&yacute; &uacute;čet</b>&ldquo;). V&nbsp;př&iacute;padě, že to webov&eacute; rozhran&iacute; obchodu umožňuje, může kupuj&iacute;c&iacute; prov&aacute;dět objedn&aacute;v&aacute;n&iacute; zbož&iacute; t&eacute;ž bez registrace př&iacute;mo z&nbsp;webov&eacute;ho rozhran&iacute; obchodu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Při registraci na webov&eacute; str&aacute;nce a při objedn&aacute;v&aacute;n&iacute; zbož&iacute; je&nbsp;kupuj&iacute;c&iacute; povinen uv&aacute;dět spr&aacute;vně a&nbsp;pravdivě v&scaron;echny &uacute;daje. &Uacute;daje uveden&eacute; v uživatelsk&eacute;m &uacute;čtu je kupuj&iacute;c&iacute; při jak&eacute;koliv jejich změně povinen aktualizovat. &Uacute;daje uveden&eacute; kupuj&iacute;c&iacute;m v&nbsp;uživatelsk&eacute;m &uacute;čtu a při objedn&aacute;v&aacute;n&iacute; zbož&iacute; jsou prod&aacute;vaj&iacute;c&iacute;m považov&aacute;ny za&nbsp;spr&aacute;vn&eacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Př&iacute;stup k uživatelsk&eacute;mu &uacute;čtu je zabezpečen uživatelsk&yacute;m jm&eacute;nem a heslem. Kupuj&iacute;c&iacute; je&nbsp;povinen zachov&aacute;vat mlčenlivost ohledně informac&iacute; nezbytn&yacute;ch k př&iacute;stupu do jeho uživatelsk&eacute;ho &uacute;čtu a bere na vědom&iacute;, že prod&aacute;vaj&iacute;c&iacute; nenese odpovědnost za poru&scaron;en&iacute; t&eacute;to povinnosti ze strany kupuj&iacute;c&iacute;ho.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; nen&iacute; opr&aacute;vněn umožnit využ&iacute;v&aacute;n&iacute; uživatelsk&eacute;ho &uacute;čtu třet&iacute;m osob&aacute;m.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Prod&aacute;vaj&iacute;c&iacute; může zru&scaron;it uživatelsk&yacute; &uacute;čet, a to zejm&eacute;na v př&iacute;padě, kdy kupuj&iacute;c&iacute; svůj uživatelsk&yacute; &uacute;čet d&eacute;le než &ensp;&ensp;&ensp;&ensp;&ensp; nevyuž&iacute;v&aacute;, či v př&iacute;padě, kdy kupuj&iacute;c&iacute; poru&scaron;&iacute; sv&eacute; povinnosti z&nbsp;kupn&iacute; smlouvy (včetně obchodn&iacute;ch podm&iacute;nek).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že uživatelsk&yacute; &uacute;čet nemus&iacute; b&yacute;t dostupn&yacute; nepřetržitě, a&nbsp;to&nbsp;zejm&eacute;na s&nbsp;ohledem na nutnou &uacute;držbu hardwarov&eacute;ho a softwarov&eacute;ho vybaven&iacute; prod&aacute;vaj&iacute;c&iacute;ho, popř. nutnou &uacute;držbu hardwarov&eacute;ho a softwarov&eacute;ho vybaven&iacute; třet&iacute;ch osob.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>3.uzavřen&iacute; kupn&iacute; smlouvy</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Webov&eacute; rozhran&iacute; obchodu obsahuje seznam zbož&iacute; nab&iacute;zen&eacute;ho prod&aacute;vaj&iacute;c&iacute;m k&nbsp;prodeji, a&nbsp;to&nbsp;včetně uveden&iacute; cen jednotliv&eacute;ho nab&iacute;zen&eacute;ho zbož&iacute;. Ceny nab&iacute;zen&eacute;ho zbož&iacute; jsou uvedeny včetně daně z&nbsp;přidan&eacute; hodnoty a v&scaron;ech souvisej&iacute;c&iacute;ch poplatků. Nab&iacute;dka prodeje zbož&iacute; a ceny tohoto zbož&iacute; zůst&aacute;vaj&iacute; v&nbsp;platnosti po&nbsp;dobu, kdy jsou zobrazov&aacute;ny ve webov&eacute;m rozhran&iacute; obchodu. T&iacute;mto ustanoven&iacute;m nen&iacute; omezena možnost prod&aacute;vaj&iacute;c&iacute;ho uzavř&iacute;t kupn&iacute; smlouvu za&nbsp;individu&aacute;lně sjednan&yacute;ch podm&iacute;nek. Ve&scaron;ker&eacute; nab&iacute;dky prodeje zbož&iacute; um&iacute;stěn&eacute; ve&nbsp;webov&eacute;m rozhran&iacute; obchodu jsou nez&aacute;vazn&eacute; a&nbsp;prod&aacute;vaj&iacute;c&iacute; nen&iacute; povinen uzavř&iacute;t kupn&iacute; smlouvu ohledně tohoto zbož&iacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Webov&eacute; rozhran&iacute; obchodu obsahuje tak&eacute; informace o&nbsp;n&aacute;kladech spojen&yacute;ch s&nbsp;balen&iacute;m a&nbsp;dod&aacute;n&iacute;m zbož&iacute;. Informace o n&aacute;kladech spojen&yacute;ch s balen&iacute;m a dod&aacute;n&iacute;m zbož&iacute; uveden&eacute; ve&nbsp;webov&eacute;m rozhran&iacute; obchodu plat&iacute; pouze v př&iacute;padech, kdy je zbož&iacute; doručov&aacute;no v r&aacute;mci &uacute;zem&iacute; Česk&eacute; republiky.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Pro objedn&aacute;n&iacute; zbož&iacute; vypln&iacute; kupuj&iacute;c&iacute; objedn&aacute;vkov&yacute; formul&aacute;ř ve&nbsp;webov&eacute;m rozhran&iacute; obchodu. Objedn&aacute;vkov&yacute; formul&aacute;ř obsahuje zejm&eacute;na informace o:</div>\r\n		<ol>\r\n			<li>\r\n				<div align=\"JUSTIFY\">\r\n					objedn&aacute;van&eacute;m zbož&iacute; (objedn&aacute;van&eacute; zbož&iacute; &bdquo;vlož&iacute;&ldquo; kupuj&iacute;c&iacute; do elektronick&eacute;ho n&aacute;kupn&iacute;ho ko&scaron;&iacute;ku webov&eacute;ho rozhran&iacute; obchodu),</div>\r\n			</li>\r\n			<li>\r\n				<div align=\"JUSTIFY\">\r\n					způsobu &uacute;hrady kupn&iacute; ceny zbož&iacute;, &uacute;daje o požadovan&eacute;m způsobu doručen&iacute; objedn&aacute;van&eacute;ho zbož&iacute; a</div>\r\n			</li>\r\n			<li>\r\n				<div align=\"JUSTIFY\">\r\n					informace o n&aacute;kladech spojen&yacute;ch s&nbsp;dod&aacute;n&iacute;m zbož&iacute; (d&aacute;le společně jen jako &bdquo;<b>objedn&aacute;vka</b>&ldquo;).</div>\r\n			</li>\r\n		</ol>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Před zasl&aacute;n&iacute;m objedn&aacute;vky prod&aacute;vaj&iacute;c&iacute;mu je kupuj&iacute;c&iacute;mu umožněno zkontrolovat a měnit &uacute;daje, kter&eacute; do&nbsp;objedn&aacute;vky kupuj&iacute;c&iacute; vložil, a to i s&nbsp;ohledem na možnost kupuj&iacute;c&iacute;ho zji&scaron;ťovat a&nbsp;opravovat chyby vznikl&eacute; při zad&aacute;v&aacute;n&iacute; dat do objedn&aacute;vky. Objedn&aacute;vku ode&scaron;le kupuj&iacute;c&iacute; prod&aacute;vaj&iacute;c&iacute;mu kliknut&iacute;m na tlač&iacute;tko &bdquo;&ensp;&ensp;&ensp;&ensp;&ensp;&ldquo;. &Uacute;daje uveden&eacute; v objedn&aacute;vce jsou prod&aacute;vaj&iacute;c&iacute;m považov&aacute;ny za spr&aacute;vn&eacute;. Prod&aacute;vaj&iacute;c&iacute; neprodleně po obdržen&iacute; objedn&aacute;vky toto obdržen&iacute; kupuj&iacute;c&iacute;mu potvrd&iacute; elektronickou po&scaron;tou, a to na adresu elektronick&eacute; po&scaron;ty kupuj&iacute;c&iacute;ho uvedenou v&nbsp;uživatelsk&eacute;m rozhran&iacute; či v objedn&aacute;vce (d&aacute;le jen &bdquo;<b>elektronick&aacute; adresa kupuj&iacute;c&iacute;ho</b>&ldquo;).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Prod&aacute;vaj&iacute;c&iacute; je vždy opr&aacute;vněn v z&aacute;vislosti na charakteru objedn&aacute;vky (množstv&iacute; zbož&iacute;, v&yacute;&scaron;e kupn&iacute; ceny, předpokl&aacute;dan&eacute; n&aacute;klady na dopravu) pož&aacute;dat kupuj&iacute;c&iacute;ho o dodatečn&eacute; potvrzen&iacute; objedn&aacute;vky (např&iacute;klad p&iacute;semně či telefonicky).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Smluvn&iacute; vztah mezi prod&aacute;vaj&iacute;c&iacute;m a kupuj&iacute;c&iacute;m vznik&aacute; doručen&iacute;m přijet&iacute; objedn&aacute;vky (akceptac&iacute;), jež je&nbsp;prod&aacute;vaj&iacute;c&iacute;m zasl&aacute;no kupuj&iacute;c&iacute;mu elektronickou po&scaron;tou, a to na adresu elektronick&eacute; po&scaron;ty kupuj&iacute;c&iacute;ho.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že prod&aacute;vaj&iacute;c&iacute; nen&iacute; povinen uzavř&iacute;t kupn&iacute; smlouvu, a to zejm&eacute;na s&nbsp;osobami, kter&eacute; dř&iacute;ve podstatn&yacute;m způsobem poru&scaron;ily sv&eacute; povinnosti vůči prod&aacute;vaj&iacute;c&iacute;mu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; souhlas&iacute; s použit&iacute;m komunikačn&iacute;ch prostředků na d&aacute;lku při uzav&iacute;r&aacute;n&iacute; kupn&iacute; smlouvy. N&aacute;klady vznikl&eacute; kupuj&iacute;c&iacute;mu při použit&iacute; komunikačn&iacute;ch prostředků na d&aacute;lku v&nbsp;souvislosti s&nbsp;uzavřen&iacute;m kupn&iacute; smlouvy (n&aacute;klady na internetov&eacute; připojen&iacute;, n&aacute;klady na&nbsp;telefonn&iacute; hovory) si hrad&iacute; kupuj&iacute;c&iacute; s&aacute;m.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>4.cena zbož&iacute; a Platebn&iacute; podm&iacute;nky</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Cenu zbož&iacute; a př&iacute;padn&eacute; n&aacute;klady spojen&eacute; s dod&aacute;n&iacute;m zbož&iacute; dle kupn&iacute; smlouvy může kupuj&iacute;c&iacute; uhradit prod&aacute;vaj&iacute;c&iacute;mu n&aacute;sleduj&iacute;c&iacute;mi způsoby:</div>\r\n		<div align=\"JUSTIFY\">\r\n			 v hotovosti v provozovně prod&aacute;vaj&iacute;c&iacute;ho na adrese &ensp;&ensp;&ensp;&ensp;&ensp;;</div>\r\n		<div align=\"JUSTIFY\">\r\n			 v hotovosti na dob&iacute;rku v m&iacute;stě určen&eacute;m kupuj&iacute;c&iacute;m v objedn&aacute;vce;</div>\r\n		<div align=\"JUSTIFY\">\r\n			 bezhotovostně převodem na &uacute;čet prod&aacute;vaj&iacute;c&iacute;ho č. &ensp;&ensp;&ensp;&ensp;&ensp;, veden&yacute; u&nbsp;společnosti &ensp;&ensp;&ensp;&ensp;&ensp; (d&aacute;le jen &bdquo;<b>&uacute;čet prod&aacute;vaj&iacute;c&iacute;ho</b>&ldquo;);</div>\r\n		<div align=\"JUSTIFY\">\r\n			 bezhotovostně prostřednictv&iacute;m platebn&iacute;ho syst&eacute;mu &ensp;&ensp;&ensp;&ensp;&ensp;;</div>\r\n		<div align=\"JUSTIFY\">\r\n			 bezhotovostně platebn&iacute; kartou;</div>\r\n		<div align=\"JUSTIFY\">\r\n			 prostřednictv&iacute;m &uacute;věru poskytnut&eacute;ho třet&iacute; osobou.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Společně s&nbsp;kupn&iacute; cenou je kupuj&iacute;c&iacute; povinen zaplatit prod&aacute;vaj&iacute;c&iacute;mu tak&eacute; n&aacute;klady spojen&eacute; s&nbsp;balen&iacute;m a dod&aacute;n&iacute;m zbož&iacute; ve smluven&eacute; v&yacute;&scaron;i. Nen&iacute;-li uvedeno v&yacute;slovně jinak, rozum&iacute; se d&aacute;le kupn&iacute; cenou i&nbsp;n&aacute;klady spojen&eacute; s&nbsp;dod&aacute;n&iacute;m zbož&iacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V&nbsp;př&iacute;padě platby v&nbsp;hotovosti či v&nbsp;př&iacute;padě platby na dob&iacute;rku je kupn&iacute; cena splatn&aacute; při převzet&iacute; zbož&iacute;. V&nbsp;př&iacute;padě bezhotovostn&iacute; platby je kupn&iacute; cena splatn&aacute; do&nbsp;&ensp;&ensp;&ensp;&ensp;&ensp; dnů od uzavřen&iacute; kupn&iacute; smlouvy.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V&nbsp;př&iacute;padě bezhotovostn&iacute; platby je kupuj&iacute;c&iacute; povinen uhrazovat kupn&iacute; cenu zbož&iacute; společně s&nbsp;uveden&iacute;m&nbsp;variabiln&iacute;ho symbolu platby. V př&iacute;padě bezhotovostn&iacute; platby je z&aacute;vazek kupuj&iacute;c&iacute;ho uhradit kupn&iacute; cenu splněn okamžikem přips&aacute;n&iacute; př&iacute;slu&scaron;n&eacute; č&aacute;stky na &uacute;čet prod&aacute;vaj&iacute;c&iacute;ho.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Prod&aacute;vaj&iacute;c&iacute; je opr&aacute;vněn, zejm&eacute;na v&nbsp;př&iacute;padě, že ze strany kupuj&iacute;c&iacute;ho nedojde k&nbsp;dodatečn&eacute;mu potvrzen&iacute; objedn&aacute;vky (čl. 1.16), požadovat uhrazen&iacute; cel&eacute; kupn&iacute; ceny je&scaron;tě před odesl&aacute;n&iacute;m zbož&iacute; kupuj&iacute;c&iacute;mu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Př&iacute;padn&eacute; slevy z&nbsp;ceny zbož&iacute; poskytnut&eacute; prod&aacute;vaj&iacute;c&iacute;m kupuj&iacute;c&iacute;mu nelze vz&aacute;jemně kombinovat.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Je-li to v&nbsp;obchodn&iacute;m styku obvykl&eacute; nebo je-li tak stanoveno obecně z&aacute;vazn&yacute;mi pr&aacute;vn&iacute;mi předpisy, vystav&iacute; prod&aacute;vaj&iacute;c&iacute; ohledně plateb prov&aacute;děn&yacute;ch na&nbsp;z&aacute;kladě kupn&iacute; smlouvy kupuj&iacute;c&iacute;mu daňov&yacute; doklad &ndash; fakturu. Prod&aacute;vaj&iacute;c&iacute; je pl&aacute;tcem daně z&nbsp;přidan&eacute; hodnoty. Daňov&yacute; doklad &ndash; fakturu vystav&iacute; prod&aacute;vaj&iacute;c&iacute; kupuj&iacute;c&iacute;mu po uhrazen&iacute; ceny zbož&iacute; a za&scaron;le jej v&nbsp;elektronick&eacute; podobě na elektronickou adresu kupuj&iacute;c&iacute;ho.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>5.odstoupen&iacute; od kupn&iacute; smlouvy</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že dle&nbsp;ustanoven&iacute; &sect; 53 odst. 8 z&aacute;kona č.&nbsp;40/1964 Sb., občansk&yacute; z&aacute;kon&iacute;k, ve zněn&iacute; pozděj&scaron;&iacute;ch předpisů (d&aacute;le jen &bdquo;<b>občansk&yacute; z&aacute;kon&iacute;k</b>&ldquo;), nelze mimo jin&eacute; odstoupit od kupn&iacute; smlouvy na dod&aacute;vku zbož&iacute; upraven&eacute;ho podle př&aacute;n&iacute; kupuj&iacute;c&iacute;ho, jakož i&nbsp;zbož&iacute;, kter&eacute; podl&eacute;h&aacute; rychl&eacute; zk&aacute;ze, opotřeben&iacute; nebo zastar&aacute;n&iacute;, od kupn&iacute; smlouvy na dod&aacute;vku audio a video nahr&aacute;vek a poč&iacute;tačov&yacute;ch programů, poru&scaron;il-li spotřebitel jejich origin&aacute;ln&iacute; obal, a&nbsp;od kupn&iacute; smlouvy na dod&aacute;vku novin, periodik a časopisů.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Nejedn&aacute;-li se o př&iacute;pad uveden&yacute; v&nbsp;čl. 1.27 či o jin&yacute; př&iacute;pad, kdy nelze od kupn&iacute; smlouvy odstoupit, m&aacute;&nbsp;kupuj&iacute;c&iacute; v&nbsp;souladu s ustanoven&iacute;m &sect;&nbsp;53&nbsp;odst. 7 občansk&eacute;ho z&aacute;kon&iacute;ku pr&aacute;vo od&nbsp;kupn&iacute; smlouvy odstoupit, a to do čtrn&aacute;cti (14) dnů od převzet&iacute; zbož&iacute;. Odstoupen&iacute; od&nbsp;kupn&iacute; smlouvy mus&iacute; b&yacute;t prod&aacute;vaj&iacute;c&iacute;mu doručeno do čtrn&aacute;cti (14) dnů od&nbsp;převzet&iacute; zbož&iacute;. Odstoupen&iacute; od&nbsp;kupn&iacute; smlouvy může kupuj&iacute;c&iacute; zas&iacute;lat mimo jin&eacute; na&nbsp;adresu provozovny prod&aacute;vaj&iacute;c&iacute;ho či na adresu elektronick&eacute; po&scaron;ty prod&aacute;vaj&iacute;c&iacute;ho &ensp;&ensp;&ensp;&ensp;&ensp;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V&nbsp;př&iacute;padě odstoupen&iacute; od smlouvy dle čl. 1.28 obchodn&iacute;ch podm&iacute;nek se kupn&iacute; smlouva od&nbsp;poč&aacute;tku ru&scaron;&iacute;. Zbož&iacute; mus&iacute; b&yacute;t prod&aacute;vaj&iacute;c&iacute;mu vr&aacute;ceno do &ensp;&ensp;&ensp;&ensp;&ensp; pracovn&iacute;ch dnů od&nbsp;odesl&aacute;n&iacute; odstoupen&iacute; od smlouvy prod&aacute;vaj&iacute;c&iacute;mu. Zbož&iacute; mus&iacute; b&yacute;t prod&aacute;vaj&iacute;c&iacute;mu vr&aacute;ceno nepo&scaron;kozen&eacute; a&nbsp;neopotřeben&eacute; a, je-li to možn&eacute;, v&nbsp;původn&iacute;m obalu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Ve lhůtě patn&aacute;cti (15) dnů od vr&aacute;cen&iacute; zbož&iacute; kupuj&iacute;c&iacute;m dle čl. 1.29 obchodn&iacute;ch podm&iacute;nek je&nbsp;prod&aacute;vaj&iacute;c&iacute; opr&aacute;vněn prov&eacute;st přezkoum&aacute;n&iacute; vr&aacute;cen&eacute;ho zbož&iacute;, zejm&eacute;na za &uacute;čelem zji&scaron;těn&iacute;, zdali vr&aacute;cen&eacute; zbož&iacute; nen&iacute; po&scaron;kozeno, opotřebeno či&nbsp;č&aacute;stečně spotřebov&aacute;no.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V&nbsp;př&iacute;padě odstoupen&iacute; od smlouvy dle čl. 1.28 obchodn&iacute;ch podm&iacute;nek vr&aacute;t&iacute; prod&aacute;vaj&iacute;c&iacute; plněn&iacute; poskytnut&eacute; kupuj&iacute;c&iacute;m kupuj&iacute;c&iacute;mu do deseti (10) dnů od skončen&iacute; lhůty na přezkoum&aacute;n&iacute; zbož&iacute; dle čl.&nbsp;1.30 obchodn&iacute;ch podm&iacute;nek, nejpozději v&scaron;ak do třiceti (30) dnů od doručen&iacute; odstoupen&iacute; od&nbsp;kupn&iacute; smlouvy kupuj&iacute;c&iacute;mu, a&nbsp;to&nbsp;bezhotovostně na &uacute;čet určen&yacute; kupuj&iacute;c&iacute;m. Prod&aacute;vaj&iacute;c&iacute; je takt&eacute;ž opr&aacute;vněn vr&aacute;tit plněn&iacute; poskytnut&eacute; kupuj&iacute;c&iacute;m již při vr&aacute;cen&iacute; zbož&iacute; kupuj&iacute;c&iacute;m.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že pokud zbož&iacute; vr&aacute;cen&eacute; kupuj&iacute;c&iacute;m bude po&scaron;kozeno, opotřebeno či&nbsp;č&aacute;stečně spotřebov&aacute;no, vznik&aacute; prod&aacute;vaj&iacute;c&iacute;mu vůči kupuj&iacute;c&iacute;mu n&aacute;rok na n&aacute;hradu &scaron;kody jemu&nbsp;t&iacute;m vznikl&eacute;. N&aacute;rok na&nbsp;&uacute;hradu vznikl&eacute; &scaron;kody je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vněn jednostranně započ&iacute;st proti n&aacute;roku kupuj&iacute;c&iacute;ho na vr&aacute;cen&iacute; kupn&iacute; ceny.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Do doby převzet&iacute; zbož&iacute; kupuj&iacute;c&iacute;m je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vněn kdykoliv od kupn&iacute; smlouvy odstoupit. V&nbsp;takov&eacute;m př&iacute;padě vr&aacute;t&iacute; prod&aacute;vaj&iacute;c&iacute; kupuj&iacute;c&iacute;mu kupn&iacute; cenu bez zbytečn&eacute;ho odkladu, a to bezhotovostně na &uacute;čet určen&yacute; kupuj&iacute;c&iacute;m.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Je-li společně se zbož&iacute;m poskytnut kupuj&iacute;c&iacute;mu d&aacute;rek, je darovac&iacute; smlouva mezi prod&aacute;vaj&iacute;c&iacute;m a&nbsp;kupuj&iacute;c&iacute;m uzavřena s&nbsp;rozvazovac&iacute; podm&iacute;nkou, že dojde-li k&nbsp;odstoupen&iacute; od kupn&iacute; smlouvy spotřebitelem, pozb&yacute;v&aacute; darovac&iacute; smlouva ohledně takov&eacute;ho d&aacute;rku &uacute;činnosti a kupuj&iacute;c&iacute; je povinen spolu se zbož&iacute;m prod&aacute;vaj&iacute;c&iacute;mu vr&aacute;tit i poskytnut&yacute; d&aacute;rek.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>6.přeprava a dod&aacute;n&iacute; zbož&iacute;</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Způsob doručen&iacute; zbož&iacute; určuje prod&aacute;vaj&iacute;c&iacute;, nen&iacute;-li v&nbsp;kupn&iacute; smlouvě stanoveno jinak. V&nbsp;př&iacute;padě, že&nbsp;je&nbsp;způsob dopravy smluven na z&aacute;kladě požadavku kupuj&iacute;c&iacute;ho, nese kupuj&iacute;c&iacute; riziko a&nbsp;př&iacute;padn&eacute; dodatečn&eacute; n&aacute;klady spojen&eacute; s&nbsp;t&iacute;mto způsobem dopravy.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Je-li prod&aacute;vaj&iacute;c&iacute; podle kupn&iacute; smlouvy povinen dodat zbož&iacute; na m&iacute;sto určen&eacute; kupuj&iacute;c&iacute;m v&nbsp;objedn&aacute;vce, je kupuj&iacute;c&iacute; povinen převz&iacute;t zbož&iacute; při dod&aacute;n&iacute;. Nepřevezme-li kupuj&iacute;c&iacute; zbož&iacute; při dod&aacute;n&iacute;, je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vněn požadovat poplatek za uskladněn&iacute; ve v&yacute;&scaron;i &ensp;&ensp;&ensp;&ensp;&ensp; Kč (slovy: &ensp;&ensp;&ensp;&ensp;&ensp; korun česk&yacute;ch) nebo je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vněn od kupn&iacute; smlouvy odstoupit.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V&nbsp;př&iacute;padě, že je z&nbsp;důvodů na straně kupuj&iacute;c&iacute;ho nutno zbož&iacute; doručovat opakovaně nebo jin&yacute;m způsobem, než bylo uvedeno v&nbsp;objedn&aacute;vce, je kupuj&iacute;c&iacute; povinen uhradit n&aacute;klady spojen&eacute; s&nbsp;opakovan&yacute;m doručov&aacute;n&iacute;m zbož&iacute;, resp. n&aacute;klady spojen&eacute; s&nbsp;jin&yacute;m způsobem doručen&iacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Při převzet&iacute; zbož&iacute; od přepravce je kupuj&iacute;c&iacute; povinen zkontrolovat neporu&scaron;enost obalů zbož&iacute; a&nbsp;v př&iacute;padě jak&yacute;chkoliv z&aacute;vad toto neprodleně ozn&aacute;mit přepravci. V př&iacute;padě shled&aacute;n&iacute; poru&scaron;en&iacute; obalu svědč&iacute;c&iacute;ho o neopr&aacute;vněn&eacute;m vniknut&iacute; do z&aacute;silky nemus&iacute; kupuj&iacute;c&iacute; z&aacute;silku od přepravce převz&iacute;t. Podpisem dodac&iacute;ho listu kupuj&iacute;c&iacute; stvrzuje, že obal z&aacute;silky obsahuj&iacute;c&iacute; zbož&iacute; byl neporu&scaron;en.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Dal&scaron;&iacute; pr&aacute;va a povinnosti stran při přepravě zbož&iacute; mohou upravit zvl&aacute;&scaron;tn&iacute; dodac&iacute; podm&iacute;nky prod&aacute;vaj&iacute;c&iacute;ho, jsou-li prod&aacute;vaj&iacute;c&iacute;m vyd&aacute;ny.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>7.odpovědnost za vady, Z&aacute;ruka</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Pr&aacute;va a povinnosti smluvn&iacute;ch stran ohledně odpovědnosti prod&aacute;vaj&iacute;c&iacute;ho za vady, včetně z&aacute;ručn&iacute; odpovědnosti prod&aacute;vaj&iacute;c&iacute;ho, se ř&iacute;d&iacute; př&iacute;slu&scaron;n&yacute;mi obecně z&aacute;vazn&yacute;mi předpisy (zejm&eacute;na ustanoven&iacute;m &sect; 612 a n&aacute;sl. občansk&eacute;ho z&aacute;kon&iacute;ku).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Prod&aacute;vaj&iacute;c&iacute; odpov&iacute;d&aacute; kupuj&iacute;c&iacute;mu za to, že prod&aacute;van&aacute; věc je ve shodě s kupn&iacute; smlouvou, zejm&eacute;na, že je bez vad. Shodou s kupn&iacute; smlouvou se rozum&iacute;, že prod&aacute;van&aacute; věc m&aacute; jakost a&nbsp;užitn&eacute; vlastnosti smlouvou požadovan&eacute;, prod&aacute;vaj&iacute;c&iacute;m, v&yacute;robcem nebo jeho z&aacute;stupcem popisovan&eacute;, nebo na z&aacute;kladě jimi prov&aacute;děn&eacute; reklamy oček&aacute;van&eacute;, popř&iacute;padě jakost a užitn&eacute; vlastnosti pro věc takov&eacute;ho druhu obvykl&eacute;, že odpov&iacute;d&aacute; požadavkům pr&aacute;vn&iacute;ch předpisů, je&nbsp;v&nbsp;tom odpov&iacute;daj&iacute;c&iacute;m množstv&iacute;, m&iacute;ře nebo hmotnosti a odpov&iacute;d&aacute; &uacute;čelu, kter&yacute; prod&aacute;vaj&iacute;c&iacute; pro použit&iacute; věci uv&aacute;d&iacute; nebo pro kter&yacute; se věc obvykle použ&iacute;v&aacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V př&iacute;padě, že věc při převzet&iacute; kupuj&iacute;c&iacute;m nen&iacute; ve shodě s kupn&iacute; smlouvou (d&aacute;le jen &bdquo;<b>rozpor s&nbsp;kupn&iacute; smlouvou</b>&ldquo;), m&aacute; kupuj&iacute;c&iacute; pr&aacute;vo na to, aby prod&aacute;vaj&iacute;c&iacute; bezplatně a bez zbytečn&eacute;ho odkladu věc uvedl do stavu odpov&iacute;daj&iacute;c&iacute;ho kupn&iacute; smlouvě, a to podle požadavku kupuj&iacute;c&iacute;ho buď v&yacute;měnou věci, nebo jej&iacute; opravou; nen&iacute;-li takov&yacute; postup možn&yacute;, může kupuj&iacute;c&iacute; požadovat přiměřenou slevu z ceny věci nebo od smlouvy odstoupit. To neplat&iacute;, pokud kupuj&iacute;c&iacute; před převzet&iacute;m věci o rozporu s kupn&iacute; smlouvou věděl nebo rozpor s kupn&iacute; smlouvou s&aacute;m způsobil. Rozpor s kupn&iacute; smlouvou, kter&yacute; se projev&iacute; během &scaron;esti (6) měs&iacute;ců ode dne převzet&iacute; věci, se považuje za rozpor existuj&iacute;c&iacute; již při jej&iacute;m převzet&iacute;, pokud to&nbsp;neodporuje povaze věci nebo pokud se neprok&aacute;že opak.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Nejde-li o věci, kter&eacute; se rychle kaz&iacute; nebo o věci použit&eacute;, odpov&iacute;d&aacute; prod&aacute;vaj&iacute;c&iacute; za vady, kter&eacute; se projev&iacute; jako rozpor s kupn&iacute; smlouvou po převzet&iacute; věci v z&aacute;ručn&iacute; době (z&aacute;ruka).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Pr&aacute;va kupuj&iacute;c&iacute;ho vypl&yacute;vaj&iacute;c&iacute; z odpovědnosti prod&aacute;vaj&iacute;c&iacute;ho za vady, včetně z&aacute;ručn&iacute; odpovědnosti prod&aacute;vaj&iacute;c&iacute;ho, uplatňuje kupuj&iacute;c&iacute; u prod&aacute;vaj&iacute;c&iacute;ho na adrese jeho provozovny &ensp;&ensp;&ensp;&ensp;&ensp;. Za okamžik uplatněn&iacute; reklamace se považuje okamžik, kdy prod&aacute;vaj&iacute;c&iacute; obdržel od kupuj&iacute;c&iacute;ho reklamovan&eacute; zbož&iacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Dal&scaron;&iacute; pr&aacute;va a povinnosti stran souvisej&iacute;c&iacute; s&nbsp;odpovědnost&iacute; prod&aacute;vaj&iacute;c&iacute;ho za vady upravuje reklamačn&iacute; ř&aacute;d prod&aacute;vaj&iacute;c&iacute;ho.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>8.dal&scaron;&iacute; pr&aacute;va a povinnosti smluvn&iacute;ch stran</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; nab&yacute;v&aacute; vlastnictv&iacute; ke zbož&iacute; zaplacen&iacute;m cel&eacute; kupn&iacute; ceny zbož&iacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že programov&eacute; vybaven&iacute; a dal&scaron;&iacute; souč&aacute;sti tvoř&iacute;c&iacute; webov&eacute; rozhran&iacute; obchodu (včetně fotografi&iacute; nab&iacute;zen&eacute;ho zbož&iacute;) jsou chr&aacute;něny autorsk&yacute;m pr&aacute;vem. Kupuj&iacute;c&iacute; se&nbsp;zavazuje, že nebude vykon&aacute;vat ž&aacute;dnou činnost, kter&aacute; by mohla jemu nebo třet&iacute;m osob&aacute;m umožnit neopr&aacute;vněně zasahovat či neopr&aacute;vněně už&iacute;t programov&eacute; vybaven&iacute; nebo dal&scaron;&iacute; souč&aacute;sti tvoř&iacute;c&iacute; webov&eacute; rozhran&iacute; obchodu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; nen&iacute; opr&aacute;vněn při využ&iacute;v&aacute;n&iacute; webov&eacute;ho rozhran&iacute; obchodu použ&iacute;vat mechanismy, programov&eacute; vybaven&iacute; nebo jin&eacute; postupy, kter&eacute; by mohly m&iacute;t negativn&iacute; vliv na provoz webov&eacute;ho rozhran&iacute; obchodu. Webov&eacute; rozhran&iacute; obchodu je možn&eacute; už&iacute;vat jen v rozsahu, kter&yacute; nen&iacute; na &uacute;kor pr&aacute;v ostatn&iacute;ch z&aacute;kazn&iacute;ků prod&aacute;vaj&iacute;c&iacute;ho a kter&yacute; je v&nbsp;souladu s&nbsp;jeho určen&iacute;m.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Prod&aacute;vaj&iacute;c&iacute; nen&iacute; ve vztahu ke kupuj&iacute;c&iacute;mu v&aacute;z&aacute;n ž&aacute;dn&yacute;mi kodexy chov&aacute;n&iacute; ve smyslu ustanoven&iacute; &sect; 53a odst. 1 občansk&eacute;ho z&aacute;kon&iacute;ku.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že prod&aacute;vaj&iacute;c&iacute; nenese odpovědnost za chyby vznikl&eacute; v&nbsp;důsledku z&aacute;sahů třet&iacute;ch osob do webov&eacute; str&aacute;nky nebo v důsledku užit&iacute; webov&eacute; str&aacute;nky v rozporu s&nbsp;jejich určen&iacute;m.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>9.ochrana osobn&iacute;ch &uacute;dajů a zas&iacute;l&aacute;n&iacute; obchodn&iacute;ch sDělen&iacute;</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Ochrana osobn&iacute;ch &uacute;dajů kupuj&iacute;c&iacute;ho, kter&yacute; je fyzickou osobou, je poskytov&aacute;na z&aacute;konem č.&nbsp;101/2000 Sb., o ochraně osobn&iacute;ch &uacute;dajů, ve zněn&iacute; pozděj&scaron;&iacute;ch předpisů.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; souhlas&iacute; se zpracov&aacute;n&iacute;m těchto sv&yacute;ch osobn&iacute;ch &uacute;dajů: jm&eacute;no a př&iacute;jmen&iacute;, adresa bydli&scaron;tě, identifikačn&iacute; č&iacute;slo, daňov&eacute; identifikačn&iacute; č&iacute;slo, adresa elektronick&eacute; po&scaron;ty, telefonn&iacute; č&iacute;slo a &ensp;&ensp;&ensp;&ensp;&ensp; (d&aacute;le společně v&scaron;e jen jako &bdquo;<b>osobn&iacute; &uacute;daje</b>&ldquo;).</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; souhlas&iacute; se zpracov&aacute;n&iacute;m osobn&iacute;ch &uacute;dajů prod&aacute;vaj&iacute;c&iacute;m, a to pro &uacute;čely realizace pr&aacute;v a&nbsp;povinnost&iacute; z&nbsp;kupn&iacute; smlouvy, pro &uacute;čely veden&iacute; uživatelsk&eacute;ho &uacute;čtu a pro &uacute;čely zas&iacute;l&aacute;n&iacute; informac&iacute; a obchodn&iacute;ch sdělen&iacute; kupuj&iacute;c&iacute;mu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; bere na vědom&iacute;, že je povinen sv&eacute; osobn&iacute; &uacute;daje (při registraci, ve sv&eacute;m uživatelsk&eacute;m &uacute;čtu, při objedn&aacute;vce proveden&eacute; z&nbsp;webov&eacute;ho rozhran&iacute; obchodu) uv&aacute;dět spr&aacute;vně a&nbsp;pravdivě a&nbsp;že je povinen bez zbytečn&eacute;ho odkladu informovat prod&aacute;vaj&iacute;c&iacute;ho o změně ve&nbsp;sv&yacute;ch osobn&iacute;ch &uacute;daj&iacute;ch.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Zpracov&aacute;n&iacute;m osobn&iacute;ch &uacute;dajů kupuj&iacute;c&iacute;ho může prod&aacute;vaj&iacute;c&iacute; pověřit třet&iacute; osobu, jakožto zpracovatele. Kromě osob dopravuj&iacute;c&iacute;ch zbož&iacute; nebudou osobn&iacute; &uacute;daje prod&aacute;vaj&iacute;c&iacute;m bez předchoz&iacute;ho souhlasu kupuj&iacute;c&iacute;ho před&aacute;v&aacute;ny třet&iacute;m osob&aacute;m.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Osobn&iacute; &uacute;daje budou zpracov&aacute;v&aacute;ny po dobu neurčitou. Osobn&iacute; &uacute;daje budou zpracov&aacute;v&aacute;ny v&nbsp;elektronick&eacute; podobě automatizovan&yacute;m způsobem nebo v ti&scaron;těn&eacute; podobě neautomatizovan&yacute;m způsobem.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; potvrzuje, že poskytnut&eacute; osobn&iacute; &uacute;daje jsou přesn&eacute; a že byl poučen o tom, že&nbsp;se&nbsp;jedn&aacute; o dobrovoln&eacute; poskytnut&iacute; osobn&iacute;ch &uacute;dajů.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			V př&iacute;padě, že by se kupuj&iacute;c&iacute; domn&iacute;val, že prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel (čl. 1.55) prov&aacute;d&iacute; zpracov&aacute;n&iacute; jeho osobn&iacute;ch &uacute;dajů, kter&eacute; je v rozporu s ochranou soukrom&eacute;ho a osobn&iacute;ho života kupuj&iacute;c&iacute;ho nebo v rozporu se z&aacute;konem, zejm&eacute;na jsou-li osobn&iacute; &uacute;daje nepřesn&eacute; s&nbsp;ohledem na &uacute;čel jejich zpracov&aacute;n&iacute;, může:</div>\r\n		<ol>\r\n			<li>\r\n				<div align=\"JUSTIFY\">\r\n					pož&aacute;dat prod&aacute;vaj&iacute;c&iacute;ho nebo zpracovatele o vysvětlen&iacute;,</div>\r\n			</li>\r\n			<li>\r\n				<div align=\"JUSTIFY\">\r\n					požadovat, aby prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel odstranil takto vznikl&yacute; stav. Zejm&eacute;na se&nbsp;může jednat o blokov&aacute;n&iacute;, proveden&iacute; opravy, doplněn&iacute; nebo likvidaci osobn&iacute;ch &uacute;dajů. Je-li ž&aacute;dost kupuj&iacute;c&iacute;ho podle předchoz&iacute; věty shled&aacute;na opr&aacute;vněnou, prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel odstran&iacute; neprodleně z&aacute;vadn&yacute; stav. Nevyhov&iacute;-li prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel ž&aacute;dosti, m&aacute;&nbsp;kupuj&iacute;c&iacute; pr&aacute;vo obr&aacute;tit se př&iacute;mo na &Uacute;řad pro ochranu osobn&iacute;ch &uacute;dajů. T&iacute;mto ustanoven&iacute;m nen&iacute; dotčeno opr&aacute;vněn&iacute; kupuj&iacute;c&iacute;ho obr&aacute;tit se&nbsp;se&nbsp;sv&yacute;m podnětem na&nbsp;&Uacute;řad pro ochranu osobn&iacute;ch &uacute;dajů př&iacute;mo.</div>\r\n			</li>\r\n		</ol>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Pož&aacute;d&aacute;-li kupuj&iacute;c&iacute; o informaci o zpracov&aacute;n&iacute; sv&yacute;ch osobn&iacute;ch &uacute;dajů, je mu prod&aacute;vaj&iacute;c&iacute; povinen tuto informaci předat. Prod&aacute;vaj&iacute;c&iacute; m&aacute; pr&aacute;vo za poskytnut&iacute; informace podle předchoz&iacute; věty požadovat přiměřenou &uacute;hradu nepřevy&scaron;uj&iacute;c&iacute; n&aacute;klady nezbytn&eacute; na poskytnut&iacute; informace.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>10.Zas&iacute;l&aacute;n&iacute; obchodn&iacute;ch sdělen&iacute; a ukl&aacute;d&aacute;n&iacute; cookies</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; souhlas&iacute; se zas&iacute;l&aacute;n&iacute;m informac&iacute; souvisej&iacute;c&iacute;ch se zbož&iacute;m, službami nebo podnikem prod&aacute;vaj&iacute;c&iacute;ho na elektronickou adresu kupuj&iacute;c&iacute;ho a d&aacute;le souhlas&iacute; se zas&iacute;l&aacute;n&iacute;m obchodn&iacute;ch sdělen&iacute; prod&aacute;vaj&iacute;c&iacute;m na elektronickou adresu kupuj&iacute;c&iacute;ho.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupuj&iacute;c&iacute; souhlas&iacute; s ukl&aacute;d&aacute;n&iacute;m tzv. cookies na jeho poč&iacute;tač. V&nbsp;př&iacute;padě, že je n&aacute;kup na webov&eacute; str&aacute;nce možn&eacute; prov&eacute;st a z&aacute;vazky prod&aacute;vaj&iacute;c&iacute;ho z kupn&iacute; smlouvy plnit, aniž by doch&aacute;zelo k ukl&aacute;d&aacute;n&iacute; tzv. cookies na poč&iacute;tač kupuj&iacute;c&iacute;ho, může kupuj&iacute;c&iacute; souhlas podle předchoz&iacute; věty kdykoliv odvolat.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>11.Doručov&aacute;n&iacute;</b></div>\r\n<ol>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Nebude-li dohodnuto jinak, ve&scaron;ker&aacute; korespondence souvisej&iacute;c&iacute; s&nbsp;kupn&iacute; smlouvou mus&iacute; b&yacute;t druh&eacute; smluvn&iacute; straně doručena p&iacute;semně, a to elektronickou po&scaron;tou, osobně nebo doporučeně prostřednictv&iacute;m provozovatele po&scaron;tovn&iacute;ch služeb (dle volby odes&iacute;latele). Kupuj&iacute;c&iacute;mu je&nbsp;doručov&aacute;no na adresu elektronick&eacute; po&scaron;ty uvedenou v jeho uživatelsk&eacute;m &uacute;čtu.</div>\r\n	</li>\r\n</ol>\r\n<div align=\"JUSTIFY\">\r\n	<b>12.z&aacute;vĚrečn&aacute; ustanoven&iacute;</b></div>\r\n<ol start=\"63\">\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Pokud vztah souvisej&iacute;c&iacute; s užit&iacute;m webov&eacute; str&aacute;nky nebo pr&aacute;vn&iacute; vztah založen&yacute; kupn&iacute; smlouvou obsahuje mezin&aacute;rodn&iacute; (zahraničn&iacute;) prvek, pak strany sjedn&aacute;vaj&iacute;, že&nbsp;vztah se ř&iacute;d&iacute; česk&yacute;m pr&aacute;vem. T&iacute;mto nejsou dotčena pr&aacute;va spotřebitele vypl&yacute;vaj&iacute;c&iacute; z&nbsp;obecně z&aacute;vazn&yacute;ch pr&aacute;vn&iacute;ch předpisů.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Prod&aacute;vaj&iacute;c&iacute; je opr&aacute;vněn k&nbsp;prodeji zbož&iacute; na z&aacute;kladě živnostensk&eacute;ho opr&aacute;vněn&iacute; a&nbsp;činnost prod&aacute;vaj&iacute;c&iacute;ho nepodl&eacute;h&aacute; jin&eacute;mu povolov&aacute;n&iacute;. Živnostenskou kontrolu prov&aacute;d&iacute; v r&aacute;mci sv&eacute; působnosti př&iacute;slu&scaron;n&yacute; živnostensk&yacute; &uacute;řad.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Je-li někter&eacute; ustanoven&iacute; obchodn&iacute;ch podm&iacute;nek neplatn&eacute; nebo ne&uacute;činn&eacute;, nebo se takov&yacute;m stane, nam&iacute;sto neplatn&yacute;ch ustanoven&iacute; nastoup&iacute; ustanoven&iacute;, jehož smysl se neplatn&eacute;mu ustanoven&iacute; co nejv&iacute;ce přibližuje. Neplatnost&iacute; nebo ne&uacute;činnost&iacute; jednoho ustanoven&iacute; nen&iacute; dotknut&aacute; platnost ostatn&iacute;ch ustanoven&iacute;. Změny a doplňky kupn&iacute; smlouvy či&nbsp;obchodn&iacute;ch podm&iacute;nek vyžaduj&iacute; p&iacute;semnou formu.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kupn&iacute; smlouva včetně obchodn&iacute;ch podm&iacute;nek je archivov&aacute;na prod&aacute;vaj&iacute;c&iacute;m v&nbsp;elektronick&eacute; podobě a nen&iacute; př&iacute;stupn&aacute;.</div>\r\n	</li>\r\n	<li>\r\n		<div align=\"JUSTIFY\">\r\n			Kontaktn&iacute; &uacute;daje prod&aacute;vaj&iacute;c&iacute;ho: adresa pro doručov&aacute;n&iacute; &ensp;&ensp;&ensp;&ensp;&ensp;, adresa elektronick&eacute; po&scaron;ty &ensp;&ensp;&ensp;&ensp;&ensp;, telefon &ensp;&ensp;&ensp;&ensp;&ensp;.&ensp;&ensp;&ensp;&ensp;</div>\r\n	</li>\r\n</ol>\r\n','[{\"type\":\"legacy\",\"id\":\"15b96146-cfd8-4dc3-8048-3c5147382622\",\"settings\":{\"html\":\"<h1>\\r\\n\\t<b>OBCHODN&Iacute; PODM&Iacute;NKY<br \\/>\\r\\n\\t<\\/b><\\/h1>\\r\\n<p>\\r\\n\\t<b>Vzorov&eacute; podm&iacute;nky naleznete na <a href=\\\"http:\\/\\/www.apek.cz\\/vzorove-obchodni-podminky\\/\\\">http:\\/\\/www.apek.cz\\/vzorove-obchodni-podminky\\/<\\/a><\\/b><\\/p>\\r\\n<div align=\\\"CENTER\\\">\\r\\n\\tobchodn&iacute; spole\\u010dnosti<\\/div>\\r\\n<div align=\\\"CENTER\\\">\\r\\n\\t\\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005<\\/div>\\r\\n<div align=\\\"CENTER\\\">\\r\\n\\tse s&iacute;dlem \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005<\\/div>\\r\\n<div align=\\\"CENTER\\\">\\r\\n\\tidentifika\\u010dn&iacute; \\u010d&iacute;slo: \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005<\\/div>\\r\\n<div align=\\\"CENTER\\\">\\r\\n\\tzapsan&eacute; v obchodn&iacute;m rejst\\u0159&iacute;ku veden&eacute;m \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, odd&iacute;l&nbsp;\\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, vlo\\u017eka \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005<\\/div>\\r\\n<div align=\\\"CENTER\\\">\\r\\n\\tpro prodej zbo\\u017e&iacute; prost\\u0159ednictv&iacute;m on-line obchodu um&iacute;st\\u011bn&eacute;ho na internetov&eacute; adrese \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005<\\/div>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>1.&Uacute;VODN&Iacute; USTANOVEN&Iacute;<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tTyto obchodn&iacute; podm&iacute;nky (d&aacute;le jen &bdquo;<b>obchodn&iacute; podm&iacute;nky<\\/b>&ldquo;) obchodn&iacute; spole\\u010dnosti \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, se&nbsp;s&iacute;dlem \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, identifika\\u010dn&iacute; \\u010d&iacute;slo: \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, zapsan&eacute; v obchodn&iacute;m rejst\\u0159&iacute;ku veden&eacute;m \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, odd&iacute;l \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, vlo\\u017eka \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 (d&aacute;le jen &bdquo;<b>prod&aacute;vaj&iacute;c&iacute;<\\/b>&ldquo;) upravuj&iacute; vz&aacute;jemn&aacute; pr&aacute;va a povinnosti smluvn&iacute;ch stran vznikl&eacute; v&nbsp;souvislosti nebo na z&aacute;klad\\u011b kupn&iacute; smlouvy (d&aacute;le jen &bdquo;<b>kupn&iacute; smlouva<\\/b>&ldquo;) uzav&iacute;ran&eacute; mezi prod&aacute;vaj&iacute;c&iacute;m a&nbsp;jinou fyzickou \\u010di pr&aacute;vnickou osobou (d&aacute;le jen &bdquo;<b>kupuj&iacute;c&iacute;<\\/b>&ldquo;) prost\\u0159ednictv&iacute;m internetov&eacute;ho obchodu prod&aacute;vaj&iacute;c&iacute;ho. Internetov&yacute; obchod je&nbsp;prod&aacute;vaj&iacute;c&iacute;m provozov&aacute;n na internetov&eacute; adrese \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, a to prost\\u0159ednictv&iacute;m webov&eacute;ho rozhran&iacute; (d&aacute;le jen &bdquo;<b>webov&eacute; rozhran&iacute; obchodu<\\/b>&ldquo;).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tObchodn&iacute; podm&iacute;nky d&aacute;le upravuj&iacute; pr&aacute;va a povinnosti smluvn&iacute;ch stran p\\u0159i vyu\\u017e&iacute;v&aacute;n&iacute; webov&eacute; str&aacute;nky prod&aacute;vaj&iacute;c&iacute;ho um&iacute;st\\u011bn&eacute; na adrese \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 (d&aacute;le jen &bdquo;<b>webov&aacute; str&aacute;nka<\\/b>&ldquo;) a dal&scaron;&iacute; souvisej&iacute;c&iacute; pr&aacute;vn&iacute; vztahy. Obchodn&iacute; podm&iacute;nky se nevztahuj&iacute; na p\\u0159&iacute;pady, kdy osoba, kter&aacute; m&aacute; v &uacute;myslu nakoupit zbo\\u017e&iacute; od prod&aacute;vaj&iacute;c&iacute;ho, jedn&aacute; p\\u0159i objedn&aacute;v&aacute;n&iacute; zbo\\u017e&iacute; v r&aacute;mci sv&eacute; podnikatelsk&eacute; \\u010dinnosti.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tUstanoven&iacute; odchyln&aacute; od obchodn&iacute;ch podm&iacute;nek je mo\\u017en&eacute; sjednat v kupn&iacute; smlouv\\u011b. Odchyln&aacute; ujedn&aacute;n&iacute; v kupn&iacute; smlouv\\u011b maj&iacute; p\\u0159ednost p\\u0159ed ustanoven&iacute;mi obchodn&iacute;ch podm&iacute;nek.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tUstanoven&iacute; obchodn&iacute;ch podm&iacute;nek jsou ned&iacute;lnou sou\\u010d&aacute;st&iacute; kupn&iacute; smlouvy. Kupn&iacute; smlouva a&nbsp;obchodn&iacute; podm&iacute;nky jsou vyhotoveny v \\u010desk&eacute;m jazyce. Kupn&iacute; smlouvu lze uzav\\u0159&iacute;t v&nbsp;\\u010desk&eacute;m jazyce.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tZn\\u011bn&iacute; obchodn&iacute;ch podm&iacute;nek m\\u016f\\u017ee prod&aacute;vaj&iacute;c&iacute; m\\u011bnit \\u010di dopl\\u0148ovat. T&iacute;mto ustanoven&iacute;m nejsou dot\\u010dena pr&aacute;va a povinnosti vznikl&aacute; po dobu &uacute;\\u010dinnosti p\\u0159edchoz&iacute;ho zn\\u011bn&iacute; obchodn&iacute;ch podm&iacute;nek.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>2.u\\u017eivatelsk&yacute; &uacute;\\u010det<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tNa z&aacute;klad\\u011b registrace kupuj&iacute;c&iacute;ho proveden&eacute; na webov&eacute; str&aacute;nce m\\u016f\\u017ee kupuj&iacute;c&iacute; p\\u0159istupovat do&nbsp;sv&eacute;ho u\\u017eivatelsk&eacute;ho rozhran&iacute;. Ze&nbsp;sv&eacute;ho u\\u017eivatelsk&eacute;ho rozhran&iacute; m\\u016f\\u017ee kupuj&iacute;c&iacute; prov&aacute;d\\u011bt objedn&aacute;v&aacute;n&iacute; zbo\\u017e&iacute; (d&aacute;le jen &bdquo;<b>u\\u017eivatelsk&yacute; &uacute;\\u010det<\\/b>&ldquo;). V&nbsp;p\\u0159&iacute;pad\\u011b, \\u017ee to webov&eacute; rozhran&iacute; obchodu umo\\u017e\\u0148uje, m\\u016f\\u017ee kupuj&iacute;c&iacute; prov&aacute;d\\u011bt objedn&aacute;v&aacute;n&iacute; zbo\\u017e&iacute; t&eacute;\\u017e bez registrace p\\u0159&iacute;mo z&nbsp;webov&eacute;ho rozhran&iacute; obchodu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tP\\u0159i registraci na webov&eacute; str&aacute;nce a p\\u0159i objedn&aacute;v&aacute;n&iacute; zbo\\u017e&iacute; je&nbsp;kupuj&iacute;c&iacute; povinen uv&aacute;d\\u011bt spr&aacute;vn\\u011b a&nbsp;pravdiv\\u011b v&scaron;echny &uacute;daje. &Uacute;daje uveden&eacute; v u\\u017eivatelsk&eacute;m &uacute;\\u010dtu je kupuj&iacute;c&iacute; p\\u0159i jak&eacute;koliv jejich zm\\u011bn\\u011b povinen aktualizovat. &Uacute;daje uveden&eacute; kupuj&iacute;c&iacute;m v&nbsp;u\\u017eivatelsk&eacute;m &uacute;\\u010dtu a p\\u0159i objedn&aacute;v&aacute;n&iacute; zbo\\u017e&iacute; jsou prod&aacute;vaj&iacute;c&iacute;m pova\\u017eov&aacute;ny za&nbsp;spr&aacute;vn&eacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tP\\u0159&iacute;stup k u\\u017eivatelsk&eacute;mu &uacute;\\u010dtu je zabezpe\\u010den u\\u017eivatelsk&yacute;m jm&eacute;nem a heslem. Kupuj&iacute;c&iacute; je&nbsp;povinen zachov&aacute;vat ml\\u010denlivost ohledn\\u011b informac&iacute; nezbytn&yacute;ch k p\\u0159&iacute;stupu do jeho u\\u017eivatelsk&eacute;ho &uacute;\\u010dtu a bere na v\\u011bdom&iacute;, \\u017ee prod&aacute;vaj&iacute;c&iacute; nenese odpov\\u011bdnost za poru&scaron;en&iacute; t&eacute;to povinnosti ze strany kupuj&iacute;c&iacute;ho.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; nen&iacute; opr&aacute;vn\\u011bn umo\\u017enit vyu\\u017e&iacute;v&aacute;n&iacute; u\\u017eivatelsk&eacute;ho &uacute;\\u010dtu t\\u0159et&iacute;m osob&aacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tProd&aacute;vaj&iacute;c&iacute; m\\u016f\\u017ee zru&scaron;it u\\u017eivatelsk&yacute; &uacute;\\u010det, a to zejm&eacute;na v p\\u0159&iacute;pad\\u011b, kdy kupuj&iacute;c&iacute; sv\\u016fj u\\u017eivatelsk&yacute; &uacute;\\u010det d&eacute;le ne\\u017e \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 nevyu\\u017e&iacute;v&aacute;, \\u010di v p\\u0159&iacute;pad\\u011b, kdy kupuj&iacute;c&iacute; poru&scaron;&iacute; sv&eacute; povinnosti z&nbsp;kupn&iacute; smlouvy (v\\u010detn\\u011b obchodn&iacute;ch podm&iacute;nek).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee u\\u017eivatelsk&yacute; &uacute;\\u010det nemus&iacute; b&yacute;t dostupn&yacute; nep\\u0159etr\\u017eit\\u011b, a&nbsp;to&nbsp;zejm&eacute;na s&nbsp;ohledem na nutnou &uacute;dr\\u017ebu hardwarov&eacute;ho a softwarov&eacute;ho vybaven&iacute; prod&aacute;vaj&iacute;c&iacute;ho, pop\\u0159. nutnou &uacute;dr\\u017ebu hardwarov&eacute;ho a softwarov&eacute;ho vybaven&iacute; t\\u0159et&iacute;ch osob.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>3.uzav\\u0159en&iacute; kupn&iacute; smlouvy<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tWebov&eacute; rozhran&iacute; obchodu obsahuje seznam zbo\\u017e&iacute; nab&iacute;zen&eacute;ho prod&aacute;vaj&iacute;c&iacute;m k&nbsp;prodeji, a&nbsp;to&nbsp;v\\u010detn\\u011b uveden&iacute; cen jednotliv&eacute;ho nab&iacute;zen&eacute;ho zbo\\u017e&iacute;. Ceny nab&iacute;zen&eacute;ho zbo\\u017e&iacute; jsou uvedeny v\\u010detn\\u011b dan\\u011b z&nbsp;p\\u0159idan&eacute; hodnoty a v&scaron;ech souvisej&iacute;c&iacute;ch poplatk\\u016f. Nab&iacute;dka prodeje zbo\\u017e&iacute; a ceny tohoto zbo\\u017e&iacute; z\\u016fst&aacute;vaj&iacute; v&nbsp;platnosti po&nbsp;dobu, kdy jsou zobrazov&aacute;ny ve webov&eacute;m rozhran&iacute; obchodu. T&iacute;mto ustanoven&iacute;m nen&iacute; omezena mo\\u017enost prod&aacute;vaj&iacute;c&iacute;ho uzav\\u0159&iacute;t kupn&iacute; smlouvu za&nbsp;individu&aacute;ln\\u011b sjednan&yacute;ch podm&iacute;nek. Ve&scaron;ker&eacute; nab&iacute;dky prodeje zbo\\u017e&iacute; um&iacute;st\\u011bn&eacute; ve&nbsp;webov&eacute;m rozhran&iacute; obchodu jsou nez&aacute;vazn&eacute; a&nbsp;prod&aacute;vaj&iacute;c&iacute; nen&iacute; povinen uzav\\u0159&iacute;t kupn&iacute; smlouvu ohledn\\u011b tohoto zbo\\u017e&iacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tWebov&eacute; rozhran&iacute; obchodu obsahuje tak&eacute; informace o&nbsp;n&aacute;kladech spojen&yacute;ch s&nbsp;balen&iacute;m a&nbsp;dod&aacute;n&iacute;m zbo\\u017e&iacute;. Informace o n&aacute;kladech spojen&yacute;ch s balen&iacute;m a dod&aacute;n&iacute;m zbo\\u017e&iacute; uveden&eacute; ve&nbsp;webov&eacute;m rozhran&iacute; obchodu plat&iacute; pouze v p\\u0159&iacute;padech, kdy je zbo\\u017e&iacute; doru\\u010dov&aacute;no v r&aacute;mci &uacute;zem&iacute; \\u010cesk&eacute; republiky.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tPro objedn&aacute;n&iacute; zbo\\u017e&iacute; vypln&iacute; kupuj&iacute;c&iacute; objedn&aacute;vkov&yacute; formul&aacute;\\u0159 ve&nbsp;webov&eacute;m rozhran&iacute; obchodu. Objedn&aacute;vkov&yacute; formul&aacute;\\u0159 obsahuje zejm&eacute;na informace o:<\\/div>\\r\\n\\t\\t<ol>\\r\\n\\t\\t\\t<li>\\r\\n\\t\\t\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\t\\tobjedn&aacute;van&eacute;m zbo\\u017e&iacute; (objedn&aacute;van&eacute; zbo\\u017e&iacute; &bdquo;vlo\\u017e&iacute;&ldquo; kupuj&iacute;c&iacute; do elektronick&eacute;ho n&aacute;kupn&iacute;ho ko&scaron;&iacute;ku webov&eacute;ho rozhran&iacute; obchodu),<\\/div>\\r\\n\\t\\t\\t<\\/li>\\r\\n\\t\\t\\t<li>\\r\\n\\t\\t\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\t\\tzp\\u016fsobu &uacute;hrady kupn&iacute; ceny zbo\\u017e&iacute;, &uacute;daje o po\\u017eadovan&eacute;m zp\\u016fsobu doru\\u010den&iacute; objedn&aacute;van&eacute;ho zbo\\u017e&iacute; a<\\/div>\\r\\n\\t\\t\\t<\\/li>\\r\\n\\t\\t\\t<li>\\r\\n\\t\\t\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\t\\tinformace o n&aacute;kladech spojen&yacute;ch s&nbsp;dod&aacute;n&iacute;m zbo\\u017e&iacute; (d&aacute;le spole\\u010dn\\u011b jen jako &bdquo;<b>objedn&aacute;vka<\\/b>&ldquo;).<\\/div>\\r\\n\\t\\t\\t<\\/li>\\r\\n\\t\\t<\\/ol>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tP\\u0159ed zasl&aacute;n&iacute;m objedn&aacute;vky prod&aacute;vaj&iacute;c&iacute;mu je kupuj&iacute;c&iacute;mu umo\\u017en\\u011bno zkontrolovat a m\\u011bnit &uacute;daje, kter&eacute; do&nbsp;objedn&aacute;vky kupuj&iacute;c&iacute; vlo\\u017eil, a to i s&nbsp;ohledem na mo\\u017enost kupuj&iacute;c&iacute;ho zji&scaron;\\u0165ovat a&nbsp;opravovat chyby vznikl&eacute; p\\u0159i zad&aacute;v&aacute;n&iacute; dat do objedn&aacute;vky. Objedn&aacute;vku ode&scaron;le kupuj&iacute;c&iacute; prod&aacute;vaj&iacute;c&iacute;mu kliknut&iacute;m na tla\\u010d&iacute;tko &bdquo;\\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005&ldquo;. &Uacute;daje uveden&eacute; v objedn&aacute;vce jsou prod&aacute;vaj&iacute;c&iacute;m pova\\u017eov&aacute;ny za spr&aacute;vn&eacute;. Prod&aacute;vaj&iacute;c&iacute; neprodlen\\u011b po obdr\\u017een&iacute; objedn&aacute;vky toto obdr\\u017een&iacute; kupuj&iacute;c&iacute;mu potvrd&iacute; elektronickou po&scaron;tou, a to na adresu elektronick&eacute; po&scaron;ty kupuj&iacute;c&iacute;ho uvedenou v&nbsp;u\\u017eivatelsk&eacute;m rozhran&iacute; \\u010di v objedn&aacute;vce (d&aacute;le jen &bdquo;<b>elektronick&aacute; adresa kupuj&iacute;c&iacute;ho<\\/b>&ldquo;).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tProd&aacute;vaj&iacute;c&iacute; je v\\u017edy opr&aacute;vn\\u011bn v z&aacute;vislosti na charakteru objedn&aacute;vky (mno\\u017estv&iacute; zbo\\u017e&iacute;, v&yacute;&scaron;e kupn&iacute; ceny, p\\u0159edpokl&aacute;dan&eacute; n&aacute;klady na dopravu) po\\u017e&aacute;dat kupuj&iacute;c&iacute;ho o dodate\\u010dn&eacute; potvrzen&iacute; objedn&aacute;vky (nap\\u0159&iacute;klad p&iacute;semn\\u011b \\u010di telefonicky).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tSmluvn&iacute; vztah mezi prod&aacute;vaj&iacute;c&iacute;m a kupuj&iacute;c&iacute;m vznik&aacute; doru\\u010den&iacute;m p\\u0159ijet&iacute; objedn&aacute;vky (akceptac&iacute;), je\\u017e je&nbsp;prod&aacute;vaj&iacute;c&iacute;m zasl&aacute;no kupuj&iacute;c&iacute;mu elektronickou po&scaron;tou, a to na adresu elektronick&eacute; po&scaron;ty kupuj&iacute;c&iacute;ho.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee prod&aacute;vaj&iacute;c&iacute; nen&iacute; povinen uzav\\u0159&iacute;t kupn&iacute; smlouvu, a to zejm&eacute;na s&nbsp;osobami, kter&eacute; d\\u0159&iacute;ve podstatn&yacute;m zp\\u016fsobem poru&scaron;ily sv&eacute; povinnosti v\\u016f\\u010di prod&aacute;vaj&iacute;c&iacute;mu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; souhlas&iacute; s pou\\u017eit&iacute;m komunika\\u010dn&iacute;ch prost\\u0159edk\\u016f na d&aacute;lku p\\u0159i uzav&iacute;r&aacute;n&iacute; kupn&iacute; smlouvy. N&aacute;klady vznikl&eacute; kupuj&iacute;c&iacute;mu p\\u0159i pou\\u017eit&iacute; komunika\\u010dn&iacute;ch prost\\u0159edk\\u016f na d&aacute;lku v&nbsp;souvislosti s&nbsp;uzav\\u0159en&iacute;m kupn&iacute; smlouvy (n&aacute;klady na internetov&eacute; p\\u0159ipojen&iacute;, n&aacute;klady na&nbsp;telefonn&iacute; hovory) si hrad&iacute; kupuj&iacute;c&iacute; s&aacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>4.cena zbo\\u017e&iacute; a Platebn&iacute; podm&iacute;nky<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tCenu zbo\\u017e&iacute; a p\\u0159&iacute;padn&eacute; n&aacute;klady spojen&eacute; s dod&aacute;n&iacute;m zbo\\u017e&iacute; dle kupn&iacute; smlouvy m\\u016f\\u017ee kupuj&iacute;c&iacute; uhradit prod&aacute;vaj&iacute;c&iacute;mu n&aacute;sleduj&iacute;c&iacute;mi zp\\u016fsoby:<\\/div>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\u0006 v hotovosti v provozovn\\u011b prod&aacute;vaj&iacute;c&iacute;ho na adrese \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005;<\\/div>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\u0006 v hotovosti na dob&iacute;rku v m&iacute;st\\u011b ur\\u010den&eacute;m kupuj&iacute;c&iacute;m v objedn&aacute;vce;<\\/div>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\u0006 bezhotovostn\\u011b p\\u0159evodem na &uacute;\\u010det prod&aacute;vaj&iacute;c&iacute;ho \\u010d. \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, veden&yacute; u&nbsp;spole\\u010dnosti \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 (d&aacute;le jen &bdquo;<b>&uacute;\\u010det prod&aacute;vaj&iacute;c&iacute;ho<\\/b>&ldquo;);<\\/div>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\u0006 bezhotovostn\\u011b prost\\u0159ednictv&iacute;m platebn&iacute;ho syst&eacute;mu \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005;<\\/div>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\u0006 bezhotovostn\\u011b platebn&iacute; kartou;<\\/div>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\u0006 prost\\u0159ednictv&iacute;m &uacute;v\\u011bru poskytnut&eacute;ho t\\u0159et&iacute; osobou.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tSpole\\u010dn\\u011b s&nbsp;kupn&iacute; cenou je kupuj&iacute;c&iacute; povinen zaplatit prod&aacute;vaj&iacute;c&iacute;mu tak&eacute; n&aacute;klady spojen&eacute; s&nbsp;balen&iacute;m a dod&aacute;n&iacute;m zbo\\u017e&iacute; ve smluven&eacute; v&yacute;&scaron;i. Nen&iacute;-li uvedeno v&yacute;slovn\\u011b jinak, rozum&iacute; se d&aacute;le kupn&iacute; cenou i&nbsp;n&aacute;klady spojen&eacute; s&nbsp;dod&aacute;n&iacute;m zbo\\u017e&iacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV&nbsp;p\\u0159&iacute;pad\\u011b platby v&nbsp;hotovosti \\u010di v&nbsp;p\\u0159&iacute;pad\\u011b platby na dob&iacute;rku je kupn&iacute; cena splatn&aacute; p\\u0159i p\\u0159evzet&iacute; zbo\\u017e&iacute;. V&nbsp;p\\u0159&iacute;pad\\u011b bezhotovostn&iacute; platby je kupn&iacute; cena splatn&aacute; do&nbsp;\\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 dn\\u016f od uzav\\u0159en&iacute; kupn&iacute; smlouvy.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV&nbsp;p\\u0159&iacute;pad\\u011b bezhotovostn&iacute; platby je kupuj&iacute;c&iacute; povinen uhrazovat kupn&iacute; cenu zbo\\u017e&iacute; spole\\u010dn\\u011b s&nbsp;uveden&iacute;m&nbsp;variabiln&iacute;ho symbolu platby. V p\\u0159&iacute;pad\\u011b bezhotovostn&iacute; platby je z&aacute;vazek kupuj&iacute;c&iacute;ho uhradit kupn&iacute; cenu spln\\u011bn okam\\u017eikem p\\u0159ips&aacute;n&iacute; p\\u0159&iacute;slu&scaron;n&eacute; \\u010d&aacute;stky na &uacute;\\u010det prod&aacute;vaj&iacute;c&iacute;ho.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tProd&aacute;vaj&iacute;c&iacute; je opr&aacute;vn\\u011bn, zejm&eacute;na v&nbsp;p\\u0159&iacute;pad\\u011b, \\u017ee ze strany kupuj&iacute;c&iacute;ho nedojde k&nbsp;dodate\\u010dn&eacute;mu potvrzen&iacute; objedn&aacute;vky (\\u010dl. 1.16), po\\u017eadovat uhrazen&iacute; cel&eacute; kupn&iacute; ceny je&scaron;t\\u011b p\\u0159ed odesl&aacute;n&iacute;m zbo\\u017e&iacute; kupuj&iacute;c&iacute;mu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tP\\u0159&iacute;padn&eacute; slevy z&nbsp;ceny zbo\\u017e&iacute; poskytnut&eacute; prod&aacute;vaj&iacute;c&iacute;m kupuj&iacute;c&iacute;mu nelze vz&aacute;jemn\\u011b kombinovat.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tJe-li to v&nbsp;obchodn&iacute;m styku obvykl&eacute; nebo je-li tak stanoveno obecn\\u011b z&aacute;vazn&yacute;mi pr&aacute;vn&iacute;mi p\\u0159edpisy, vystav&iacute; prod&aacute;vaj&iacute;c&iacute; ohledn\\u011b plateb prov&aacute;d\\u011bn&yacute;ch na&nbsp;z&aacute;klad\\u011b kupn&iacute; smlouvy kupuj&iacute;c&iacute;mu da\\u0148ov&yacute; doklad &ndash; fakturu. Prod&aacute;vaj&iacute;c&iacute; je pl&aacute;tcem dan\\u011b z&nbsp;p\\u0159idan&eacute; hodnoty. Da\\u0148ov&yacute; doklad &ndash; fakturu vystav&iacute; prod&aacute;vaj&iacute;c&iacute; kupuj&iacute;c&iacute;mu po uhrazen&iacute; ceny zbo\\u017e&iacute; a za&scaron;le jej v&nbsp;elektronick&eacute; podob\\u011b na elektronickou adresu kupuj&iacute;c&iacute;ho.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>5.odstoupen&iacute; od kupn&iacute; smlouvy<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee dle&nbsp;ustanoven&iacute; &sect; 53 odst. 8 z&aacute;kona \\u010d.&nbsp;40\\/1964 Sb., ob\\u010dansk&yacute; z&aacute;kon&iacute;k, ve zn\\u011bn&iacute; pozd\\u011bj&scaron;&iacute;ch p\\u0159edpis\\u016f (d&aacute;le jen &bdquo;<b>ob\\u010dansk&yacute; z&aacute;kon&iacute;k<\\/b>&ldquo;), nelze mimo jin&eacute; odstoupit od kupn&iacute; smlouvy na dod&aacute;vku zbo\\u017e&iacute; upraven&eacute;ho podle p\\u0159&aacute;n&iacute; kupuj&iacute;c&iacute;ho, jako\\u017e i&nbsp;zbo\\u017e&iacute;, kter&eacute; podl&eacute;h&aacute; rychl&eacute; zk&aacute;ze, opot\\u0159eben&iacute; nebo zastar&aacute;n&iacute;, od kupn&iacute; smlouvy na dod&aacute;vku audio a video nahr&aacute;vek a po\\u010d&iacute;ta\\u010dov&yacute;ch program\\u016f, poru&scaron;il-li spot\\u0159ebitel jejich origin&aacute;ln&iacute; obal, a&nbsp;od kupn&iacute; smlouvy na dod&aacute;vku novin, periodik a \\u010dasopis\\u016f.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tNejedn&aacute;-li se o p\\u0159&iacute;pad uveden&yacute; v&nbsp;\\u010dl. 1.27 \\u010di o jin&yacute; p\\u0159&iacute;pad, kdy nelze od kupn&iacute; smlouvy odstoupit, m&aacute;&nbsp;kupuj&iacute;c&iacute; v&nbsp;souladu s ustanoven&iacute;m &sect;&nbsp;53&nbsp;odst. 7 ob\\u010dansk&eacute;ho z&aacute;kon&iacute;ku pr&aacute;vo od&nbsp;kupn&iacute; smlouvy odstoupit, a to do \\u010dtrn&aacute;cti (14) dn\\u016f od p\\u0159evzet&iacute; zbo\\u017e&iacute;. Odstoupen&iacute; od&nbsp;kupn&iacute; smlouvy mus&iacute; b&yacute;t prod&aacute;vaj&iacute;c&iacute;mu doru\\u010deno do \\u010dtrn&aacute;cti (14) dn\\u016f od&nbsp;p\\u0159evzet&iacute; zbo\\u017e&iacute;. Odstoupen&iacute; od&nbsp;kupn&iacute; smlouvy m\\u016f\\u017ee kupuj&iacute;c&iacute; zas&iacute;lat mimo jin&eacute; na&nbsp;adresu provozovny prod&aacute;vaj&iacute;c&iacute;ho \\u010di na adresu elektronick&eacute; po&scaron;ty prod&aacute;vaj&iacute;c&iacute;ho \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV&nbsp;p\\u0159&iacute;pad\\u011b odstoupen&iacute; od smlouvy dle \\u010dl. 1.28 obchodn&iacute;ch podm&iacute;nek se kupn&iacute; smlouva od&nbsp;po\\u010d&aacute;tku ru&scaron;&iacute;. Zbo\\u017e&iacute; mus&iacute; b&yacute;t prod&aacute;vaj&iacute;c&iacute;mu vr&aacute;ceno do \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 pracovn&iacute;ch dn\\u016f od&nbsp;odesl&aacute;n&iacute; odstoupen&iacute; od smlouvy prod&aacute;vaj&iacute;c&iacute;mu. Zbo\\u017e&iacute; mus&iacute; b&yacute;t prod&aacute;vaj&iacute;c&iacute;mu vr&aacute;ceno nepo&scaron;kozen&eacute; a&nbsp;neopot\\u0159eben&eacute; a, je-li to mo\\u017en&eacute;, v&nbsp;p\\u016fvodn&iacute;m obalu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tVe lh\\u016ft\\u011b patn&aacute;cti (15) dn\\u016f od vr&aacute;cen&iacute; zbo\\u017e&iacute; kupuj&iacute;c&iacute;m dle \\u010dl. 1.29 obchodn&iacute;ch podm&iacute;nek je&nbsp;prod&aacute;vaj&iacute;c&iacute; opr&aacute;vn\\u011bn prov&eacute;st p\\u0159ezkoum&aacute;n&iacute; vr&aacute;cen&eacute;ho zbo\\u017e&iacute;, zejm&eacute;na za &uacute;\\u010delem zji&scaron;t\\u011bn&iacute;, zdali vr&aacute;cen&eacute; zbo\\u017e&iacute; nen&iacute; po&scaron;kozeno, opot\\u0159ebeno \\u010di&nbsp;\\u010d&aacute;ste\\u010dn\\u011b spot\\u0159ebov&aacute;no.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV&nbsp;p\\u0159&iacute;pad\\u011b odstoupen&iacute; od smlouvy dle \\u010dl. 1.28 obchodn&iacute;ch podm&iacute;nek vr&aacute;t&iacute; prod&aacute;vaj&iacute;c&iacute; pln\\u011bn&iacute; poskytnut&eacute; kupuj&iacute;c&iacute;m kupuj&iacute;c&iacute;mu do deseti (10) dn\\u016f od skon\\u010den&iacute; lh\\u016fty na p\\u0159ezkoum&aacute;n&iacute; zbo\\u017e&iacute; dle \\u010dl.&nbsp;1.30 obchodn&iacute;ch podm&iacute;nek, nejpozd\\u011bji v&scaron;ak do t\\u0159iceti (30) dn\\u016f od doru\\u010den&iacute; odstoupen&iacute; od&nbsp;kupn&iacute; smlouvy kupuj&iacute;c&iacute;mu, a&nbsp;to&nbsp;bezhotovostn\\u011b na &uacute;\\u010det ur\\u010den&yacute; kupuj&iacute;c&iacute;m. Prod&aacute;vaj&iacute;c&iacute; je takt&eacute;\\u017e opr&aacute;vn\\u011bn vr&aacute;tit pln\\u011bn&iacute; poskytnut&eacute; kupuj&iacute;c&iacute;m ji\\u017e p\\u0159i vr&aacute;cen&iacute; zbo\\u017e&iacute; kupuj&iacute;c&iacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee pokud zbo\\u017e&iacute; vr&aacute;cen&eacute; kupuj&iacute;c&iacute;m bude po&scaron;kozeno, opot\\u0159ebeno \\u010di&nbsp;\\u010d&aacute;ste\\u010dn\\u011b spot\\u0159ebov&aacute;no, vznik&aacute; prod&aacute;vaj&iacute;c&iacute;mu v\\u016f\\u010di kupuj&iacute;c&iacute;mu n&aacute;rok na n&aacute;hradu &scaron;kody jemu&nbsp;t&iacute;m vznikl&eacute;. N&aacute;rok na&nbsp;&uacute;hradu vznikl&eacute; &scaron;kody je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vn\\u011bn jednostrann\\u011b zapo\\u010d&iacute;st proti n&aacute;roku kupuj&iacute;c&iacute;ho na vr&aacute;cen&iacute; kupn&iacute; ceny.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tDo doby p\\u0159evzet&iacute; zbo\\u017e&iacute; kupuj&iacute;c&iacute;m je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vn\\u011bn kdykoliv od kupn&iacute; smlouvy odstoupit. V&nbsp;takov&eacute;m p\\u0159&iacute;pad\\u011b vr&aacute;t&iacute; prod&aacute;vaj&iacute;c&iacute; kupuj&iacute;c&iacute;mu kupn&iacute; cenu bez zbyte\\u010dn&eacute;ho odkladu, a to bezhotovostn\\u011b na &uacute;\\u010det ur\\u010den&yacute; kupuj&iacute;c&iacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tJe-li spole\\u010dn\\u011b se zbo\\u017e&iacute;m poskytnut kupuj&iacute;c&iacute;mu d&aacute;rek, je darovac&iacute; smlouva mezi prod&aacute;vaj&iacute;c&iacute;m a&nbsp;kupuj&iacute;c&iacute;m uzav\\u0159ena s&nbsp;rozvazovac&iacute; podm&iacute;nkou, \\u017ee dojde-li k&nbsp;odstoupen&iacute; od kupn&iacute; smlouvy spot\\u0159ebitelem, pozb&yacute;v&aacute; darovac&iacute; smlouva ohledn\\u011b takov&eacute;ho d&aacute;rku &uacute;\\u010dinnosti a kupuj&iacute;c&iacute; je povinen spolu se zbo\\u017e&iacute;m prod&aacute;vaj&iacute;c&iacute;mu vr&aacute;tit i poskytnut&yacute; d&aacute;rek.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>6.p\\u0159eprava a dod&aacute;n&iacute; zbo\\u017e&iacute;<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tZp\\u016fsob doru\\u010den&iacute; zbo\\u017e&iacute; ur\\u010duje prod&aacute;vaj&iacute;c&iacute;, nen&iacute;-li v&nbsp;kupn&iacute; smlouv\\u011b stanoveno jinak. V&nbsp;p\\u0159&iacute;pad\\u011b, \\u017ee&nbsp;je&nbsp;zp\\u016fsob dopravy smluven na z&aacute;klad\\u011b po\\u017eadavku kupuj&iacute;c&iacute;ho, nese kupuj&iacute;c&iacute; riziko a&nbsp;p\\u0159&iacute;padn&eacute; dodate\\u010dn&eacute; n&aacute;klady spojen&eacute; s&nbsp;t&iacute;mto zp\\u016fsobem dopravy.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tJe-li prod&aacute;vaj&iacute;c&iacute; podle kupn&iacute; smlouvy povinen dodat zbo\\u017e&iacute; na m&iacute;sto ur\\u010den&eacute; kupuj&iacute;c&iacute;m v&nbsp;objedn&aacute;vce, je kupuj&iacute;c&iacute; povinen p\\u0159evz&iacute;t zbo\\u017e&iacute; p\\u0159i dod&aacute;n&iacute;. Nep\\u0159evezme-li kupuj&iacute;c&iacute; zbo\\u017e&iacute; p\\u0159i dod&aacute;n&iacute;, je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vn\\u011bn po\\u017eadovat poplatek za uskladn\\u011bn&iacute; ve v&yacute;&scaron;i \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 K\\u010d (slovy: \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 korun \\u010desk&yacute;ch) nebo je prod&aacute;vaj&iacute;c&iacute; opr&aacute;vn\\u011bn od kupn&iacute; smlouvy odstoupit.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV&nbsp;p\\u0159&iacute;pad\\u011b, \\u017ee je z&nbsp;d\\u016fvod\\u016f na stran\\u011b kupuj&iacute;c&iacute;ho nutno zbo\\u017e&iacute; doru\\u010dovat opakovan\\u011b nebo jin&yacute;m zp\\u016fsobem, ne\\u017e bylo uvedeno v&nbsp;objedn&aacute;vce, je kupuj&iacute;c&iacute; povinen uhradit n&aacute;klady spojen&eacute; s&nbsp;opakovan&yacute;m doru\\u010dov&aacute;n&iacute;m zbo\\u017e&iacute;, resp. n&aacute;klady spojen&eacute; s&nbsp;jin&yacute;m zp\\u016fsobem doru\\u010den&iacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tP\\u0159i p\\u0159evzet&iacute; zbo\\u017e&iacute; od p\\u0159epravce je kupuj&iacute;c&iacute; povinen zkontrolovat neporu&scaron;enost obal\\u016f zbo\\u017e&iacute; a&nbsp;v p\\u0159&iacute;pad\\u011b jak&yacute;chkoliv z&aacute;vad toto neprodlen\\u011b ozn&aacute;mit p\\u0159epravci. V p\\u0159&iacute;pad\\u011b shled&aacute;n&iacute; poru&scaron;en&iacute; obalu sv\\u011bd\\u010d&iacute;c&iacute;ho o neopr&aacute;vn\\u011bn&eacute;m vniknut&iacute; do z&aacute;silky nemus&iacute; kupuj&iacute;c&iacute; z&aacute;silku od p\\u0159epravce p\\u0159evz&iacute;t. Podpisem dodac&iacute;ho listu kupuj&iacute;c&iacute; stvrzuje, \\u017ee obal z&aacute;silky obsahuj&iacute;c&iacute; zbo\\u017e&iacute; byl neporu&scaron;en.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tDal&scaron;&iacute; pr&aacute;va a povinnosti stran p\\u0159i p\\u0159eprav\\u011b zbo\\u017e&iacute; mohou upravit zvl&aacute;&scaron;tn&iacute; dodac&iacute; podm&iacute;nky prod&aacute;vaj&iacute;c&iacute;ho, jsou-li prod&aacute;vaj&iacute;c&iacute;m vyd&aacute;ny.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>7.odpov\\u011bdnost za vady, Z&aacute;ruka<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tPr&aacute;va a povinnosti smluvn&iacute;ch stran ohledn\\u011b odpov\\u011bdnosti prod&aacute;vaj&iacute;c&iacute;ho za vady, v\\u010detn\\u011b z&aacute;ru\\u010dn&iacute; odpov\\u011bdnosti prod&aacute;vaj&iacute;c&iacute;ho, se \\u0159&iacute;d&iacute; p\\u0159&iacute;slu&scaron;n&yacute;mi obecn\\u011b z&aacute;vazn&yacute;mi p\\u0159edpisy (zejm&eacute;na ustanoven&iacute;m &sect; 612 a n&aacute;sl. ob\\u010dansk&eacute;ho z&aacute;kon&iacute;ku).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tProd&aacute;vaj&iacute;c&iacute; odpov&iacute;d&aacute; kupuj&iacute;c&iacute;mu za to, \\u017ee prod&aacute;van&aacute; v\\u011bc je ve shod\\u011b s kupn&iacute; smlouvou, zejm&eacute;na, \\u017ee je bez vad. Shodou s kupn&iacute; smlouvou se rozum&iacute;, \\u017ee prod&aacute;van&aacute; v\\u011bc m&aacute; jakost a&nbsp;u\\u017eitn&eacute; vlastnosti smlouvou po\\u017eadovan&eacute;, prod&aacute;vaj&iacute;c&iacute;m, v&yacute;robcem nebo jeho z&aacute;stupcem popisovan&eacute;, nebo na z&aacute;klad\\u011b jimi prov&aacute;d\\u011bn&eacute; reklamy o\\u010dek&aacute;van&eacute;, pop\\u0159&iacute;pad\\u011b jakost a u\\u017eitn&eacute; vlastnosti pro v\\u011bc takov&eacute;ho druhu obvykl&eacute;, \\u017ee odpov&iacute;d&aacute; po\\u017eadavk\\u016fm pr&aacute;vn&iacute;ch p\\u0159edpis\\u016f, je&nbsp;v&nbsp;tom odpov&iacute;daj&iacute;c&iacute;m mno\\u017estv&iacute;, m&iacute;\\u0159e nebo hmotnosti a odpov&iacute;d&aacute; &uacute;\\u010delu, kter&yacute; prod&aacute;vaj&iacute;c&iacute; pro pou\\u017eit&iacute; v\\u011bci uv&aacute;d&iacute; nebo pro kter&yacute; se v\\u011bc obvykle pou\\u017e&iacute;v&aacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV p\\u0159&iacute;pad\\u011b, \\u017ee v\\u011bc p\\u0159i p\\u0159evzet&iacute; kupuj&iacute;c&iacute;m nen&iacute; ve shod\\u011b s kupn&iacute; smlouvou (d&aacute;le jen &bdquo;<b>rozpor s&nbsp;kupn&iacute; smlouvou<\\/b>&ldquo;), m&aacute; kupuj&iacute;c&iacute; pr&aacute;vo na to, aby prod&aacute;vaj&iacute;c&iacute; bezplatn\\u011b a bez zbyte\\u010dn&eacute;ho odkladu v\\u011bc uvedl do stavu odpov&iacute;daj&iacute;c&iacute;ho kupn&iacute; smlouv\\u011b, a to podle po\\u017eadavku kupuj&iacute;c&iacute;ho bu\\u010f v&yacute;m\\u011bnou v\\u011bci, nebo jej&iacute; opravou; nen&iacute;-li takov&yacute; postup mo\\u017en&yacute;, m\\u016f\\u017ee kupuj&iacute;c&iacute; po\\u017eadovat p\\u0159im\\u011b\\u0159enou slevu z ceny v\\u011bci nebo od smlouvy odstoupit. To neplat&iacute;, pokud kupuj&iacute;c&iacute; p\\u0159ed p\\u0159evzet&iacute;m v\\u011bci o rozporu s kupn&iacute; smlouvou v\\u011bd\\u011bl nebo rozpor s kupn&iacute; smlouvou s&aacute;m zp\\u016fsobil. Rozpor s kupn&iacute; smlouvou, kter&yacute; se projev&iacute; b\\u011bhem &scaron;esti (6) m\\u011bs&iacute;c\\u016f ode dne p\\u0159evzet&iacute; v\\u011bci, se pova\\u017euje za rozpor existuj&iacute;c&iacute; ji\\u017e p\\u0159i jej&iacute;m p\\u0159evzet&iacute;, pokud to&nbsp;neodporuje povaze v\\u011bci nebo pokud se neprok&aacute;\\u017ee opak.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tNejde-li o v\\u011bci, kter&eacute; se rychle kaz&iacute; nebo o v\\u011bci pou\\u017eit&eacute;, odpov&iacute;d&aacute; prod&aacute;vaj&iacute;c&iacute; za vady, kter&eacute; se projev&iacute; jako rozpor s kupn&iacute; smlouvou po p\\u0159evzet&iacute; v\\u011bci v z&aacute;ru\\u010dn&iacute; dob\\u011b (z&aacute;ruka).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tPr&aacute;va kupuj&iacute;c&iacute;ho vypl&yacute;vaj&iacute;c&iacute; z odpov\\u011bdnosti prod&aacute;vaj&iacute;c&iacute;ho za vady, v\\u010detn\\u011b z&aacute;ru\\u010dn&iacute; odpov\\u011bdnosti prod&aacute;vaj&iacute;c&iacute;ho, uplat\\u0148uje kupuj&iacute;c&iacute; u prod&aacute;vaj&iacute;c&iacute;ho na adrese jeho provozovny \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005. Za okam\\u017eik uplatn\\u011bn&iacute; reklamace se pova\\u017euje okam\\u017eik, kdy prod&aacute;vaj&iacute;c&iacute; obdr\\u017eel od kupuj&iacute;c&iacute;ho reklamovan&eacute; zbo\\u017e&iacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tDal&scaron;&iacute; pr&aacute;va a povinnosti stran souvisej&iacute;c&iacute; s&nbsp;odpov\\u011bdnost&iacute; prod&aacute;vaj&iacute;c&iacute;ho za vady upravuje reklama\\u010dn&iacute; \\u0159&aacute;d prod&aacute;vaj&iacute;c&iacute;ho.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>8.dal&scaron;&iacute; pr&aacute;va a povinnosti smluvn&iacute;ch stran<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; nab&yacute;v&aacute; vlastnictv&iacute; ke zbo\\u017e&iacute; zaplacen&iacute;m cel&eacute; kupn&iacute; ceny zbo\\u017e&iacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee programov&eacute; vybaven&iacute; a dal&scaron;&iacute; sou\\u010d&aacute;sti tvo\\u0159&iacute;c&iacute; webov&eacute; rozhran&iacute; obchodu (v\\u010detn\\u011b fotografi&iacute; nab&iacute;zen&eacute;ho zbo\\u017e&iacute;) jsou chr&aacute;n\\u011bny autorsk&yacute;m pr&aacute;vem. Kupuj&iacute;c&iacute; se&nbsp;zavazuje, \\u017ee nebude vykon&aacute;vat \\u017e&aacute;dnou \\u010dinnost, kter&aacute; by mohla jemu nebo t\\u0159et&iacute;m osob&aacute;m umo\\u017enit neopr&aacute;vn\\u011bn\\u011b zasahovat \\u010di neopr&aacute;vn\\u011bn\\u011b u\\u017e&iacute;t programov&eacute; vybaven&iacute; nebo dal&scaron;&iacute; sou\\u010d&aacute;sti tvo\\u0159&iacute;c&iacute; webov&eacute; rozhran&iacute; obchodu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; nen&iacute; opr&aacute;vn\\u011bn p\\u0159i vyu\\u017e&iacute;v&aacute;n&iacute; webov&eacute;ho rozhran&iacute; obchodu pou\\u017e&iacute;vat mechanismy, programov&eacute; vybaven&iacute; nebo jin&eacute; postupy, kter&eacute; by mohly m&iacute;t negativn&iacute; vliv na provoz webov&eacute;ho rozhran&iacute; obchodu. Webov&eacute; rozhran&iacute; obchodu je mo\\u017en&eacute; u\\u017e&iacute;vat jen v rozsahu, kter&yacute; nen&iacute; na &uacute;kor pr&aacute;v ostatn&iacute;ch z&aacute;kazn&iacute;k\\u016f prod&aacute;vaj&iacute;c&iacute;ho a kter&yacute; je v&nbsp;souladu s&nbsp;jeho ur\\u010den&iacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tProd&aacute;vaj&iacute;c&iacute; nen&iacute; ve vztahu ke kupuj&iacute;c&iacute;mu v&aacute;z&aacute;n \\u017e&aacute;dn&yacute;mi kodexy chov&aacute;n&iacute; ve smyslu ustanoven&iacute; &sect; 53a odst. 1 ob\\u010dansk&eacute;ho z&aacute;kon&iacute;ku.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee prod&aacute;vaj&iacute;c&iacute; nenese odpov\\u011bdnost za chyby vznikl&eacute; v&nbsp;d\\u016fsledku z&aacute;sah\\u016f t\\u0159et&iacute;ch osob do webov&eacute; str&aacute;nky nebo v d\\u016fsledku u\\u017eit&iacute; webov&eacute; str&aacute;nky v rozporu s&nbsp;jejich ur\\u010den&iacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>9.ochrana osobn&iacute;ch &uacute;daj\\u016f a zas&iacute;l&aacute;n&iacute; obchodn&iacute;ch sD\\u011blen&iacute;<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tOchrana osobn&iacute;ch &uacute;daj\\u016f kupuj&iacute;c&iacute;ho, kter&yacute; je fyzickou osobou, je poskytov&aacute;na z&aacute;konem \\u010d.&nbsp;101\\/2000 Sb., o ochran\\u011b osobn&iacute;ch &uacute;daj\\u016f, ve zn\\u011bn&iacute; pozd\\u011bj&scaron;&iacute;ch p\\u0159edpis\\u016f.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; souhlas&iacute; se zpracov&aacute;n&iacute;m t\\u011bchto sv&yacute;ch osobn&iacute;ch &uacute;daj\\u016f: jm&eacute;no a p\\u0159&iacute;jmen&iacute;, adresa bydli&scaron;t\\u011b, identifika\\u010dn&iacute; \\u010d&iacute;slo, da\\u0148ov&eacute; identifika\\u010dn&iacute; \\u010d&iacute;slo, adresa elektronick&eacute; po&scaron;ty, telefonn&iacute; \\u010d&iacute;slo a \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005 (d&aacute;le spole\\u010dn\\u011b v&scaron;e jen jako &bdquo;<b>osobn&iacute; &uacute;daje<\\/b>&ldquo;).<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; souhlas&iacute; se zpracov&aacute;n&iacute;m osobn&iacute;ch &uacute;daj\\u016f prod&aacute;vaj&iacute;c&iacute;m, a to pro &uacute;\\u010dely realizace pr&aacute;v a&nbsp;povinnost&iacute; z&nbsp;kupn&iacute; smlouvy, pro &uacute;\\u010dely veden&iacute; u\\u017eivatelsk&eacute;ho &uacute;\\u010dtu a pro &uacute;\\u010dely zas&iacute;l&aacute;n&iacute; informac&iacute; a obchodn&iacute;ch sd\\u011blen&iacute; kupuj&iacute;c&iacute;mu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; bere na v\\u011bdom&iacute;, \\u017ee je povinen sv&eacute; osobn&iacute; &uacute;daje (p\\u0159i registraci, ve sv&eacute;m u\\u017eivatelsk&eacute;m &uacute;\\u010dtu, p\\u0159i objedn&aacute;vce proveden&eacute; z&nbsp;webov&eacute;ho rozhran&iacute; obchodu) uv&aacute;d\\u011bt spr&aacute;vn\\u011b a&nbsp;pravdiv\\u011b a&nbsp;\\u017ee je povinen bez zbyte\\u010dn&eacute;ho odkladu informovat prod&aacute;vaj&iacute;c&iacute;ho o zm\\u011bn\\u011b ve&nbsp;sv&yacute;ch osobn&iacute;ch &uacute;daj&iacute;ch.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tZpracov&aacute;n&iacute;m osobn&iacute;ch &uacute;daj\\u016f kupuj&iacute;c&iacute;ho m\\u016f\\u017ee prod&aacute;vaj&iacute;c&iacute; pov\\u011b\\u0159it t\\u0159et&iacute; osobu, jako\\u017eto zpracovatele. Krom\\u011b osob dopravuj&iacute;c&iacute;ch zbo\\u017e&iacute; nebudou osobn&iacute; &uacute;daje prod&aacute;vaj&iacute;c&iacute;m bez p\\u0159edchoz&iacute;ho souhlasu kupuj&iacute;c&iacute;ho p\\u0159ed&aacute;v&aacute;ny t\\u0159et&iacute;m osob&aacute;m.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tOsobn&iacute; &uacute;daje budou zpracov&aacute;v&aacute;ny po dobu neur\\u010ditou. Osobn&iacute; &uacute;daje budou zpracov&aacute;v&aacute;ny v&nbsp;elektronick&eacute; podob\\u011b automatizovan&yacute;m zp\\u016fsobem nebo v ti&scaron;t\\u011bn&eacute; podob\\u011b neautomatizovan&yacute;m zp\\u016fsobem.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; potvrzuje, \\u017ee poskytnut&eacute; osobn&iacute; &uacute;daje jsou p\\u0159esn&eacute; a \\u017ee byl pou\\u010den o tom, \\u017ee&nbsp;se&nbsp;jedn&aacute; o dobrovoln&eacute; poskytnut&iacute; osobn&iacute;ch &uacute;daj\\u016f.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tV p\\u0159&iacute;pad\\u011b, \\u017ee by se kupuj&iacute;c&iacute; domn&iacute;val, \\u017ee prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel (\\u010dl. 1.55) prov&aacute;d&iacute; zpracov&aacute;n&iacute; jeho osobn&iacute;ch &uacute;daj\\u016f, kter&eacute; je v rozporu s ochranou soukrom&eacute;ho a osobn&iacute;ho \\u017eivota kupuj&iacute;c&iacute;ho nebo v rozporu se z&aacute;konem, zejm&eacute;na jsou-li osobn&iacute; &uacute;daje nep\\u0159esn&eacute; s&nbsp;ohledem na &uacute;\\u010del jejich zpracov&aacute;n&iacute;, m\\u016f\\u017ee:<\\/div>\\r\\n\\t\\t<ol>\\r\\n\\t\\t\\t<li>\\r\\n\\t\\t\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\t\\tpo\\u017e&aacute;dat prod&aacute;vaj&iacute;c&iacute;ho nebo zpracovatele o vysv\\u011btlen&iacute;,<\\/div>\\r\\n\\t\\t\\t<\\/li>\\r\\n\\t\\t\\t<li>\\r\\n\\t\\t\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\t\\t\\tpo\\u017eadovat, aby prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel odstranil takto vznikl&yacute; stav. Zejm&eacute;na se&nbsp;m\\u016f\\u017ee jednat o blokov&aacute;n&iacute;, proveden&iacute; opravy, dopln\\u011bn&iacute; nebo likvidaci osobn&iacute;ch &uacute;daj\\u016f. Je-li \\u017e&aacute;dost kupuj&iacute;c&iacute;ho podle p\\u0159edchoz&iacute; v\\u011bty shled&aacute;na opr&aacute;vn\\u011bnou, prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel odstran&iacute; neprodlen\\u011b z&aacute;vadn&yacute; stav. Nevyhov&iacute;-li prod&aacute;vaj&iacute;c&iacute; nebo zpracovatel \\u017e&aacute;dosti, m&aacute;&nbsp;kupuj&iacute;c&iacute; pr&aacute;vo obr&aacute;tit se p\\u0159&iacute;mo na &Uacute;\\u0159ad pro ochranu osobn&iacute;ch &uacute;daj\\u016f. T&iacute;mto ustanoven&iacute;m nen&iacute; dot\\u010deno opr&aacute;vn\\u011bn&iacute; kupuj&iacute;c&iacute;ho obr&aacute;tit se&nbsp;se&nbsp;sv&yacute;m podn\\u011btem na&nbsp;&Uacute;\\u0159ad pro ochranu osobn&iacute;ch &uacute;daj\\u016f p\\u0159&iacute;mo.<\\/div>\\r\\n\\t\\t\\t<\\/li>\\r\\n\\t\\t<\\/ol>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tPo\\u017e&aacute;d&aacute;-li kupuj&iacute;c&iacute; o informaci o zpracov&aacute;n&iacute; sv&yacute;ch osobn&iacute;ch &uacute;daj\\u016f, je mu prod&aacute;vaj&iacute;c&iacute; povinen tuto informaci p\\u0159edat. Prod&aacute;vaj&iacute;c&iacute; m&aacute; pr&aacute;vo za poskytnut&iacute; informace podle p\\u0159edchoz&iacute; v\\u011bty po\\u017eadovat p\\u0159im\\u011b\\u0159enou &uacute;hradu nep\\u0159evy&scaron;uj&iacute;c&iacute; n&aacute;klady nezbytn&eacute; na poskytnut&iacute; informace.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>10.Zas&iacute;l&aacute;n&iacute; obchodn&iacute;ch sd\\u011blen&iacute; a ukl&aacute;d&aacute;n&iacute; cookies<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; souhlas&iacute; se zas&iacute;l&aacute;n&iacute;m informac&iacute; souvisej&iacute;c&iacute;ch se zbo\\u017e&iacute;m, slu\\u017ebami nebo podnikem prod&aacute;vaj&iacute;c&iacute;ho na elektronickou adresu kupuj&iacute;c&iacute;ho a d&aacute;le souhlas&iacute; se zas&iacute;l&aacute;n&iacute;m obchodn&iacute;ch sd\\u011blen&iacute; prod&aacute;vaj&iacute;c&iacute;m na elektronickou adresu kupuj&iacute;c&iacute;ho.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupuj&iacute;c&iacute; souhlas&iacute; s ukl&aacute;d&aacute;n&iacute;m tzv. cookies na jeho po\\u010d&iacute;ta\\u010d. V&nbsp;p\\u0159&iacute;pad\\u011b, \\u017ee je n&aacute;kup na webov&eacute; str&aacute;nce mo\\u017en&eacute; prov&eacute;st a z&aacute;vazky prod&aacute;vaj&iacute;c&iacute;ho z kupn&iacute; smlouvy plnit, ani\\u017e by doch&aacute;zelo k ukl&aacute;d&aacute;n&iacute; tzv. cookies na po\\u010d&iacute;ta\\u010d kupuj&iacute;c&iacute;ho, m\\u016f\\u017ee kupuj&iacute;c&iacute; souhlas podle p\\u0159edchoz&iacute; v\\u011bty kdykoliv odvolat.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>11.Doru\\u010dov&aacute;n&iacute;<\\/b><\\/div>\\r\\n<ol>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tNebude-li dohodnuto jinak, ve&scaron;ker&aacute; korespondence souvisej&iacute;c&iacute; s&nbsp;kupn&iacute; smlouvou mus&iacute; b&yacute;t druh&eacute; smluvn&iacute; stran\\u011b doru\\u010dena p&iacute;semn\\u011b, a to elektronickou po&scaron;tou, osobn\\u011b nebo doporu\\u010den\\u011b prost\\u0159ednictv&iacute;m provozovatele po&scaron;tovn&iacute;ch slu\\u017eeb (dle volby odes&iacute;latele). Kupuj&iacute;c&iacute;mu je&nbsp;doru\\u010dov&aacute;no na adresu elektronick&eacute; po&scaron;ty uvedenou v jeho u\\u017eivatelsk&eacute;m &uacute;\\u010dtu.<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n<div align=\\\"JUSTIFY\\\">\\r\\n\\t<b>12.z&aacute;v\\u011are\\u010dn&aacute; ustanoven&iacute;<\\/b><\\/div>\\r\\n<ol start=\\\"63\\\">\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tPokud vztah souvisej&iacute;c&iacute; s u\\u017eit&iacute;m webov&eacute; str&aacute;nky nebo pr&aacute;vn&iacute; vztah zalo\\u017een&yacute; kupn&iacute; smlouvou obsahuje mezin&aacute;rodn&iacute; (zahrani\\u010dn&iacute;) prvek, pak strany sjedn&aacute;vaj&iacute;, \\u017ee&nbsp;vztah se \\u0159&iacute;d&iacute; \\u010desk&yacute;m pr&aacute;vem. T&iacute;mto nejsou dot\\u010dena pr&aacute;va spot\\u0159ebitele vypl&yacute;vaj&iacute;c&iacute; z&nbsp;obecn\\u011b z&aacute;vazn&yacute;ch pr&aacute;vn&iacute;ch p\\u0159edpis\\u016f.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tProd&aacute;vaj&iacute;c&iacute; je opr&aacute;vn\\u011bn k&nbsp;prodeji zbo\\u017e&iacute; na z&aacute;klad\\u011b \\u017eivnostensk&eacute;ho opr&aacute;vn\\u011bn&iacute; a&nbsp;\\u010dinnost prod&aacute;vaj&iacute;c&iacute;ho nepodl&eacute;h&aacute; jin&eacute;mu povolov&aacute;n&iacute;. \\u017divnostenskou kontrolu prov&aacute;d&iacute; v r&aacute;mci sv&eacute; p\\u016fsobnosti p\\u0159&iacute;slu&scaron;n&yacute; \\u017eivnostensk&yacute; &uacute;\\u0159ad.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tJe-li n\\u011bkter&eacute; ustanoven&iacute; obchodn&iacute;ch podm&iacute;nek neplatn&eacute; nebo ne&uacute;\\u010dinn&eacute;, nebo se takov&yacute;m stane, nam&iacute;sto neplatn&yacute;ch ustanoven&iacute; nastoup&iacute; ustanoven&iacute;, jeho\\u017e smysl se neplatn&eacute;mu ustanoven&iacute; co nejv&iacute;ce p\\u0159ibli\\u017euje. Neplatnost&iacute; nebo ne&uacute;\\u010dinnost&iacute; jednoho ustanoven&iacute; nen&iacute; dotknut&aacute; platnost ostatn&iacute;ch ustanoven&iacute;. Zm\\u011bny a dopl\\u0148ky kupn&iacute; smlouvy \\u010di&nbsp;obchodn&iacute;ch podm&iacute;nek vy\\u017eaduj&iacute; p&iacute;semnou formu.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKupn&iacute; smlouva v\\u010detn\\u011b obchodn&iacute;ch podm&iacute;nek je archivov&aacute;na prod&aacute;vaj&iacute;c&iacute;m v&nbsp;elektronick&eacute; podob\\u011b a nen&iacute; p\\u0159&iacute;stupn&aacute;.<\\/div>\\r\\n\\t<\\/li>\\r\\n\\t<li>\\r\\n\\t\\t<div align=\\\"JUSTIFY\\\">\\r\\n\\t\\t\\tKontaktn&iacute; &uacute;daje prod&aacute;vaj&iacute;c&iacute;ho: adresa pro doru\\u010dov&aacute;n&iacute; \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, adresa elektronick&eacute; po&scaron;ty \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005, telefon \\u0004&ensp;&ensp;&ensp;&ensp;&ensp;\\u0005.&ensp;&ensp;&ensp;&ensp;\\u0005<\\/div>\\r\\n\\t<\\/li>\\r\\n<\\/ol>\\r\\n\"}}]'),
(5,12,12,1,NULL,'','Jak nakupovat','<h1>Jak nakupovat</h1>','[{\"type\":\"legacy\",\"id\":\"61291263-581b-47b1-8569-da7b194f48cc\",\"settings\":{\"html\":\"<h1>Jak nakupovat<\\/h1>\"}}]'),
(6,13,13,1,NULL,'','Reklamační řád','<h1>Reklamační řád</h1> <ol> <li> <p>Kupující je povinen dodané zboží bez zbytečného odkladu prohlédnout a o případných zjištěných vadách do 5 dnů informovat prodávajícího.<br><br></p> <li> <p>Oznámení o zjištěných vadách musí kupující učinit písemně (e-mailem) do 5 dnů od převzetí zboží. V písemném oznámení musí kupující uvést zjištěné vady. Popsat, o jaké vady se jedná a jak se projevují. Písemné oznámení kupující odešle do&nbsp;sídla prodávajícího.<br><br></p> <li> <p>K reklamaci je nutné předložit kopii faktury a doklad o dodání a zaplacení zboží, jehož vady jsou reklamovány.<br><br></p> <li> <p>Prodávající nepřebírá odpovědnost za škody vyplývající z provozu produktů, funkčních vlastností a škod z neodborného používání produktů, stejně jako škod způsobených chybnou manipulací. Na vady tohoto původu se nevztahuje ani poskytnutá záruka.<br><br></p> <li> <p>Prodávající se zavazuje informovat zákazníka nejpozději do tří dnů od obdržení reklamace, o způsobu vyřízení reklamace. </p></li></ol>','[{\"type\":\"legacy\",\"id\":\"f137aacc-50d4-4d29-8793-79d0d5ff6386\",\"settings\":{\"html\":\"<h1>Reklama\\u010dn\\u00ed \\u0159\\u00e1d<\\/h1> <ol> <li> <p>Kupuj\\u00edc\\u00ed je povinen dodan\\u00e9 zbo\\u017e\\u00ed bez zbyte\\u010dn\\u00e9ho odkladu prohl\\u00e9dnout a o p\\u0159\\u00edpadn\\u00fdch zji\\u0161t\\u011bn\\u00fdch vad\\u00e1ch do 5 dn\\u016f informovat prod\\u00e1vaj\\u00edc\\u00edho.<br><br><\\/p> <li> <p>Ozn\\u00e1men\\u00ed o zji\\u0161t\\u011bn\\u00fdch vad\\u00e1ch mus\\u00ed kupuj\\u00edc\\u00ed u\\u010dinit p\\u00edsemn\\u011b (e-mailem) do 5 dn\\u016f od p\\u0159evzet\\u00ed zbo\\u017e\\u00ed. V p\\u00edsemn\\u00e9m ozn\\u00e1men\\u00ed mus\\u00ed kupuj\\u00edc\\u00ed uv\\u00e9st zji\\u0161t\\u011bn\\u00e9 vady. Popsat, o jak\\u00e9 vady se jedn\\u00e1 a jak se projevuj\\u00ed. P\\u00edsemn\\u00e9 ozn\\u00e1men\\u00ed kupuj\\u00edc\\u00ed ode\\u0161le do&nbsp;s\\u00eddla prod\\u00e1vaj\\u00edc\\u00edho.<br><br><\\/p> <li> <p>K reklamaci je nutn\\u00e9 p\\u0159edlo\\u017eit kopii faktury a doklad o dod\\u00e1n\\u00ed a zaplacen\\u00ed zbo\\u017e\\u00ed, jeho\\u017e vady jsou reklamov\\u00e1ny.<br><br><\\/p> <li> <p>Prod\\u00e1vaj\\u00edc\\u00ed nep\\u0159eb\\u00edr\\u00e1 odpov\\u011bdnost za \\u0161kody vypl\\u00fdvaj\\u00edc\\u00ed z provozu produkt\\u016f, funk\\u010dn\\u00edch vlastnost\\u00ed a \\u0161kod z neodborn\\u00e9ho pou\\u017e\\u00edv\\u00e1n\\u00ed produkt\\u016f, stejn\\u011b jako \\u0161kod zp\\u016fsoben\\u00fdch chybnou manipulac\\u00ed. Na vady tohoto p\\u016fvodu se nevztahuje ani poskytnut\\u00e1 z\\u00e1ruka.<br><br><\\/p> <li> <p>Prod\\u00e1vaj\\u00edc\\u00ed se zavazuje informovat z\\u00e1kazn\\u00edka nejpozd\\u011bji do t\\u0159\\u00ed dn\\u016f od obdr\\u017een\\u00ed reklamace, o zp\\u016fsobu vy\\u0159\\u00edzen\\u00ed reklamace. <\\/p><\\/li><\\/ol>\"}}]'),
(7,14,14,1,NULL,'','Doprava zboží','<h1>Doprava zboží</h1>','[{\"type\":\"legacy\",\"id\":\"f6f50ebe-1c9b-4d66-851c-a5a310e13bb2\",\"settings\":{\"html\":\"<h1>Doprava zbo\\u017e\\u00ed<\\/h1>\"}}]'),
(8,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"2f12ba6f-6eb5-49f6-b5f4-e4c225f7020c\",\"settings\":{\"html\":null}}]'),
(9,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"ec2b79aa-18fb-436f-b6f7-5927e02e0da4\",\"settings\":{\"html\":null}}]'),
(10,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"8a75ac49-76b1-45d1-ae8f-3242e25a70d3\",\"settings\":{\"html\":null}}]'),
(11,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"14751a36-5157-426b-abe2-0a604b2508d0\",\"settings\":{\"html\":null}}]'),
(12,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"0f8ac798-db74-435e-b18a-00d6053b326e\",\"settings\":{\"html\":null}}]'),
(13,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"5837cdd6-372a-4d24-809a-6a636956deec\",\"settings\":{\"html\":null}}]'),
(14,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"b611d4df-e0d7-4687-b04c-90ed9c6b7890\",\"settings\":{\"html\":null}}]'),
(15,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"c116672c-d0e9-4b47-aecb-16e1703ae34b\",\"settings\":{\"html\":null}}]'),
(16,15,15,1,NULL,'','Aku vrtačky','<p>Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','[{\"type\":\"legacy\",\"id\":\"42a65cbe-5d16-4df5-9ae3-a1f061dcab60\",\"settings\":{\"html\":\"<p>Jen\\u017ee kv\\u016fli v\\u0161udy p\\u0159\\u00edtomn\\u00e9 tr\\u00e1v\\u011b jsou st\\u00edny bal\\u00f3nk\\u016f sotva vid\\u011bt, nato\\u017e aby \\u0161lo rozeznat, jakou barvu tyto st\\u00edny maj\\u00ed. Uvid\\u011bt tak bal\\u00f3nky n\\u00e1hodn\\u00fd kolemjdouc\\u00ed, jist\\u011b by si pomyslel, \\u017ee u\\u017e tu takhle poletuj\\u00ed snad tis\\u00edc let. St\\u00e1le si v\\u00edcem\\u00e9n\\u011b dr\\u017e\\u00ed v\\u00fd\\u0161ku a ani do stran se p\\u0159\\u00edli\\u0161 nepohybuj\\u00ed. Proti slunci to vypad\\u00e1, \\u017ee se slunce pohybuje k z\\u00e1padu rychleji ne\\u017e bal\\u00f3nky, a mo\\u017en\\u00e1 to tak skute\\u010dn\\u011b je. Nejeden filozof by mohl tvrdit, \\u017ee bal\\u00f3nky se sluncem z\\u00e1vod\\u00ed, ale fyzikov\\u00e9 by to jist\\u011b vyvr\\u00e1tili. Z fyzik\\u00e1ln\\u00edho pohledu toti\\u017e bal\\u00f3nky p\\u016fsob\\u00ed zcela nezaj\\u00edmav\\u011b.<\\/p>\"}}]'),
(17,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"43430b03-1565-4833-8055-898fe81d34e5\",\"settings\":{\"html\":null}}]'),
(18,17,17,1,NULL,'','Aku baterie','','[{\"type\":\"legacy\",\"id\":\"cdbc7034-3468-48b4-8636-3f278a186318\",\"settings\":{\"html\":\"\"}}]'),
(19,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"a3978e5d-46ab-47a6-8350-f0dbfe11ee80\",\"settings\":{\"html\":null}}]'),
(20,19,19,1,NULL,'','Aku vrtačky','','[{\"type\":\"legacy\",\"id\":\"119d6678-2c4a-4e9a-a2b0-442d815565fa\",\"settings\":{\"html\":\"\"}}]'),
(21,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"cf136cb8-d613-41fb-bc07-180aa5350303\",\"settings\":{\"html\":null}}]'),
(22,21,21,1,NULL,'','Obuv','','[{\"type\":\"legacy\",\"id\":\"5163b3ee-69b0-41f2-8cf6-a93d5d78ec8c\",\"settings\":{\"html\":\"\"}}]'),
(23,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"4883399c-0a09-48c0-8da4-d002c0c90bdc\",\"settings\":{\"html\":null}}]'),
(24,23,23,1,NULL,'','Pánská obuv','','[{\"type\":\"legacy\",\"id\":\"4926fa40-a4fd-4e9a-8243-828318af1e7e\",\"settings\":{\"html\":\"\"}}]'),
(25,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"dc3bad00-5018-429e-a76b-923b028ef0da\",\"settings\":{\"html\":null}}]'),
(26,25,25,1,NULL,'','Dámská obuv','','[{\"type\":\"legacy\",\"id\":\"211a0312-bdd0-4c5f-b007-5e98dae89f15\",\"settings\":{\"html\":\"\"}}]'),
(27,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"187834bf-5ad0-4a90-882f-6830a6f1f992\",\"settings\":{\"html\":null}}]'),
(28,27,27,1,NULL,'','Žebříky','','[{\"type\":\"legacy\",\"id\":\"4526764c-8539-4241-9306-fc0fc46a4e79\",\"settings\":{\"html\":\"\"}}]'),
(29,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"239858b2-3aeb-4680-a87d-3c838f61eb96\",\"settings\":{\"html\":null}}]'),
(30,29,29,1,NULL,'','Elektronika','','[{\"type\":\"legacy\",\"id\":\"3ab8a28d-26e7-4734-852a-b251742d5ba7\",\"settings\":{\"html\":\"\"}}]'),
(31,NULL,NULL,0,NULL,'','',NULL,'[{\"type\":\"legacy\",\"id\":\"ac901afb-e37a-49ed-a941-21e5b3e043dc\",\"settings\":{\"html\":null}}]'),
(32,31,31,1,NULL,'','Ostatní','','[{\"type\":\"legacy\",\"id\":\"19e2bee3-d919-4b1b-9f31-f70efe05e19e\",\"settings\":{\"html\":\"\"}}]'),
(33,NULL,NULL,0,NULL,'','Lorem Ipsum',NULL,'[{\"type\":\"legacy\",\"id\":\"720f9af0-8263-458a-8941-653d2cd9caaf\",\"settings\":{\"html\":null}}]'),
(34,33,33,0,NULL,'','','<p>Vítr skoro nefouká a tak by se na první pohled mohlo zdát, že se balónky snad vůbec nepohybují. Jenom tak klidně levitují ve vzduchu. Jelikož slunce jasně září a na obloze byste od východu k západu hledali mráček marně, balónky působí jako jakási fata morgána uprostřed pouště. Zkrátka široko daleko nikde nic, jen zelenkavá tráva, jasně modrá obloha a tři křiklavě barevné pouťové balónky, které se téměř nepozorovatelně pohupují ani ne moc vysoko, ani moc nízko nad zemí. Kdyby pod balónky nebyla sytě zelenkavá tráva, ale třeba suchá silnice či beton, možná by bylo vidět jejich barevné stíny - to jak přes poloprůsvitné barevné balónky prochází ostré sluneční paprsky.</p>\r\n\r\n<p>Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','[{\"type\":\"legacy\",\"id\":\"abe20345-b4e9-4e49-9694-b670a6e2caf0\",\"settings\":{\"html\":\"<p>V\\u00edtr skoro nefouk\\u00e1 a tak by se na prvn\\u00ed pohled mohlo zd\\u00e1t, \\u017ee se bal\\u00f3nky snad v\\u016fbec nepohybuj\\u00ed. Jenom tak klidn\\u011b levituj\\u00ed ve vzduchu. Jeliko\\u017e slunce jasn\\u011b z\\u00e1\\u0159\\u00ed a na obloze byste od v\\u00fdchodu k z\\u00e1padu hledali mr\\u00e1\\u010dek marn\\u011b, bal\\u00f3nky p\\u016fsob\\u00ed jako jak\\u00e1si fata morg\\u00e1na uprost\\u0159ed pou\\u0161t\\u011b. Zkr\\u00e1tka \\u0161iroko daleko nikde nic, jen zelenkav\\u00e1 tr\\u00e1va, jasn\\u011b modr\\u00e1 obloha a t\\u0159i k\\u0159iklav\\u011b barevn\\u00e9 pou\\u0165ov\\u00e9 bal\\u00f3nky, kter\\u00e9 se t\\u00e9m\\u011b\\u0159 nepozorovateln\\u011b pohupuj\\u00ed ani ne moc vysoko, ani moc n\\u00edzko nad zem\\u00ed. Kdyby pod bal\\u00f3nky nebyla syt\\u011b zelenkav\\u00e1 tr\\u00e1va, ale t\\u0159eba such\\u00e1 silnice \\u010di beton, mo\\u017en\\u00e1 by bylo vid\\u011bt jejich barevn\\u00e9 st\\u00edny - to jak p\\u0159es polopr\\u016fsvitn\\u00e9 barevn\\u00e9 bal\\u00f3nky proch\\u00e1z\\u00ed ostr\\u00e9 slune\\u010dn\\u00ed paprsky.<\\/p>\\r\\n\\r\\n<p>Jen\\u017ee kv\\u016fli v\\u0161udy p\\u0159\\u00edtomn\\u00e9 tr\\u00e1v\\u011b jsou st\\u00edny bal\\u00f3nk\\u016f sotva vid\\u011bt, nato\\u017e aby \\u0161lo rozeznat, jakou barvu tyto st\\u00edny maj\\u00ed. Uvid\\u011bt tak bal\\u00f3nky n\\u00e1hodn\\u00fd kolemjdouc\\u00ed, jist\\u011b by si pomyslel, \\u017ee u\\u017e tu takhle poletuj\\u00ed snad tis\\u00edc let. St\\u00e1le si v\\u00edcem\\u00e9n\\u011b dr\\u017e\\u00ed v\\u00fd\\u0161ku a ani do stran se p\\u0159\\u00edli\\u0161 nepohybuj\\u00ed. Proti slunci to vypad\\u00e1, \\u017ee se slunce pohybuje k z\\u00e1padu rychleji ne\\u017e bal\\u00f3nky, a mo\\u017en\\u00e1 to tak skute\\u010dn\\u011b je. Nejeden filozof by mohl tvrdit, \\u017ee bal\\u00f3nky se sluncem z\\u00e1vod\\u00ed, ale fyzikov\\u00e9 by to jist\\u011b vyvr\\u00e1tili. Z fyzik\\u00e1ln\\u00edho pohledu toti\\u017e bal\\u00f3nky p\\u016fsob\\u00ed zcela nezaj\\u00edmav\\u011b.<\\/p>\"}}]'),
(35,NULL,NULL,0,NULL,'','První novinka',NULL,'[{\"type\":\"legacy\",\"id\":\"83a3e2f1-6073-4077-8c01-7adf685f266e\",\"settings\":{\"html\":null}}]'),
(36,35,35,0,NULL,'','','<p>Etiam ligula pede, sagittis quis, interdum ultricies, scelerisque eu. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Maecenas aliquet accumsan leo. Duis pulvinar. Etiam posuere lacus quis dolor. Vivamus luctus egestas leo. Curabitur vitae diam non enim vestibulum interdum. Donec iaculis gravida nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Integer in sapien. Duis sapien nunc, commodo et, interdum suscipit, sollicitudin et, dolor. In dapibus augue non sapien. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Pellentesque arcu. Aliquam erat volutpat. Nunc auctor. Aliquam erat volutpat.</p>','[{\"type\":\"legacy\",\"id\":\"953285ff-b23f-40f4-bdc0-35e88485689e\",\"settings\":{\"html\":\"<p>Etiam ligula pede, sagittis quis, interdum ultricies, scelerisque eu. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Maecenas aliquet accumsan leo. Duis pulvinar. Etiam posuere lacus quis dolor. Vivamus luctus egestas leo. Curabitur vitae diam non enim vestibulum interdum. Donec iaculis gravida nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Integer in sapien. Duis sapien nunc, commodo et, interdum suscipit, sollicitudin et, dolor. In dapibus augue non sapien. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Pellentesque arcu. Aliquam erat volutpat. Nunc auctor. Aliquam erat volutpat.<\\/p>\"}}]'),
(37,NULL,NULL,0,NULL,'','Druhá novinka',NULL,'[{\"type\":\"legacy\",\"id\":\"bc04b1f4-7255-4806-8844-33ac28cd8fe8\",\"settings\":{\"html\":null}}]'),
(38,37,37,0,NULL,'','','<p>tiam ligula pede, sagittis quis, interdum ultricies, scelerisque eu. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Maecenas aliquet accumsan leo. Duis pulvinar. Etiam posuere lacus quis dolor. Vivamus luctus egestas leo. Curabitur vitae diam non enim vestibulum interdum. Donec iaculis gravida nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Integer in sapien. Duis sapien nunc, commodo et, interdum suscipit, sollicitudin et, dolor. In dapibus augue non sapien. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Pellentesque arcu. Aliquam erat volutpat. Nunc auctor. Aliquam erat volutpat.</p>','[{\"type\":\"legacy\",\"id\":\"ac1d06cc-af18-4a29-9d0f-02438d0b6196\",\"settings\":{\"html\":\"<p>tiam ligula pede, sagittis quis, interdum ultricies, scelerisque eu. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Maecenas aliquet accumsan leo. Duis pulvinar. Etiam posuere lacus quis dolor. Vivamus luctus egestas leo. Curabitur vitae diam non enim vestibulum interdum. Donec iaculis gravida nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Integer in sapien. Duis sapien nunc, commodo et, interdum suscipit, sollicitudin et, dolor. In dapibus augue non sapien. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Pellentesque arcu. Aliquam erat volutpat. Nunc auctor. Aliquam erat volutpat.<\\/p>\"}}]'),
(39,NULL,NULL,0,NULL,'','Třetí novinka',NULL,'[{\"type\":\"legacy\",\"id\":\"981f5313-11f9-4d14-b79f-2df454e6b975\",\"settings\":{\"html\":null}}]'),
(40,39,39,0,NULL,'','','<p>In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Fusce wisi. Integer tempor. Etiam egestas wisi a erat. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. Curabitur vitae diam non enim vestibulum interdum. Nullam feugiat, turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio risus sit amet ante. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. Nulla pulvinar eleifend sem. Integer rutrum, orci vestibulum ullamcorper ultricies, lacus quam ultricies odio, vitae placerat pede sem sit amet enim. Fusce consectetuer risus a nunc. Praesent dapibus. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Nulla non arcu lacinia neque faucibus fringilla. Aliquam ante. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Nam sed tellus id magna elementum tincidunt. In sem justo, commodo ut, suscipit at, pharetra vitae, orci.</p>','[{\"type\":\"legacy\",\"id\":\"01e8ce75-0ecc-4c18-852f-dd0f8e9c769f\",\"settings\":{\"html\":\"<p>In laoreet, magna id viverra tincidunt, sem odio bibendum justo, vel imperdiet sapien wisi sed libero. Fusce wisi. Integer tempor. Etiam egestas wisi a erat. Maecenas fermentum, sem in pharetra pellentesque, velit turpis volutpat ante, in pharetra metus odio a lectus. Curabitur vitae diam non enim vestibulum interdum. Nullam feugiat, turpis at pulvinar vulputate, erat libero tristique tellus, nec bibendum odio risus sit amet ante. Donec ipsum massa, ullamcorper in, auctor et, scelerisque sed, est. Nulla pulvinar eleifend sem. Integer rutrum, orci vestibulum ullamcorper ultricies, lacus quam ultricies odio, vitae placerat pede sem sit amet enim. Fusce consectetuer risus a nunc. Praesent dapibus. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Nulla non arcu lacinia neque faucibus fringilla. Aliquam ante. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Nam sed tellus id magna elementum tincidunt. In sem justo, commodo ut, suscipit at, pharetra vitae, orci.<\\/p>\"}}]'),
(41,NULL,NULL,0,NULL,'','Článek o Kupshopu 2015',NULL,'[{\"type\":\"legacy\",\"id\":\"5b2cdb5e-44c8-485f-a578-04ce75cc4b02\",\"settings\":{\"html\":null}}]'),
(42,41,41,0,NULL,'','','<p>Nová verze kupshop přináší stovky vychytávek!</p>','[{\"type\":\"legacy\",\"id\":\"1b391838-5b0f-44cf-ba8a-e4433936bf90\",\"settings\":{\"html\":\"<p>Nov\\u00e1 verze kupshop p\\u0159in\\u00e1\\u0161\\u00ed stovky vychyt\\u00e1vek!<\\/p>\"}}]'),
(43,NULL,NULL,0,NULL,'','Novinový článek',NULL,'[{\"type\":\"legacy\",\"id\":\"50b9cadd-1e0f-42dc-ac4c-8669877ad02e\",\"settings\":{\"html\":null}}]'),
(44,43,43,0,NULL,'','','<p>Novinový článek je literární žánr obsahující jasné, věcné, logické a srozumitelné vyjádření myšlenky nebo popis události. Článek hledá souvislosti, příčiny, následky a analyzuje, třídí a zobecňuje.</p>\r\n\r\n<p>Obsahem článku jsou:</p>\r\n\r\n<ul>\r\n	<li>základní myšlenka (teze)</li>\r\n	<li>argumentace</li>\r\n	<li>závěry</li>\r\n</ul>\r\n\r\n<p>Článek je výsledkem subjektivního přístupu autora k dané problematice i k výrazovým a jazykovým prostředkům, proto je řazen mezi žánry publicistické.</p>\r\n\r\n<p>V laickém pojetí slovo článek znamená téměř jakýkoli útvar v novinách kromě zprávy.</p>','[{\"type\":\"legacy\",\"id\":\"468305ff-31ff-45f9-a63e-4bb76b92e98d\",\"settings\":{\"html\":\"<p>Novinov\\u00fd \\u010dl\\u00e1nek je liter\\u00e1rn\\u00ed \\u017e\\u00e1nr obsahuj\\u00edc\\u00ed jasn\\u00e9, v\\u011bcn\\u00e9, logick\\u00e9 a srozumiteln\\u00e9 vyj\\u00e1d\\u0159en\\u00ed my\\u0161lenky nebo popis ud\\u00e1losti. \\u010cl\\u00e1nek hled\\u00e1 souvislosti, p\\u0159\\u00ed\\u010diny, n\\u00e1sledky a analyzuje, t\\u0159\\u00edd\\u00ed a zobec\\u0148uje.<\\/p>\\r\\n\\r\\n<p>Obsahem \\u010dl\\u00e1nku jsou:<\\/p>\\r\\n\\r\\n<ul>\\r\\n\\t<li>z\\u00e1kladn\\u00ed my\\u0161lenka (teze)<\\/li>\\r\\n\\t<li>argumentace<\\/li>\\r\\n\\t<li>z\\u00e1v\\u011bry<\\/li>\\r\\n<\\/ul>\\r\\n\\r\\n<p>\\u010cl\\u00e1nek je v\\u00fdsledkem subjektivn\\u00edho p\\u0159\\u00edstupu autora k dan\\u00e9 problematice i k v\\u00fdrazov\\u00fdm a jazykov\\u00fdm prost\\u0159edk\\u016fm, proto je \\u0159azen mezi \\u017e\\u00e1nry publicistick\\u00e9.<\\/p>\\r\\n\\r\\n<p>V laick\\u00e9m pojet\\u00ed slovo \\u010dl\\u00e1nek znamen\\u00e1 t\\u00e9m\\u011b\\u0159 jak\\u00fdkoli \\u00fatvar v novin\\u00e1ch krom\\u011b zpr\\u00e1vy.<\\/p>\"}}]'),
(45,NULL,NULL,0,NULL,'','První článek',NULL,'[{\"type\":\"legacy\",\"id\":\"5b2aa1d8-a7f4-4ebc-9e3f-b350802f6ff5\",\"settings\":{\"html\":null}}]'),
(46,45,45,0,NULL,'','','<p>Etiam ligula pede, sagittis quis, interdum ultricies, scelerisque eu. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Maecenas aliquet accumsan leo. Duis pulvinar. Etiam posuere lacus quis dolor. Vivamus luctus egestas leo. Curabitur vitae diam non enim vestibulum interdum. Donec iaculis gravida nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Integer in sapien. Duis sapien nunc, commodo et, interdum suscipit, sollicitudin et, dolor. In dapibus augue non sapien. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Pellentesque arcu. Aliquam erat volutpat. Nunc auctor. Aliquam erat volutpat.</p>','[{\"type\":\"legacy\",\"id\":\"4933524e-5caf-40db-a043-722cd09a8595\",\"settings\":{\"html\":\"<p>Etiam ligula pede, sagittis quis, interdum ultricies, scelerisque eu. Nullam justo enim, consectetuer nec, ullamcorper ac, vestibulum in, elit. Maecenas aliquet accumsan leo. Duis pulvinar. Etiam posuere lacus quis dolor. Vivamus luctus egestas leo. Curabitur vitae diam non enim vestibulum interdum. Donec iaculis gravida nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Integer in sapien. Duis sapien nunc, commodo et, interdum suscipit, sollicitudin et, dolor. In dapibus augue non sapien. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Pellentesque arcu. Aliquam erat volutpat. Nunc auctor. Aliquam erat volutpat.<\\/p>\"}}]'),
(47,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(48,47,47,1,NULL,'','Adidas','<p><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Oblečení a boty pro sport, volný čas a zábavu. Prohlídni si kolekcii, nakup v E-</span><wbr style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\" /><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">shopu. Pro registrované uživatele přístup do Zákulisí s akční nabídkou.</span></p>','[{\"type\":\"legacy\",\"id\":\"b3bd835f-e42f-4b16-af99-c85ce436b8be\",\"settings\":{\"html\":\"<p><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">Oble\\u010den\\u00ed a boty pro sport, voln\\u00fd \\u010das a z\\u00e1bavu. Prohl\\u00eddni si kolekcii, nakup v E-<\\/span><wbr style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\" \\/><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">shopu. Pro registrovan\\u00e9 u\\u017eivatele p\\u0159\\u00edstup do Z\\u00e1kulis\\u00ed s ak\\u010dn\\u00ed nab\\u00eddkou.<\\/span><\\/p>\"}}]'),
(49,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(50,49,49,1,NULL,'','Alpine Pro','<p><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Jsme outdoorová firma, která vyrábí funkční oblečení </span><span style=\"font-weight: bold; color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">pro</span><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\"> sport i volný čas. Používáme vysoce funkční materiály, které jsou ověřeny českými olympioniky.</span></p>','[{\"type\":\"legacy\",\"id\":\"b9545327-3aa4-4ea2-a76a-70e82775eaaf\",\"settings\":{\"html\":\"<p><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">Jsme outdoorov\\u00e1 firma, kter\\u00e1 vyr\\u00e1b\\u00ed funk\\u010dn\\u00ed oble\\u010den\\u00ed\\u00a0<\\/span><span style=\\\"font-weight: bold; color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">pro<\\/span><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">\\u00a0sport i voln\\u00fd \\u010das. Pou\\u017e\\u00edv\\u00e1me vysoce funk\\u010dn\\u00ed materi\\u00e1ly, kter\\u00e9 jsou ov\\u011b\\u0159eny \\u010desk\\u00fdmi olympioniky.<\\/span><\\/p>\"}}]'),
(51,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(52,51,51,1,NULL,'','Nike','<p><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Nike je dynamickou značkou, která vám přináší kvalitní sportovní bundy, trika a tílka z funkčního materiálu, to je </span><span style=\"font-weight: bold; color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Nike cz</span><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">.</span></p>','[{\"type\":\"legacy\",\"id\":\"5b77d93b-8b18-4e7a-959b-77ec12419558\",\"settings\":{\"html\":\"<p><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">Nike je dynamickou zna\\u010dkou, kter\\u00e1 v\\u00e1m p\\u0159in\\u00e1\\u0161\\u00ed kvalitn\\u00ed sportovn\\u00ed bundy, trika a t\\u00edlka z funk\\u010dn\\u00edho materi\\u00e1lu, to je\\u00a0<\\/span><span style=\\\"font-weight: bold; color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">Nike cz<\\/span><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">.<\\/span><\\/p>\"}}]'),
(53,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(54,53,53,1,NULL,'','Arena','','[{\"type\":\"legacy\",\"id\":\"3f462b95-796d-41f4-ba22-d29f1e21acd3\",\"settings\":{\"html\":\"\"}}]'),
(55,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(56,55,55,1,NULL,'','DeWALT','<p>DEWALT je lidrem na poli vyroby profesionálního elektrického nářadí a nástrojů a dodavatelem příslušenství a ochranných pracovních pomůcek a oděvů.</p>','[{\"type\":\"legacy\",\"id\":\"a0d9b839-63b6-4878-ba7c-441958a22624\",\"settings\":{\"html\":\"<p>DEWALT je lidrem na poli vyroby profesion\\u00e1ln\\u00edho elektrick\\u00e9ho n\\u00e1\\u0159ad\\u00ed a n\\u00e1stroj\\u016f a dodavatelem p\\u0159\\u00edslu\\u0161enstv\\u00ed a ochrann\\u00fdch pracovn\\u00edch pom\\u016fcek a od\\u011bv\\u016f.<\\/p>\"}}]'),
(57,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(58,57,57,1,NULL,'','Black & Decker','<p><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Chcete pracovat efektivněji? Vyberte si u nás baterie do AKU nářadí </span><span style=\"font-weight: bold; color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Black and Decker</span><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">, díky kterým budete moci své nářadí využívat mnohem delší dobu.</span></p>','[{\"type\":\"legacy\",\"id\":\"4de5050c-1aad-4698-902e-9aec8f64dc40\",\"settings\":{\"html\":\"<p><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">Chcete pracovat efektivn\\u011bji? Vyberte si u n\\u00e1s baterie do AKU n\\u00e1\\u0159ad\\u00ed\\u00a0<\\/span><span style=\\\"font-weight: bold; color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">Black and Decker<\\/span><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">, d\\u00edky kter\\u00fdm budete moci sv\\u00e9 n\\u00e1\\u0159ad\\u00ed vyu\\u017e\\u00edvat mnohem del\\u0161\\u00ed dobu.<\\/span><\\/p>\"}}]'),
(59,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(60,59,59,1,NULL,'','Metabo','<p><span style=\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\">Nářadí,Dřevoobráběcí stroje,Kompresory,Elektrické nářadí,Vrtačka,Úhlová bruska,Příklepové vrtačky,Elektrické ruční nářadí,Profesionální ruční nářadí.</span></p>','[{\"type\":\"legacy\",\"id\":\"f59d0aa5-49b2-477f-98e1-0b2e2260da2a\",\"settings\":{\"html\":\"<p><span style=\\\"color: rgb(84, 84, 84); font-family: arial, sans-serif; font-size: small; line-height: 18.2000007629395px;\\\">N\\u00e1\\u0159ad\\u00ed,D\\u0159evoobr\\u00e1b\\u011bc\\u00ed stroje,Kompresory,Elektrick\\u00e9 n\\u00e1\\u0159ad\\u00ed,Vrta\\u010dka,\\u00dahlov\\u00e1 bruska,P\\u0159\\u00edklepov\\u00e9 vrta\\u010dky,Elektrick\\u00e9 ru\\u010dn\\u00ed n\\u00e1\\u0159ad\\u00ed,Profesion\\u00e1ln\\u00ed ru\\u010dn\\u00ed n\\u00e1\\u0159ad\\u00ed.<\\/span><\\/p>\"}}]'),
(61,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(62,61,61,1,NULL,'','wpj','<p>Webdesign studio</p>','[{\"type\":\"legacy\",\"id\":\"e803382c-feba-4da5-aeb2-a0a3c970dfef\",\"settings\":{\"html\":\"<p>Webdesign studio<\\/p>\"}}]'),
(63,NULL,NULL,0,NULL,'',NULL,NULL,NULL),
(64,63,63,1,NULL,'',NULL,'   <h2 class=\"text-left\">Zásady používání soborů cookie</h2><div class=\"w-text\"><p>Na našich webových stránkách využíváme různé technologie, abychom mohli zlepšit Vaši zkušenost s jejich používáním. K nim patří zpracování údajů, které je technicky nutné k fungování webových stránek a jejich funkcionalit, stejně jako další technologie sloužící k pohodlnému nastavení webových stránek, k vytváření anonymních statistik nebo pro inzerci personalizovaných (reklamních) obsahů.</p><p>V patičce webu pod tlačítkem \"Nastavení cookies\" se můžete kdykoliv svobodně rozhodnout, které typy užití chcete povolit.</p></div><div class=\"w-table\"><figure class=\"table\"><table><thead><tr><th>jméno</th><th>poskytovatel</th><th>účel</th><th>vypršení</th><th>typ</th></tr></thead><tbody><tr><td>cookie-bar</td><td>e-shop</td><td>Zvolení souhlasů s ukládáním cookies</td><td>2 roky</td><td>Nezbytné</td></tr><tr><td>infopanel-hide</td><td>e-shop</td><td>Nastavuje schování informačního panelu</td><td>Bez omezení</td><td>Nezbytné</td></tr><tr><td>cat_show</td><td>e-shop</td><td>Nastavuje styl zobrazení produktů v sekci</td><td>30 dnů</td><td>Nezbytné</td></tr><tr><td>filter_onpage</td><td>e-shop</td><td>Nastavuje počet produktů na stránce</td><td>30 dnů</td><td>Nezbytné</td></tr><tr><td>web_version</td><td>e-shop</td><td>Nastavuje preferenci pro desktopovou verzi na mobilu</td><td>Do zavření prohlížeče</td><td>Nezbytné</td></tr><tr><td>last_visited</td><td>e-shop</td><td>Ukládá naposled prohlížené produkty</td><td>30 dnů</td><td>Preferenční</td></tr><tr><td>remember</td><td>e-shop</td><td>Zapamatování přihlášení uživatele</td><td>1 rok</td><td>Nezbytné</td></tr><tr><td>cartID</td><td>e-shop</td><td>Ukládání zboží vloženého do košíku</td><td>1 rok</td><td>Nezbytné</td></tr><tr><td>PHPSESSID</td><td>e-shop</td><td>Dočasné úložiště dat nezbytných pro použití webu</td><td>Do zavření prohlížeče</td><td>Nezbytné</td></tr></tbody></table></figure></div>','[{\"type\":\"heading\",\"id\":\"a241d31c-b604-4da0-9e86-0fb4cfaa65e6\",\"settings\":{\"level\":\"2\",\"align\":\"left\",\"text\":\"Zásady používání soborů cookie\"}},{\"type\":\"text\",\"id\":\"ad6ab9a5-dfb9-4fca-807c-7b11f7cf6eeb\",\"settings\":{\"html\":\"<p>Na našich webových stránkách využíváme různé technologie, abychom mohli zlepšit Vaši zkušenost s jejich používáním. K nim patří zpracování údajů, které je technicky nutné k fungování webových stránek a jejich funkcionalit, stejně jako další technologie sloužící k pohodlnému nastavení webových stránek, k vytváření anonymních statistik nebo pro inzerci personalizovaných (reklamních) obsahů.</p><p>V patičce webu pod tlačítkem \\\"Nastavení cookies\\\" se můžete kdykoliv svobodně rozhodnout, které typy užití chcete povolit.</p>\"}},{\"type\":\"table\",\"id\":\"f7c8f8d6-87dc-4cad-be1c-f8f32b56db72\",\"settings\":{\"html\":\"<figure class=\\\"table\\\"><table><thead><tr><th>jméno</th><th>poskytovatel</th><th>účel</th><th>vypršení</th><th>typ</th></tr></thead><tbody><tr><td>cookie-bar</td><td>e-shop</td><td>Zvolení souhlasů s ukládáním cookies</td><td>2 roky</td><td>Nezbytné</td></tr><tr><td>infopanel-hide</td><td>e-shop</td><td>Nastavuje schování informačního panelu</td><td>Bez omezení</td><td>Nezbytné</td></tr><tr><td>cat_show</td><td>e-shop</td><td>Nastavuje styl zobrazení produktů v sekci</td><td>30 dnů</td><td>Nezbytné</td></tr><tr><td>filter_onpage</td><td>e-shop</td><td>Nastavuje počet produktů na stránce</td><td>30 dnů</td><td>Nezbytné</td></tr><tr><td>web_version</td><td>e-shop</td><td>Nastavuje preferenci pro desktopovou verzi na mobilu</td><td>Do zavření prohlížeče</td><td>Nezbytné</td></tr><tr><td>last_visited</td><td>e-shop</td><td>Ukládá naposled prohlížené produkty</td><td>30 dnů</td><td>Preferenční</td></tr><tr><td>remember</td><td>e-shop</td><td>Zapamatování přihlášení uživatele</td><td>1 rok</td><td>Nezbytné</td></tr><tr><td>cartID</td><td>e-shop</td><td>Ukládání zboží vloženého do košíku</td><td>1 rok</td><td>Nezbytné</td></tr><tr><td>PHPSESSID</td><td>e-shop</td><td>Dočasné úložiště dat nezbytných pro použití webu</td><td>Do zavření prohlížeče</td><td>Nezbytné</td></tr></tbody></table></figure>\"}}]');
/*!40000 ALTER TABLE `blocks` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `blocks_history`
--

DROP TABLE IF EXISTS `blocks_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `blocks_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_root_block` int(11) unsigned NOT NULL,
  `name` varchar(60) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_id_root_block` (`id_root_block`),
  CONSTRAINT `FK_id_root_block` FOREIGN KEY (`id_root_block`) REFERENCES `blocks` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `blocks_history`
--

LOCK TABLES `blocks_history` WRITE;
/*!40000 ALTER TABLE `blocks_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `blocks_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `blocks_translations`
--

DROP TABLE IF EXISTS `blocks_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `blocks_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_block` int(10) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `content` longtext DEFAULT NULL,
  `json_content` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `blocks_translations_id_block_id_language_uindex` (`id_block`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `blocks_translations_ibfk_1` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `blocks_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `blocks_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `blocks_translations`
--

LOCK TABLES `blocks_translations` WRITE;
/*!40000 ALTER TABLE `blocks_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `blocks_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bonus_points`
--

DROP TABLE IF EXISTS `bonus_points`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bonus_points` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) unsigned NOT NULL,
  `points` int(11) NOT NULL,
  `date_created` datetime NOT NULL,
  `note` mediumtext DEFAULT NULL,
  `status` enum('inactive','active','deleted') DEFAULT NULL,
  `id_order` int(10) unsigned DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_bonus_points_user` (`id_user`),
  KEY `FK_bonus_points_order` (`id_order`),
  CONSTRAINT `FK_bonus_points_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_bonus_points_user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bonus_points`
--

LOCK TABLES `bonus_points` WRITE;
/*!40000 ALTER TABLE `bonus_points` DISABLE KEYS */;
/*!40000 ALTER TABLE `bonus_points` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `bonus_points_exchange`
--

DROP TABLE IF EXISTS `bonus_points_exchange`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bonus_points_exchange` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) NOT NULL DEFAULT 0,
  `id_discount` int(10) unsigned NOT NULL,
  `date_created` datetime NOT NULL DEFAULT current_timestamp(),
  `name` varchar(60) NOT NULL,
  `points` int(11) NOT NULL,
  `active` tinyint(4) NOT NULL DEFAULT 1,
  `description` mediumtext DEFAULT NULL,
  `languages` text DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_bonus_points_exchange_discount` (`id_discount`),
  CONSTRAINT `FK_bonus_points_exchange_discount` FOREIGN KEY (`id_discount`) REFERENCES `discounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `bonus_points_exchange`
--

LOCK TABLES `bonus_points_exchange` WRITE;
/*!40000 ALTER TABLE `bonus_points_exchange` DISABLE KEYS */;
/*!40000 ALTER TABLE `bonus_points_exchange` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_bonus_points_exchange BEFORE INSERT ON bonus_points_exchange
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(bonus_points_exchange.position) + 1, 0) FROM bonus_points_exchange);
                    END IF;
                END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `cart`
--

DROP TABLE IF EXISTS `cart`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cart` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_user` int(10) unsigned DEFAULT NULL,
  `user_key` char(32) NOT NULL DEFAULT '',
  `id_product` int(11) NOT NULL DEFAULT 0,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` int(11) NOT NULL DEFAULT 0,
  `date` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `note` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_user` (`id_user`),
  KEY `user_key` (`user_key`),
  KEY `id_variation` (`id_variation`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `cart_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `cart_ibfk_2` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `cart_ibfk_3` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2666 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='zbozi v nakupnim voziku' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `cart`
--

LOCK TABLES `cart` WRITE;
/*!40000 ALTER TABLE `cart` DISABLE KEYS */;
INSERT INTO `cart` VALUES
(7,2,'',9,NULL,1,'2015-02-13 14:08:00',''),
(8,NULL,'egqb2s7cur5vb9b1m6o1pr5du2',11,22,1,'2015-02-13 14:26:31',''),
(9,NULL,'alha909h75n6cgp7to4g1m6ab7',5,14,1,'2015-02-13 16:20:59','');
/*!40000 ALTER TABLE `cart` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `charges`
--

DROP TABLE IF EXISTS `charges`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charges` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  `title` varchar(100) NOT NULL,
  `admin_title` varchar(100) NOT NULL,
  `figure` enum('Y','N') NOT NULL DEFAULT 'Y',
  `price` decimal(15,4) DEFAULT NULL,
  `vat` int(11) unsigned DEFAULT NULL,
  `descr` mediumtext DEFAULT NULL,
  `included` enum('Y','N') NOT NULL DEFAULT 'N',
  `required` enum('Y','N') NOT NULL DEFAULT 'Y',
  `checked` enum('Y','N') NOT NULL DEFAULT 'N',
  `percentage` smallint(6) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `type` enum('order','product') DEFAULT 'product',
  `id_product` int(11) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vat` (`vat`),
  KEY `fk_charges_currencies` (`currency`),
  KEY `charges_products_id_fk` (`id_product`),
  KEY `charges_products_variations_id_fk` (`id_variation`),
  CONSTRAINT `charges_ibfk_1` FOREIGN KEY (`vat`) REFERENCES `vats` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `charges_products_id_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `charges_products_variations_id_fk` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_charges_currencies` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `charges`
--

LOCK TABLES `charges` WRITE;
/*!40000 ALTER TABLE `charges` DISABLE KEYS */;
/*!40000 ALTER TABLE `charges` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `charges_translations`
--

DROP TABLE IF EXISTS `charges_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `charges_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_charge` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  `descr` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `charges_translations_id_charge_id_language_uindex` (`id_charge`,`id_language`),
  CONSTRAINT `charges_translations_ibfk_1` FOREIGN KEY (`id_charge`) REFERENCES `charges` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `charges_translations`
--

LOCK TABLES `charges_translations` WRITE;
/*!40000 ALTER TABLE `charges_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `charges_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `comments`
--

DROP TABLE IF EXISTS `comments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `comments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_language` varchar(2) DEFAULT NULL,
  `id_parent` int(11) DEFAULT NULL,
  `id_product` int(11) DEFAULT NULL,
  `id_article` int(11) DEFAULT NULL,
  `id_user` int(11) unsigned DEFAULT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `content` longtext NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 0,
  `solved` tinyint(1) NOT NULL DEFAULT 0,
  `date_add` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `id_parent` (`id_parent`),
  KEY `id_product` (`id_product`),
  KEY `id_article` (`id_article`),
  KEY `id_user` (`id_user`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `comments_ibfk_1` FOREIGN KEY (`id_parent`) REFERENCES `comments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `comments_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `comments_ibfk_3` FOREIGN KEY (`id_article`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `comments_ibfk_4` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `comments_ibfk_5` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `comments`
--

LOCK TABLES `comments` WRITE;
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `convertors_definition`
--

DROP TABLE IF EXISTS `convertors_definition`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `convertors_definition` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `id_label` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `convertors_label_fk` (`id_label`),
  CONSTRAINT `convertors_label_fk` FOREIGN KEY (`id_label`) REFERENCES `products_variations_choices_labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `convertors_definition`
--

LOCK TABLES `convertors_definition` WRITE;
/*!40000 ALTER TABLE `convertors_definition` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertors_definition` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `convertors_definition_parameters`
--

DROP TABLE IF EXISTS `convertors_definition_parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `convertors_definition_parameters` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_convertor` int(11) NOT NULL,
  `id_parameter` int(10) unsigned NOT NULL,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `convertors_definition_parameters_convertor_fk` (`id_convertor`),
  KEY `convertors_definition_parameters_parameter_fk` (`id_parameter`),
  CONSTRAINT `convertors_definition_parameters_convertor_fk` FOREIGN KEY (`id_convertor`) REFERENCES `convertors_definition` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `convertors_definition_parameters_parameter_fk` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `convertors_definition_parameters`
--

LOCK TABLES `convertors_definition_parameters` WRITE;
/*!40000 ALTER TABLE `convertors_definition_parameters` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertors_definition_parameters` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `convertors_table`
--

DROP TABLE IF EXISTS `convertors_table`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `convertors_table` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_convertor` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `filter` longtext DEFAULT NULL,
  `priority` int(11) DEFAULT 0,
  PRIMARY KEY (`id`),
  KEY `convertors_table_convertor_fk` (`id_convertor`),
  CONSTRAINT `convertors_table_convertor_fk` FOREIGN KEY (`id_convertor`) REFERENCES `convertors_definition` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `convertors_table`
--

LOCK TABLES `convertors_table` WRITE;
/*!40000 ALTER TABLE `convertors_table` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertors_table` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `convertors_table_cache`
--

DROP TABLE IF EXISTS `convertors_table_cache`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `convertors_table_cache` (
  `id_table` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_convertor` int(11) NOT NULL,
  `generated` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_product`,`id_convertor`),
  KEY `convertors_table_cache_converting_table_fk` (`id_table`),
  KEY `convertors_table_cache_convertor_definition_fk` (`id_convertor`),
  CONSTRAINT `convertors_table_cache_converting_table_fk` FOREIGN KEY (`id_table`) REFERENCES `convertors_table` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `convertors_table_cache_convertor_definition_fk` FOREIGN KEY (`id_convertor`) REFERENCES `convertors_definition` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `convertors_table_cache_products_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `convertors_table_cache`
--

LOCK TABLES `convertors_table_cache` WRITE;
/*!40000 ALTER TABLE `convertors_table_cache` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertors_table_cache` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `convertors_table_values`
--

DROP TABLE IF EXISTS `convertors_table_values`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `convertors_table_values` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_table` int(11) NOT NULL,
  `id_label_value` int(11) NOT NULL,
  `id_parameter_value` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `convertors_table_values_unique_index` (`id_table`,`id_label_value`,`id_parameter_value`),
  KEY `convertors_table_values_label_value_fk` (`id_label_value`),
  KEY `convertors_table_values_parameter_value_fk` (`id_parameter_value`),
  CONSTRAINT `convertors_table_values_label_value_fk` FOREIGN KEY (`id_label_value`) REFERENCES `products_variations_choices_values` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `convertors_table_values_parameter_value_fk` FOREIGN KEY (`id_parameter_value`) REFERENCES `parameters_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `convertors_table_values_table_fk` FOREIGN KEY (`id_table`) REFERENCES `convertors_table` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `convertors_table_values`
--

LOCK TABLES `convertors_table_values` WRITE;
/*!40000 ALTER TABLE `convertors_table_values` DISABLE KEYS */;
/*!40000 ALTER TABLE `convertors_table_values` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `countries`
--

DROP TABLE IF EXISTS `countries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `countries` (
  `id` varchar(10) NOT NULL,
  `name` varchar(60) NOT NULL,
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `countries_name_index` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `countries`
--

LOCK TABLES `countries` WRITE;
/*!40000 ALTER TABLE `countries` DISABLE KEYS */;
INSERT INTO `countries` VALUES
('CZ','Česká republika',1),
('SK','Slovensko',2);
/*!40000 ALTER TABLE `countries` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_countries BEFORE INSERT ON countries
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(position) + 1, 0) FROM countries);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `currencies`
--

DROP TABLE IF EXISTS `currencies`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `currencies` (
  `id` varchar(3) NOT NULL,
  `name` varchar(60) NOT NULL DEFAULT '',
  `symbol` varchar(10) NOT NULL DEFAULT '',
  `price_round` smallint(6) DEFAULT 0,
  `price_round_order` smallint(6) DEFAULT 0,
  `price_round_direction` enum('up','down','math') DEFAULT NULL,
  `price_precision` varchar(20) DEFAULT '',
  `price_decimal_mark` varchar(1) NOT NULL DEFAULT '',
  `rate` decimal(15,8) NOT NULL,
  `sync` enum('Y','N') NOT NULL DEFAULT 'N',
  `corrections` decimal(15,8) NOT NULL DEFAULT 0.00000000,
  `sync_date_update` datetime DEFAULT NULL,
  `bata` float DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `currencies`
--

LOCK TABLES `currencies` WRITE;
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
INSERT INTO `currencies` VALUES
('CZK','Česká koruna','Kč',100,0,'math','0',',',1.00000000,'N',0.00000000,NULL,NULL,NULL),
('EUR','Euro','€',5,5,'math','2',',',26.00000000,'Y',0.00000000,NULL,NULL,NULL);
/*!40000 ALTER TABLE `currencies` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_pricelists`
--

DROP TABLE IF EXISTS `delivery_pricelists`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_pricelists` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_currency` varchar(3) DEFAULT NULL,
  `name` varchar(60) NOT NULL,
  `on_max_weight` enum('divide','forbid') DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_36148A20398D64AA` (`id_currency`),
  CONSTRAINT `FK_36148A20398D64AA` FOREIGN KEY (`id_currency`) REFERENCES `currencies` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_pricelists`
--

LOCK TABLES `delivery_pricelists` WRITE;
/*!40000 ALTER TABLE `delivery_pricelists` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_pricelists` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_pricelists_prices`
--

DROP TABLE IF EXISTS `delivery_pricelists_prices`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_pricelists_prices` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_pricelist` int(11) DEFAULT NULL,
  `id_weightgroup` int(11) DEFAULT NULL,
  `id_region` int(11) DEFAULT NULL,
  `price` decimal(15,4) DEFAULT NULL COMMENT '(DC2Type:decimal)',
  PRIMARY KEY (`id`),
  KEY `IDX_2D4E12C7DCFA564A` (`id_pricelist`),
  KEY `IDX_2D4E12C73AA4948F` (`id_weightgroup`),
  KEY `IDX_2D4E12C72955449B` (`id_region`),
  CONSTRAINT `FK_2D4E12C72955449B` FOREIGN KEY (`id_region`) REFERENCES `delivery_pricelists_regions` (`id`),
  CONSTRAINT `FK_2D4E12C73AA4948F` FOREIGN KEY (`id_weightgroup`) REFERENCES `delivery_pricelists_weight_groups` (`id`),
  CONSTRAINT `FK_2D4E12C7DCFA564A` FOREIGN KEY (`id_pricelist`) REFERENCES `delivery_pricelists` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_pricelists_prices`
--

LOCK TABLES `delivery_pricelists_prices` WRITE;
/*!40000 ALTER TABLE `delivery_pricelists_prices` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_pricelists_prices` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_pricelists_regions`
--

DROP TABLE IF EXISTS `delivery_pricelists_regions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_pricelists_regions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(60) NOT NULL,
  `id_pricelist` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_B51942CFDCFA564A` (`id_pricelist`),
  CONSTRAINT `FK_B51942CFDCFA564A` FOREIGN KEY (`id_pricelist`) REFERENCES `delivery_pricelists` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_pricelists_regions`
--

LOCK TABLES `delivery_pricelists_regions` WRITE;
/*!40000 ALTER TABLE `delivery_pricelists_regions` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_pricelists_regions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_pricelists_regions_countries`
--

DROP TABLE IF EXISTS `delivery_pricelists_regions_countries`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_pricelists_regions_countries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_pricelist` int(11) DEFAULT NULL,
  `id_region` int(11) DEFAULT NULL,
  `id_country` varchar(10) DEFAULT NULL,
  `delivery_time_min` int(11) DEFAULT NULL,
  `delivery_time_max` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_78937E1ADCFA564A` (`id_pricelist`),
  KEY `IDX_78937E1A2955449B` (`id_region`),
  KEY `IDX_78937E1A8DEE6016` (`id_country`),
  CONSTRAINT `FK_78937E1A2955449B` FOREIGN KEY (`id_region`) REFERENCES `delivery_pricelists_regions` (`id`),
  CONSTRAINT `FK_78937E1A8DEE6016` FOREIGN KEY (`id_country`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_78937E1ADCFA564A` FOREIGN KEY (`id_pricelist`) REFERENCES `delivery_pricelists` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_pricelists_regions_countries`
--

LOCK TABLES `delivery_pricelists_regions_countries` WRITE;
/*!40000 ALTER TABLE `delivery_pricelists_regions_countries` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_pricelists_regions_countries` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_pricelists_weight_groups`
--

DROP TABLE IF EXISTS `delivery_pricelists_weight_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_pricelists_weight_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `max_weight` float DEFAULT NULL,
  `id_pricelist` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_CF301B2DCFA564A` (`id_pricelist`),
  CONSTRAINT `FK_CF301B2DCFA564A` FOREIGN KEY (`id_pricelist`) REFERENCES `delivery_pricelists` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_pricelists_weight_groups`
--

LOCK TABLES `delivery_pricelists_weight_groups` WRITE;
/*!40000 ALTER TABLE `delivery_pricelists_weight_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_pricelists_weight_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_type`
--

DROP TABLE IF EXISTS `delivery_type`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_type` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  `id_delivery` int(11) NOT NULL,
  `id_payment` int(11) NOT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  `vat` int(11) unsigned NOT NULL DEFAULT 1,
  `price_dont_countin_from` decimal(15,4) DEFAULT NULL,
  `format` varchar(20) DEFAULT NULL,
  `figure` enum('Y','N','','') NOT NULL DEFAULT 'Y',
  `description` longtext DEFAULT NULL,
  `payment_class` varchar(20) DEFAULT NULL,
  `price_dont_countin_from_reg` decimal(15,4) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_delivery` (`id_delivery`),
  KEY `id_payment` (`id_payment`),
  KEY `IDX_5D429FB3398D64AA` (`currency`),
  KEY `delivery_type_vats_id_fk` (`vat`),
  CONSTRAINT `FK_5D429FB3398D64AA` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `delivery_type_ibfk_1` FOREIGN KEY (`id_delivery`) REFERENCES `delivery_type_delivery` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `delivery_type_ibfk_2` FOREIGN KEY (`id_payment`) REFERENCES `delivery_type_payment` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `delivery_type_vats_id_fk` FOREIGN KEY (`vat`) REFERENCES `vats` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='zpusoby doruceni objednaneho zbozi' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_type`
--

LOCK TABLES `delivery_type` WRITE;
/*!40000 ALTER TABLE `delivery_type` DISABLE KEYS */;
INSERT INTO `delivery_type` VALUES
(1,'CZK',3,3,0.0000,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(2,'CZK',1,2,57.9830,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(3,'CZK',2,2,100.8400,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(4,'CZK',4,1,90.0000,2,2000.0000,NULL,'Y',NULL,NULL,NULL,NULL),
(5,'CZK',1,1,NULL,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(6,'CZK',2,2,NULL,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(7,'CZK',3,3,NULL,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(8,'CZK',4,4,NULL,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL),
(9,'CZK',4,5,NULL,1,NULL,NULL,'Y',NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `delivery_type` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_type_delivery`
--

DROP TABLE IF EXISTS `delivery_type_delivery`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_type_delivery` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) DEFAULT 0,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  `name` varchar(50) NOT NULL,
  `name_admin` varchar(100) DEFAULT NULL,
  `price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `photo` varchar(50) DEFAULT NULL,
  `class` varchar(50) DEFAULT NULL,
  `time_days` int(11) DEFAULT NULL,
  `time_hours` time DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `currencies` varchar(200) DEFAULT NULL,
  `id_pricelist` int(11) DEFAULT NULL,
  `price_registered` decimal(15,4) DEFAULT NULL,
  `price_dont_countin_from` decimal(15,4) DEFAULT NULL,
  `price_dont_countin_from_reg` decimal(15,4) DEFAULT NULL,
  `cart_description` longtext DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `date_updated` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `price_buy` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name_admin` (`name_admin`),
  KEY `id_pricelist` (`id_pricelist`),
  KEY `IDX_FD8C8C0C398D64AA` (`currency`),
  CONSTRAINT `FK_FD8C8C0C398D64AA` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON DELETE CASCADE,
  CONSTRAINT `id_pricelist` FOREIGN KEY (`id_pricelist`) REFERENCES `delivery_pricelists` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_type_delivery`
--

LOCK TABLES `delivery_type_delivery` WRITE;
/*!40000 ALTER TABLE `delivery_type_delivery` DISABLE KEYS */;
INSERT INTO `delivery_type_delivery` VALUES
(1,1,'CZK','Česká pošta',NULL,10.0000,NULL,'BalikDoRuky',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(2,1,'CZK','Kurýrem',NULL,20.0000,NULL,'DPD',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(3,1,'CZK','Osobní odběr',NULL,30.0000,NULL,'OsobniOdber',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(4,1,'CZK','platba řidiči',NULL,40.0000,NULL,'GLS',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL);
/*!40000 ALTER TABLE `delivery_type_delivery` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_delivery_type_delivery BEFORE INSERT ON delivery_type_delivery
    FOR EACH ROW
BEGIN
    IF (NEW.position = 0) THEN
        SET NEW.position = ((SELECT MAX(position) FROM delivery_type_delivery) + 1);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `delivery_type_delivery_translations`
--

DROP TABLE IF EXISTS `delivery_type_delivery_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_type_delivery_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_delivery_type_delivery` int(11) DEFAULT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `cart_description` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `dtdt_id_language_id_delivery_type_delivery_uindex` (`id_language`,`id_delivery_type_delivery`),
  KEY `id_delivery_type_delivery` (`id_delivery_type_delivery`),
  CONSTRAINT `delivery_type_delivery_translations_ibfk_1` FOREIGN KEY (`id_delivery_type_delivery`) REFERENCES `delivery_type_delivery` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_type_delivery_translations`
--

LOCK TABLES `delivery_type_delivery_translations` WRITE;
/*!40000 ALTER TABLE `delivery_type_delivery_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_type_delivery_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_type_payment`
--

DROP TABLE IF EXISTS `delivery_type_payment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_type_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) DEFAULT 0,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  `name` varchar(50) NOT NULL,
  `name_admin` varchar(100) DEFAULT NULL,
  `price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `class` varchar(20) DEFAULT NULL,
  `photo` varchar(50) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `cart_description` longtext DEFAULT NULL,
  `date_updated` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `price_buy` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name_admin` (`name_admin`),
  KEY `IDX_DA8A12FC398D64AA` (`currency`),
  CONSTRAINT `FK_DA8A12FC398D64AA` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_type_payment`
--

LOCK TABLES `delivery_type_payment` WRITE;
/*!40000 ALTER TABLE `delivery_type_payment` DISABLE KEYS */;
INSERT INTO `delivery_type_payment` VALUES
(1,1,'CZK','dobírka PPL',NULL,10.0000,NULL,NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(2,1,'CZK','Dobírkou',NULL,20.0000,'Dobirka',NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(3,1,'CZK','Hotově',NULL,30.0000,'Hotovost',NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(4,1,'CZK','ThePay',NULL,40.0000,'ThePay',NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL),
(5,1,'CZK','Bankovní převod',NULL,0.0000,'Prevodem',NULL,NULL,NULL,NULL,'2023-10-03 11:51:09',NULL);
/*!40000 ALTER TABLE `delivery_type_payment` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_delivery_type_payment BEFORE INSERT ON delivery_type_payment
    FOR EACH ROW
BEGIN
    IF (NEW.position = 0) THEN
        SET NEW.position = ((SELECT MAX(position) FROM delivery_type_payment) + 1);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `delivery_type_payment_translations`
--

DROP TABLE IF EXISTS `delivery_type_payment_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_type_payment_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_delivery_type_payment` int(11) DEFAULT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `cart_description` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `dtpt_id_language_id_delivery_type_payment_uindex` (`id_language`,`id_delivery_type_payment`),
  KEY `id_delivery_type_payment` (`id_delivery_type_payment`),
  CONSTRAINT `delivery_type_payment_translations_ibfk_1` FOREIGN KEY (`id_delivery_type_payment`) REFERENCES `delivery_type_payment` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_type_payment_translations`
--

LOCK TABLES `delivery_type_payment_translations` WRITE;
/*!40000 ALTER TABLE `delivery_type_payment_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_type_payment_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `delivery_type_translations`
--

DROP TABLE IF EXISTS `delivery_type_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `delivery_type_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_delivery_type` int(10) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `delivery_type_translations_id_delivery_type_id_language_uindex` (`id_delivery_type`,`id_language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `delivery_type_translations`
--

LOCK TABLES `delivery_type_translations` WRITE;
/*!40000 ALTER TABLE `delivery_type_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `delivery_type_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `discounts`
--

DROP TABLE IF EXISTS `discounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discounts` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `descr` mediumtext NOT NULL,
  `apply` enum('order','product') NOT NULL DEFAULT 'order',
  `condition_type` enum('price','pieces','date','coupon','order','product','points','generate_coupon') NOT NULL DEFAULT 'price',
  `compare_sign` enum('lt=','gt=','=') NOT NULL DEFAULT '=',
  `condition_value` varchar(19) NOT NULL DEFAULT '0',
  `discount` varchar(50) DEFAULT NULL,
  `unit` enum('perc','price','product','pricelevel') NOT NULL DEFAULT 'perc',
  `compatible` enum('Y','N') NOT NULL DEFAULT 'N',
  `to_who` set('dealer','user','reg') NOT NULL DEFAULT 'user',
  `date_from` datetime DEFAULT NULL,
  `date_to` varchar(19) DEFAULT NULL,
  `uses_count` int(11) NOT NULL DEFAULT 0,
  `uses_max` int(11) NOT NULL DEFAULT -1,
  `min_price` int(11) DEFAULT NULL,
  `languages` longtext DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `date_added` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=148 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tab. slev v eshopu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `discounts`
--

LOCK TABLES `discounts` WRITE;
/*!40000 ALTER TABLE `discounts` DISABLE KEYS */;
INSERT INTO `discounts` VALUES
(1,'Sleva 100 korun','order','coupon','=','123456789','100','price','Y','user,reg','2013-07-09 09:57:45','',1,-1,NULL,NULL,NULL,'2000-01-01 00:00:00');
/*!40000 ALTER TABLE `discounts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `discounts_coupons`
--

DROP TABLE IF EXISTS `discounts_coupons`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discounts_coupons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_discount` int(10) unsigned NOT NULL,
  `code` varchar(25) NOT NULL,
  `date_from` datetime DEFAULT NULL,
  `date_activated` datetime DEFAULT NULL,
  `date_to` datetime DEFAULT NULL,
  `id_order_purchased` int(10) unsigned DEFAULT NULL,
  `id_order_used` int(10) unsigned DEFAULT NULL,
  `id_order_item` int(10) unsigned DEFAULT NULL,
  `used` enum('Y','N') NOT NULL DEFAULT 'N',
  `data` mediumtext DEFAULT NULL,
  `id_user` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `discounts_coupons_code_uindex` (`code`),
  KEY `id_order_purchased` (`id_order_purchased`),
  KEY `id_order_used` (`id_order_used`),
  KEY `id_order_item` (`id_order_item`),
  KEY `id_discount` (`id_discount`),
  KEY `FK_discounts_coupons_user` (`id_user`),
  CONSTRAINT `FK_discounts_coupons_user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `discounts_coupons_ibfk_1` FOREIGN KEY (`id_order_purchased`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `discounts_coupons_ibfk_2` FOREIGN KEY (`id_order_used`) REFERENCES `orders` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `discounts_coupons_ibfk_3` FOREIGN KEY (`id_order_item`) REFERENCES `order_items` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `discounts_coupons_ibfk_4` FOREIGN KEY (`id_discount`) REFERENCES `discounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `discounts_coupons`
--

LOCK TABLES `discounts_coupons` WRITE;
/*!40000 ALTER TABLE `discounts_coupons` DISABLE KEYS */;
/*!40000 ALTER TABLE `discounts_coupons` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `dropshipment`
--

DROP TABLE IF EXISTS `dropshipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dropshipment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` enum('expando','generic','heureka','mall','baselinker','channable') NOT NULL,
  `source_url` varchar(255) NOT NULL,
  `name` varchar(50) NOT NULL,
  `active` tinyint(4) DEFAULT 1,
  `configuration` longtext DEFAULT NULL,
  `transformation` longtext DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `last_sync` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `dropshipment`
--

LOCK TABLES `dropshipment` WRITE;
/*!40000 ALTER TABLE `dropshipment` DISABLE KEYS */;
/*!40000 ALTER TABLE `dropshipment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `eet_sent_payment`
--

DROP TABLE IF EXISTS `eet_sent_payment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `eet_sent_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order` int(10) unsigned DEFAULT NULL,
  `id_payment` int(11) DEFAULT NULL,
  `date_sent` datetime NOT NULL,
  `date_confirmed` datetime DEFAULT NULL,
  `fik` varchar(39) DEFAULT NULL,
  `bkp` varchar(44) DEFAULT NULL,
  `pkp` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_6F574BCB1BACD2A8` (`id_order`),
  KEY `IDX_6F574BCBB3B52D7D` (`id_payment`),
  CONSTRAINT `FK_6F574BCB1BACD2A8` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_6F574BCBB3B52D7D` FOREIGN KEY (`id_payment`) REFERENCES `order_payments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `eet_sent_payment`
--

LOCK TABLES `eet_sent_payment` WRITE;
/*!40000 ALTER TABLE `eet_sent_payment` DISABLE KEYS */;
/*!40000 ALTER TABLE `eet_sent_payment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `emails`
--

DROP TABLE IF EXISTS `emails`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `emails` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_status` int(11) DEFAULT NULL,
  `type` varchar(250) NOT NULL,
  `position` int(11) DEFAULT NULL,
  `body` mediumtext NOT NULL,
  `subject` varchar(250) DEFAULT NULL,
  `name` varchar(250) NOT NULL DEFAULT '',
  `email` varchar(250) DEFAULT NULL,
  `sms` mediumtext DEFAULT NULL,
  `attachments` longtext DEFAULT NULL,
  `enabled` enum('Y','N') NOT NULL DEFAULT 'Y',
  `system_msg` enum('Y','N') NOT NULL DEFAULT 'N',
  PRIMARY KEY (`id`),
  UNIQUE KEY `emails_type_name_uindex` (`type`,`name`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `emails`
--

LOCK TABLES `emails` WRITE;
/*!40000 ALTER TABLE `emails` DISABLE KEYS */;
INSERT INTO `emails` VALUES
(1,1,'ORDER_MESSAGE',NULL,'<p>potvrzujeme Vaši objednávku.</p><p>Do dvou dnů budeme vaši objednávku expedovat.</p>','Demo Kupshop.cz - objednávka {KOD} se zpracovává','Je třeba objednat zboží',NULL,NULL,NULL,'Y','N'),
(2,1,'ORDER_MESSAGE',NULL,'<p>potvrzujeme Vaši objednávku.</p><p>Vše máme skladem a ještě dnes odešleme. Obdržíte email s detaily doručení.</p>','Demo Kupshop.cz - objednávka {KOD} se zpracovává','Vše skladem',NULL,NULL,NULL,'Y','N'),
(3,2,'ORDER_MESSAGE',NULL,'<p>zboží je připraveno k osobnímu převzetí na adrese:</p><p>adresa<br>\r\nadresa<br>\r\nadresa</p><p>od 8:00 do 15:00</p>','Demo Kupshop.cz - objednávka {KOD} je připravna k osobnímu předání','Osobní předání',NULL,NULL,NULL,'Y','N'),
(4,2,'ORDER_MESSAGE',NULL,'<p><strong>Objednávka odeslána obchodním balíkem české pošty.</strong><br>\r\nBalík u Vás bude následující pracovní den.<br><br>\r\nPolohu můžete sledovat na <a href=\"http://www.ceskaposta.cz/cz/nastroje/sledovani-zasilky.php?barcode={Číslo balíku}&amp;locale=CZ&amp;send.x=52&amp;send.y=8&amp;send=submit&amp;go=ok\">Sledování zásilek České Pošty</a><br><br><strong>Číslo balíku: {Číslo balíku}<br>\r\nDatum: {DATUM} {CAS}<br>\r\nDobírka: {CENA}</strong></p><p>V případě, že již nyní víte, že Vám výše uvedená doručovací doba nevyhovuje, navštivte webové stránky <a href=\"http://formulare.cpost.cz\">http://formulare.cpost.cz</a>, kde si můžete jednoduchým způsobem nastavit změnu času, místa nebo den doručení.</p>','Demo Kupshop.cz - objednávka {KOD} byla odeslána','Česká Pošta',NULL,NULL,NULL,'Y','N'),
(5,2,'ORDER_MESSAGE',NULL,'<p><strong>Objednávka odeslána obchodním balíkem české pošty.</strong><br>\r\nBalík u Vás bude následující pracovní den.<br><br>\r\nPolohu můžete sledovat na <a href=\"http://www.ceskaposta.cz/cz/nastroje/sledovani-zasilky.php?barcode={Číslo balíku}&amp;locale=CZ&amp;send.x=52&amp;send.y=8&amp;send=submit&amp;go=ok\">Sledování zásilek České Pošty</a> - doplnit sledovani<br><br><strong>Číslo balíku: {Číslo balíku}<br>\r\nDatum: {DATUM} {CAS}<br>\r\nDobírka: {CENA}</strong></p>','Demo Kupshop.cz - objednávka {KOD} byla odeslána','Kurýr',NULL,NULL,NULL,'Y','N'),
(6,NULL,'ORDER_CREATE',NULL,'<p>děkujeme, že jste projevili zájem o naše produkty.<br>\r\nJakmile bude objednávka přijata obchodníkem, bude informováni dalším potvrzovacím emailem.</p><p>Objednávka číslo: <strong>{KOD}</strong><br>\r\nInformace o průběhu zpracování objednávky naleznete <a href=\"{ODKAZ}\">zde</a>.</p>','Demo Kupshop.cz - přijata objednávka {KOD}','',NULL,NULL,NULL,'Y','N'),
(7,NULL,'BASIC_TEMPLATE',NULL,'<p>Dobrý den,</p>\r\n\r\n<p>{EMAIL}</p>\r\n\r\n<p><img src=\"/templates/images/logo.png\" style=\"border-width: 0px; border-style: solid; width: 276px; height: 51px;\" /><br />\r\n<a href=\"http://www.kupshop.cz\">www.kupshop.cz</a><br />\r\ne-mail: <a href=\"mailto:info@kupshop.cz\">info@kupshop.cz</a></p>\r\n','Šablona emailu','','info@kupshop.cz',NULL,NULL,'Y','N'),
(8,NULL,'ORDER_STATUS_CHANGE',NULL,'<p>stav Vaší objednávky číslo <strong>{KOD}</strong> byl změněn na <strong>{STAV}</strong>.</p><p>{KOMENTAR}</p>','Demo Kupshop.cz - změna stavu objednávky {KOD}','',NULL,NULL,NULL,'Y','N'),
(9,NULL,'USER_REGISTER',0,'<p>děkujeme Vám za registraci v našem e-shopu.</p>\n<p>Vaše přihlašovací jméno je <strong>{EMAIL_UZIVATELE}</strong> a heslo jste si zvolili při registraci.</p>\n<p>Nezapomeňte, že jsme tu pro Vás, a můžete se na nás kdykoliv obrátit.</p>\n','Registrace','',NULL,NULL,NULL,'Y','N');
/*!40000 ALTER TABLE `emails` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_emails BEFORE INSERT ON emails
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT  COALESCE(MAX(position) + 1, 0) FROM emails);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `emails_translations`
--

DROP TABLE IF EXISTS `emails_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `emails_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_email` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `subject` varchar(250) DEFAULT NULL,
  `body` mediumtext DEFAULT NULL,
  `email` varchar(250) DEFAULT NULL,
  `sms` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `emails_translations_id_email_id_language_uindex` (`id_email`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `emails_translations_ibfk_1` FOREIGN KEY (`id_email`) REFERENCES `emails` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `emails_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `emails_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `emails_translations`
--

LOCK TABLES `emails_translations` WRITE;
/*!40000 ALTER TABLE `emails_translations` DISABLE KEYS */;
INSERT INTO `emails_translations` VALUES
(1,9,'sk',NULL,'2020-07-01 15:12:14',NULL,'Registrácia','<p>!děkujeme Vám za registraci v našem e-shopu.!</p>\n<p>!Vaše přihlašovací jméno je <strong>{EMAIL_UZIVATELE}</strong> a heslo jste si zvolili při registraci.!</p>\n<p>!Nezapomeňte, že jsme tu pro Vás, a můžete se na nás kdykoliv obrátit.!</p>\n',NULL,NULL);
/*!40000 ALTER TABLE `emails_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `feed_map_phrases`
--

DROP TABLE IF EXISTS `feed_map_phrases`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `feed_map_phrases` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_feed_map` int(10) unsigned NOT NULL,
  `original` varchar(255) NOT NULL,
  `description` varchar(255) NOT NULL DEFAULT '',
  `mapped` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_feed_map_original_uindex` (`id_feed_map`,`original`),
  CONSTRAINT `feed_map_phrases_ibfk_1` FOREIGN KEY (`id_feed_map`) REFERENCES `feed_maps` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `feed_map_phrases`
--

LOCK TABLES `feed_map_phrases` WRITE;
/*!40000 ALTER TABLE `feed_map_phrases` DISABLE KEYS */;
/*!40000 ALTER TABLE `feed_map_phrases` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `feed_maps`
--

DROP TABLE IF EXISTS `feed_maps`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `feed_maps` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `feed_maps_name_uindex` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `feed_maps`
--

LOCK TABLES `feed_maps` WRITE;
/*!40000 ALTER TABLE `feed_maps` DISABLE KEYS */;
/*!40000 ALTER TABLE `feed_maps` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `feed_products`
--

DROP TABLE IF EXISTS `feed_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `feed_products` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_feed` int(10) unsigned NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_section` int(11) DEFAULT NULL,
  `active` tinyint(1) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `cpc` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `feed_products_id_feed_id_product_uindex` (`id_feed`,`id_product`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `feed_products_ibfk_1` FOREIGN KEY (`id_feed`) REFERENCES `feeds` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `feed_products_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `feed_products`
--

LOCK TABLES `feed_products` WRITE;
/*!40000 ALTER TABLE `feed_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `feed_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `feeds`
--

DROP TABLE IF EXISTS `feeds`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `feeds` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_language` varchar(2) DEFAULT NULL,
  `id_currency` varchar(3) DEFAULT NULL,
  `id_country` varchar(10) DEFAULT NULL,
  `type` varchar(255) NOT NULL,
  `name` varchar(50) NOT NULL,
  `active` tinyint(1) DEFAULT 0,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `regenerated` datetime DEFAULT NULL,
  `last_download` datetime DEFAULT NULL,
  `expensive` tinyint(1) NOT NULL DEFAULT 0,
  `restrict_ip` tinyint(1) DEFAULT 0,
  `template` longtext DEFAULT NULL,
  `hash` varchar(60) DEFAULT NULL,
  `settings` longtext DEFAULT NULL,
  `only_feed_products` enum('Y','N') DEFAULT 'N',
  `report` longtext DEFAULT NULL,
  `section_mapping` varchar(255) NOT NULL DEFAULT '',
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_language` (`id_language`),
  KEY `id_currency` (`id_currency`),
  KEY `id_country` (`id_country`),
  CONSTRAINT `feeds_ibfk_1` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `feeds_ibfk_2` FOREIGN KEY (`id_currency`) REFERENCES `currencies` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `feeds_ibfk_3` FOREIGN KEY (`id_country`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `feeds`
--

LOCK TABLES `feeds` WRITE;
/*!40000 ALTER TABLE `feeds` DISABLE KEYS */;
/*!40000 ALTER TABLE `feeds` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `global_discounts`
--

DROP TABLE IF EXISTS `global_discounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `global_discounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) DEFAULT NULL,
  `name` varchar(60) NOT NULL,
  `discount` decimal(15,4) DEFAULT 0.0000,
  `filter` longtext DEFAULT NULL,
  `date_from` datetime DEFAULT NULL,
  `date_to` datetime DEFAULT NULL,
  `active` tinyint(4) DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `global_discounts`
--

LOCK TABLES `global_discounts` WRITE;
/*!40000 ALTER TABLE `global_discounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `global_discounts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `import`
--

DROP TABLE IF EXISTS `import`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `import` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `id_supplier` int(11) NOT NULL,
  `source` longtext DEFAULT NULL,
  `type` int(11) NOT NULL,
  `transformation` longtext DEFAULT NULL,
  `last_sync` datetime DEFAULT NULL,
  `last_count` int(11) DEFAULT NULL,
  `interval` decimal(5,2) NOT NULL,
  `add_new` tinyint(1) NOT NULL,
  `delete_old` decimal(5,2) DEFAULT NULL,
  `params` varchar(200) DEFAULT NULL,
  `modify_in_store` tinyint(1) NOT NULL,
  `pair` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  KEY `id_supplier` (`id_supplier`),
  CONSTRAINT `import_ibfk_1` FOREIGN KEY (`id_supplier`) REFERENCES `suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `import`
--

LOCK TABLES `import` WRITE;
/*!40000 ALTER TABLE `import` DISABLE KEYS */;
INSERT INTO `import` VALUES
(13,'Obecný Import',2,NULL,1,'<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n\n    <xsl:template match=\"/\">\n        <SHOP>\n            <xsl:for-each select=\"xml/item\">\n                <xsl:variable name=\"code\">\n                    <xsl:value-of select=\"current()/kod\"/>\n                </xsl:variable>\n                <xsl:variable name=\"oldCode\">\n                    <xsl:value-of select=\"preceding-sibling::*[1]/kod\"/>\n                </xsl:variable>\n                <xsl:if test=\"string-length($code) > 0 and not($code = $oldCode)\">\n                    <SHOPITEM>\n                        <CODE>\n                            <xsl:value-of select=\"$code\"/>\n                        </CODE>\n                        <PRODUCT_CODE>\n                            <xsl:value-of select=\"$code\"/>\n                        </PRODUCT_CODE>\n                        <xsl:if test=\"nazev\">\n                            <PRODUCT>\n                                <xsl:value-of select=\"nazev\"/>\n                            </PRODUCT>\n                        </xsl:if>\n                        <xsl:if test=\"kategorie\">\n                            <CATEGORY>\n                                <xsl:value-of select=\"kategorie\"/>\n                            </CATEGORY>\n                        </xsl:if>\n                        <xsl:if test=\"popis-1\">\n                            <SHORT_DESCRIPTION>\n                                <xsl:value-of select=\"popis-1\"/>\n                            </SHORT_DESCRIPTION>\n                        </xsl:if>\n                        <xsl:if test=\"popis-2\">\n                            <DESCRIPTION>\n                                <xsl:value-of select=\"popis-2\"/>\n                            </DESCRIPTION>\n                        </xsl:if>\n                        <xsl:call-template name=\"getPrice\"/>\n                        <xsl:call-template name=\"getCommonPrice\"/>\n                        <xsl:call-template name=\"getVat\"/>\n                        <xsl:call-template name=\"getDiscount\"/>\n                        <xsl:if test=\"zaruka-mes\">\n                            <PRODUCER>\n                                <xsl:value-of select=\"vyrobce\"/>\n                            </PRODUCER>\n                        </xsl:if>\n                        <xsl:if test=\"zaruka-mes\">\n                            <WARRANTY>\n                                <xsl:value-of select=\"zaruka-mes\"/>\n                            </WARRANTY>\n                        </xsl:if>\n                        <SHOW_IN_FEED>\n                            <xsl:if test=\"string(zobrazovat-ve-srovnavacich) = \'ne\'\">0</xsl:if>\n                            <xsl:if test=\"not(string(zobrazovat-ve-srovnavacich) = \'ne\')\">1</xsl:if>\n                        </SHOW_IN_FEED>\n                        <xsl:if test=\"cena-za-proklik-kc\">\n                            <MAX_CPC>\n                                <xsl:value-of select=\"cena-za-proklik-kc\"/>\n                            </MAX_CPC>\n                        </xsl:if>\n                        <xsl:call-template name=\"getParameters\"/>\n                        <xsl:variable name=\"varCnt\"\n                                      select=\"count(*[substring(name(),1, 8) = \'varianta\' and not(normalize-space(text()) = \'\')])\"/>\n                        <xsl:if test=\"not($varCnt = 0)\">\n                            <VARIATIONS>\n                                <xsl:call-template name=\"getVariations\">\n                                    <xsl:with-param name=\"parentCode\" select=\"$code\"/>\n                                    <xsl:with-param name=\"rootElement\" select=\"/xml/item\"/>\n                                </xsl:call-template>\n                            </VARIATIONS>\n                        </xsl:if>\n                        <xsl:if test=\"$varCnt = 0\">\n                            <xsl:if test=\"string-length(kod-ean) >= 8\">\n                                <EAN>\n                                    <xsl:value-of select=\"kod-ean\"/>\n                                </EAN>\n                            </xsl:if>\n                            <IN_STORE>\n                                <xsl:value-of select=\"skladem-ks\"/>\n                            </IN_STORE>\n                            <AVAILABILITY>\n                                <xsl:value-of select=\"dostupnost\"/>\n                            </AVAILABILITY>\n                            <xsl:if test=\"string-length(fotografie) > 0\">\n                                <PHOTOS>\n                                    <PHOTO>\n                                        <xsl:value-of select=\"fotografie\"/>\n                                    </PHOTO>\n                                </PHOTOS>\n                            </xsl:if>\n                        </xsl:if>\n                    </SHOPITEM>\n                </xsl:if>\n            </xsl:for-each>\n        </SHOP>\n    </xsl:template>\n\n\n    <!-- ___________________________________________________________________________________________________________ -->\n    <xsl:template name=\"getVat\">\n        <xsl:if test=\"number(sazba-dph) > 0\">\n            <VAT>\n                <xsl:value-of select=\"sazba-dph\"/>\n            </VAT>\n        </xsl:if>\n        <xsl:if test=\"not(number(sazba-dph) > 0)\">\n            <xsl:if test=\"number(cena-s-dph-kc) > number(cena-bez-dph-kc)\">\n                <VAT>\n                    <xsl:value-of select=\"number(cena-s-dph-kc) div number(cena-bez-dph-kc) * 100\"/>\n                </VAT>\n            </xsl:if>\n        </xsl:if>\n    </xsl:template>\n\n\n    <!-- ___________________________________________________________________________________________________________ -->\n    <xsl:template name=\"getPrice\">\n        <xsl:if test=\"number(cena-bez-dph-kc) > 0\">\n            <PRICE>\n                <xsl:value-of select=\"cena-bez-dph-kc\"/>\n            </PRICE>\n        </xsl:if>\n        <xsl:if test=\"not(number(cena-bez-dph-kc) > 0)\">\n            <xsl:if test=\"number(sazba-dph) > 0 and number(cena-s-dph-kc) > 0\">\n                <PRICE>\n                    <xsl:value-of select=\"100 div (100 + number(sazba-dph)) * number(cena-s-dph-kc)\"/>\n                </PRICE>\n            </xsl:if>\n        </xsl:if>\n    </xsl:template>\n\n\n    <!-- ___________________________________________________________________________________________________________ -->\n    <xsl:template name=\"getCommonPrice\">\n        <xsl:if test=\"number(bezna-cena-s-dph-kc) > 0\">\n            <PRICE_COMMON>\n                <xsl:value-of select=\"bezna-cena-s-dph-kc\"/>\n            </PRICE_COMMON>\n        </xsl:if>\n        <xsl:if test=\"not(number(bezna-cena-s-dph-kc) > 0)\">\n            <xsl:if test=\"number(sazba-dph) > 0 and number(bezna-cena-bez-dph-kc) > 0\">\n                <PRICE_COMMON>\n                    <xsl:value-of select=\"number(bezna-cena-bez-dph-kc) * (100 + number(sazba-dph)) div 100\"/>\n                </PRICE_COMMON>\n            </xsl:if>\n        </xsl:if>\n    </xsl:template>\n\n\n    <!-- ___________________________________________________________________________________________________________ -->\n    <xsl:template name=\"getDiscount\">\n        <xsl:if test=\"number(sleva) > 0\">\n            <DISCOUNT>\n                <xsl:value-of select=\"sleva\"/>\n            </DISCOUNT>\n        </xsl:if>\n        <xsl:if test=\"not(number(sleva) > 0)\">\n            <xsl:if test=\"number(cena-po-sleve-bez-dph-kc) > 0 and number(cena-bez-dph-kc) > 0\">\n                <DISCOUNT>\n                    <xsl:value-of select=\"(1 - number(cena-po-sleve-bez-dph-kc) div number(cena-bez-dph-kc)) * 100\"/>\n                </DISCOUNT>\n            </xsl:if>\n            <xsl:if test=\"not(number(cena-po-sleve-bez-dph-kc) > 0 and number(cena-bez-dph-kc) > 0)\">\n                <xsl:if test=\"number(cena-po-sleve-s-dph-kc) > 0 and number(cena-s-dph-kc) > 0\">\n                    <DISCOUNT>\n                        <xsl:value-of select=\"(1 - number(cena-po-sleve-s-dph-kc) div number(cena-s-dph-kc)) * 100\"/>\n                    </DISCOUNT>\n                </xsl:if>\n            </xsl:if>\n        </xsl:if>\n    </xsl:template>\n\n\n    <!-- ___________________________________________________________________________________________________________ -->\n    <xsl:template name=\"getParameters\">\n        <xsl:for-each\n                select=\"*[substring(name(),1, 8) = \'parametr\' and not(normalize-space(text()) = \'\')]\">\n            <PARAMETER>\n                <xsl:variable name=\"tagName\" select=\"name()\"/>\n                <xsl:attribute name=\"name\">\n                    <xsl:value-of\n                            select=\"normalize-space(substring(/xml/head/*[name() = $tagName][1], 10))\"/>\n                </xsl:attribute>\n                <xsl:value-of select=\"text()\"/>\n            </PARAMETER>\n        </xsl:for-each>\n    </xsl:template>\n\n\n    <!-- ___________________________________________________________________________________________________________ -->\n    <xsl:template name=\"getVariations\">\n        <xsl:param name=\"parentCode\"/>\n        <xsl:param name=\"rootElement\"/>\n        <xsl:for-each select=\"$rootElement[kod=$parentCode]\">\n            <VARIATION>\n                <CODE>\n                    <xsl:if test=\"normalize-space(kod-ean) = \'\'\">\n                        <xsl:value-of select=\"concat(kod,\'_\',position(),\'_U\')\"/>\n                    </xsl:if>\n                    <xsl:if test=\"not(normalize-space(kod-ean) = \'\')\">\n                        <xsl:value-of select=\"concat(kod,\'_\',kod-ean,\'_U\')\"/>\n                    </xsl:if>\n                </CODE>\n                <xsl:if test=\"string-length(kod-ean) >= 8\">\n                    <EAN>\n                        <xsl:value-of select=\"kod-ean\"/>\n                    </EAN>\n                </xsl:if>\n                <xsl:for-each select=\"*[substring(name(),1, 8) = \'varianta\' and not(normalize-space(text()) = \'\')]\">\n                    <LABEL>\n                        <xsl:variable name=\"tagName\" select=\"name()\"/>\n                        <xsl:attribute name=\"name\">\n                            <xsl:value-of select=\"normalize-space(substring(/xml/head/*[name() = $tagName][1], 10))\"/>\n                        </xsl:attribute>\n                        <xsl:value-of select=\"text()\"/>\n                    </LABEL>\n                </xsl:for-each>\n                <IN_STORE>\n                    <xsl:value-of select=\"skladem-ks\"/>\n                </IN_STORE>\n                <AVAILABILITY>\n                    <xsl:value-of select=\"dostupnost\"/>\n                </AVAILABILITY>\n                <xsl:if test=\"string-length(fotografie) > 0\">\n                    <PHOTOS>\n                        <PHOTO>\n                            <xsl:value-of select=\"fotografie\"/>\n                        </PHOTO>\n                    </PHOTOS>\n                </xsl:if>\n            </VARIATION>\n        </xsl:for-each>\n    </xsl:template>\n\n</xsl:stylesheet>',NULL,NULL,0.00,1,NULL,NULL,1,1);
/*!40000 ALTER TABLE `import` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `indexed_filters_content`
--

DROP TABLE IF EXISTS `indexed_filters_content`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `indexed_filters_content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_section` int(11) DEFAULT NULL,
  `id_producer` int(10) unsigned DEFAULT NULL,
  `parameter1` int(11) DEFAULT NULL,
  `parameter2` int(11) DEFAULT NULL,
  `parameter3` int(11) DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `meta_title` varchar(255) DEFAULT NULL,
  `meta_description` text DEFAULT NULL,
  `id_block` int(10) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `indexed_filters_content_sections_id_fk` (`id_section`),
  KEY `indexed_filters_content_producers_id_fk` (`id_producer`),
  KEY `indexed_filters_content_parameter1_fk` (`parameter1`),
  KEY `indexed_filters_content_parameter2_fk` (`parameter2`),
  KEY `indexed_filters_content_parameter3_fk` (`parameter3`),
  KEY `indexed_filters_content_blocks_id_fk` (`id_block`),
  CONSTRAINT `indexed_filters_content_blocks_id_fk` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `indexed_filters_content_parameter1_fk` FOREIGN KEY (`parameter1`) REFERENCES `parameters_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `indexed_filters_content_parameter2_fk` FOREIGN KEY (`parameter2`) REFERENCES `parameters_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `indexed_filters_content_parameter3_fk` FOREIGN KEY (`parameter3`) REFERENCES `parameters_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `indexed_filters_content_producers_id_fk` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `indexed_filters_content_sections_id_fk` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `indexed_filters_content`
--

LOCK TABLES `indexed_filters_content` WRITE;
/*!40000 ALTER TABLE `indexed_filters_content` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexed_filters_content` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `indexed_filters_content_translations`
--

DROP TABLE IF EXISTS `indexed_filters_content_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `indexed_filters_content_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_indexed_filter` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` varchar(255) DEFAULT NULL,
  `meta_title` varchar(255) DEFAULT NULL,
  `meta_description` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `indexed_filters_content_translations_uindex` (`id_indexed_filter`,`id_language`),
  CONSTRAINT `indexed_filters_content_translations_ibfk_1` FOREIGN KEY (`id_indexed_filter`) REFERENCES `indexed_filters_content` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `indexed_filters_content_translations`
--

LOCK TABLES `indexed_filters_content_translations` WRITE;
/*!40000 ALTER TABLE `indexed_filters_content_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `indexed_filters_content_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `info_panels`
--

DROP TABLE IF EXISTS `info_panels`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `info_panels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(60) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'default',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `version` int(11) NOT NULL,
  `date_from` datetime DEFAULT NULL,
  `date_to` datetime DEFAULT NULL,
  `body` mediumtext DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `info_panels`
--

LOCK TABLES `info_panels` WRITE;
/*!40000 ALTER TABLE `info_panels` DISABLE KEYS */;
/*!40000 ALTER TABLE `info_panels` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `info_panels_translations`
--

DROP TABLE IF EXISTS `info_panels_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `info_panels_translations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_info_panel` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `body` longtext DEFAULT NULL,
  `active` enum('Y','N') DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `info_panels_translations_id_info_panel_id_language_uindex` (`id_info_panel`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `info_panels_translations_ibfk_1` FOREIGN KEY (`id_info_panel`) REFERENCES `info_panels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `info_panels_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `info_panels_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `info_panels_translations`
--

LOCK TABLES `info_panels_translations` WRITE;
/*!40000 ALTER TABLE `info_panels_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `info_panels_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `inventory`
--

DROP TABLE IF EXISTS `inventory`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `inventory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) NOT NULL,
  `note` varchar(50) DEFAULT NULL,
  `finished` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `inventory`
--

LOCK TABLES `inventory` WRITE;
/*!40000 ALTER TABLE `inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `inventory` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `inventory_items`
--

DROP TABLE IF EXISTS `inventory_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `inventory_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_inventory` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_inventory` (`id_inventory`),
  KEY `id_product` (`id_product`),
  KEY `id_variation` (`id_variation`),
  CONSTRAINT `inventory_items_ibfk_1` FOREIGN KEY (`id_inventory`) REFERENCES `inventory` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `inventory_items_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `inventory_items_ibfk_3` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `inventory_items`
--

LOCK TABLES `inventory_items` WRITE;
/*!40000 ALTER TABLE `inventory_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `inventory_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `labels`
--

DROP TABLE IF EXISTS `labels`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `labels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(60) NOT NULL,
  `short_name` varchar(50) DEFAULT NULL,
  `name_admin` varchar(100) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `cron_assignment` enum('Y','N') NOT NULL DEFAULT 'N',
  `date_from` datetime DEFAULT NULL,
  `date_to` datetime DEFAULT NULL,
  `data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`data`)),
  `id_template` int(11) DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `fk_discount_templates` (`id_template`),
  CONSTRAINT `fk_discount_templates` FOREIGN KEY (`id_template`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `labels`
--

LOCK TABLES `labels` WRITE;
/*!40000 ALTER TABLE `labels` DISABLE KEYS */;
INSERT INTO `labels` VALUES
(1,'Nelze vrátit','Nelze vrátit',NULL,'no_returns','Y','N',NULL,NULL,'{\"admin_cannot_delete\":\"Y\",\"list_visibility\":\"N\",\"detail_visibility\":\"N\",\"filter_visibility\":\"N\",\"color\":\"\",\"icon\":\"\",\"coupon\":\"\",\"discount\":\"\",\"active_type\":\"N\",\"product_filter\":[]}',NULL,NULL);
/*!40000 ALTER TABLE `labels` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `labels_translations`
--

DROP TABLE IF EXISTS `labels_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `labels_translations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_label` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `name` varchar(60) DEFAULT NULL,
  `short_name` varchar(50) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `active` enum('Y','N') DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `labels_translations_id_label_id_language_uindex` (`id_label`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `labels_translations_ibfk_1` FOREIGN KEY (`id_label`) REFERENCES `labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `labels_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `labels_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `labels_translations`
--

LOCK TABLES `labels_translations` WRITE;
/*!40000 ALTER TABLE `labels_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `labels_translations` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `languages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `languages` (
  `id` varchar(2) NOT NULL,
  `name` varchar(255) NOT NULL,
  `locale` varchar(5) NOT NULL,
  `translate` tinyint(1) NOT NULL,
  `active` tinyint(1) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `languages` WRITE;
/*!40000 ALTER TABLE `languages` DISABLE KEYS */;
INSERT INTO `languages` VALUES
('cs','cestina','cs_CZ',0,1),
('sk','slovenstina','sk_SK',1,1);
/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `links`
--

DROP TABLE IF EXISTS `links`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `links` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) unsigned NOT NULL DEFAULT 0,
  `title` varchar(50) NOT NULL DEFAULT '',
  `link` mediumtext NOT NULL,
  `type` enum('link') DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_product` (`id_product`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='odkazy k produktum' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `links`
--

LOCK TABLES `links` WRITE;
/*!40000 ALTER TABLE `links` DISABLE KEYS */;
/*!40000 ALTER TABLE `links` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `margins`
--

DROP TABLE IF EXISTS `margins`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `margins` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `range_from` int(11) NOT NULL DEFAULT 0,
  `range_to` int(11) NOT NULL DEFAULT 0,
  `margin` float NOT NULL DEFAULT 0,
  `title` varchar(250) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `margins`
--

LOCK TABLES `margins` WRITE;
/*!40000 ALTER TABLE `margins` DISABLE KEYS */;
/*!40000 ALTER TABLE `margins` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `menu_links`
--

DROP TABLE IF EXISTS `menu_links`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `menu_links` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_menu` int(10) unsigned DEFAULT NULL,
  `type` tinyint(3) unsigned NOT NULL DEFAULT 2,
  `parent` int(10) unsigned DEFAULT NULL,
  `list_order` mediumint(8) unsigned NOT NULL DEFAULT 0,
  `name` varchar(100) NOT NULL DEFAULT '',
  `name_short` varchar(50) DEFAULT '',
  `code` varchar(50) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `link` varchar(255) DEFAULT NULL,
  `target` varchar(20) NOT NULL DEFAULT '',
  `figure` enum('Y','N') DEFAULT 'Y',
  `show_in_search` enum('Y','N') DEFAULT 'Y',
  `data` longtext DEFAULT NULL,
  `id_block` int(11) unsigned DEFAULT NULL,
  `template` varchar(255) NOT NULL DEFAULT '',
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `old_id_page` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  UNIQUE KEY `menu_links_uix_url` (`url`),
  KEY `menu_links_ibfk_1` (`parent`),
  KEY `menu_links_fk_id_menu` (`id_menu`),
  CONSTRAINT `menu_links_fk_id_menu` FOREIGN KEY (`id_menu`) REFERENCES `menu_links` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `menu_links_fk_parent` FOREIGN KEY (`parent`) REFERENCES `menu_links` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='odkazy v menu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `menu_links`
--

LOCK TABLES `menu_links` WRITE;
/*!40000 ALTER TABLE `menu_links` DISABLE KEYS */;
INSERT INTO `menu_links` VALUES
(1,1,3,NULL,0,'Patička','Patička',NULL,NULL,NULL,'','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL),
(2,2,3,NULL,1,'Menu uživatel','Menu uživatel',NULL,NULL,NULL,'','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL),
(23,1,2,1,1,'Novinky','',NULL,NULL,'/novinky/','','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL),
(30,2,1,2,3,'Obchodní podmínky','','shopping-rules','obchodni-podminky/',NULL,'','Y','Y',NULL,11,'',NULL,NULL,NULL,4),
(31,2,1,2,4,'Reklamační řád','Reklamace','complaint-rules','reklamace/',NULL,'','Y','Y',NULL,13,'',NULL,NULL,NULL,6),
(32,1,2,1,3,'Články','',NULL,NULL,'/launch.php?s=articles','','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL),
(33,2,2,2,1,'Úvodní stránka','',NULL,NULL,'http://www.vcest.kupshop.cz/uvodni-stranka_p3.html','','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL),
(36,2,1,2,5,'Kontakt','','contact','kontakt/',NULL,'','Y','Y',NULL,8,'',NULL,NULL,NULL,1),
(37,2,2,2,2,'Články','',NULL,NULL,'/launch.php?s=articles&IDb=1','','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL),
(38,NULL,1,NULL,0,'O firmě','','about-shop','o-firme/',NULL,'','Y','Y',NULL,9,'',NULL,NULL,NULL,2),
(39,NULL,1,NULL,1,'Jak nakupovat','','shopping-help','jak-nakupovat_p5.html',NULL,'','Y','Y',NULL,12,'',NULL,NULL,NULL,5),
(40,NULL,1,NULL,2,'Doprava zboží','','transport','doprava/',NULL,'','Y','Y',NULL,14,'',NULL,NULL,NULL,7),
(41,NULL,1,NULL,0,'Soubory cookie','','cookies_policy','soubory-cookie/',NULL,'','Y','Y',NULL,63,'page/page.cookies.tpl',NULL,NULL,NULL,NULL),
(42,NULL,1,NULL,0,'Podmínky pro vložení uživatelského hodnocení','','review-rules','podminky-pro-vlozeni-hodnoceni/',NULL,'','Y','Y',NULL,NULL,'',NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `menu_links` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `menu_links_translations`
--

DROP TABLE IF EXISTS `menu_links_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `menu_links_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_menu_link` int(10) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `name_short` varchar(50) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `link` varchar(255) DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT 'Y',
  `id_block` int(11) unsigned DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `menu_links_translations_id_menu_link_id_language_uindex` (`id_menu_link`,`id_language`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `menu_links_translations`
--

LOCK TABLES `menu_links_translations` WRITE;
/*!40000 ALTER TABLE `menu_links_translations` DISABLE KEYS */;
INSERT INTO `menu_links_translations` VALUES
(1,36,'sk',NULL,'2020-07-01 15:12:14',NULL,NULL,NULL,'kontakt/',NULL,'Y',NULL,NULL,NULL,NULL,NULL),
(2,30,'sk',NULL,'2020-07-01 15:12:14',NULL,NULL,NULL,'obchodne-podmienky/',NULL,'Y',NULL,NULL,NULL,NULL,NULL),
(3,31,'sk',NULL,'2020-07-01 15:12:14',NULL,NULL,NULL,'reklamacie/',NULL,'Y',NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `menu_links_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_discounts`
--

DROP TABLE IF EXISTS `order_discounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_discounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date_created` datetime DEFAULT current_timestamp(),
  `name` varchar(100) NOT NULL,
  `display_name` varchar(100) NOT NULL,
  `uses_count` int(11) DEFAULT 0,
  `active` enum('Y','N','A') NOT NULL DEFAULT 'A',
  `data` longtext DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `type` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `order_discounts_order_discounts_types_id_fk` (`type`),
  CONSTRAINT `order_discounts_order_discounts_types_id_fk` FOREIGN KEY (`type`) REFERENCES `order_discounts_types` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_discounts`
--

LOCK TABLES `order_discounts` WRITE;
/*!40000 ALTER TABLE `order_discounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_discounts` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_order_discounts BEFORE INSERT ON order_discounts
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(order_discounts.position) + 1, 0) FROM order_discounts);
                    END IF;
                END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `order_discounts_actions`
--

DROP TABLE IF EXISTS `order_discounts_actions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_discounts_actions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order_discount` int(11) NOT NULL,
  `type` varchar(25) NOT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_order_discounts_actions_id_order_discount` (`id_order_discount`),
  CONSTRAINT `FK_order_discounts_actions_id_order_discount` FOREIGN KEY (`id_order_discount`) REFERENCES `order_discounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_discounts_actions`
--

LOCK TABLES `order_discounts_actions` WRITE;
/*!40000 ALTER TABLE `order_discounts_actions` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_discounts_actions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_discounts_orders`
--

DROP TABLE IF EXISTS `order_discounts_orders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_discounts_orders` (
  `id_order` int(11) unsigned NOT NULL,
  `id_order_item` int(11) unsigned DEFAULT NULL,
  `id_order_discount` int(11) NOT NULL,
  KEY `id_order` (`id_order`),
  KEY `id_order_item` (`id_order_item`),
  KEY `id_order_discount` (`id_order_discount`),
  CONSTRAINT `order_discounts_orders_ibfk_1` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `order_discounts_orders_ibfk_2` FOREIGN KEY (`id_order_item`) REFERENCES `order_items` (`id`) ON DELETE CASCADE,
  CONSTRAINT `order_discounts_orders_ibfk_3` FOREIGN KEY (`id_order_discount`) REFERENCES `order_discounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_discounts_orders`
--

LOCK TABLES `order_discounts_orders` WRITE;
/*!40000 ALTER TABLE `order_discounts_orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_discounts_orders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_discounts_translations`
--

DROP TABLE IF EXISTS `order_discounts_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_discounts_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_order_discount` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `display_name` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_order_discount` (`id_order_discount`),
  CONSTRAINT `order_discounts_translations_ibfk_1` FOREIGN KEY (`id_order_discount`) REFERENCES `order_discounts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_discounts_translations`
--

LOCK TABLES `order_discounts_translations` WRITE;
/*!40000 ALTER TABLE `order_discounts_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_discounts_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_discounts_triggers`
--

DROP TABLE IF EXISTS `order_discounts_triggers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_discounts_triggers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order_discount` int(11) NOT NULL,
  `type` varchar(25) NOT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_order_discounts_triggers_id_order_discount` (`id_order_discount`),
  CONSTRAINT `FK_order_discounts_triggers_id_order_discount` FOREIGN KEY (`id_order_discount`) REFERENCES `order_discounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=248 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_discounts_triggers`
--

LOCK TABLES `order_discounts_triggers` WRITE;
/*!40000 ALTER TABLE `order_discounts_triggers` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_discounts_triggers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_discounts_types`
--

DROP TABLE IF EXISTS `order_discounts_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_discounts_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(30) NOT NULL,
  `name` varchar(30) NOT NULL,
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `order_discounts_types_code_uindex` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_discounts_types`
--

LOCK TABLES `order_discounts_types` WRITE;
/*!40000 ALTER TABLE `order_discounts_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_discounts_types` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_order_discounts_types BEFORE INSERT ON order_discounts_types
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(order_discounts_types.position) + 1, 0) FROM order_discounts_types);
                    END IF;
                END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `order_dropshipment`
--

DROP TABLE IF EXISTS `order_dropshipment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_dropshipment` (
  `id_order` int(11) unsigned NOT NULL,
  `id_dropshipment` int(11) DEFAULT NULL,
  `id_external` varchar(250) NOT NULL,
  `data` mediumtext DEFAULT NULL,
  UNIQUE KEY `order_dropshipment_id` (`id_dropshipment`,`id_external`),
  KEY `FK_order_dropshipment_id_order` (`id_order`),
  CONSTRAINT `FK_order_dropshipment_id_dropshipment` FOREIGN KEY (`id_dropshipment`) REFERENCES `dropshipment` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_order_dropshipment_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_dropshipment`
--

LOCK TABLES `order_dropshipment` WRITE;
/*!40000 ALTER TABLE `order_dropshipment` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_dropshipment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_edit`
--

DROP TABLE IF EXISTS `order_edit`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_edit` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_item` int(10) unsigned NOT NULL,
  `id_order` int(10) unsigned NOT NULL,
  `id_product` int(11) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` mediumint(9) NOT NULL DEFAULT 1,
  `pieces_reserved` mediumint(9) NOT NULL DEFAULT 0,
  `piece_price` float NOT NULL DEFAULT 0,
  `total_price` float NOT NULL DEFAULT 0,
  `descr` mediumtext NOT NULL,
  `tax` float NOT NULL DEFAULT 0,
  `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `note` mediumtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_invoice` (`id_order`),
  KEY `id_product` (`id_product`),
  KEY `id_variation` (`id_variation`),
  KEY `order_edit_ibfk_4` (`id_item`),
  CONSTRAINT `order_edit_ibfk_1` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `order_edit_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `order_edit_ibfk_3` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `order_edit_ibfk_4` FOREIGN KEY (`id_item`) REFERENCES `order_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='editace objednavky' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_edit`
--

LOCK TABLES `order_edit` WRITE;
/*!40000 ALTER TABLE `order_edit` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_edit` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_items`
--

DROP TABLE IF EXISTS `order_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_order` int(10) unsigned NOT NULL DEFAULT 0,
  `id_product` int(11) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` mediumint(9) NOT NULL DEFAULT 1,
  `pieces_reserved` mediumint(9) NOT NULL DEFAULT 0,
  `piece_price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `total_price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `descr` mediumtext NOT NULL,
  `tax` float NOT NULL DEFAULT 0,
  `date` timestamp NOT NULL DEFAULT current_timestamp(),
  `note` text NOT NULL,
  `discount` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `pohoda_id` int(11) DEFAULT NULL,
  `price_buy` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pohoda_id` (`pohoda_id`),
  KEY `id_invoice` (`id_order`),
  KEY `id_product` (`id_product`),
  KEY `id_variation` (`id_variation`),
  KEY `order_items_id_order_id_product_index` (`id_order`,`id_product`),
  CONSTRAINT `order_items_ibfk_1` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `order_items_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `order_items_ibfk_3` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3474971 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='polozky objednavky' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_items`
--

LOCK TABLES `order_items` WRITE;
/*!40000 ALTER TABLE `order_items` DISABLE KEYS */;
INSERT INTO `order_items` VALUES
(34,2,3,NULL,1,1,661.1570,661.1570,'Wilson pure battle crew',21,'0000-00-00 00:00:00','',0.0000,NULL,NULL),
(35,2,NULL,NULL,1,0,-100.0000,-100.0000,'Sleva 100 korun',0,'2013-09-13 04:00:00','',0.0000,NULL,NULL),
(36,2,NULL,NULL,1,1,100.8400,100.8400,'Dobírkou - Kurýrem',21,'2013-09-13 04:00:00','{\"item_type\":\"delivery\"}',0.0000,NULL,NULL),
(37,1,10,NULL,1,0,1399.0100,1399.0100,'Black and Decker Core EGBL108K aku vrtačka',21,'2015-02-16 02:00:00','',0.0000,NULL,NULL),
(39,3,NULL,NULL,1,1,100.8400,100.8400,'Dobírkou - Kurýrem',21,'2013-09-13 04:00:00','{\"item_type\":\"delivery\"}',0.0000,NULL,NULL),
(40,3,10,NULL,1,0,1399.0100,1399.0100,'Black and Decker Core EGBL108K aku vrtačka',15,'2017-02-16 02:00:00','',0.0000,NULL,NULL),
(41,3,NULL,NULL,1,0,50.0000,50.0000,'Polozka bez DPH',0,'2017-02-16 02:00:00','',0.0000,NULL,NULL);
/*!40000 ALTER TABLE `order_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_payments`
--

DROP TABLE IF EXISTS `order_payments`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_payments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order` int(11) unsigned DEFAULT NULL,
  `price` decimal(15,4) NOT NULL,
  `date` datetime NOT NULL,
  `note` varchar(100) DEFAULT NULL,
  `status` int(11) NOT NULL DEFAULT 0,
  `payment_data` text DEFAULT NULL,
  `admin` int(11) DEFAULT NULL,
  `method` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_order` (`id_order`),
  KEY `admin` (`admin`),
  KEY `order_payments_date_index` (`date`),
  CONSTRAINT `order_payments_ibfk_1` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `order_payments_ibfk_2` FOREIGN KEY (`admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_payments`
--

LOCK TABLES `order_payments` WRITE;
/*!40000 ALTER TABLE `order_payments` DISABLE KEYS */;
INSERT INTO `order_payments` VALUES
(3,1,1000.0000,'2013-07-12 00:00:00','Platba modulu PayU',0,'{\"id_payu\":{\"0\":\"6484478\"},\"session\":\"10cd50d1d0f3a6f371b950d53b4007a7_1367853437\"}',NULL,0);
/*!40000 ALTER TABLE `order_payments` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_restrictions`
--

DROP TABLE IF EXISTS `order_restrictions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_restrictions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date_created` datetime DEFAULT current_timestamp(),
  `email` varchar(255) DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  `description` varchar(255) DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `ip` (`ip`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_restrictions`
--

LOCK TABLES `order_restrictions` WRITE;
/*!40000 ALTER TABLE `order_restrictions` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_restrictions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_returns_info`
--

DROP TABLE IF EXISTS `order_returns_info`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_returns_info` (
  `id_order` int(11) unsigned NOT NULL,
  `date_return_to` datetime DEFAULT NULL,
  PRIMARY KEY (`id_order`),
  CONSTRAINT `FK_order_returns_info_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_returns_info`
--

LOCK TABLES `order_returns_info` WRITE;
/*!40000 ALTER TABLE `order_returns_info` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_returns_info` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_sellers`
--

DROP TABLE IF EXISTS `order_sellers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_sellers` (
  `id_order` int(11) unsigned NOT NULL,
  `id_seller` int(11) NOT NULL,
  PRIMARY KEY (`id_order`),
  KEY `FK_order_sellers_id_order` (`id_order`),
  KEY `FK_order_sellers_id_seller` (`id_seller`),
  CONSTRAINT `FK_order_sellers_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_order_sellers_id_seller` FOREIGN KEY (`id_seller`) REFERENCES `sellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_sellers`
--

LOCK TABLES `order_sellers` WRITE;
/*!40000 ALTER TABLE `order_sellers` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_sellers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `order_stores`
--

DROP TABLE IF EXISTS `order_stores`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `order_stores` (
  `id_order` int(11) unsigned NOT NULL,
  `id_store` int(11) NOT NULL,
  PRIMARY KEY (`id_order`),
  KEY `FK_order_stores_id_store` (`id_store`),
  CONSTRAINT `FK_order_stores_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_order_stores_id_store` FOREIGN KEY (`id_store`) REFERENCES `stores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `order_stores`
--

LOCK TABLES `order_stores` WRITE;
/*!40000 ALTER TABLE `order_stores` DISABLE KEYS */;
/*!40000 ALTER TABLE `order_stores` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `orders`
--

DROP TABLE IF EXISTS `orders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `orders` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `source` enum('shop','import','pos','reservation','admin','returns','dropship','api') NOT NULL,
  `order_no` varchar(20) NOT NULL DEFAULT '',
  `order_no_reverse` varchar(20) GENERATED ALWAYS AS (reverse(`order_no`)) STORED,
  `id_language` varchar(2) NOT NULL DEFAULT 'cs',
  `currency_rate` decimal(15,8) DEFAULT 1.00000000,
  `currency` varchar(3) DEFAULT 'CZK',
  `id_user` int(11) unsigned DEFAULT NULL,
  `id_dealer` int(11) unsigned DEFAULT NULL,
  `date_created` datetime DEFAULT NULL,
  `date_accept` datetime DEFAULT NULL,
  `date_handle` datetime DEFAULT NULL,
  `date_delivered` datetime DEFAULT NULL,
  `date_updated` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `date_due` datetime DEFAULT NULL,
  `status` tinyint(1) NOT NULL DEFAULT 1,
  `status_payed` tinyint(1) NOT NULL DEFAULT 0,
  `status_dispatch` tinyint(1) NOT NULL DEFAULT 0,
  `status_storno` tinyint(1) NOT NULL DEFAULT 0,
  `total_price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `total_price_without_vat` decimal(15,4) DEFAULT 0.0000,
  `invoice_name` varchar(20) NOT NULL DEFAULT '',
  `invoice_surname` varchar(50) NOT NULL DEFAULT '',
  `invoice_firm` varchar(100) NOT NULL DEFAULT '',
  `invoice_ico` varchar(12) NOT NULL DEFAULT '',
  `invoice_dic` varchar(15) NOT NULL DEFAULT '',
  `invoice_street` varchar(100) NOT NULL DEFAULT '',
  `invoice_city` varchar(50) NOT NULL DEFAULT '',
  `invoice_zip` varchar(50) NOT NULL DEFAULT '',
  `invoice_country` varchar(50) NOT NULL DEFAULT '',
  `invoice_phone` varchar(20) NOT NULL DEFAULT '',
  `invoice_email` varchar(100) NOT NULL DEFAULT '',
  `delivery_name` varchar(20) NOT NULL DEFAULT '',
  `delivery_surname` varchar(50) NOT NULL DEFAULT '',
  `delivery_firm` varchar(100) NOT NULL DEFAULT '',
  `delivery_street` varchar(100) NOT NULL DEFAULT '',
  `delivery_city` varchar(50) NOT NULL DEFAULT '',
  `delivery_zip` varchar(50) NOT NULL DEFAULT '',
  `delivery_country` varchar(50) NOT NULL DEFAULT '',
  `delivery_type` varchar(200) NOT NULL,
  `id_delivery` int(10) unsigned DEFAULT NULL,
  `delivery_complete` enum('Y','N') NOT NULL DEFAULT 'N',
  `note_user` longtext DEFAULT NULL,
  `note_admin` longtext DEFAULT NULL,
  `flags` set('R','NE','D','H','POS','OSS','V','DSE','DSM','DSC','POR','STCK') NOT NULL,
  `admin` int(11) DEFAULT NULL,
  `note_invoice` longtext DEFAULT NULL,
  `package_id` varchar(30) DEFAULT NULL,
  `invoice_state` varchar(50) NOT NULL DEFAULT '',
  `invoice_custom_address` varchar(100) NOT NULL DEFAULT '',
  `delivery_state` varchar(50) NOT NULL DEFAULT '',
  `delivery_custom_address` varchar(100) NOT NULL DEFAULT '',
  `pos` int(11) DEFAULT NULL,
  `delivery_phone` varchar(20) NOT NULL DEFAULT '',
  `delivery_email` varchar(20) DEFAULT NULL,
  `pohoda_sync_date` datetime DEFAULT NULL,
  `pohoda_id` varchar(50) DEFAULT NULL,
  `user_order_no` varchar(20) DEFAULT NULL,
  `total_weight` decimal(15,6) DEFAULT NULL,
  `invoice_copy_email` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `order_no` (`order_no`),
  UNIQUE KEY `pohoda_id` (`pohoda_id`),
  UNIQUE KEY `orders_order_no_reverse_uindex` (`order_no_reverse`),
  KEY `date_updated` (`date_updated`),
  KEY `id_user` (`id_user`),
  KEY `id_dealer` (`id_dealer`),
  KEY `delivery_type` (`delivery_type`),
  KEY `id_delivery` (`id_delivery`),
  KEY `flags` (`flags`),
  KEY `admin` (`admin`),
  KEY `fk_orders_languages` (`id_language`),
  KEY `invoice_email` (`invoice_email`),
  KEY `orders_status_index` (`status`),
  KEY `orders_user_order_no_index` (`user_order_no`),
  KEY `date_created` (`date_created`),
  KEY `orders_source_index` (`source`),
  KEY `pos_orders_ibfk1` (`pos`),
  CONSTRAINT `fk_orders_languages` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `orders_ibfk_2` FOREIGN KEY (`id_dealer`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `orders_ibfk_3` FOREIGN KEY (`id_delivery`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `orders_ibfk_4` FOREIGN KEY (`admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `pos_orders_ibfk1` FOREIGN KEY (`pos`) REFERENCES `pos` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=274495 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='objednavky' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `orders`
--

LOCK TABLES `orders` WRITE;
/*!40000 ALTER TABLE `orders` DISABLE KEYS */;
INSERT INTO `orders` VALUES
(1,'shop','201300025','520003102','cs',1.00000000,'CZK',1,NULL,'2013-09-13 13:44:00','2013-09-13 13:50:19','2013-09-13 13:50:19',NULL,'2025-02-06 22:05:16',NULL,0,0,0,0,1692.8000,1399.0100,'Lukáš','Klíma','WPJ s.r.o.','','','Za komínem 5','Trutnov','54101','Česká Republika','+420774123456','klima@wpj.cz','Lukáš','Klíma','WPJ s.r.o.','Za komínem 5','Trutnov','54101','Česká Republika','Hotově - Osobní odběr',NULL,'N','','','',NULL,NULL,NULL,'','','','',NULL,'',NULL,NULL,NULL,NULL,0.000000,NULL),
(2,'shop','201300026','620003102','cs',1.00000000,'CZK',NULL,NULL,'2013-09-13 13:49:01','2013-09-27 10:11:55','2013-09-27 10:17:10',NULL,'2025-02-06 22:05:16',NULL,1,0,0,0,822.0160,661.9970,'Jaroslav','Hubatý','','','','12.května','Jaroměř','12345','Česká Republika','+420774123456','petr@wpj.cz','Jaroslav','Hubatý','','12.května','Jaroměř','12345','Česká Republika','Dobírkou - Kurýrem',NULL,'N','','','',NULL,NULL,NULL,'','','','',NULL,'',NULL,NULL,NULL,NULL,0.000000,NULL),
(3,'shop','201300027','720003102','cs',1.00000000,'CZK',NULL,NULL,'2017-09-13 13:49:01','2017-09-27 10:11:55','2017-09-27 10:17:10',NULL,'2025-02-06 22:05:16',NULL,1,0,0,0,1780.8779,1549.8500,'Jaroslav','Hubatý','','','','12.května','Jaroměř','12345','Česká Republika','123456789','petr@wpj.cz','Jaroslav','Hubatý','','12.května','Jaroměř','12345','Česká Republika','Dobírkou - Kurýrem',NULL,'N','','','',NULL,NULL,NULL,'','','','',NULL,'',NULL,NULL,NULL,NULL,0.000000,NULL);
/*!40000 ALTER TABLE `orders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `orders_history`
--

DROP TABLE IF EXISTS `orders_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `orders_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order` int(10) unsigned NOT NULL DEFAULT 0,
  `id_status` int(2) unsigned NOT NULL DEFAULT 0,
  `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `comment` longtext DEFAULT NULL,
  `admin` int(11) DEFAULT NULL,
  `notified` tinyint(1) NOT NULL,
  `custom_data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_order` (`id_order`),
  KEY `orders_history_ibfk_2` (`admin`),
  CONSTRAINT `orders_history_ibfk_1` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `orders_history_ibfk_2` FOREIGN KEY (`admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1578 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `orders_history`
--

LOCK TABLES `orders_history` WRITE;
/*!40000 ALTER TABLE `orders_history` DISABLE KEYS */;
INSERT INTO `orders_history` VALUES
(34,1,0,'2013-09-13 13:44:00','',NULL,1,NULL),
(35,2,0,'2013-09-13 13:49:01','',NULL,1,NULL),
(36,1,2,'2013-09-13 13:50:19','',NULL,1,NULL),
(40,2,2,'2013-09-30 12:06:52','<p>\r\n	zbož&iacute; je připraveno k osobn&iacute;mu převzet&iacute; na adrese:<br />\r\n	<br />\r\n	kupshop.cz<br />\r\n	adresa<br />\r\n	<br />\r\n	od 8:00 do 15:00</p>',NULL,1,NULL);
/*!40000 ALTER TABLE `orders_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `orders_pohoda_invoices`
--

DROP TABLE IF EXISTS `orders_pohoda_invoices`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `orders_pohoda_invoices` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order` int(11) unsigned DEFAULT NULL,
  `id_pohoda_invoice` varchar(50) DEFAULT NULL,
  `number_requested` varchar(50) DEFAULT NULL,
  `invoice_prefix` varchar(50) DEFAULT NULL,
  `package_id` varchar(50) DEFAULT NULL,
  `pohoda_sync_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `orders_pohoda_invoices_uindex` (`id_order`,`id_pohoda_invoice`),
  CONSTRAINT `orders_pohoda_invoices_id_fk` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `orders_pohoda_invoices`
--

LOCK TABLES `orders_pohoda_invoices` WRITE;
/*!40000 ALTER TABLE `orders_pohoda_invoices` DISABLE KEYS */;
/*!40000 ALTER TABLE `orders_pohoda_invoices` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pages`
--

DROP TABLE IF EXISTS `pages`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_block` int(11) unsigned DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `code` varchar(50) NOT NULL,
  `type` varchar(100) NOT NULL,
  `url` varchar(50) DEFAULT NULL,
  `updated` timestamp NULL DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `FK_id_block_pages` (`id_block`),
  CONSTRAINT `FK_id_block_pages` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pages`
--

LOCK TABLES `pages` WRITE;
/*!40000 ALTER TABLE `pages` DISABLE KEYS */;
INSERT INTO `pages` VALUES
(1,10,NULL,'system-home','HOME',NULL,NULL,NULL);
/*!40000 ALTER TABLE `pages` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameter_groups`
--

DROP TABLE IF EXISTS `parameter_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameter_groups` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(191) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `ui_parameter_groups_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameter_groups`
--

LOCK TABLES `parameter_groups` WRITE;
/*!40000 ALTER TABLE `parameter_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameter_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameter_groups_items`
--

DROP TABLE IF EXISTS `parameter_groups_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameter_groups_items` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_parameter_group` int(10) unsigned NOT NULL,
  `name` varchar(191) NOT NULL,
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_parameter_groups_items_parameter_group` (`id_parameter_group`),
  CONSTRAINT `fk_parameter_groups_items_parameter_group` FOREIGN KEY (`id_parameter_group`) REFERENCES `parameter_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameter_groups_items`
--

LOCK TABLES `parameter_groups_items` WRITE;
/*!40000 ALTER TABLE `parameter_groups_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameter_groups_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameter_groups_items_parameters`
--

DROP TABLE IF EXISTS `parameter_groups_items_parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameter_groups_items_parameters` (
  `id_parameter_group_item` int(10) unsigned NOT NULL,
  `id_parameter` int(10) unsigned NOT NULL,
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_parameter`,`id_parameter_group_item`),
  KEY `fk_parameter_groups_items_parameters_parameter_group_item` (`id_parameter_group_item`),
  CONSTRAINT `fk_parameter_groups_items_parameters_parameter` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_parameter_groups_items_parameters_parameter_group_item` FOREIGN KEY (`id_parameter_group_item`) REFERENCES `parameter_groups_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameter_groups_items_parameters`
--

LOCK TABLES `parameter_groups_items_parameters` WRITE;
/*!40000 ALTER TABLE `parameter_groups_items_parameters` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameter_groups_items_parameters` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameter_groups_items_translations`
--

DROP TABLE IF EXISTS `parameter_groups_items_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameter_groups_items_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_parameter_groups_item` int(10) unsigned NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `id_language` varchar(2) NOT NULL DEFAULT 'cs',
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `param_groups_items_translations_id_param_groups_id_language` (`id_parameter_groups_item`,`id_language`),
  CONSTRAINT `parameter_groups_items_translations_ibfk_1` FOREIGN KEY (`id_parameter_groups_item`) REFERENCES `parameter_groups_items` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameter_groups_items_translations`
--

LOCK TABLES `parameter_groups_items_translations` WRITE;
/*!40000 ALTER TABLE `parameter_groups_items_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameter_groups_items_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameter_groups_translations`
--

DROP TABLE IF EXISTS `parameter_groups_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameter_groups_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_parameter_group` int(10) unsigned NOT NULL,
  `name` varchar(191) DEFAULT NULL,
  `id_language` varchar(2) NOT NULL DEFAULT 'cs',
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `parameter_groups_translations_id_param_groups_id_language` (`id_parameter_group`,`id_language`),
  CONSTRAINT `parameter_groups_translations_ibfk_1` FOREIGN KEY (`id_parameter_group`) REFERENCES `parameter_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameter_groups_translations`
--

LOCK TABLES `parameter_groups_translations` WRITE;
/*!40000 ALTER TABLE `parameter_groups_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameter_groups_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameters`
--

DROP TABLE IF EXISTS `parameters`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(100) NOT NULL DEFAULT '',
  `name_frontend` varchar(255) DEFAULT NULL,
  `unit` varchar(100) NOT NULL DEFAULT '',
  `value_type` enum('int','float','char','list') NOT NULL DEFAULT 'int',
  `value_meaning` enum('text','color','image','progress') NOT NULL,
  `descr` text CHARACTER SET cp1250 COLLATE cp1250_czech_cs NOT NULL,
  `position` int(11) DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT 'Y',
  PRIMARY KEY (`id`),
  UNIQUE KEY `parameters_name_uindex` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters`
--

LOCK TABLES `parameters` WRITE;
/*!40000 ALTER TABLE `parameters` DISABLE KEYS */;
INSERT INTO `parameters` VALUES
(14,'Barva',NULL,'','list','text','',NULL,'Y'),
(17,'Typ hlavy',NULL,'','list','text','<p>Vrtačka s příklepem. Vratačka bez příklepu</p>',NULL,'Y');
/*!40000 ALTER TABLE `parameters` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_parameters BEFORE INSERT ON parameters
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(position) + 1, 0) FROM parameters);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `parameters_configurations`
--

DROP TABLE IF EXISTS `parameters_configurations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_configurations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_parameter` int(10) unsigned NOT NULL,
  `id_product` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_parameter_fk` (`id_parameter`),
  KEY `id_product_fk` (`id_product`),
  CONSTRAINT `parameters_configurations_ibfk_1` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_configurations_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_configurations`
--

LOCK TABLES `parameters_configurations` WRITE;
/*!40000 ALTER TABLE `parameters_configurations` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameters_configurations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameters_list`
--

DROP TABLE IF EXISTS `parameters_list`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_list` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_parameter` int(10) unsigned NOT NULL,
  `value` varchar(150) NOT NULL,
  `position` int(11) DEFAULT NULL,
  `description` longtext NOT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_parameter` (`id_parameter`,`value`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `parameters_list_ibfk_1` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_list`
--

LOCK TABLES `parameters_list` WRITE;
/*!40000 ALTER TABLE `parameters_list` DISABLE KEYS */;
INSERT INTO `parameters_list` VALUES
(1,14,'modrá',0,'','modra',NULL,NULL),
(2,14,'černá',1,'','cerna',NULL,NULL),
(3,14,'zelená',2,'','zelena',NULL,NULL),
(4,14,'fialová',3,'','fialova',NULL,NULL),
(5,14,'olivová',4,'','olivova',NULL,NULL),
(6,14,'šedá',5,'','seda',NULL,NULL),
(7,14,'hnědá',6,'','hneda',NULL,NULL),
(8,14,'béžová',7,'','bezova',NULL,NULL),
(9,14,'červená',8,'','cervena',NULL,NULL),
(10,14,'oranžová',9,'','oranzova',NULL,NULL),
(11,14,'růžová',10,'','ruzova',NULL,NULL),
(12,14,'žlutá',11,'','zluta',NULL,NULL),
(13,14,'bílá',12,'','bila',NULL,NULL),
(14,17,'Bez příklepu',13,'','bez-priklepu',NULL,NULL),
(15,17,'S příklepem',14,'','s-priklepem',NULL,NULL);
/*!40000 ALTER TABLE `parameters_list` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_parameters_list BEFORE INSERT ON parameters_list
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(position) + 1, 0) FROM parameters_list);
                    END IF;
                 END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `parameters_list_translations`
--

DROP TABLE IF EXISTS `parameters_list_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_list_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_parameters_list` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `value` varchar(150) DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `plt_id_parameters_list_id_language_uindex` (`id_parameters_list`,`id_language`),
  KEY `id_parameters_list` (`id_parameters_list`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `parameters_list_translations_ibfk_1` FOREIGN KEY (`id_parameters_list`) REFERENCES `parameters_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_list_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `parameters_list_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=106 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_list_translations`
--

LOCK TABLES `parameters_list_translations` WRITE;
/*!40000 ALTER TABLE `parameters_list_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameters_list_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameters_producers`
--

DROP TABLE IF EXISTS `parameters_producers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_producers` (
  `id_parameter` int(10) unsigned NOT NULL DEFAULT 0,
  `id_producer` int(11) unsigned NOT NULL DEFAULT 0,
  `weight` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_parameter`,`id_producer`),
  KEY `weight` (`weight`),
  KEY `id_producer` (`id_producer`),
  CONSTRAINT `parameters_producers_ibfk_1` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_producers_ibfk_2` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_producers`
--

LOCK TABLES `parameters_producers` WRITE;
/*!40000 ALTER TABLE `parameters_producers` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameters_producers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameters_products`
--

DROP TABLE IF EXISTS `parameters_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL DEFAULT 0,
  `id_parameter` int(10) unsigned NOT NULL DEFAULT 0,
  `value_list` int(11) DEFAULT NULL,
  `value_char` varchar(250) DEFAULT NULL,
  `value_float` float DEFAULT NULL,
  `unit` varchar(20) DEFAULT NULL,
  `weight` int(11) DEFAULT NULL,
  `configuration_price` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_parameter` (`id_parameter`),
  KEY `unit` (`unit`),
  KEY `value_list` (`value_list`),
  KEY `id_product` (`id_product`),
  KEY `id_parameter_id_product_index` (`id_parameter`,`id_product`),
  KEY `value_list_id_product_index` (`value_list`,`id_product`),
  CONSTRAINT `parameters_products_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_products_ibfk_2` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_products_ibfk_3` FOREIGN KEY (`value_list`) REFERENCES `parameters_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_products`
--

LOCK TABLES `parameters_products` WRITE;
/*!40000 ALTER TABLE `parameters_products` DISABLE KEYS */;
INSERT INTO `parameters_products` VALUES
(1,1,14,2,NULL,NULL,NULL,NULL,NULL),
(2,1,14,1,NULL,NULL,NULL,NULL,NULL),
(3,2,14,2,NULL,NULL,NULL,NULL,NULL),
(4,3,14,13,NULL,NULL,NULL,NULL,NULL),
(5,3,14,1,NULL,NULL,NULL,NULL,NULL),
(6,3,14,6,NULL,NULL,NULL,NULL,NULL),
(7,4,14,13,NULL,NULL,NULL,NULL,NULL),
(8,5,14,2,NULL,NULL,NULL,NULL,NULL),
(9,5,14,7,NULL,NULL,NULL,NULL,NULL),
(10,6,14,9,NULL,NULL,NULL,NULL,NULL),
(11,7,14,1,NULL,NULL,NULL,NULL,NULL),
(12,8,14,3,NULL,NULL,NULL,NULL,NULL),
(13,8,17,14,NULL,NULL,NULL,NULL,NULL),
(14,9,14,12,NULL,NULL,NULL,NULL,NULL),
(15,9,17,15,NULL,NULL,NULL,NULL,NULL),
(16,10,14,9,NULL,NULL,NULL,NULL,NULL),
(17,10,17,14,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `parameters_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameters_sections`
--

DROP TABLE IF EXISTS `parameters_sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_sections` (
  `id_parameter` int(10) unsigned NOT NULL DEFAULT 0,
  `id_section` int(11) NOT NULL DEFAULT 0,
  `filter` enum('Y','N') DEFAULT 'Y',
  `required` enum('Y','N') DEFAULT 'Y',
  `weight` int(11) NOT NULL DEFAULT 0,
  `indexing` enum('Y','N') DEFAULT 'N',
  `to_title` enum('Y','N') DEFAULT 'N',
  PRIMARY KEY (`id_parameter`,`id_section`),
  KEY `weight` (`weight`),
  KEY `id_section` (`id_section`),
  CONSTRAINT `parameters_sections_ibfk_1` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_sections_ibfk_2` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_sections`
--

LOCK TABLES `parameters_sections` WRITE;
/*!40000 ALTER TABLE `parameters_sections` DISABLE KEYS */;
INSERT INTO `parameters_sections` VALUES
(14,1,'Y','Y',0,'N','N'),
(14,2,'Y','Y',0,'N','N'),
(14,3,'Y','Y',0,'N','N'),
(14,4,'Y','Y',0,'N','N'),
(14,5,'Y','Y',0,'N','N'),
(14,6,'Y','Y',0,'N','N'),
(17,3,'Y','Y',1,'N','N');
/*!40000 ALTER TABLE `parameters_sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `parameters_translations`
--

DROP TABLE IF EXISTS `parameters_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `parameters_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_parameter` int(10) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `name_frontend` varchar(255) DEFAULT NULL,
  `unit` varchar(100) DEFAULT NULL,
  `descr` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `parameters_translations_id_parameter_id_language_uindex` (`id_parameter`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `parameters_translations_ibfk_1` FOREIGN KEY (`id_parameter`) REFERENCES `parameters` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `parameters_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `parameters_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `parameters_translations`
--

LOCK TABLES `parameters_translations` WRITE;
/*!40000 ALTER TABLE `parameters_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `parameters_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `photos`
--

DROP TABLE IF EXISTS `photos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `filename` varchar(100) DEFAULT NULL,
  `descr` mediumtext NOT NULL,
  `source` mediumtext NOT NULL,
  `image_2` varchar(100) NOT NULL DEFAULT '',
  `image_tablet` varchar(100) DEFAULT NULL,
  `image_mobile` varchar(100) DEFAULT NULL,
  `date` datetime DEFAULT NULL,
  `sync_id` mediumtext DEFAULT NULL,
  `date_update` datetime DEFAULT current_timestamp(),
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='seznam fotek' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos`
--

LOCK TABLES `photos` WRITE;
/*!40000 ALTER TABLE `photos` DISABLE KEYS */;
INSERT INTO `photos` VALUES
(1,NULL,'','../../static/demo/products/','p1-2.jpg',NULL,NULL,'2013-09-13 11:08:23','','2022-03-17 12:23:18',NULL),
(2,NULL,'','../../static/demo/products/','p2-2.jpg',NULL,NULL,'2013-09-13 11:08:31','','2022-03-17 12:23:18',NULL),
(3,NULL,'','../../static/demo/products/','p3-2.jpg',NULL,NULL,'2013-09-13 11:22:39','','2022-03-17 12:23:18',NULL),
(4,NULL,'','../../static/demo/products/','p4-2.jpg',NULL,NULL,'2013-09-13 11:25:50','','2022-03-17 12:23:18',NULL),
(5,NULL,'','../../static/demo/products/','p5-2.jpg',NULL,NULL,'2013-09-13 11:29:04','','2022-03-17 12:23:18',NULL),
(6,NULL,'','../../static/demo/products/','p6-2.jpg',NULL,NULL,'2013-09-13 11:31:21','','2022-03-17 12:23:18',NULL),
(7,NULL,'','../../static/demo/products/','p7-2.jpg',NULL,NULL,'2013-09-13 11:35:44','','2022-03-17 12:23:18',NULL),
(8,NULL,'','../../static/demo/products/','p8-2.jpg',NULL,NULL,'2013-09-30 08:43:58','','2022-03-17 12:23:18',NULL),
(9,NULL,'','../../static/demo/products/','p9-2.jpg',NULL,NULL,'2013-09-30 08:46:37','','2022-03-17 12:23:18',NULL),
(10,NULL,'','../../static/demo/products/','p10.jpg',NULL,NULL,'2015-02-13 11:30:03','','2022-03-17 12:23:18',NULL),
(11,NULL,'','../../static/demo/products/','p11.jpg',NULL,NULL,'2015-02-13 11:30:03','','2022-03-17 12:23:18',NULL),
(12,NULL,'','../../static/demo/products/','p12.jpg',NULL,NULL,'2015-02-13 11:30:03','','2022-03-17 12:23:18',NULL),
(13,NULL,'','../../static/demo/products/','p13.jpg',NULL,NULL,'2015-02-13 11:30:17','','2022-03-17 12:23:18',NULL),
(14,NULL,'','../../static/demo/products/','p14.jpg',NULL,NULL,'2015-02-13 11:30:18','','2022-03-17 12:23:18',NULL),
(15,NULL,'','../../static/demo/products/','p15.jpg',NULL,NULL,'2015-02-13 11:30:18','','2022-03-17 12:23:18',NULL),
(16,NULL,'','../../static/demo/products/','p16.jpg',NULL,NULL,'2015-02-13 11:30:18','','2022-03-17 12:23:18',NULL),
(17,NULL,'','../../static/demo/products/','p17.jpg',NULL,NULL,'2015-02-13 11:30:18','','2022-03-17 12:23:18',NULL),
(18,NULL,'','../../static/demo/products/','p18.jpg',NULL,NULL,'2015-02-13 11:30:18','','2022-03-17 12:23:18',NULL),
(19,NULL,'','../../static/demo/products/','p19.jpg',NULL,NULL,'2015-02-13 11:30:30','','2022-03-17 12:23:18',NULL),
(20,NULL,'','../../static/demo/products/','p20.jpg',NULL,NULL,'2015-02-13 11:30:30','','2022-03-17 12:23:18',NULL),
(21,NULL,'','../../static/demo/products/','p21.jpg',NULL,NULL,'2015-02-13 11:30:30','','2022-03-17 12:23:18',NULL),
(22,NULL,'','../../static/demo/products/','p22.jpg',NULL,NULL,'2015-02-13 11:32:45','','2022-03-17 12:23:18',NULL),
(23,NULL,'','../../static/demo/products/','p23.png',NULL,NULL,'2015-02-13 12:00:37','','2022-03-17 12:23:18',NULL),
(24,NULL,'','../../static/demo/products/','p24.png',NULL,NULL,'2015-02-13 12:03:54','','2022-03-17 12:23:18',NULL),
(25,NULL,'','../../static/demo/products/','p25.png',NULL,NULL,'2015-02-13 12:03:54','','2022-03-17 12:23:18',NULL),
(26,NULL,'','../../static/demo/products/','p26.png',NULL,NULL,'2015-02-13 12:03:55','','2022-03-17 12:23:18',NULL),
(27,NULL,'','','',NULL,NULL,NULL,NULL,'2023-04-04 15:29:28',NULL),
(28,NULL,'','','',NULL,NULL,NULL,NULL,'2023-04-04 15:29:28',NULL);
/*!40000 ALTER TABLE `photos` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `photos_articles_relation`
--

DROP TABLE IF EXISTS `photos_articles_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_articles_relation` (
  `id_photo` int(11) unsigned NOT NULL DEFAULT 0,
  `id_art` int(11) NOT NULL DEFAULT 0,
  `show_in_lead` enum('Y','N') NOT NULL DEFAULT 'N',
  `inner_article` enum('Y','N') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_photo`,`id_art`),
  KEY `photos_articles_relation_ibfk_2` (`id_art`),
  KEY `show_in_lead` (`show_in_lead`),
  CONSTRAINT `photos_articles_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_articles_relation_ibfk_2` FOREIGN KEY (`id_art`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='fotky v clanku' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_articles_relation`
--

LOCK TABLES `photos_articles_relation` WRITE;
/*!40000 ALTER TABLE `photos_articles_relation` DISABLE KEYS */;
INSERT INTO `photos_articles_relation` VALUES
(1,6,'Y','N','Y','0000-00-00 00:00:00',0);
/*!40000 ALTER TABLE `photos_articles_relation` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_photos_articles_relation BEFORE INSERT ON photos_articles_relation
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(photos_articles_relation.position) + 1,0) FROM photos_articles_relation WHERE id_art = NEW.id_art);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `photos_blocks_new_relation`
--

DROP TABLE IF EXISTS `photos_blocks_new_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_blocks_new_relation` (
  `id_photo` int(10) unsigned DEFAULT NULL,
  `id_block` int(11) unsigned DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  UNIQUE KEY `id_photo` (`id_photo`,`id_block`),
  KEY `id_block` (`id_block`),
  CONSTRAINT `photos_blocks_new_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_blocks_new_relation_ibfk_2` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_blocks_new_relation`
--

LOCK TABLES `photos_blocks_new_relation` WRITE;
/*!40000 ALTER TABLE `photos_blocks_new_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_blocks_new_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `photos_blocks_relation`
--

DROP TABLE IF EXISTS `photos_blocks_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_blocks_relation` (
  `id_photo` int(10) unsigned DEFAULT NULL,
  `id_block` int(11) unsigned DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  UNIQUE KEY `id_photo` (`id_photo`,`id_block`),
  KEY `id_block` (`id_block`),
  CONSTRAINT `photos_blocks_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_blocks_relation_ibfk_2` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_blocks_relation`
--

LOCK TABLES `photos_blocks_relation` WRITE;
/*!40000 ALTER TABLE `photos_blocks_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_blocks_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `photos_menu_relation`
--

DROP TABLE IF EXISTS `photos_menu_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_menu_relation` (
  `id_photo` int(11) unsigned NOT NULL DEFAULT 0,
  `id_menu` int(10) unsigned NOT NULL DEFAULT 0,
  `show_in_lead` enum('Y','N') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `position` int(11) DEFAULT NULL,
  UNIQUE KEY `id_photo` (`id_photo`,`id_menu`),
  KEY `photos_menu_relation_ibfk_2` (`id_menu`),
  CONSTRAINT `photos_menu_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_menu_relation_ibfk_2` FOREIGN KEY (`id_menu`) REFERENCES `menu_links` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_menu_relation`
--

LOCK TABLES `photos_menu_relation` WRITE;
/*!40000 ALTER TABLE `photos_menu_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_menu_relation` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_photos_menu_relation BEFORE INSERT ON photos_menu_relation
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(photos_menu_relation.position) + 1,0) FROM photos_menu_relation WHERE id_menu = NEW.id_menu);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `photos_producers_relation`
--

DROP TABLE IF EXISTS `photos_producers_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_producers_relation` (
  `id_photo` int(11) NOT NULL DEFAULT 0,
  `id_producer` int(11) unsigned NOT NULL DEFAULT 0,
  `show_in_lead` enum('Y','N') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_photo`,`id_producer`),
  KEY `photos_producers_relation_ibfk_2` (`id_producer`),
  KEY `photos_producers_relation_ibfk_1` (`show_in_lead`),
  CONSTRAINT `photos_producers_relation_ibfk_1` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_producers_relation`
--

LOCK TABLES `photos_producers_relation` WRITE;
/*!40000 ALTER TABLE `photos_producers_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_producers_relation` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_photos_producers_relation BEFORE INSERT ON photos_producers_relation
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(photos_producers_relation.position) + 1,0) FROM photos_producers_relation WHERE id_producer = NEW.id_producer);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `photos_products_descr_plus_relation`
--

DROP TABLE IF EXISTS `photos_products_descr_plus_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_products_descr_plus_relation` (
  `id_photo` int(10) unsigned DEFAULT NULL,
  `id_product` int(11) DEFAULT NULL,
  `show_in_lead` enum('Y','N') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `position` int(11) DEFAULT NULL,
  UNIQUE KEY `id_photo` (`id_photo`,`id_product`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `photos_products_descr_plus_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_products_descr_plus_relation_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_products_descr_plus_relation`
--

LOCK TABLES `photos_products_descr_plus_relation` WRITE;
/*!40000 ALTER TABLE `photos_products_descr_plus_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_products_descr_plus_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `photos_products_relation`
--

DROP TABLE IF EXISTS `photos_products_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_products_relation` (
  `id_photo` int(11) unsigned NOT NULL DEFAULT 0,
  `id_product` int(11) NOT NULL DEFAULT 0,
  `id_variation` int(11) DEFAULT NULL,
  `show_in_lead` enum('Y','N','O') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `position` int(11) DEFAULT NULL,
  UNIQUE KEY `id_photo` (`id_photo`,`id_product`,`id_variation`),
  KEY `id_product` (`id_product`),
  KEY `id_variation` (`id_variation`),
  KEY `photos_products_relation_show_in_lead_id_product_index` (`show_in_lead`,`id_product`),
  CONSTRAINT `photos_products_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_products_relation_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_products_relation_ibfk_3` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='fotky v clanku' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_products_relation`
--

LOCK TABLES `photos_products_relation` WRITE;
/*!40000 ALTER TABLE `photos_products_relation` DISABLE KEYS */;
INSERT INTO `photos_products_relation` VALUES
(1,1,NULL,'Y','Y','2013-09-13 11:08:27',0),
(2,1,NULL,'N','Y','2013-09-13 11:08:36',1),
(3,2,NULL,'Y','Y','2013-09-13 11:22:49',0),
(4,3,NULL,'Y','Y','2013-09-13 11:25:54',0),
(5,4,NULL,'Y','Y','2013-09-13 11:29:07',0),
(6,5,NULL,'Y','Y','2013-09-13 11:32:12',0),
(7,6,NULL,'Y','Y','2013-09-13 11:36:28',0),
(10,9,NULL,'N','Y','2015-02-13 11:30:03',1),
(11,9,NULL,'N','Y','2015-02-13 11:30:03',2),
(12,9,NULL,'Y','Y','2015-02-13 11:30:04',0),
(13,10,NULL,'N','Y','2015-02-13 11:30:18',1),
(14,10,NULL,'Y','Y','2015-02-13 11:30:18',0),
(15,10,NULL,'N','Y','2015-02-13 11:30:18',2),
(16,10,NULL,'N','Y','2015-02-13 11:30:18',3),
(17,10,NULL,'N','Y','2015-02-13 11:30:18',4),
(18,10,NULL,'N','Y','2015-02-13 11:30:18',5),
(19,8,NULL,'Y','Y','2015-02-13 11:30:30',0),
(20,8,NULL,'N','Y','2015-02-13 11:30:30',1),
(21,8,NULL,'N','Y','2015-02-13 11:30:30',2),
(22,7,NULL,'Y','Y','2015-02-13 11:32:45',0),
(23,11,NULL,'N','Y','2015-02-13 12:00:37',1),
(24,11,NULL,'N','Y','2015-02-13 12:03:54',2),
(25,11,NULL,'N','Y','2015-02-13 12:03:54',3),
(26,11,NULL,'Y','Y','2015-02-13 12:03:55',0);
/*!40000 ALTER TABLE `photos_products_relation` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_photos_products_relation BEFORE INSERT ON photos_products_relation
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(photos_products_relation.position) + 1, 0) FROM photos_products_relation WHERE id_product = NEW.id_product);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `photos_sections_relation`
--

DROP TABLE IF EXISTS `photos_sections_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_sections_relation` (
  `id_photo` int(11) unsigned NOT NULL DEFAULT 0,
  `id_section` int(11) NOT NULL DEFAULT 0,
  `show_in_lead` enum('Y','N') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_photo`,`id_section`),
  KEY `photos_sections_relation_ibfk_1` (`id_section`),
  KEY `show_in_lead` (`show_in_lead`),
  CONSTRAINT `photos_sections_relation_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_sections_relation_ibfk_2` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='fotky k sekci' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_sections_relation`
--

LOCK TABLES `photos_sections_relation` WRITE;
/*!40000 ALTER TABLE `photos_sections_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_sections_relation` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_photos_sections_relation BEFORE INSERT ON photos_sections_relation
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(photos_sections_relation.position) + 1, 0) FROM photos_sections_relation WHERE id_section= NEW.id_section);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `photos_sellers_relation`
--

DROP TABLE IF EXISTS `photos_sellers_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_sellers_relation` (
  `id_photo` int(11) unsigned NOT NULL,
  `id_seller` int(11) NOT NULL,
  `show_in_lead` enum('Y','N') NOT NULL DEFAULT 'N',
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `date_added` datetime NOT NULL DEFAULT curdate(),
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_photo`,`id_seller`),
  KEY `photos_sellers_relation_ibfk_2` (`id_seller`),
  KEY `photos_sellers_relation_ibfk_3` (`show_in_lead`),
  CONSTRAINT `photos_sellers_relation_ibfk_1` FOREIGN KEY (`id_seller`) REFERENCES `sellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `photos_sellers_relation_ibfk_4` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_sellers_relation`
--

LOCK TABLES `photos_sellers_relation` WRITE;
/*!40000 ALTER TABLE `photos_sellers_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_sellers_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `photos_translations`
--

DROP TABLE IF EXISTS `photos_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `photos_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_photo` int(10) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `descr` mediumtext DEFAULT NULL,
  `image_2` varchar(100) DEFAULT NULL,
  `image_tablet` varchar(100) DEFAULT NULL,
  `image_mobile` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_photo` (`id_photo`),
  CONSTRAINT `photos_translations_ibfk_1` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `photos_translations`
--

LOCK TABLES `photos_translations` WRITE;
/*!40000 ALTER TABLE `photos_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `photos_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pos`
--

DROP TABLE IF EXISTS `pos`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pos` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(60) NOT NULL,
  `date_created` datetime DEFAULT NULL,
  `cash_delivery_type` int(10) unsigned DEFAULT NULL,
  `card_delivery_type` int(10) unsigned DEFAULT NULL,
  `invoice_delivery_type` int(10) unsigned DEFAULT NULL,
  `custom_delivery_type` int(10) unsigned DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_TypeCashDelivery` (`cash_delivery_type`),
  KEY `FK_TypeCardDelivery` (`card_delivery_type`),
  KEY `FK_TypeInvoiceDelivery` (`invoice_delivery_type`),
  KEY `FK_TypeCustomDelivery` (`custom_delivery_type`),
  CONSTRAINT `FK_TypeCardDelivery` FOREIGN KEY (`card_delivery_type`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_TypeCashDelivery` FOREIGN KEY (`cash_delivery_type`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_TypeCustomDelivery` FOREIGN KEY (`custom_delivery_type`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `FK_TypeInvoiceDelivery` FOREIGN KEY (`invoice_delivery_type`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pos`
--

LOCK TABLES `pos` WRITE;
/*!40000 ALTER TABLE `pos` DISABLE KEYS */;
INSERT INTO `pos` VALUES
(1,'Pokladna 1','2023-04-04 15:29:28',NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `pos` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pos_payments_relation`
--

DROP TABLE IF EXISTS `pos_payments_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pos_payments_relation` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_pos` int(11) NOT NULL,
  `id_payment` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_pos` (`id_pos`),
  KEY `id_payment` (`id_payment`),
  CONSTRAINT `FK_IDPos` FOREIGN KEY (`id_pos`) REFERENCES `pos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `pos_payments_fk_2` FOREIGN KEY (`id_payment`) REFERENCES `order_payments` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pos_payments_relation`
--

LOCK TABLES `pos_payments_relation` WRITE;
/*!40000 ALTER TABLE `pos_payments_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `pos_payments_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preorders`
--

DROP TABLE IF EXISTS `preorders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preorders` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_pricelist` int(11) DEFAULT NULL,
  `id_price_level` int(10) unsigned DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `settings` mediumtext DEFAULT NULL,
  `min_price` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `preorders_ibfk_1` (`id_pricelist`),
  KEY `preorder_ibfk_2` (`id_price_level`),
  CONSTRAINT `preorder_ibfk_2` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `preorders_ibfk_1` FOREIGN KEY (`id_pricelist`) REFERENCES `pricelists` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preorders`
--

LOCK TABLES `preorders` WRITE;
/*!40000 ALTER TABLE `preorders` DISABLE KEYS */;
/*!40000 ALTER TABLE `preorders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preorders_dates`
--

DROP TABLE IF EXISTS `preorders_dates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preorders_dates` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_preorder` int(11) unsigned NOT NULL,
  `date_start` date NOT NULL,
  `date_end` date NOT NULL,
  `date_shipment` varchar(1023) DEFAULT NULL,
  `description` longtext DEFAULT '',
  PRIMARY KEY (`id`),
  KEY `preorders_dates_ibfk_1` (`id_preorder`),
  CONSTRAINT `preorders_dates_ibfk_1` FOREIGN KEY (`id_preorder`) REFERENCES `preorders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preorders_dates`
--

LOCK TABLES `preorders_dates` WRITE;
/*!40000 ALTER TABLE `preorders_dates` DISABLE KEYS */;
/*!40000 ALTER TABLE `preorders_dates` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preorders_dates_translations`
--

DROP TABLE IF EXISTS `preorders_dates_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preorders_dates_translations` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_preorders_date` int(11) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `description` varchar(255) DEFAULT NULL,
  `date_shipment` varchar(1023) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_preorders_date` (`id_preorders_date`),
  CONSTRAINT `preorders_dates_translations_ibfk_1` FOREIGN KEY (`id_preorders_date`) REFERENCES `preorders_dates` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preorders_dates_translations`
--

LOCK TABLES `preorders_dates_translations` WRITE;
/*!40000 ALTER TABLE `preorders_dates_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `preorders_dates_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preorders_items`
--

DROP TABLE IF EXISTS `preorders_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preorders_items` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_preorder_date` int(11) unsigned NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `id_user` int(11) unsigned NOT NULL,
  `piece_price` decimal(15,4) DEFAULT NULL,
  `pieces` mediumint(9) NOT NULL DEFAULT 1,
  `pieces_sent` mediumint(9) NOT NULL DEFAULT 0,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_user` (`id_user`,`id_product`,`id_variation`,`id_preorder_date`),
  KEY `preorders_items_ibfk_1` (`id_product`),
  KEY `preorders_items_ibfk_2` (`id_variation`),
  KEY `preorders_items_ibfk_3` (`id_preorder_date`),
  CONSTRAINT `preorders_items_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `preorders_items_ibfk_2` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `preorders_items_ibfk_3` FOREIGN KEY (`id_preorder_date`) REFERENCES `preorders_dates` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `preorders_items_ibfk_4` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preorders_items`
--

LOCK TABLES `preorders_items` WRITE;
/*!40000 ALTER TABLE `preorders_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `preorders_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preorders_translations`
--

DROP TABLE IF EXISTS `preorders_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preorders_translations` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_preorder` int(11) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_preorder` (`id_preorder`),
  CONSTRAINT `preorders_translations_ibfk_1` FOREIGN KEY (`id_preorder`) REFERENCES `preorders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preorders_translations`
--

LOCK TABLES `preorders_translations` WRITE;
/*!40000 ALTER TABLE `preorders_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `preorders_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `preorders_users_data`
--

DROP TABLE IF EXISTS `preorders_users_data`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `preorders_users_data` (
  `id_user` int(11) unsigned NOT NULL,
  `id_preorder_date` int(11) unsigned NOT NULL,
  `history` longtext NOT NULL DEFAULT '',
  `custom_data` longtext NOT NULL DEFAULT '',
  PRIMARY KEY (`id_user`,`id_preorder_date`),
  KEY `id_preorder_date` (`id_preorder_date`),
  CONSTRAINT `preorders_users_data_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `preorders_users_data_ibfk_2` FOREIGN KEY (`id_preorder_date`) REFERENCES `preorders_dates` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `preorders_users_data`
--

LOCK TABLES `preorders_users_data` WRITE;
/*!40000 ALTER TABLE `preorders_users_data` DISABLE KEYS */;
/*!40000 ALTER TABLE `preorders_users_data` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `price_history`
--

DROP TABLE IF EXISTS `price_history`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `price_history` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_pricelist` int(11) DEFAULT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `price` decimal(15,4) NOT NULL,
  `last` int(11) NOT NULL,
  `date_change` date NOT NULL,
  `up` tinyint(4) NOT NULL DEFAULT 0,
  `date_to` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `last` (`last`),
  KEY `price_history_ibfk_1` (`id_product`),
  KEY `price_history_ibfk_2` (`id_variation`),
  KEY `id_pricelist` (`id_pricelist`),
  KEY `price_history_id_product_id_pricelist_id_variation_index` (`id_product`,`id_pricelist`,`id_variation`) COMMENT 'Compound index, fields order by cardinality (assuming that half of the products have no variations)',
  CONSTRAINT `price_history_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `price_history_ibfk_2` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `price_history_ibfk_3` FOREIGN KEY (`id_pricelist`) REFERENCES `pricelists` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `price_history`
--

LOCK TABLES `price_history` WRITE;
/*!40000 ALTER TABLE `price_history` DISABLE KEYS */;
/*!40000 ALTER TABLE `price_history` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `price_levels`
--

DROP TABLE IF EXISTS `price_levels`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `price_levels` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL DEFAULT '',
  `descr` mediumtext NOT NULL,
  `discount` float NOT NULL DEFAULT 0,
  `discount_discount` float DEFAULT NULL,
  `unit` enum('perc','price') NOT NULL DEFAULT 'perc',
  `combine` enum('Y','N') NOT NULL DEFAULT 'Y',
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='cenove hladiny eshopu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `price_levels`
--

LOCK TABLES `price_levels` WRITE;
/*!40000 ALTER TABLE `price_levels` DISABLE KEYS */;
/*!40000 ALTER TABLE `price_levels` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `price_levels_producers`
--

DROP TABLE IF EXISTS `price_levels_producers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `price_levels_producers` (
  `id_price_level` int(10) unsigned NOT NULL DEFAULT 0,
  `id_producer` int(10) unsigned NOT NULL DEFAULT 0,
  `discount` float NOT NULL DEFAULT 0,
  `unit` enum('perc','price') NOT NULL DEFAULT 'perc',
  PRIMARY KEY (`id_price_level`,`id_producer`),
  KEY `id_product` (`id_producer`),
  CONSTRAINT `price_levels_producers_ibfk_1` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `price_levels_producers_ibfk_2` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='cenove hladiny eshopu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `price_levels_producers`
--

LOCK TABLES `price_levels_producers` WRITE;
/*!40000 ALTER TABLE `price_levels_producers` DISABLE KEYS */;
/*!40000 ALTER TABLE `price_levels_producers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `price_levels_products`
--

DROP TABLE IF EXISTS `price_levels_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `price_levels_products` (
  `id_price_level` int(10) unsigned NOT NULL DEFAULT 0,
  `id_product` int(11) NOT NULL,
  `discount` float NOT NULL DEFAULT 0,
  `unit` enum('perc','price','final_price') NOT NULL DEFAULT 'perc',
  PRIMARY KEY (`id_price_level`,`id_product`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `price_levels_products_ibfk_1` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `price_levels_products_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='cenove hladiny eshopu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `price_levels_products`
--

LOCK TABLES `price_levels_products` WRITE;
/*!40000 ALTER TABLE `price_levels_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `price_levels_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `price_levels_ranges`
--

DROP TABLE IF EXISTS `price_levels_ranges`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `price_levels_ranges` (
  `id_price_level` int(10) unsigned NOT NULL,
  `range_from` int(11) NOT NULL,
  `range_to` int(11) NOT NULL,
  `discount` float NOT NULL DEFAULT 0,
  `unit` enum('perc','price','final_price') NOT NULL DEFAULT 'perc',
  KEY `id_price_level` (`id_price_level`),
  CONSTRAINT `price_levels_ranges_ibfk_1` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `price_levels_ranges`
--

LOCK TABLES `price_levels_ranges` WRITE;
/*!40000 ALTER TABLE `price_levels_ranges` DISABLE KEYS */;
/*!40000 ALTER TABLE `price_levels_ranges` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `price_levels_sections`
--

DROP TABLE IF EXISTS `price_levels_sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `price_levels_sections` (
  `id_price_level` int(10) unsigned NOT NULL DEFAULT 0,
  `id_section` int(11) NOT NULL,
  `discount` float NOT NULL DEFAULT 0,
  `unit` enum('perc','price') NOT NULL DEFAULT 'perc',
  PRIMARY KEY (`id_price_level`,`id_section`),
  KEY `id_section` (`id_section`),
  CONSTRAINT `price_levels_sections_ibfk_1` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `price_levels_sections_ibfk_2` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='cenove hladiny eshopu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `price_levels_sections`
--

LOCK TABLES `price_levels_sections` WRITE;
/*!40000 ALTER TABLE `price_levels_sections` DISABLE KEYS */;
/*!40000 ALTER TABLE `price_levels_sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pricelists`
--

DROP TABLE IF EXISTS `pricelists`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pricelists` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `currency` varchar(3) DEFAULT NULL,
  `name` varchar(60) NOT NULL,
  `price_history` tinyint(4) DEFAULT 0,
  `use_product_discount` tinyint(4) DEFAULT 0,
  `coefficient` decimal(4,2) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_28511D046956883F` (`currency`),
  CONSTRAINT `FK_28511D046956883F` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pricelists`
--

LOCK TABLES `pricelists` WRITE;
/*!40000 ALTER TABLE `pricelists` DISABLE KEYS */;
/*!40000 ALTER TABLE `pricelists` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `pricelists_products`
--

DROP TABLE IF EXISTS `pricelists_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pricelists_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_pricelist` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `price` decimal(15,4) DEFAULT NULL COMMENT '(DC2Type:decimal)',
  `price_for_discount` decimal(15,4) DEFAULT NULL,
  `discount` decimal(12,8) DEFAULT NULL COMMENT '(DC2Type:decimal)',
  `integrity_unique` varchar(50) GENERATED ALWAYS AS (concat_ws('-',`id_pricelist`,`id_product`,`id_variation`)) VIRTUAL,
  `generated` tinyint(4) DEFAULT 0,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pricelist_product` (`id_pricelist`,`id_product`,`id_variation`),
  UNIQUE KEY `integrity_unique` (`integrity_unique`),
  KEY `IDX_49750F94DCFA564A` (`id_pricelist`),
  KEY `FK_pricelists_products_id_product` (`id_product`),
  KEY `FK_pricelists_products_id_variation` (`id_variation`),
  CONSTRAINT `FK_49750F94DCFA564A` FOREIGN KEY (`id_pricelist`) REFERENCES `pricelists` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_pricelists_products_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_pricelists_products_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `pricelists_products`
--

LOCK TABLES `pricelists_products` WRITE;
/*!40000 ALTER TABLE `pricelists_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `pricelists_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `producers`
--

DROP TABLE IF EXISTS `producers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `producers` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_block` int(11) unsigned DEFAULT NULL,
  `name` varchar(100) NOT NULL,
  `top` enum('Y','N') DEFAULT 'N',
  `photo` varchar(50) NOT NULL,
  `web` mediumtext NOT NULL,
  `active` enum('Y','N') NOT NULL DEFAULT 'Y',
  `position` int(11) DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `orderby` enum('date','title','price','store','sell','code','discount','soldPrice','dateStockIn') DEFAULT 'title',
  `orderdir` enum('ASC','DESC') NOT NULL DEFAULT 'ASC',
  `company_web` varchar(100) DEFAULT NULL,
  `import_company_web` varchar(100) DEFAULT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `date_updated` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `company_name` varchar(250) DEFAULT NULL,
  `company_street` varchar(100) DEFAULT NULL,
  `company_city` varchar(50) DEFAULT NULL,
  `company_zip` varchar(50) DEFAULT NULL,
  `company_country` varchar(50) DEFAULT NULL,
  `company_email` varchar(100) DEFAULT NULL,
  `import_company_name` varchar(250) DEFAULT NULL,
  `import_company_street` varchar(100) DEFAULT NULL,
  `import_company_city` varchar(50) DEFAULT NULL,
  `import_company_zip` varchar(50) DEFAULT NULL,
  `import_company_country` varchar(50) DEFAULT NULL,
  `import_company_email` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `filter_url` (`filter_url`),
  KEY `fk_producers_blocks` (`id_block`),
  CONSTRAINT `fk_producers_blocks` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tab. s vyrobci produktu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `producers`
--

LOCK TABLES `producers` WRITE;
/*!40000 ALTER TABLE `producers` DISABLE KEYS */;
INSERT INTO `producers` VALUES
(10,47,'Adidas','Y','../../static/demo/producers/p10.png','http://www.adidas.cz/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'adidas',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(11,49,'Alpine Pro','Y','../../static/demo/producers/p11.png','http://www.alpinepro.cz/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'alpine-pro',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(12,51,'Nike','Y','','http://www.nike.com/cz/en_gb/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'nike',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(13,53,'Arena','Y','../../static/demo/producers/p13.jpg','','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'arena',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(14,55,'DeWALT','Y','../../static/demo/producers/p14.png','http://www.dewalt.cz/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'dewalt',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(15,57,'Black & Decker','Y','../../static/demo/producers/p15.png','http://www.blackanddecker.cz/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'black-decker',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(16,59,'Metabo','Y','../../static/demo/producers/p16.png','http://www.metabo.cz/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'metabo',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(17,61,'wpj','Y','../../static/demo/producers/p17.gif','http://www.wpj.cz/','Y',NULL,NULL,NULL,NULL,'title','ASC',NULL,NULL,'wpj',NULL,NULL,'2025-02-06 22:05:15',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `producers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `producers_translations`
--

DROP TABLE IF EXISTS `producers_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `producers_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_producer` int(11) unsigned NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `descr` longtext DEFAULT NULL,
  `web` mediumtext DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `company_name` varchar(250) DEFAULT NULL,
  `company_street` varchar(100) DEFAULT NULL,
  `company_city` varchar(50) DEFAULT NULL,
  `company_zip` varchar(50) DEFAULT NULL,
  `company_country` varchar(50) DEFAULT NULL,
  `company_email` varchar(100) DEFAULT NULL,
  `company_web` varchar(100) DEFAULT NULL,
  `import_company_name` varchar(250) DEFAULT NULL,
  `import_company_street` varchar(100) DEFAULT NULL,
  `import_company_city` varchar(50) DEFAULT NULL,
  `import_company_zip` varchar(50) DEFAULT NULL,
  `import_company_country` varchar(50) DEFAULT NULL,
  `import_company_email` varchar(100) DEFAULT NULL,
  `import_company_web` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `producers_translations_id_producer_id_language_uindex` (`id_producer`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `producers_translations_ibfk_1` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `producers_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `producers_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `producers_translations`
--

LOCK TABLES `producers_translations` WRITE;
/*!40000 ALTER TABLE `producers_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `producers_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `product_labels_relation`
--

DROP TABLE IF EXISTS `product_labels_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_labels_relation` (
  `id_label` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `generated` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_label`,`id_product`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `product_labels_relation_ibfk_1` FOREIGN KEY (`id_label`) REFERENCES `labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `product_labels_relation_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `product_labels_relation`
--

LOCK TABLES `product_labels_relation` WRITE;
/*!40000 ALTER TABLE `product_labels_relation` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_labels_relation` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `product_reservations`
--

DROP TABLE IF EXISTS `product_reservations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_reservations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` enum('retail_reserve','reservation') NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_product_reservations_id_product` (`id_product`),
  KEY `fk_product_reservations_id_variation` (`id_variation`),
  KEY `product_reservations_type_index` (`type`),
  CONSTRAINT `fk_product_reservations_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `fk_product_reservations_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `product_reservations`
--

LOCK TABLES `product_reservations` WRITE;
/*!40000 ALTER TABLE `product_reservations` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_reservations` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_block` int(11) unsigned DEFAULT NULL,
  `title` varchar(100) NOT NULL DEFAULT '',
  `code` varchar(50) DEFAULT NULL,
  `ean` bigint(20) DEFAULT NULL,
  `short_descr` mediumtext NOT NULL,
  `long_descr` longtext NOT NULL,
  `parameters` longtext NOT NULL,
  `price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `price_for_discount` decimal(15,4) DEFAULT NULL,
  `price_common` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `vat` int(11) unsigned NOT NULL,
  `id_cn` bigint(12) unsigned DEFAULT NULL,
  `discount` decimal(12,8) unsigned NOT NULL DEFAULT 0.00000000,
  `producer` int(11) unsigned DEFAULT NULL,
  `guarantee` smallint(6) NOT NULL DEFAULT 0,
  `in_store` int(10) NOT NULL DEFAULT 0,
  `unit` int(11) NOT NULL DEFAULT 1,
  `pieces_sold` mediumint(9) NOT NULL DEFAULT 0,
  `delivery_time` int(4) NOT NULL DEFAULT 0,
  `campaign` set('N','S','D','L','A','M','Z','C','R','T','V','O','FS','MN','MS') NOT NULL,
  `updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `date_added` datetime DEFAULT current_timestamp(),
  `figure` enum('Y','N','O') DEFAULT 'Y',
  `show_raw_price` enum('Y','N') NOT NULL DEFAULT 'N',
  `position` int(11) DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `show_in_feed` enum('Y','N') NOT NULL DEFAULT 'Y',
  `max_cpc` double NOT NULL DEFAULT 0,
  `in_store_min` int(11) DEFAULT NULL,
  `note` varchar(255) DEFAULT NULL,
  `weight` decimal(15,6) DEFAULT NULL,
  `price_buy` decimal(15,4) DEFAULT NULL,
  `bonus_points` int(11) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `pohoda_sync_date` datetime DEFAULT NULL,
  `width` decimal(15,4) DEFAULT NULL,
  `height` decimal(15,4) DEFAULT NULL,
  `depth` decimal(15,4) DEFAULT NULL,
  `date_stock_in` datetime DEFAULT NULL,
  `show_in_search` enum('Y','N') DEFAULT 'Y',
  `id_parameter_group` int(10) unsigned DEFAULT NULL,
  `batch_number_require` enum('Y','N') DEFAULT 'N',
  `measure_unit` int(11) DEFAULT NULL,
  `measure_quantity` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  UNIQUE KEY `unique_ean` (`ean`),
  KEY `title` (`title`),
  KEY `producer` (`producer`),
  KEY `campaign` (`campaign`),
  KEY `vat` (`vat`),
  KEY `figure` (`figure`),
  KEY `price` (`price`),
  KEY `products_id_cn_index` (`id_cn`),
  KEY `fk_products_parameter_group` (`id_parameter_group`),
  KEY `products_products_units_id_fk` (`unit`),
  KEY `products_measure_unit_fk` (`measure_unit`),
  KEY `id_block` (`id_block`),
  CONSTRAINT `fk_products_parameter_group` FOREIGN KEY (`id_parameter_group`) REFERENCES `parameter_groups` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `products_ibfk_1` FOREIGN KEY (`producer`) REFERENCES `producers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `products_ibfk_2` FOREIGN KEY (`vat`) REFERENCES `vats` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `products_ibfk_3` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`),
  CONSTRAINT `products_measure_unit_fk` FOREIGN KEY (`measure_unit`) REFERENCES `products_units` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `products_products_units_id_fk` FOREIGN KEY (`unit`) REFERENCES `products_units` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=106053 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tabulka se zbozim' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products`
--

LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` VALUES
(0,NULL,'NEPRODUKT - POKLADNA - NEMAZAT','0',NULL,'NEPRODUKT - POKLADNA - NEMAZAT','NEPRODUKT - POKLADNA - NEMAZAT','NEPRODUKT - POKLADNA - NEMAZAT',0.0000,0.0000,0.0000,1,NULL,0.00000000,NULL,0,0,1,0,0,'','2023-07-19 18:03:32','2000-01-01 00:00:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(1,NULL,'NIKE Capri LACE Test Dlouheho Nazvu Produktu Test Dlouheho Produktu Tes','QO591',1001,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul style=\"line-height: 20.7999992370605px;\">\r\n	<li><b>Složení</b>: WATERFEEL X-LIFE</li>\r\n	<li><b>Boky</b>: 27</li>\r\n	<li><b>Cílová skupina</b>: vhodné na trénink a pro aktivní plavání</li>\r\n	<li><b>Pásek</b>: tkanička v pase pro snadné přizpůsobení velikosti</li>\r\n	<li><b>Materiál</b>: pohodlný a měkký materiál s prodlouženou životností. Poskytuje neodolatelnou volnost pohybu a odolává chlorované vodě a slunečnímu záření</li>\r\n</ul>',826.4460,826.4460,1200.0000,1,NULL,20.00000000,12,24,0,1,0,0,'N,L','2023-07-19 18:03:32','2015-02-16 09:41:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(2,NULL,'Adidas Mundial Goal Dalsi Test Velmi Dlouheho Produktoveho Nazvu','JQ671',1002,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul style=\"line-height: 20.7999992370605px;\">\r\n	<li><b>Složení</b>: WATERFEEL X-LIFE</li>\r\n	<li><b>Boky</b>: 27</li>\r\n	<li><b>Cílová skupina</b>: vhodné na trénink a pro aktivní plavání</li>\r\n	<li><b>Pásek</b>: tkanička v pase pro snadné přizpůsobení velikosti</li>\r\n	<li><b>Materiál</b>: pohodlný a měkký materiál s prodlouženou životností. Poskytuje neodolatelnou volnost pohybu a odolává chlorované vodě a slunečnímu záření</li>\r\n</ul>',2066.1160,2066.1160,2800.0000,1,NULL,10.00000000,10,24,9,1,0,-1,'D,L','2023-07-19 18:03:32','2015-02-16 09:41:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(3,NULL,'Wilson pure battle crew','MV934',NULL,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul style=\"line-height: 20.7999992370605px;\">\r\n	<li><b>Složení</b>: WATERFEEL X-LIFE</li>\r\n	<li><b>Boky</b>: 27</li>\r\n	<li><b>Cílová skupina</b>: vhodné na trénink a pro aktivní plavání</li>\r\n	<li><b>Pásek</b>: tkanička v pase pro snadné přizpůsobení velikosti</li>\r\n	<li><b>Materiál</b>: pohodlný a měkký materiál s prodlouženou životností. Poskytuje neodolatelnou volnost pohybu a odolává chlorované vodě a slunečnímu záření</li>\r\n</ul>',661.1570,661.1570,900.0000,1,NULL,0.00000000,NULL,24,-1,1,1,-1,'S,L,A','2023-07-19 18:03:32','2014-09-26 08:27:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(4,NULL,'Columbia Lay D Down','UQ372',NULL,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul style=\"line-height: 20.7999992370605px;\">\r\n	<li><b>Složení</b>: WATERFEEL X-LIFE</li>\r\n	<li><b>Boky</b>: 27</li>\r\n	<li><b>Cílová skupina</b>: vhodné na trénink a pro aktivní plavání</li>\r\n	<li><b>Pásek</b>: tkanička v pase pro snadné přizpůsobení velikosti</li>\r\n	<li><b>Materiál</b>: pohodlný a měkký materiál s prodlouženou životností. Poskytuje neodolatelnou volnost pohybu a odolává chlorované vodě a slunečnímu záření</li>\r\n</ul>',4132.2310,4132.2310,6000.0000,1,NULL,0.00000000,NULL,24,5,1,0,-1,'L','2023-07-19 18:03:32','2014-09-26 08:27:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(5,NULL,'Alpine Pro NEW SPIDER PTX','TO499',NULL,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul style=\"line-height: 20.7999992370605px;\">\r\n	<li><b>Složení</b>: WATERFEEL X-LIFE</li>\r\n	<li><b>Boky</b>: 27</li>\r\n	<li><b>Cílová skupina</b>: vhodné na trénink a pro aktivní plavání</li>\r\n	<li><b>Pásek</b>: tkanička v pase pro snadné přizpůsobení velikosti</li>\r\n	<li><b>Materiál</b>: pohodlný a měkký materiál s prodlouženou životností. Poskytuje neodolatelnou volnost pohybu a odolává chlorované vodě a slunečnímu záření</li>\r\n</ul>',0.0000,0.0000,1600.0000,1,NULL,0.00000000,11,24,3,1,0,-1,'L','2023-07-19 18:03:32','2015-02-16 09:41:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(6,NULL,'Salomon XR MISSION W','NO206',NULL,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul style=\"line-height: 20.7999992370605px;\">\r\n	<li><b>Složení</b>: WATERFEEL X-LIFE</li>\r\n	<li><b>Boky</b>: 27</li>\r\n	<li><b>Cílová skupina</b>: vhodné na trénink a pro aktivní plavání</li>\r\n	<li><b>Pásek</b>: tkanička v pase pro snadné přizpůsobení velikosti</li>\r\n	<li><b>Materiál</b>: pohodlný a měkký materiál s prodlouženou životností. Poskytuje neodolatelnou volnost pohybu a odolává chlorované vodě a slunečnímu záření</li>\r\n</ul>',2479.3390,2479.3390,0.0000,1,NULL,0.00000000,NULL,24,19,1,0,0,'N,S,L','2023-07-19 18:03:32','2015-02-16 09:41:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(7,NULL,'Black and Decker Firestorm FSB14','FT572',NULL,'Lorem ipsum dolor sit amet','<ul>\r\n	<li>Vhodná pro:    <br />\r\n	Black and Decker BDG14SF-2    Black and Decker BDGL1440<br />\r\n	Black and Decker BDGL14K-2    Black and Decker CD142SK<br />\r\n	Black and Decker CD14SFK    Black and Decker CDC140AK<br />\r\n	Black and Decker CDC1440K    Black and Decker CP14K<br />\r\n	Black and Decker CP14KB    Black and Decker EPC14CA<br />\r\n	Black and Decker EPC14CAB    Black and Decker HP142K<br />\r\n	Black and Decker HP142KD    Black and Decker HP146F2<br />\r\n	Black and Decker HP146F2B    Black and Decker HP146F3B<br />\r\n	Black and Decker HP146F3K    Black and Decker HP146FBH<br />\r\n	Black and Decker HP148F2    Black and Decker HP148F2B<br />\r\n	Black and Decker HP148F2K    Black and Decker HP148F2R<br />\r\n	Black and Decker HP148F3B    Black and Decker HP148F3K<br />\r\n	Black and Decker HP14K    Black and Decker HP14KD<br />\r\n	Black and Decker HPD1400    Black and Decker HPD14K-2<br />\r\n	Black and Decker HPS1440    Black and Decker KC2002F<br />\r\n	Black and Decker KC2002FK    Black and Decker NM14<br />\r\n	Black and Decker PS142K    Black and Decker R143F2<br />\r\n	Black and Decker RD1440K    Black and Decker RD1441K<br />\r\n	Black and Decker SX4000    Black and Decker SX5500<br />\r\n	Black and Decker SX6000    Black and Decker SX7000<br />\r\n	Black and Decker SX7500    Black and Decker SXR14<br />\r\n	Black and Decker XTC143BK    </li>\r\n</ul>','<p><strong>Technické parametry:</strong>    </p>\r\n\r\n<p>Kapacita: 3300 mAh  <br />\r\nNapětí:14,4V<br />\r\nTyp: NiMH    <br />\r\nHmotnost: 912g</p>',1035.5370,1035.5370,0.0000,1,NULL,36.15299988,13,24,2,1,0,-1,'','2023-07-19 18:03:32','2015-02-16 09:45:00','Y','N',NULL,NULL,NULL,NULL,'N',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(8,NULL,'METABO BS 14,4 Li set mobilní dílna','XV352',NULL,'METABO BS 14,4 Li set mobilní dílna','<p><strong>METABO BS 14,4 Li</strong></p>\r\n\r\n<ul>\r\n	<li>Rychloupínací sklíčidlo s aretací hřídele pro snadnou výměnu nástroje</li>\r\n	<li>20 nastavitelných točivých momentů, plus stupeň vrtání</li>\r\n	<li>Dvourychlostní převodovka pro ideální volbu pracovních otáček</li>\r\n	<li>Patentovaný LED ukazatel stavu nabití článku</li>\r\n	<li>Nově vylepšená elektronika Variospeed (V)</li>\r\n	<li>Držáky bitů na obou stranách stroje</li>\r\n	<li>Pravý a levý chod stroje</li>\r\n</ul>\r\n\r\n<p><strong>Součástí dodávky:</strong><br />\r\n2x akumulátor LI-ion 2,0 Ah, Nabíječka SC60 plus, kufr s příslušenstvím:</p>\r\n\r\n<ul>\r\n	<li>Svinovací metr 5m</li>\r\n	<li>Vrtáky do kovu (1,5-1,5-2-2-2,5-3-3,5-4-4,5-5-5,5-6-6,5)</li>\r\n	<li>Vrtáky do dřeva (4-5-6-8-10)</li>\r\n	<li>Ploché frézovací vrtáky do dřeva (16-20-22)</li>\r\n	<li>Ulamovací nůž, čepel 18 mm</li>\r\n	<li>3x držák bitů</li>\r\n	<li>Šroubovací šestihranné nástavce 6-7-8-9-10-11-12-13</li>\r\n	<li>bity 25 mm - PH1-PH2-PH2-PH3</li>\r\n	<li>bity 25 mm - PZ1-PZ2-PZ2-PZ3</li>\r\n	<li>bity 25 mm - H3-H4-H5-H6</li>\r\n	<li>bity 25 mm - T15-T20-T25</li>\r\n	<li>bity 25 mm - S4-S6-S7</li>\r\n	<li>bity 50 mm - PH1, PH2, PH3, PZ1, PZ2, PZ3, S4, S6, T20, T25</li>\r\n	<li>Záhlubník</li>\r\n</ul>','<p>druh akulumátorového článku: Li-Ion<br />\r\nnapětí akumulátoru: 14,4 V<br />\r\nkapacita akumulátoru: 2 Ah<br />\r\nmax. točivý moment měkký: 20 Nm<br />\r\nmax. točivý moment tvrdý: 40 Nm<br />\r\nnastavitelný točivý moment: 0,8 - 5 Nm<br />\r\nprůměr vrtáku do oceli: 10 mm/5 mm<br />\r\nprůměr vrtáku do dřeva: 20 mm/16 mm<br />\r\npočet otáček při volnoběhu: 0 - 450 / 0 - 1.600 /min<br />\r\nzávit vrtacího vřetena: 1/2\" -20 UNF<br />\r\nrozpětí sklíčidla: 1 - 10 mm</p>',4123.9670,4123.9670,0.0000,1,NULL,0.00000000,16,24,0,1,0,0,'N','2023-07-19 18:03:32','2015-02-16 09:38:00','Y','N',NULL,NULL,NULL,NULL,'Y',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(9,NULL,'DeWALT DCD780C2 aku vrtačka','NL935',NULL,'DeWALT DCD780C2 aku vrtačka','<ul>\r\n	<li>Poslední generace kompaktní vrtačky/šroubováku XR Li-Ion 18 V disponuje NOVOU baterií s technologií XR Li-Ion</li>\r\n	<li>Extrémně kompaktní a lehká konstrukce umožňuje použití v omezených prostorech</li>\r\n	<li>Celokovová převodovka se dvěma převodovými stupni zaručuje delší provozní dobu a provozní životnost nářadí</li>\r\n	<li>Možnost nastavení 14 poloh pro hodnotu momentu zaručuje optimalizovanou přesnost při šroubování různých šroubů a vrutů do různých materiálů</li>\r\n	<li>Konstrukce inteligentního spouštěcího spínače zaručuje dokonalou ovladatelnost při práci</li>\r\n	<li>Kompaktní rychloupínací sklíčidlo 13 mm s jednou objímkou a s automatickým zajištěním hřídele umožňuje rychlou a snadnou výměnu nástroje pouze jednou rukou</li>\r\n	<li>Jasné bílé světlo LED diody se zpožděním poskytuje lepší viditelnost a funkci svítilny</li>\r\n	<li>Zdokonalená ergonomická konstrukce a gumová rukojeť zvyšují komfort obsluhy</li>\r\n	<li>Nasunovací baterie Li-Ion umožňuje velmi jednoduché vkládání a vyjímání</li>\r\n	<li>Univerzální nabíječka pro použití s nasunovacími bateriemi XR Li-Ion s napájecím napětím 18 V, 14,4 V a 10,8 V</li>\r\n	<li>Ocelová příchytka na řemen a silný magnetický držák nástrojů zaručují pevné a bezpečné uložení</li>\r\n	<li>Součást inteligentní řady XR Lithium Ion určená pro efektivní a rychlé dokončení montážních úkolů</li>\r\n</ul>\r\n\r\n<p>\r\n<strong>Součástí dodávky:</strong><br />\r\n2x akumulátor LI-Ion 1,5 Ah, univerzální nabíječka XR, kufr, příchytka na řemen, magnetický držák nástrojů</p>','<p>Napájecí napětí 18 V<br />\r\nKapacita sklíčidla 1,5 - 13 mm<br />\r\nVýkon 350 W<br />\r\nOtáčky naprázdno 0 - 600 / 2000 ot./min<br />\r\nMax. kroutící moment 60 Nm<br />\r\nMax. průměr otvoru [dřevo] 38 mm<br />\r\nMax. průměr otvoru [kov] 13 mm<br />\r\nZávit vřetena <br />\r\nHmotnost 1,55 kg<br />\r\nDélka 190 mm<br />\r\nVýška 218 mm<br />\r\nHloubka 80 mm <br />\r\nBaterie 1,5 Ah</p>',5198.3470,5198.3470,0.0000,1,NULL,4.62599993,14,24,19,1,0,0,'S,A,Z','2023-07-19 18:03:32','2015-02-16 09:39:00','Y','N',NULL,NULL,NULL,NULL,'Y',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(10,NULL,'Black and Decker Core EGBL108K aku vrtačka','RD102velmidlouhykodproduktuprotest',NULL,'Lorem ipsum dolor sit amet','<p class=\"last\">Jenže kvůli všudy přítomné trávě jsou stíny balónků sotva vidět, natož aby šlo rozeznat, jakou barvu tyto stíny mají. Uvidět tak balónky náhodný kolemjdoucí, jistě by si pomyslel, že už tu takhle poletují snad tisíc let. Stále si víceméně drží výšku a ani do stran se příliš nepohybují. Proti slunci to vypadá, že se slunce pohybuje k západu rychleji než balónky, a možná to tak skutečně je. Nejeden filozof by mohl tvrdit, že balónky se sluncem závodí, ale fyzikové by to jistě vyvrátili. Z fyzikálního pohledu totiž balónky působí zcela nezajímavě.</p>','<ul>\r\n	<li>list 1</li>\r\n	<li>list 1</li>\r\n	<li>list 1</li>\r\n</ul>',1748.7600,1748.7600,0.0000,2,NULL,20.00000000,15,24,-1,1,1,-2,'D','2023-07-19 18:03:32','2015-02-16 09:37:00','Y','N',NULL,NULL,NULL,NULL,'Y',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL),
(11,NULL,'iPhone wpj','GR573',NULL,'wpj','<p class=\"last\">Mobilní telefon Apple A6 Dual-core 1.3GHz, dotykový 4\" Retina 1136x640, interní paměť 8GB, WiFi 802.11a/b/g/n, Bluetooth 4.0, 8 Mpx fotoaparát s LED bleskem, GPS, Gyroskop, Akcelerometr, Lightning rozhraní, iOS 8</p>','<p><strong>Barvy plné života</strong></p>\r\n\r\n<p>Každá funkce a vlastnost telefonu iPhone 5C vám vylepší všechny zážitky. Díky<br />\r\npestrým barevným povrchům si můžete vybrat barvu, která vám sedne nejvíce<br />\r\n- dokonce i domovská stránka a tapety jsou navrženy v barvě vašeho iPhonu.</p>\r\n\r\n<p><strong>Apple A6 - záruka neomezených možností</strong></p>\r\n\r\n<p>Spouštějte oblíbené aplikace. Procházejte si sociální sítě. Stahujte si a sledujte HD videa. Hrajte dechberoucí hry. Zkrátka všechno, co rádi na iPhonu děláte - navíc s rychlostí, kterou očekáváte.</p>\r\n\r\n<p><strong>Zbrusu nový iOS 8</strong></p>\r\n\r\n<p>Jasnější a jednodušší ikony. Prostředí, které působí živě a plynule. Nové funkce,<br />\r\nkteré naplno využívají potenciál skrytý uvnitř telefonu. Světově nejpokročilejší<br />\r\noperační systém iOS 8 je perfektním společníkem nového iPhonu 5C.</p>',1652.0660,1652.0660,0.0000,1,NULL,80.04000092,17,36,23,1,10,0,'N,S,D,L,M,Z','2023-07-19 18:03:32','2015-02-13 13:56:00','Y','N',NULL,NULL,NULL,NULL,'Y',0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Y',NULL,'N',NULL,NULL);
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER IF NOT EXISTS trigger_insert_product_ean_in_variants
            BEFORE INSERT ON products FOR EACH ROW
            BEGIN CALL check_duplicate_product_ean(NEW.ean, 0); END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER IF NOT EXISTS trigger_update_product_ean_in_variants
            BEFORE UPDATE ON products FOR EACH ROW
            BEGIN CALL check_duplicate_product_ean(NEW.ean, 0); END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `products_batches`
--

DROP TABLE IF EXISTS `products_batches`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_batches` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `code` varchar(100) NOT NULL,
  `date_expiry` datetime DEFAULT NULL,
  `integrity_unique` varchar(50) GENERATED ALWAYS AS (concat(`id_product`,'-',coalesce(`id_variation`,''),'-',`code`)) VIRTUAL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `integrity_unique` (`integrity_unique`),
  KEY `products_batches_id_product_index` (`id_product`),
  KEY `products_batches_code_index` (`code`),
  KEY `products_batches_products_variations_id_fk` (`id_variation`),
  CONSTRAINT `products_batches_products_id_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_batches_products_variations_id_fk` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_batches`
--

LOCK TABLES `products_batches` WRITE;
/*!40000 ALTER TABLE `products_batches` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_batches` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_charges`
--

DROP TABLE IF EXISTS `products_charges`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_charges` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_charge` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_charge` (`id_charge`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `products_charges_ibfk_1` FOREIGN KEY (`id_charge`) REFERENCES `charges` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_charges_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_charges`
--

LOCK TABLES `products_charges` WRITE;
/*!40000 ALTER TABLE `products_charges` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_charges` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_collections`
--

DROP TABLE IF EXISTS `products_collections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_collections` (
  `id_product` int(11) NOT NULL,
  `id_product_related` int(11) NOT NULL,
  PRIMARY KEY (`id_product`,`id_product_related`),
  KEY `id_product_related` (`id_product_related`),
  CONSTRAINT `products_collections_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_collections_ibfk_2` FOREIGN KEY (`id_product_related`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_collections`
--

LOCK TABLES `products_collections` WRITE;
/*!40000 ALTER TABLE `products_collections` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_collections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_favorites`
--

DROP TABLE IF EXISTS `products_favorites`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_favorites` (
  `id_user` int(11) unsigned NOT NULL DEFAULT 0,
  `id_product` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_user`,`id_product`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `products_favorites_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_favorites_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='oblibene polozky' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_favorites`
--

LOCK TABLES `products_favorites` WRITE;
/*!40000 ALTER TABLE `products_favorites` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_favorites` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_gifts`
--

DROP TABLE IF EXISTS `products_gifts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_gifts` (
  `id_product` int(11) NOT NULL,
  `id_product_gift` int(11) NOT NULL,
  `id_variation_gift` int(11) DEFAULT NULL,
  `price` double DEFAULT NULL,
  `pieces` int(11) DEFAULT 1,
  PRIMARY KEY (`id_product`,`id_product_gift`),
  KEY `products_gifts_ibfk_3` (`id_variation_gift`),
  KEY `id_product_gift` (`id_product_gift`),
  CONSTRAINT `products_gifts_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_gifts_ibfk_2` FOREIGN KEY (`id_product_gift`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_gifts_ibfk_3` FOREIGN KEY (`id_variation_gift`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=cp1250 COLLATE=cp1250_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_gifts`
--

LOCK TABLES `products_gifts` WRITE;
/*!40000 ALTER TABLE `products_gifts` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_gifts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_in_articles`
--

DROP TABLE IF EXISTS `products_in_articles`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_in_articles` (
  `id_product` int(11) DEFAULT NULL,
  `id_article` int(11) DEFAULT NULL,
  KEY `abra_products_in_articles_ibfk_1` (`id_product`),
  KEY `abra_products_in_articles_ibfk_2` (`id_article`),
  CONSTRAINT `abra_products_in_articles_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `abra_products_in_articles_ibfk_2` FOREIGN KEY (`id_article`) REFERENCES `articles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_in_articles`
--

LOCK TABLES `products_in_articles` WRITE;
/*!40000 ALTER TABLE `products_in_articles` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_in_articles` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_in_sections`
--

DROP TABLE IF EXISTS `products_in_sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_in_sections` (
  `id_product` int(11) NOT NULL DEFAULT 0,
  `id_section` int(11) NOT NULL DEFAULT 0,
  `figure` enum('Y','N') NOT NULL DEFAULT 'Y',
  `generated` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_product`,`id_section`),
  KEY `id_section` (`id_section`),
  CONSTRAINT `products_in_sections_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_in_sections_ibfk_2` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tbl. zarazeni zbozi do sekci' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_in_sections`
--

LOCK TABLES `products_in_sections` WRITE;
/*!40000 ALTER TABLE `products_in_sections` DISABLE KEYS */;
INSERT INTO `products_in_sections` VALUES
(1,6,'Y',0),
(2,5,'Y',0),
(5,5,'Y',0),
(6,6,'Y',0),
(7,2,'Y',0),
(8,3,'Y',0),
(9,3,'Y',0),
(10,3,'Y',0),
(11,2,'Y',0);
/*!40000 ALTER TABLE `products_in_sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_in_sections_positions`
--

DROP TABLE IF EXISTS `products_in_sections_positions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_in_sections_positions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL,
  `id_section` int(11) DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  `id_producer` int(11) unsigned DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `products_in_sections_positions_pk` (`id_product`,`id_section`,`id_producer`),
  KEY `id_section` (`id_section`),
  KEY `products_in_sections_positions_producers_id_fk` (`id_producer`),
  CONSTRAINT `products_in_sections_positions_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_in_sections_positions_ibfk_2` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_in_sections_positions_producers_id_fk` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_in_sections_positions`
--

LOCK TABLES `products_in_sections_positions` WRITE;
/*!40000 ALTER TABLE `products_in_sections_positions` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_in_sections_positions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_of_suppliers`
--

DROP TABLE IF EXISTS `products_of_suppliers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_of_suppliers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `id_supplier` int(11) NOT NULL,
  `code` varchar(100) DEFAULT NULL,
  `ean` bigint(20) DEFAULT NULL,
  `in_store` int(11) NOT NULL DEFAULT 0,
  `last_sync` datetime DEFAULT NULL,
  `price_buy` double DEFAULT NULL,
  `price_sell` double DEFAULT NULL,
  `import_multiplier` float DEFAULT 1,
  `note` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_product_2` (`id_product`,`id_variation`,`id_supplier`),
  UNIQUE KEY `id_supplier_2` (`id_supplier`,`code`),
  KEY `id_supplier` (`id_supplier`),
  KEY `id_product` (`id_product`),
  KEY `products_of_suppliers_id_variation_id_product_index` (`id_variation`,`id_product`),
  CONSTRAINT `products_of_suppliers_ibfk_4` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_of_suppliers_ibfk_5` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_of_suppliers_ibfk_6` FOREIGN KEY (`id_supplier`) REFERENCES `suppliers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_of_suppliers`
--

LOCK TABLES `products_of_suppliers` WRITE;
/*!40000 ALTER TABLE `products_of_suppliers` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_of_suppliers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_quantity_discounts`
--

DROP TABLE IF EXISTS `products_quantity_discounts`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_quantity_discounts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_group` int(11) DEFAULT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` int(11) NOT NULL,
  `discount` decimal(12,8) NOT NULL,
  `discount_type` varchar(10) NOT NULL DEFAULT 'perc',
  PRIMARY KEY (`id`),
  KEY `FK_id_product` (`id_product`),
  KEY `id_group_index` (`id_group`),
  KEY `quantity_discounts_id_variation` (`id_variation`),
  CONSTRAINT `FK_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `quantity_discounts_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_quantity_discounts`
--

LOCK TABLES `products_quantity_discounts` WRITE;
/*!40000 ALTER TABLE `products_quantity_discounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_quantity_discounts` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_related`
--

DROP TABLE IF EXISTS `products_related`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_related` (
  `id_top_product` int(11) NOT NULL,
  `id_rel_product` int(11) NOT NULL,
  `position` int(11) DEFAULT NULL,
  `type` int(11) NOT NULL,
  `id_products_related_dynamic` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_top_product`,`id_rel_product`,`type`),
  KEY `products_related_ibfk_2` (`id_rel_product`),
  KEY `type` (`type`),
  KEY `products_related_products_related_dynamic_id_fk` (`id_products_related_dynamic`),
  CONSTRAINT `products_related_ibfk_1` FOREIGN KEY (`id_top_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_related_ibfk_2` FOREIGN KEY (`id_rel_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_related_ibfk_3` FOREIGN KEY (`type`) REFERENCES `products_related_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_related_products_related_dynamic_id_fk` FOREIGN KEY (`id_products_related_dynamic`) REFERENCES `products_related_dynamic` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='souvisejici zbozi' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_related`
--

LOCK TABLES `products_related` WRITE;
/*!40000 ALTER TABLE `products_related` DISABLE KEYS */;
INSERT INTO `products_related` VALUES
(1,2,NULL,1,NULL),
(1,5,NULL,1,NULL),
(1,6,NULL,1,NULL),
(2,1,NULL,1,NULL),
(2,5,NULL,1,NULL),
(2,6,NULL,1,NULL),
(3,1,NULL,1,NULL),
(3,4,NULL,1,NULL),
(3,6,NULL,1,NULL),
(5,1,NULL,1,NULL),
(5,2,NULL,1,NULL),
(5,6,NULL,1,NULL),
(6,1,NULL,1,NULL),
(6,2,NULL,1,NULL),
(6,5,NULL,1,NULL),
(7,10,NULL,1,NULL),
(8,7,NULL,1,NULL),
(8,9,NULL,1,NULL),
(8,10,NULL,1,NULL),
(9,7,NULL,1,NULL),
(9,8,NULL,1,NULL),
(9,10,NULL,1,NULL),
(10,7,NULL,1,NULL),
(10,8,NULL,1,NULL),
(10,9,NULL,1,NULL);
/*!40000 ALTER TABLE `products_related` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_products_related BEFORE INSERT ON products_related
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(products_related.position) + 1, 0) FROM products_related WHERE id_top_product = NEW.id_top_product);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `products_related_dynamic`
--

DROP TABLE IF EXISTS `products_related_dynamic`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_related_dynamic` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_products_related_types` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `data` longtext NOT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `products_related_dynamic_products_related_types_id_fk` (`id_products_related_types`),
  CONSTRAINT `products_related_dynamic_products_related_types_id_fk` FOREIGN KEY (`id_products_related_types`) REFERENCES `products_related_types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_related_dynamic`
--

LOCK TABLES `products_related_dynamic` WRITE;
/*!40000 ALTER TABLE `products_related_dynamic` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_related_dynamic` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_related_types`
--

DROP TABLE IF EXISTS `products_related_types`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_related_types` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_related_types`
--

LOCK TABLES `products_related_types` WRITE;
/*!40000 ALTER TABLE `products_related_types` DISABLE KEYS */;
INSERT INTO `products_related_types` VALUES
(1,'Související');
/*!40000 ALTER TABLE `products_related_types` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_sets`
--

DROP TABLE IF EXISTS `products_sets`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_sets` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL,
  `id_product_set` int(11) NOT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  KEY `id_product_set` (`id_product_set`),
  KEY `products_sets_ibfk_3` (`id_variation`),
  KEY `products_sets_ibfk_1` (`id_product`),
  CONSTRAINT `products_sets_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_sets_ibfk_2` FOREIGN KEY (`id_product_set`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_sets_ibfk_3` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_sets`
--

LOCK TABLES `products_sets` WRITE;
/*!40000 ALTER TABLE `products_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_sets` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_translations`
--

DROP TABLE IF EXISTS `products_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `short_descr` mediumtext DEFAULT NULL,
  `long_descr` longtext DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `parameters` longtext DEFAULT NULL,
  `figure` enum('Y','N','O') DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `products_translations_id_product_id_language_uindex` (`id_product`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `products_translations_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `products_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_translations`
--

LOCK TABLES `products_translations` WRITE;
/*!40000 ALTER TABLE `products_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_units`
--

DROP TABLE IF EXISTS `products_units`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_units` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `short_name` varchar(10) DEFAULT NULL,
  `short_name_admin` varchar(10) DEFAULT NULL,
  `long_name` varchar(255) DEFAULT NULL,
  `recalculate_to` int(11) NOT NULL DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `short_name_admin` (`short_name_admin`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_units`
--

LOCK TABLES `products_units` WRITE;
/*!40000 ALTER TABLE `products_units` DISABLE KEYS */;
INSERT INTO `products_units` VALUES
(1,'KS','KS','Počet kusů',1);
/*!40000 ALTER TABLE `products_units` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_units_translations`
--

DROP TABLE IF EXISTS `products_units_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_units_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_products_unit` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `short_name` varchar(10) DEFAULT NULL,
  `long_name` varchar(255) DEFAULT NULL,
  `text` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `products_units_translations_id_unit_id_language_uindex` (`id_products_unit`,`id_language`),
  CONSTRAINT `products_units_translations_ibfk_1` FOREIGN KEY (`id_products_unit`) REFERENCES `products_units` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_units_translations`
--

LOCK TABLES `products_units_translations` WRITE;
/*!40000 ALTER TABLE `products_units_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_units_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations`
--

DROP TABLE IF EXISTS `products_variations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL DEFAULT 0,
  `code` varchar(50) DEFAULT NULL,
  `ean` bigint(20) DEFAULT NULL,
  `title` mediumtext DEFAULT NULL,
  `in_store` int(10) NOT NULL DEFAULT 0,
  `delivery_time` int(4) NOT NULL DEFAULT 0,
  `price` decimal(15,4) DEFAULT NULL,
  `price_for_discount` decimal(15,4) DEFAULT NULL,
  `figure` enum('Y','N') NOT NULL DEFAULT 'Y',
  `updated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `note` varchar(255) DEFAULT NULL,
  `weight` decimal(15,6) DEFAULT NULL,
  `price_buy` decimal(15,4) DEFAULT NULL,
  `bonus_points` int(11) DEFAULT NULL,
  `width` decimal(15,4) DEFAULT NULL,
  `height` decimal(15,4) DEFAULT NULL,
  `depth` decimal(15,4) DEFAULT NULL,
  `pohoda_sync_date` datetime DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `price_common` decimal(15,4) DEFAULT NULL,
  `measure_quantity` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  UNIQUE KEY `unique_ean` (`ean`),
  KEY `id_product` (`id_product`),
  KEY `figure` (`figure`),
  KEY `price` (`price`),
  CONSTRAINT `products_variations_ibfk_1` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1718605 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='varianty ke zbozi' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations`
--

LOCK TABLES `products_variations` WRITE;
/*!40000 ALTER TABLE `products_variations` DISABLE KEYS */;
INSERT INTO `products_variations` VALUES
(1,4,NULL,NULL,'Barva: bílá',5,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2,4,NULL,NULL,'Barva: modrá',0,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(6,7,NULL,NULL,'Barva: modrá',0,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(8,7,NULL,NULL,'Barva: černá',2,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(9,2,NULL,NULL,'Velikost: 40',2,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(10,2,NULL,NULL,'Velikost: 41',3,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(11,2,NULL,NULL,'Velikost: 42',0,-2,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(12,2,NULL,NULL,'Velikost: 43',4,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(13,5,NULL,NULL,'Velikost: 40',0,-2,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(14,5,NULL,NULL,'Velikost: 44',0,-2,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(15,5,NULL,NULL,'Velikost: 45',3,-1,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(16,1,NULL,NULL,'Velikost: 45',0,0,NULL,NULL,'Y','0000-00-00 00:00:00','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(17,6,NULL,NULL,'Velikost: 40',5,0,2479.3388,2479.3388,'Y','2023-07-19 18:03:32','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(18,6,NULL,NULL,'Velikost: 41',3,0,2479.3388,2479.3388,'Y','2023-07-19 18:03:32','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(19,6,NULL,NULL,'Velikost: 44',11,0,2479.3388,2479.3388,'Y','2023-07-19 18:03:32','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(20,11,NULL,NULL,'Velikost: 41',5,0,412.3967,412.3967,'Y','2023-07-19 18:03:32','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(21,11,NULL,NULL,'Velikost: 42',5,0,329.7521,329.7521,'Y','2023-07-19 18:03:32','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(22,11,NULL,NULL,'Velikost: 45',13,-2,275.2066,275.2066,'Y','2023-07-19 18:03:32','0000-00-00 00:00:00',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `products_variations` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER IF NOT EXISTS trigger_insert_variant_ean_in_products
            BEFORE INSERT ON products_variations FOR EACH ROW
            BEGIN CALL check_duplicate_product_ean(NEW.ean, 1); END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER IF NOT EXISTS trigger_update_variant_ean_in_products
            BEFORE UPDATE ON products_variations FOR EACH ROW
            BEGIN CALL check_duplicate_product_ean(NEW.ean, 1); END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `products_variations_choices_categorization`
--

DROP TABLE IF EXISTS `products_variations_choices_categorization`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_choices_categorization` (
  `id_product` int(11) NOT NULL DEFAULT 0,
  `id_label` int(11) NOT NULL DEFAULT 0,
  `list_order` tinyint(4) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_product`,`id_label`),
  KEY `list_order` (`list_order`),
  KEY `id_label` (`id_label`),
  CONSTRAINT `products_variations_choices_categorization_ibfk_1` FOREIGN KEY (`id_label`) REFERENCES `products_variations_choices_labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_choices_categorization_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tab urcuje ktery parametr je prirazen k jakemu zbozi a v jak' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_choices_categorization`
--

LOCK TABLES `products_variations_choices_categorization` WRITE;
/*!40000 ALTER TABLE `products_variations_choices_categorization` DISABLE KEYS */;
INSERT INTO `products_variations_choices_categorization` VALUES
(1,11,1),
(2,11,1),
(4,1,1),
(5,11,1),
(6,11,1),
(7,1,1),
(11,11,1);
/*!40000 ALTER TABLE `products_variations_choices_categorization` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_choices_labels`
--

DROP TABLE IF EXISTS `products_variations_choices_labels`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_choices_labels` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `label` varchar(50) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `label` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='nabidka vubec z kterych variant vybirat' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_choices_labels`
--

LOCK TABLES `products_variations_choices_labels` WRITE;
/*!40000 ALTER TABLE `products_variations_choices_labels` DISABLE KEYS */;
INSERT INTO `products_variations_choices_labels` VALUES
(1,'Barva'),
(11,'Velikost');
/*!40000 ALTER TABLE `products_variations_choices_labels` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_choices_labels_translations`
--

DROP TABLE IF EXISTS `products_variations_choices_labels_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_choices_labels_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_products_variations_choices_label` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pvcl_translations_id_pvcl_id_language_uindex` (`id_products_variations_choices_label`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `products_variations_choices_labels_translations_ibfk_1` FOREIGN KEY (`id_products_variations_choices_label`) REFERENCES `products_variations_choices_labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_choices_labels_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `products_variations_choices_labels_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_choices_labels_translations`
--

LOCK TABLES `products_variations_choices_labels_translations` WRITE;
/*!40000 ALTER TABLE `products_variations_choices_labels_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_variations_choices_labels_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_choices_values`
--

DROP TABLE IF EXISTS `products_variations_choices_values`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_choices_values` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_label` int(11) NOT NULL DEFAULT 0,
  `value` varchar(50) NOT NULL DEFAULT '',
  `code` varchar(32) DEFAULT NULL,
  `sort` int(11) NOT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_label_3` (`id_label`,`value`),
  UNIQUE KEY `id_label_2` (`id_label`,`code`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `products_variations_choices_values_ibfk_1` FOREIGN KEY (`id_label`) REFERENCES `products_variations_choices_labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='vytvoreni hodnot pro konkretni parametry ke konkretnimu zboz' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_choices_values`
--

LOCK TABLES `products_variations_choices_values` WRITE;
/*!40000 ALTER TABLE `products_variations_choices_values` DISABLE KEYS */;
INSERT INTO `products_variations_choices_values` VALUES
(1,1,'Modrá',NULL,0,'modra',NULL,NULL),
(2,1,'Bílá',NULL,0,'bila',NULL,NULL),
(103,11,'40',NULL,0,'40',NULL,NULL),
(104,11,'41',NULL,0,'41',NULL,NULL),
(105,11,'42',NULL,0,'42',NULL,NULL),
(106,11,'43',NULL,0,'43',NULL,NULL),
(107,11,'44',NULL,0,'44',NULL,NULL),
(108,11,'45',NULL,0,'45',NULL,NULL);
/*!40000 ALTER TABLE `products_variations_choices_values` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_choices_values_translations`
--

DROP TABLE IF EXISTS `products_variations_choices_values_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_choices_values_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_products_variations_choices_value` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `value` varchar(50) DEFAULT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pvcv_translations_id_pvcv_id_language_uindex` (`id_products_variations_choices_value`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `products_variations_choices_values_translations_ibfk_1` FOREIGN KEY (`id_products_variations_choices_value`) REFERENCES `products_variations_choices_values` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_choices_values_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `products_variations_choices_values_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_choices_values_translations`
--

LOCK TABLES `products_variations_choices_values_translations` WRITE;
/*!40000 ALTER TABLE `products_variations_choices_values_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_variations_choices_values_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_combination`
--

DROP TABLE IF EXISTS `products_variations_combination`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_combination` (
  `id_variation` int(11) NOT NULL DEFAULT 0,
  `id_label` int(11) NOT NULL DEFAULT 0,
  `id_value` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_variation`,`id_label`,`id_value`),
  KEY `id_label` (`id_label`),
  KEY `id_value` (`id_value`),
  CONSTRAINT `products_variations_combination_ibfk_1` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_combination_ibfk_2` FOREIGN KEY (`id_label`) REFERENCES `products_variations_choices_labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_combination_ibfk_3` FOREIGN KEY (`id_value`) REFERENCES `products_variations_choices_values` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='spojeni variant,jmenovek,hodnot' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_combination`
--

LOCK TABLES `products_variations_combination` WRITE;
/*!40000 ALTER TABLE `products_variations_combination` DISABLE KEYS */;
INSERT INTO `products_variations_combination` VALUES
(1,1,1),
(2,1,2),
(6,1,1),
(8,1,1),
(9,11,103),
(10,11,104),
(11,11,105),
(12,11,106),
(13,11,103),
(14,11,107),
(15,11,108),
(16,11,108),
(17,11,103),
(18,11,104),
(19,11,107),
(20,11,104),
(21,11,105),
(22,11,108);
/*!40000 ALTER TABLE `products_variations_combination` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_sections`
--

DROP TABLE IF EXISTS `products_variations_sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_sections` (
  `id_label` int(11) NOT NULL,
  `id_section` int(11) NOT NULL,
  `weight` int(11) DEFAULT NULL,
  `indexing` enum('Y','N') DEFAULT 'N',
  `to_title` enum('Y','N') DEFAULT 'N',
  `convertor` int(11) DEFAULT NULL,
  PRIMARY KEY (`id_label`,`id_section`),
  KEY `id_section` (`id_section`),
  KEY `convertor` (`convertor`),
  CONSTRAINT `products_variations_sections_ibfk_1` FOREIGN KEY (`id_label`) REFERENCES `products_variations_choices_labels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_sections_ibfk_2` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_sections_ibfk_3` FOREIGN KEY (`convertor`) REFERENCES `convertors_definition` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_sections`
--

LOCK TABLES `products_variations_sections` WRITE;
/*!40000 ALTER TABLE `products_variations_sections` DISABLE KEYS */;
INSERT INTO `products_variations_sections` VALUES
(11,4,NULL,'N','N',NULL),
(11,5,NULL,'N','N',NULL),
(11,6,NULL,'N','N',NULL);
/*!40000 ALTER TABLE `products_variations_sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_variations_translations`
--

DROP TABLE IF EXISTS `products_variations_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_variations_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_products_variation` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` mediumtext DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `pv_translations_id_pvcv_id_language_uindex` (`id_products_variation`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `products_variations_translations_ibfk_1` FOREIGN KEY (`id_products_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_variations_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `products_variations_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_variations_translations`
--

LOCK TABLES `products_variations_translations` WRITE;
/*!40000 ALTER TABLE `products_variations_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_variations_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `products_watchdog`
--

DROP TABLE IF EXISTS `products_watchdog`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products_watchdog` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_site` int(11) NOT NULL,
  `id_user` int(10) unsigned NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `last_in_store` int(11) DEFAULT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  `currency` varchar(3) DEFAULT NULL,
  `availability` tinyint(4) DEFAULT 1,
  `date_created` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `products_watchdog_uindex` (`id_user`,`id_product`,`id_variation`),
  KEY `watchdog_ibfk_2` (`id_product`),
  KEY `watchdog_ibfk_1` (`id_user`),
  KEY `id_variation` (`id_variation`),
  KEY `id_site` (`id_site`),
  KEY `currency` (`currency`),
  CONSTRAINT `products_watchdog_ibfk_1` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_watchdog_ibfk_2` FOREIGN KEY (`id_site`) REFERENCES `sites` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `products_watchdog_ibfk_3` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `watchdog_ibfk_1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `watchdog_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `products_watchdog`
--

LOCK TABLES `products_watchdog` WRITE;
/*!40000 ALTER TABLE `products_watchdog` DISABLE KEYS */;
/*!40000 ALTER TABLE `products_watchdog` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `reclamations`
--

DROP TABLE IF EXISTS `reclamations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reclamations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) DEFAULT NULL,
  `date_created` datetime NOT NULL,
  `date_accepted` datetime DEFAULT NULL,
  `date_handle` datetime DEFAULT NULL,
  `status` int(11) NOT NULL,
  `id_item` int(11) unsigned DEFAULT NULL,
  `pieces` int(11) DEFAULT 1,
  `name` varchar(50) DEFAULT NULL,
  `surname` varchar(50) DEFAULT NULL,
  `street` varchar(100) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `zip` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `bank_account` varchar(100) DEFAULT NULL,
  `descr` longtext DEFAULT NULL,
  `user_note` longtext DEFAULT NULL,
  `history` longtext DEFAULT NULL,
  `preferred_handle_type` int(11) DEFAULT NULL,
  `handle_type` int(11) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `package_id` varchar(100) DEFAULT NULL,
  `id_balikonos` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `FK_id_item` (`id_item`),
  KEY `fk_reclamations_balikonos` (`id_balikonos`),
  CONSTRAINT `FK_id_item` FOREIGN KEY (`id_item`) REFERENCES `order_items` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_reclamations_balikonos` FOREIGN KEY (`id_balikonos`) REFERENCES `balikonos` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=467 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `reclamations`
--

LOCK TABLES `reclamations` WRITE;
/*!40000 ALTER TABLE `reclamations` DISABLE KEYS */;
/*!40000 ALTER TABLE `reclamations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `recommenders`
--

DROP TABLE IF EXISTS `recommenders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recommenders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` varchar(100) NOT NULL,
  `label` varchar(100) NOT NULL,
  `products_count` int(11) NOT NULL,
  `type` varchar(100) NOT NULL,
  `data` text DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_label` (`label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `recommenders`
--

LOCK TABLES `recommenders` WRITE;
/*!40000 ALTER TABLE `recommenders` DISABLE KEYS */;
/*!40000 ALTER TABLE `recommenders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `recommenders_translations`
--

DROP TABLE IF EXISTS `recommenders_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `recommenders_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_recommender` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `recommenders_translations_id_recommender_id_language_uindex` (`id_recommender`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `recommenders_translations_ibfk_1` FOREIGN KEY (`id_recommender`) REFERENCES `recommenders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `recommenders_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `recommenders_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `recommenders_translations`
--

LOCK TABLES `recommenders_translations` WRITE;
/*!40000 ALTER TABLE `recommenders_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `recommenders_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `report_activities`
--

DROP TABLE IF EXISTS `report_activities`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_activities` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_admin` int(11) DEFAULT NULL,
  `admin_name` varchar(50) NOT NULL DEFAULT '',
  `report` mediumtext NOT NULL,
  `date` datetime DEFAULT NULL,
  `ip_address` varchar(15) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `severity` enum('error','warning','notice','success','recommendation') NOT NULL,
  `type` enum('change','security','sync','import','communication') DEFAULT NULL,
  `tags` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`tags`)),
  PRIMARY KEY (`id`),
  KEY `idx_date` (`date`),
  KEY `fk_id_admin` (`id_admin`),
  KEY `report_activities_severity_index` (`severity`),
  KEY `report_activities_type_index` (`type`),
  KEY `report_activities_tags_index` (`tags`(768)),
  CONSTRAINT `fk_id_admin` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `report_activities`
--

LOCK TABLES `report_activities` WRITE;
/*!40000 ALTER TABLE `report_activities` DISABLE KEYS */;
INSERT INTO `report_activities` VALUES
(1,NULL,'Robot','Zalogoval se administrátor: klima_wpj','2012-10-29 11:44:28',NULL,NULL,'',NULL,NULL),
(2,1,'klima_wpj','Smazán odkaz v menu: Ceník zboží','2012-10-29 11:45:12',NULL,NULL,'',NULL,NULL),
(3,1,'klima_wpj','Smazán odkaz v menu: Rozšířené vyhledávání','2012-10-29 11:45:39',NULL,NULL,'',NULL,NULL),
(4,1,'klima_wpj','Smazán odkaz v menu: Reklamační řád','2012-10-29 11:46:18',NULL,NULL,'',NULL,NULL),
(5,1,'klima_wpj','Přidán obrázek výrobce: Addidas','2012-10-29 11:48:13',NULL,NULL,'',NULL,NULL),
(6,1,'klima_wpj','Přidán výrobce: Addidas','2012-10-29 11:48:13',NULL,NULL,'',NULL,NULL),
(7,1,'klima_wpj','Upraven výrobce: Addidas','2012-10-29 11:48:17',NULL,NULL,'',NULL,NULL),
(8,1,'klima_wpj','Přidán obrázek výrobce: Nike','2012-10-29 11:49:23',NULL,NULL,'',NULL,NULL),
(9,1,'klima_wpj','Přidán výrobce: Nike','2012-10-29 11:49:23',NULL,NULL,'',NULL,NULL),
(10,1,'klima_wpj','Upraven výrobce: Nike','2012-10-29 11:49:26',NULL,NULL,'',NULL,NULL),
(11,1,'klima_wpj','Přidána sekce obchodu: Oblečení','2012-10-29 11:49:54',NULL,NULL,'',NULL,NULL),
(12,1,'klima_wpj','Přidána sekce obchodu: Boty','2012-10-29 11:50:05',NULL,NULL,'',NULL,NULL),
(13,1,'klima_wpj','Přidána sekce obchodu: Čepice','2012-10-29 11:50:21',NULL,NULL,'',NULL,NULL),
(14,1,'klima_wpj','Upravena sekce obchodu: Oblečení','2012-10-29 11:57:23',NULL,NULL,'',NULL,NULL),
(15,1,'klima_wpj','Přidáno zboží: NIKE Steady - dámské','2012-10-29 12:28:48',NULL,NULL,'',NULL,NULL),
(16,1,'klima_wpj','Přidán obrázek: ID=1','2012-10-29 12:29:02',NULL,NULL,'',NULL,NULL),
(17,1,'klima_wpj','Upraven obrázek: ID=1','2012-10-29 12:29:04',NULL,NULL,'',NULL,NULL),
(18,1,'klima_wpj','Upraveno zboží: NIKE Steady - dámské','2012-10-29 12:29:17',NULL,NULL,'',NULL,NULL),
(19,1,'klima_wpj','Přidáno zboží: NIKE Steady - dámské 2','2012-10-29 12:31:47',NULL,NULL,'',NULL,NULL),
(20,1,'klima_wpj','Přidáno zboží: NIKE Steady - dámské 3','2012-10-29 12:32:02',NULL,NULL,'',NULL,NULL),
(21,1,'klima_wpj','Upraveno zboží: NIKE Steady - dámské','2012-10-29 12:40:58',NULL,NULL,'',NULL,NULL),
(22,1,'klima_wpj','Upraveno zboží: NIKE Steady - dámské 2','2012-10-29 12:41:05',NULL,NULL,'',NULL,NULL),
(23,1,'klima_wpj','Upraveno zboží: NIKE Steady - dámské 3','2012-10-29 12:41:11',NULL,NULL,'',NULL,NULL),
(24,1,'klima_wpj','Přidána sekce obchodu: Polobotky','2012-10-29 13:09:11',NULL,NULL,'',NULL,NULL),
(25,1,'klima_wpj','Přidán obrázek: ID=2','2012-10-29 14:10:30',NULL,NULL,'',NULL,NULL),
(26,1,'klima_wpj','Upraven obrázek: ID=2','2012-10-29 14:10:31',NULL,NULL,'',NULL,NULL),
(27,1,'klima_wpj','Upraveno zboží: NIKE Steady - dámské','2012-10-29 14:10:46',NULL,NULL,'',NULL,NULL),
(28,1,'demo','Upravena HTML stránka: Úvodní stránka','2015-02-16 12:46:20',NULL,NULL,'',NULL,NULL);
/*!40000 ALTER TABLE `report_activities` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `report_activities_notifications`
--

DROP TABLE IF EXISTS `report_activities_notifications`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `report_activities_notifications` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  `email` varchar(250) DEFAULT NULL,
  `active` enum('Y','N') DEFAULT 'N',
  `data` text DEFAULT NULL,
  `last_sync` datetime DEFAULT NULL,
  `last_notifications` datetime DEFAULT NULL,
  `note` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `report_activities_notifications`
--

LOCK TABLES `report_activities_notifications` WRITE;
/*!40000 ALTER TABLE `report_activities_notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `report_activities_notifications` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `reservations`
--

DROP TABLE IF EXISTS `reservations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reservations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_language` varchar(2) DEFAULT NULL,
  `currency` varchar(3) DEFAULT NULL,
  `date_created` datetime NOT NULL DEFAULT current_timestamp(),
  `id_user` int(11) unsigned DEFAULT NULL,
  `id_order` int(11) unsigned DEFAULT NULL,
  `id_product_reservation` int(11) DEFAULT NULL,
  `id_product` int(11) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `price` decimal(15,4) NOT NULL,
  `tax` float DEFAULT 0,
  `email` varchar(100) DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `surname` varchar(50) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `data` text DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_reservations_id_user` (`id_user`),
  KEY `fk_reservations_id_order` (`id_order`),
  KEY `fk_reservations_id_product_reservation` (`id_product_reservation`),
  KEY `fk_reservations_id_product` (`id_product`),
  KEY `fk_reservations_id_variation` (`id_variation`),
  KEY `fk_reservations_id_language` (`id_language`),
  KEY `fk_reservations_currency` (`currency`),
  CONSTRAINT `fk_reservations_currency` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_reservations_id_language` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_reservations_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_reservations_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_reservations_id_product_reservation` FOREIGN KEY (`id_product_reservation`) REFERENCES `product_reservations` (`id`) ON DELETE SET NULL,
  CONSTRAINT `fk_reservations_id_user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_reservations_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `reservations`
--

LOCK TABLES `reservations` WRITE;
/*!40000 ALTER TABLE `reservations` DISABLE KEYS */;
/*!40000 ALTER TABLE `reservations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `restrictions`
--

DROP TABLE IF EXISTS `restrictions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `restrictions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` mediumtext DEFAULT NULL,
  `domain` int(11) NOT NULL,
  `domain_invert` enum('Y','N') NOT NULL DEFAULT 'N',
  `object_value` mediumtext NOT NULL,
  `type` enum('H','S') NOT NULL DEFAULT 'H' COMMENT '(H)ide, (S)how',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `restrictions`
--

LOCK TABLES `restrictions` WRITE;
/*!40000 ALTER TABLE `restrictions` DISABLE KEYS */;
/*!40000 ALTER TABLE `restrictions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `restrictions_domains`
--

DROP TABLE IF EXISTS `restrictions_domains`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `restrictions_domains` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_restriction` int(11) DEFAULT NULL,
  `id_user` int(11) unsigned DEFAULT NULL,
  `country` char(2) DEFAULT NULL,
  `login` set('logIn','logOut') DEFAULT NULL,
  `id_price_level` int(10) unsigned DEFAULT NULL,
  `id_users_group` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `restrictions_domains_id_restrictions` (`id_restriction`),
  KEY `restrictions_domains_id_user` (`id_user`),
  KEY `FK_id_users_group` (`id_users_group`),
  CONSTRAINT `FK_id_users_group` FOREIGN KEY (`id_users_group`) REFERENCES `users_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `restrictions_domains_id_restrictions` FOREIGN KEY (`id_restriction`) REFERENCES `restrictions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `restrictions_domains_id_user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=280 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `restrictions_domains`
--

LOCK TABLES `restrictions_domains` WRITE;
/*!40000 ALTER TABLE `restrictions_domains` DISABLE KEYS */;
/*!40000 ALTER TABLE `restrictions_domains` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `return_delivery`
--

DROP TABLE IF EXISTS `return_delivery`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `return_delivery` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `name_admin` varchar(100) DEFAULT NULL,
  `type` varchar(50) DEFAULT NULL,
  `price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  `id_block` int(11) unsigned DEFAULT NULL,
  `data` mediumtext NOT NULL DEFAULT '{}',
  `description` longtext DEFAULT '',
  `cart_description` longtext DEFAULT '',
  `position` int(11) DEFAULT 0,
  `photo` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `fk_return_delivery_blocks` (`id_block`),
  KEY `fk_return_delivery_currency` (`currency`),
  CONSTRAINT `fk_return_delivery_blocks` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `fk_return_delivery_currency` FOREIGN KEY (`currency`) REFERENCES `currencies` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `return_delivery`
--

LOCK TABLES `return_delivery` WRITE;
/*!40000 ALTER TABLE `return_delivery` DISABLE KEYS */;
INSERT INTO `return_delivery` VALUES
(1,'Vlastní cestou',NULL,'OwnReturnDelivery',0.0000,'CZK',NULL,'','','',0,NULL);
/*!40000 ALTER TABLE `return_delivery` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `return_delivery_translations`
--

DROP TABLE IF EXISTS `return_delivery_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `return_delivery_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_return_delivery` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `description` longtext DEFAULT '',
  `cart_description` longtext DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `return_delivery_translations_id_language_uindex` (`id_return_delivery`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `return_delivery_translations_ibfk_1` FOREIGN KEY (`id_return_delivery`) REFERENCES `return_delivery` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `return_delivery_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `return_delivery_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `return_delivery_translations`
--

LOCK TABLES `return_delivery_translations` WRITE;
/*!40000 ALTER TABLE `return_delivery_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `return_delivery_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `return_items`
--

DROP TABLE IF EXISTS `return_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `return_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_return` int(11) NOT NULL,
  `id_item` int(11) unsigned NOT NULL,
  `pieces` int(11) NOT NULL DEFAULT 1,
  `price` decimal(15,4) DEFAULT NULL,
  `data` text DEFAULT '',
  `reason` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_id_return` (`id_return`),
  KEY `FK_id_item_return_items` (`id_item`),
  CONSTRAINT `FK_id_item_return_items` FOREIGN KEY (`id_item`) REFERENCES `order_items` (`id`),
  CONSTRAINT `FK_id_return` FOREIGN KEY (`id_return`) REFERENCES `returns` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10350 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `return_items`
--

LOCK TABLES `return_items` WRITE;
/*!40000 ALTER TABLE `return_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `return_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `return_replacements`
--

DROP TABLE IF EXISTS `return_replacements`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `return_replacements` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_return` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` int(11) DEFAULT 1,
  `price` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_id_return_return_replacements` (`id_return`),
  KEY `FK_id_product_return_replacements` (`id_product`),
  KEY `FK_id_variation_return_replacements` (`id_variation`),
  CONSTRAINT `FK_id_product_return_replacements` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_id_return_return_replacements` FOREIGN KEY (`id_return`) REFERENCES `returns` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_id_variation_return_replacements` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `return_replacements`
--

LOCK TABLES `return_replacements` WRITE;
/*!40000 ALTER TABLE `return_replacements` DISABLE KEYS */;
/*!40000 ALTER TABLE `return_replacements` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `returns`
--

DROP TABLE IF EXISTS `returns`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `returns` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) DEFAULT NULL,
  `date_created` datetime NOT NULL,
  `date_accepted` datetime DEFAULT NULL,
  `date_handle` datetime DEFAULT NULL,
  `status` int(11) NOT NULL,
  `flags` set('','PR','ZP') NOT NULL,
  `name` varchar(50) DEFAULT NULL,
  `surname` varchar(50) DEFAULT NULL,
  `street` varchar(100) DEFAULT NULL,
  `city` varchar(50) DEFAULT NULL,
  `zip` varchar(50) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `phone` varchar(20) DEFAULT NULL,
  `bank_account` varchar(100) DEFAULT NULL,
  `history` longtext DEFAULT NULL,
  `id_order` int(11) unsigned DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `return_delivery` decimal(15,4) DEFAULT NULL,
  `replacement_delivery` decimal(15,4) DEFAULT NULL,
  `id_replacement_delivery_type` int(10) unsigned DEFAULT NULL,
  `total_price` decimal(15,4) DEFAULT NULL,
  `id_return_delivery` int(11) DEFAULT NULL,
  `id_admin` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `FK_id_order` (`id_order`),
  KEY `FK_id_return_delivery` (`id_return_delivery`),
  KEY `FK_id_replacement_delivery_type` (`id_replacement_delivery_type`),
  CONSTRAINT `FK_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_id_replacement_delivery_type` FOREIGN KEY (`id_replacement_delivery_type`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL,
  CONSTRAINT `FK_id_return_delivery` FOREIGN KEY (`id_return_delivery`) REFERENCES `return_delivery` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB AUTO_INCREMENT=8218 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `returns`
--

LOCK TABLES `returns` WRITE;
/*!40000 ALTER TABLE `returns` DISABLE KEYS */;
/*!40000 ALTER TABLE `returns` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `reviews`
--

DROP TABLE IF EXISTS `reviews`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reviews` (
  `id` int(11) unsigned NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_product_variation` int(11) DEFAULT NULL,
  `date` datetime NOT NULL,
  `rating` float(2,1) DEFAULT NULL,
  `recommends` tinyint(1) DEFAULT NULL,
  `pros` text DEFAULT NULL,
  `cons` text DEFAULT NULL,
  `summary` text DEFAULT NULL,
  `name` varchar(30) DEFAULT NULL,
  `id_language` varchar(2) NOT NULL DEFAULT 'cs',
  `id_order` int(10) unsigned DEFAULT NULL,
  `id_sale` int(11) unsigned DEFAULT NULL,
  `id_user` int(11) unsigned DEFAULT NULL,
  `figure` tinyint(1) NOT NULL DEFAULT 1,
  `external_id` varchar(50) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `source` enum('heureka.cz','heureka.sk','arukereso.hu','compari.ro','zbozi.cz') DEFAULT NULL,
  `response` mediumtext DEFAULT NULL,
  `response_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `external_id` (`external_id`),
  KEY `reviews_products_fk` (`id_product`),
  KEY `reviews_products_variations_fk` (`id_product_variation`),
  KEY `reviews_date` (`date`),
  KEY `reviews_rating` (`rating`),
  KEY `reviews_order_fk` (`id_order`),
  KEY `reviews_user_ibfk1` (`id_user`),
  KEY `report_reviews_security_index` (`source`),
  KEY `FK_reviews_id_sale` (`id_sale`),
  CONSTRAINT `FK_reviews_id_sale` FOREIGN KEY (`id_sale`) REFERENCES `sales` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `reviews_order_fk` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `reviews_products_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `reviews_products_variations_fk` FOREIGN KEY (`id_product_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `reviews_user_ibfk1` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `reviews`
--

LOCK TABLES `reviews` WRITE;
/*!40000 ALTER TABLE `reviews` DISABLE KEYS */;
/*!40000 ALTER TABLE `reviews` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `reviews_translations`
--

DROP TABLE IF EXISTS `reviews_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reviews_translations` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_review` int(11) unsigned NOT NULL,
  `pros` mediumtext DEFAULT NULL,
  `cons` mediumtext DEFAULT NULL,
  `summary` mediumtext DEFAULT NULL,
  `id_language` varchar(2) NOT NULL DEFAULT 'cs',
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `response` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `reviews_translations_id_review_id_language_uindex` (`id_review`,`id_language`),
  CONSTRAINT `reviews_translations_ibfk_1` FOREIGN KEY (`id_review`) REFERENCES `reviews` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `reviews_translations`
--

LOCK TABLES `reviews_translations` WRITE;
/*!40000 ALTER TABLE `reviews_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `reviews_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `rewrite`
--

DROP TABLE IF EXISTS `rewrite`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rewrite` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `url` varchar(255) NOT NULL,
  `type` int(11) NOT NULL,
  `related_id` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `url` (`url`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `rewrite`
--

LOCK TABLES `rewrite` WRITE;
/*!40000 ALTER TABLE `rewrite` DISABLE KEYS */;
/*!40000 ALTER TABLE `rewrite` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sales`
--

DROP TABLE IF EXISTS `sales`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sales` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `currency` varchar(3) NOT NULL DEFAULT 'CZK',
  `id_language` varchar(2) NOT NULL DEFAULT 'cs',
  `code` varchar(20) NOT NULL,
  `date_created` datetime DEFAULT current_timestamp(),
  `id_user` int(11) unsigned DEFAULT NULL,
  `id_order` int(11) unsigned DEFAULT NULL,
  `id_delivery_type` int(11) unsigned DEFAULT NULL,
  `total_price` decimal(15,4) DEFAULT 0.0000,
  `total_price_without_vat` decimal(15,4) DEFAULT 0.0000,
  `note` mediumtext DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `id_seller` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  KEY `FK_sales_id_user` (`id_user`),
  KEY `FK_sales_id_order` (`id_order`),
  KEY `FK_sales_id_delivery_type` (`id_delivery_type`),
  KEY `FK_sales_id_language` (`id_language`),
  KEY `FK_sales_id_seller` (`id_seller`),
  CONSTRAINT `FK_sales_id_delivery_type` FOREIGN KEY (`id_delivery_type`) REFERENCES `delivery_type` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_sales_id_language` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_sales_id_order` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_sales_id_seller` FOREIGN KEY (`id_seller`) REFERENCES `sellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_sales_id_user` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sales`
--

LOCK TABLES `sales` WRITE;
/*!40000 ALTER TABLE `sales` DISABLE KEYS */;
/*!40000 ALTER TABLE `sales` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sales_items`
--

DROP TABLE IF EXISTS `sales_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sales_items` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_sale` int(11) unsigned NOT NULL,
  `id_product` int(11) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` mediumint(9) DEFAULT 1,
  `piece_price` decimal(15,4) DEFAULT 0.0000,
  `total_price` decimal(15,4) DEFAULT 0.0000,
  `tax` float DEFAULT 0,
  `name` varchar(255) NOT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `FK_sale_items_id_sale` (`id_sale`),
  KEY `FK_sale_items_id_product` (`id_product`),
  KEY `FK_sale_items_id_variation` (`id_variation`),
  CONSTRAINT `FK_sale_items_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_sale_items_id_sale` FOREIGN KEY (`id_sale`) REFERENCES `sales` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_sale_items_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sales_items`
--

LOCK TABLES `sales_items` WRITE;
/*!40000 ALTER TABLE `sales_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `sales_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `section_producer`
--

DROP TABLE IF EXISTS `section_producer`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `section_producer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_block` int(11) unsigned DEFAULT NULL,
  `id_section` int(11) NOT NULL,
  `id_producer` int(11) unsigned NOT NULL,
  `text` longtext DEFAULT NULL,
  `id_slider` int(11) DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_section_producer_uk` (`id_section`,`id_producer`),
  KEY `id_producer` (`id_producer`),
  KEY `id_slider` (`id_slider`),
  KEY `fk_section_producer_blocks` (`id_block`),
  CONSTRAINT `fk_section_producer_blocks` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `section_producer_ibfk_1` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `section_producer_ibfk_2` FOREIGN KEY (`id_producer`) REFERENCES `producers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `section_producer_ibfk_3` FOREIGN KEY (`id_slider`) REFERENCES `sliders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `section_producer`
--

LOCK TABLES `section_producer` WRITE;
/*!40000 ALTER TABLE `section_producer` DISABLE KEYS */;
/*!40000 ALTER TABLE `section_producer` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `section_producer_translations`
--

DROP TABLE IF EXISTS `section_producer_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `section_producer_translations` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_section_producer` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `text` longtext DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `section_producer_translations_id_producer_id_language_uindex` (`id_section_producer`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `section_producer_translations_ibfk_1` FOREIGN KEY (`id_section_producer`) REFERENCES `section_producer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `section_producer_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `section_producer_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `section_producer_translations`
--

LOCK TABLES `section_producer_translations` WRITE;
/*!40000 ALTER TABLE `section_producer_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `section_producer_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sections`
--

DROP TABLE IF EXISTS `sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sections` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_block` int(11) unsigned DEFAULT NULL,
  `name` varchar(200) NOT NULL DEFAULT '',
  `name_short` varchar(50) DEFAULT NULL,
  `figure` enum('Y','N','O') NOT NULL DEFAULT 'Y',
  `priority` tinyint(4) NOT NULL DEFAULT 0 COMMENT 'Higher number means higher priority',
  `behaviour` enum('1','2') NOT NULL DEFAULT '2',
  `orderby` enum('date','title','price','store','sell','code','discount','soldPrice','dateStockIn') DEFAULT 'title',
  `orderdir` enum('ASC','DESC') NOT NULL DEFAULT 'ASC',
  `date_updated` datetime DEFAULT current_timestamp(),
  `list_variations` enum('Y','N') NOT NULL DEFAULT 'N',
  `lead_figure` enum('Y','N') NOT NULL DEFAULT 'N',
  `lead_text` longtext NOT NULL,
  `lead_products` varchar(50) NOT NULL DEFAULT '',
  `photo` varchar(50) DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `feed_heureka` int(11) DEFAULT NULL,
  `feed_heureka_sk` int(10) unsigned DEFAULT NULL,
  `feed_google` int(11) DEFAULT NULL,
  `feed_glami` int(10) unsigned DEFAULT NULL,
  `flags` set('N','S','D','L','A','M','Z','V','T','O','C','R') NOT NULL,
  `feed_seznam` int(11) DEFAULT NULL,
  `producers_filter` enum('Y','N') NOT NULL DEFAULT 'Y',
  `url` varchar(255) DEFAULT NULL,
  `redirect_url` varchar(255) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `virtual` enum('Y','N') NOT NULL DEFAULT 'N',
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `producers_indexing` enum('Y','N') DEFAULT 'N',
  `producers_to_title` enum('Y','N') DEFAULT 'N',
  `show_in_search` enum('Y','N') DEFAULT 'Y',
  `labels_filter` enum('Y','N') NOT NULL DEFAULT 'N',
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_url` (`url`),
  KEY `fk_sections_blocks` (`id_block`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `fk_sections_blocks` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='tbl. sekci eshopu' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sections`
--

LOCK TABLES `sections` WRITE;
/*!40000 ALTER TABLE `sections` DISABLE KEYS */;
INSERT INTO `sections` VALUES
(0,NULL,'Produkty','','Y',0,'2','title','ASC','2022-03-17 12:23:18','N','N','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','produkty',NULL,'N','N','Y','N'),
(1,15,'Aku vrtačky',NULL,'Y',0,'2','title','ASC','2013-09-13 00:00:00','N','N','','',NULL,NULL,NULL,NULL,NULL,NULL,8,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','aku-vrtacky',NULL,'N','N','Y','N'),
(2,17,'Aku baterie',NULL,'Y',0,'2','title','ASC','2013-09-13 00:00:00','N','N','','','../../static/demo/sections/p2.jpg',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','aku-baterie',NULL,'N','N','Y','N'),
(3,19,'Aku vrtačky',NULL,'Y',0,'2','title','ASC','2013-09-13 00:00:00','N','N','','','../../static/demo/sections/p3.jpg',NULL,NULL,NULL,NULL,NULL,8,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','aku-vrtacky',NULL,'N','N','Y','N'),
(4,21,'Obuv',NULL,'Y',0,'2','title','ASC','2013-09-13 00:00:00','N','N','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','obuv',NULL,'N','N','Y','N'),
(5,23,'Pánská obuv',NULL,'Y',0,'2','title','ASC','2013-09-13 00:00:00','N','N','','','../../static/demo/sections/p5.png',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','panska-obuv',NULL,'N','N','Y','N'),
(6,25,'Dámská obuv',NULL,'Y',0,'2','title','ASC','2013-09-13 00:00:00','N','N','','','../../static/demo/sections/p6.png',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','damska-obuv',NULL,'N','N','Y','N'),
(7,27,'Žebříky',NULL,'Y',0,'1','title','ASC','2022-03-17 12:23:18','N','N','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','zebriky',NULL,'N','N','Y','N'),
(8,29,'Elektronika',NULL,'Y',0,'1','title','ASC','2022-03-17 12:23:18','N','N','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','elektronika',NULL,'N','N','Y','N'),
(9,31,'Ostatní',NULL,'Y',0,'1','title','ASC','2022-03-17 12:23:18','N','N','','',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'Y',NULL,NULL,NULL,'N','ostatni',NULL,'N','N','Y','N');
/*!40000 ALTER TABLE `sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sections_relation`
--

DROP TABLE IF EXISTS `sections_relation`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sections_relation` (
  `id_section` int(11) NOT NULL DEFAULT 0,
  `id_topsection` int(11) DEFAULT NULL,
  `position` int(11) NOT NULL DEFAULT 0,
  UNIQUE KEY `id_section_2` (`id_section`,`id_topsection`),
  KEY `sections_ibfk_2` (`id_topsection`),
  CONSTRAINT `sections_relation_ibfk_1` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `sections_relation_ibfk_2` FOREIGN KEY (`id_topsection`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='Relace sekci' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sections_relation`
--

LOCK TABLES `sections_relation` WRITE;
/*!40000 ALTER TABLE `sections_relation` DISABLE KEYS */;
INSERT INTO `sections_relation` VALUES
(1,NULL,1),
(5,4,1),
(2,1,1),
(4,NULL,0),
(3,1,0),
(7,NULL,2),
(8,NULL,3),
(9,NULL,5),
(6,4,0),
(0,NULL,-1);
/*!40000 ALTER TABLE `sections_relation` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_sections_relation BEFORE INSERT ON sections_relation
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(sections_relation.position) + 1, 0) FROM sections_relation WHERE id_topsection = NEW.id_topsection);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `sections_translations`
--

DROP TABLE IF EXISTS `sections_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sections_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_section` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(200) DEFAULT NULL,
  `name_short` varchar(50) DEFAULT NULL,
  `meta_title` varchar(70) DEFAULT NULL,
  `meta_description` varchar(250) DEFAULT NULL,
  `meta_keywords` varchar(100) DEFAULT NULL,
  `lead_text` longtext DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `filter_url` varchar(50) DEFAULT NULL,
  `title` varchar(50) DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `redirect_url` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sections_translations_id_section_id_language_uindex` (`id_section`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  KEY `filter_url` (`filter_url`),
  CONSTRAINT `sections_translations_ibfk_1` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `sections_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `sections_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sections_translations`
--

LOCK TABLES `sections_translations` WRITE;
/*!40000 ALTER TABLE `sections_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `sections_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sellers`
--

DROP TABLE IF EXISTS `sellers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sellers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_store` int(11) DEFAULT NULL,
  `id_block` int(11) unsigned DEFAULT NULL,
  `type` varchar(10) NOT NULL,
  `title` varchar(100) NOT NULL,
  `figure` enum('Y','N') DEFAULT 'Y',
  `descr` text DEFAULT NULL,
  `url` varchar(50) NOT NULL,
  `street` varchar(100) NOT NULL,
  `number` varchar(20) NOT NULL,
  `psc` varchar(10) NOT NULL,
  `city` varchar(100) NOT NULL,
  `phone` varchar(20) NOT NULL,
  `web` varchar(200) NOT NULL,
  `email` varchar(75) NOT NULL,
  `position` point NOT NULL,
  `language` varchar(5) NOT NULL,
  `country` varchar(50) NOT NULL,
  `data` mediumtext DEFAULT NULL,
  `flags` set('') DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `sellers_type_index` (`type`),
  KEY `fk_sellers_blocks` (`id_block`),
  KEY `id_store` (`id_store`),
  CONSTRAINT `fk_sellers_blocks` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `sellers_ibfk_1` FOREIGN KEY (`id_store`) REFERENCES `stores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sellers`
--

LOCK TABLES `sellers` WRITE;
/*!40000 ALTER TABLE `sellers` DISABLE KEYS */;
/*!40000 ALTER TABLE `sellers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sellers_translations`
--

DROP TABLE IF EXISTS `sellers_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sellers_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_seller` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `title` varchar(100) DEFAULT NULL,
  `city` varchar(100) DEFAULT NULL,
  `country` varchar(50) DEFAULT NULL,
  `web` varchar(200) DEFAULT NULL,
  `descr` text DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sellers_translations_id_seller_id_language_uindex` (`id_seller`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `sellers_translations_ibfk_1` FOREIGN KEY (`id_seller`) REFERENCES `sellers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `sellers_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `sellers_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sellers_translations`
--

LOCK TABLES `sellers_translations` WRITE;
/*!40000 ALTER TABLE `sellers_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `sellers_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `set_categories`
--

DROP TABLE IF EXISTS `set_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `set_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(250) NOT NULL,
  `descr` mediumtext DEFAULT NULL,
  `position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `set_categories`
--

LOCK TABLES `set_categories` WRITE;
/*!40000 ALTER TABLE `set_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `set_categories` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_set_categories BEFORE INSERT ON set_categories
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = (SELECT COALESCE(MAX(position) + 1, 0) FROM set_categories);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `set_categories_translations`
--

DROP TABLE IF EXISTS `set_categories_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `set_categories_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_set_categorie` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(250) DEFAULT NULL,
  `descr` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `set_categories_translations_id_set_category_id_language_uindex` (`id_set_categorie`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `set_categories_translations_ibfk_1` FOREIGN KEY (`id_set_categorie`) REFERENCES `set_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `set_categories_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `set_categories_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `set_categories_translations`
--

LOCK TABLES `set_categories_translations` WRITE;
/*!40000 ALTER TABLE `set_categories_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `set_categories_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `set_products`
--

DROP TABLE IF EXISTS `set_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `set_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product_master` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `category` int(11) NOT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_product` (`id_product`,`id_product_master`,`category`),
  KEY `FK_set_products_master` (`id_product_master`),
  KEY `FK_set_category` (`category`),
  CONSTRAINT `FK_set_category` FOREIGN KEY (`category`) REFERENCES `set_categories` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_set_products` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_set_products_master` FOREIGN KEY (`id_product_master`) REFERENCES `products` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `set_products`
--

LOCK TABLES `set_products` WRITE;
/*!40000 ALTER TABLE `set_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `set_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `set_products_variations`
--

DROP TABLE IF EXISTS `set_products_variations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `set_products_variations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_set_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `price` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_set_product` (`id_set_product`,`id_variation`),
  CONSTRAINT `FK_id_set_product` FOREIGN KEY (`id_set_product`) REFERENCES `set_products` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `set_products_variations`
--

LOCK TABLES `set_products_variations` WRITE;
/*!40000 ALTER TABLE `set_products_variations` DISABLE KEYS */;
/*!40000 ALTER TABLE `set_products_variations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `settings`
--

DROP TABLE IF EXISTS `settings`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `settings` (
  `key_name` varchar(50) NOT NULL,
  `value` mediumtext NOT NULL,
  `date_update` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp(),
  `autoload` tinyint(4) DEFAULT 1,
  UNIQUE KEY `key_name` (`key_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `settings`
--

LOCK TABLES `settings` WRITE;
/*!40000 ALTER TABLE `settings` DISABLE KEYS */;
INSERT INTO `settings` VALUES
('admin_ean_check','\"Y\"','0000-00-00 00:00:00',1),
('analytics','{\"google_site_verifications\":[]}','2021-03-03 17:34:30',1),
('balikobot','{\"cod_remaining\":\"Y\"}','0000-00-00 00:00:00',1),
('balikonos','null','0000-00-00 00:00:00',1),
('bank_account_number','\"\"','0000-00-00 00:00:00',1),
('bank_account_prefix','\"\"','0000-00-00 00:00:00',1),
('bank_code','\"\"','0000-00-00 00:00:00',1),
('bank_iban','\"\"','0000-00-00 00:00:00',1),
('bank_konst_symbol','\"\"','0000-00-00 00:00:00',1),
('bank_name','\"Jmeno banky - misto\"','0000-00-00 00:00:00',1),
('bank_swift','\"\"','0000-00-00 00:00:00',1),
('bank_var_symbol','\"\"','0000-00-00 00:00:00',1),
('cat_show_empty','\"Y\"','0000-00-00 00:00:00',1),
('cat_show_products','\"9\"','0000-00-00 00:00:00',1),
('cat_show_products_search','null','0000-00-00 00:00:00',1),
('cat_show_style','\"1\"','0000-00-00 00:00:00',1),
('cdn','{\"active\":\"N\"}','0000-00-00 00:00:00',1),
('currencies','[]','0000-00-00 00:00:00',1),
('currency','\"CZK\"','2020-07-01 15:12:13',1),
('currency_code','\"CZK\"','0000-00-00 00:00:00',1),
('custom','null','0000-00-00 00:00:00',1),
('date_format','\"%e.%c.%Y\"','0000-00-00 00:00:00',1),
('delete_cart_logged','\"14\"','0000-00-00 00:00:00',1),
('delete_cart_notlogged','\"1\"','0000-00-00 00:00:00',1),
('email','null','0000-00-00 00:00:00',1),
('email_allowed_recipient_domains','\"wpj.cz\"','0000-00-00 00:00:00',1),
('eshop_live','\"N\"','0000-00-00 00:00:00',1),
('figure_photos','\"Y\"','0000-00-00 00:00:00',1),
('figure_prices','\"Y\"','0000-00-00 00:00:00',1),
('fulltext_synonyms','[false]','0000-00-00 00:00:00',0),
('highlight_order_rows','\"N\"','0000-00-00 00:00:00',1),
('index_description','\"Demo Kupshop.cz\"','0000-00-00 00:00:00',1),
('index_keywords','\"kupshop, eshop, tvorba, syst\\u00e9m\"','0000-00-00 00:00:00',1),
('index_title','\"Demo Kupshop.cz\"','0000-00-00 00:00:00',1),
('infomail_addr','\"\"','0000-00-00 00:00:00',1),
('infomail_from','\"\\\"Eshop - zakaznicke centrum\\\" <objednavky@kupshop.cz>\"','0000-00-00 00:00:00',1),
('infomail_return','\"info@kupshop.cz\"','0000-00-00 00:00:00',1),
('infomail_subject','\"Kupshop - pravideln\\u00fd dou\\u0161ek novinek\"','0000-00-00 00:00:00',1),
('infomail_text','\"<p>Text<\\/p>\\r\\n\"','0000-00-00 00:00:00',1),
('info_panel','null','0000-00-00 00:00:00',1),
('invoice_footer','\"\"','0000-00-00 00:00:00',1),
('invoice_name','null','0000-00-00 00:00:00',1),
('invoice_qr_payment','\"Y\"','2023-07-19 18:03:32',1),
('lang','\"czech\"','0000-00-00 00:00:00',1),
('nw_as_tab','\"N\"','0000-00-00 00:00:00',1),
('orders_closed','\"N\"','0000-00-00 00:00:00',1),
('order_availability','\"all\"','0000-00-00 00:00:00',1),
('order_confirm_mail','\"\\\"kupshop.cz - DEMO\\\" <objednavky@kupshop.cz>\"','0000-00-00 00:00:00',1),
('order_confirm_subject','\"kupshop.cz - DEMO - potvrzen\\u00ed objedn\\u00e1vky ORDER_ID\"','0000-00-00 00:00:00',1),
('order_confirm_text','\"<p>Dobr\\u00fd den,<br \\/>\\r\\nVa\\u0161e objedn\\u00e1vka \\u010d\\u00edslo <strong>ORDER_ID<\\/strong> byla zpracov\\u00e1na obchodn\\u00edkem.<br \\/>\\r\\nV p\\u0159\\u00edloze V\\u00e1m zas\\u00edl\\u00e1me objedn\\u00e1vku ve verzi k vyti\\u0161t\\u011bn\\u00ed.<\\/p>\\r\\n\\r\\n<p><img alt=\\\"brotherandduck.cz\\\" src=\\\"http:\\/\\/www.centrum-muziky.kupshop.cz\\/templates\\/images\\/logo.png\\\" style=\\\"border-width: 0px; border-style: solid; width: 269px; height: 85px;\\\" \\/><br \\/>\\r\\n<a href=\\\"http:\\/\\/www.centrum-muziky.cz\\\">www.centrum-muziky.cz<\\/a><br \\/>\\r\\ne-mail: <a href=\\\"mailto:info@centrum-muziky.cz\\\">info@centrum-muziky.cz<\\/a><\\/p>\\r\\n\"','0000-00-00 00:00:00',1),
('order_from_mail','\"info@kupshop.cz\"','0000-00-00 00:00:00',1),
('order_messages','{\"Je t\\u0159eba objednat zbo\\u017e\\u00ed\":{\"text\":\"<p>potvrzujeme Va\\u0161i objedn\\u00e1vku.<\\/p><p>Do dvou dn\\u016f budeme va\\u0161i objedn\\u00e1vku expedovat.<\\/p>\",\"status\":\"1\",\"subject\":\"Demo Kupshop.cz - objedn\\u00e1vka {KOD} se zpracov\\u00e1v\\u00e1\"},\"V\\u0161e skladem\":{\"text\":\"<p>potvrzujeme Va\\u0161i objedn\\u00e1vku.<\\/p><p>V\\u0161e m\\u00e1me skladem a je\\u0161t\\u011b dnes ode\\u0161leme. Obdr\\u017e\\u00edte email s detaily doru\\u010den\\u00ed.<\\/p>\",\"status\":\"1\",\"subject\":\"Demo Kupshop.cz - objedn\\u00e1vka {KOD} se zpracov\\u00e1v\\u00e1\"},\"Osobn\\u00ed p\\u0159ed\\u00e1n\\u00ed\":{\"text\":\"<p>zbo\\u017e\\u00ed je p\\u0159ipraveno k osobn\\u00edmu p\\u0159evzet\\u00ed na adrese:<\\/p><p>adresa<br>\\r\\nadresa<br>\\r\\nadresa<\\/p><p>od 8:00 do 15:00<\\/p>\",\"status\":\"2\",\"subject\":\"Demo Kupshop.cz - objedn\\u00e1vka {KOD} je p\\u0159ipravna k osobn\\u00edmu p\\u0159ed\\u00e1n\\u00ed\"},\"\\u010cesk\\u00e1 Po\\u0161ta\":{\"text\":\"<p><strong>Objedn\\u00e1vka odesl\\u00e1na obchodn\\u00edm bal\\u00edkem \\u010desk\\u00e9 po\\u0161ty.<\\/strong><br>\\r\\nBal\\u00edk u V\\u00e1s bude n\\u00e1sleduj\\u00edc\\u00ed pracovn\\u00ed den.<br><br>\\r\\nPolohu m\\u016f\\u017eete sledovat na <a href=\\\"http:\\/\\/www.ceskaposta.cz\\/cz\\/nastroje\\/sledovani-zasilky.php?barcode={\\u010c\\u00edslo bal\\u00edku}&amp;locale=CZ&amp;send.x=52&amp;send.y=8&amp;send=submit&amp;go=ok\\\">Sledov\\u00e1n\\u00ed z\\u00e1silek \\u010cesk\\u00e9 Po\\u0161ty<\\/a><br><br><strong>\\u010c\\u00edslo bal\\u00edku: {\\u010c\\u00edslo bal\\u00edku}<br>\\r\\nDatum: {DATUM} {CAS}<br>\\r\\nDob\\u00edrka: {CENA}<\\/strong><\\/p><p>V p\\u0159\\u00edpad\\u011b, \\u017ee ji\\u017e nyn\\u00ed v\\u00edte, \\u017ee V\\u00e1m v\\u00fd\\u0161e uveden\\u00e1 doru\\u010dovac\\u00ed doba nevyhovuje, nav\\u0161tivte webov\\u00e9 str\\u00e1nky <a href=\\\"http:\\/\\/formulare.cpost.cz\\\">http:\\/\\/formulare.cpost.cz<\\/a>, kde si m\\u016f\\u017eete jednoduch\\u00fdm zp\\u016fsobem nastavit zm\\u011bnu \\u010dasu, m\\u00edsta nebo den doru\\u010den\\u00ed.<\\/p>\",\"status\":\"2\",\"subject\":\"Demo Kupshop.cz - objedn\\u00e1vka {KOD} byla odesl\\u00e1na\"},\"Kur\\u00fdr\":{\"text\":\"<p><strong>Objedn\\u00e1vka odesl\\u00e1na obchodn\\u00edm bal\\u00edkem \\u010desk\\u00e9 po\\u0161ty.<\\/strong><br>\\r\\nBal\\u00edk u V\\u00e1s bude n\\u00e1sleduj\\u00edc\\u00ed pracovn\\u00ed den.<br><br>\\r\\nPolohu m\\u016f\\u017eete sledovat na <a href=\\\"http:\\/\\/www.ceskaposta.cz\\/cz\\/nastroje\\/sledovani-zasilky.php?barcode={\\u010c\\u00edslo bal\\u00edku}&amp;locale=CZ&amp;send.x=52&amp;send.y=8&amp;send=submit&amp;go=ok\\\">Sledov\\u00e1n\\u00ed z\\u00e1silek \\u010cesk\\u00e9 Po\\u0161ty<\\/a> - doplnit sledovani<br><br><strong>\\u010c\\u00edslo bal\\u00edku: {\\u010c\\u00edslo bal\\u00edku}<br>\\r\\nDatum: {DATUM} {CAS}<br>\\r\\nDob\\u00edrka: {CENA}<\\/strong><\\/p>\",\"status\":\"2\",\"subject\":\"Demo Kupshop.cz - objedn\\u00e1vka {KOD} byla odesl\\u00e1na\"}}','0000-00-00 00:00:00',1),
('order_multiple_paid_status','\"N\"','0000-00-00 00:00:00',1),
('order_received_mail','\"\\\"kupshop.cz - DEMO\\\" <objednavky@kupshop.cz>\"','0000-00-00 00:00:00',1),
('order_received_subject','\"Demo Kupshop.cz - p\\u0159ijata objedn\\u00e1vka {KOD}\"','0000-00-00 00:00:00',1),
('order_received_text','\"<p>d\\u011bkujeme, \\u017ee jste projevili z\\u00e1jem o na\\u0161e produkty.<br>\\r\\nJakmile bude objedn\\u00e1vka p\\u0159ijata obchodn\\u00edkem, bude informov\\u00e1ni dal\\u0161\\u00edm potvrzovac\\u00edm emailem.<\\/p><p>Objedn\\u00e1vka \\u010d\\u00edslo: <strong>{KOD}<\\/strong><br>\\r\\nInformace o pr\\u016fb\\u011bhu zpracov\\u00e1n\\u00ed objedn\\u00e1vky naleznete <a href=\\\"{ODKAZ}\\\">zde<\\/a>.<\\/p>\"','0000-00-00 00:00:00',1),
('order_send_received_mail','\"Y\"','0000-00-00 00:00:00',1),
('order_send_status_mail','\"Y\"','0000-00-00 00:00:00',1),
('order_send_to_shopkeeper','\"N\"','0000-00-00 00:00:00',1),
('order_shopkeeper_mail','\"info@kupshop.cz\"','0000-00-00 00:00:00',1),
('order_status_mail','\"\\\"kupshop.cz - DEMO\\\" <objednavky@kupshop.cz>\"','0000-00-00 00:00:00',1),
('order_status_subject','\"Demo Kupshop.cz - zm\\u011bna stavu objedn\\u00e1vky {KOD}\"','0000-00-00 00:00:00',1),
('order_status_text','\"<p>stav Va\\u0161\\u00ed objedn\\u00e1vky \\u010d\\u00edslo <strong>{KOD}<\\/strong> byl zm\\u011bn\\u011bn na <strong>{STAV}<\\/strong>.<\\/p><p>{KOMENTAR}<\\/p>\"','0000-00-00 00:00:00',1),
('order_template_text','\"<p>Dobr\\u00fd den,<\\/p>\\r\\n\\r\\n<p>{EMAIL}<\\/p>\\r\\n\\r\\n<p><img src=\\\"\\/templates\\/images\\/logo.png\\\" style=\\\"border-width: 0px; border-style: solid; width: 276px; height: 51px;\\\" \\/><br \\/>\\r\\n<a href=\\\"http:\\/\\/www.kupshop.cz\\\">www.kupshop.cz<\\/a><br \\/>\\r\\ne-mail: <a href=\\\"mailto:info@kupshop.cz\\\">info@kupshop.cz<\\/a><\\/p>\\r\\n\"','0000-00-00 00:00:00',1),
('page_divide','30','0000-00-00 00:00:00',1),
('payment_config','{\"order_status_new\":\"0\",\"order_status_finished\":\"1\"}','0000-00-00 00:00:00',1),
('price_decimal_mark','\",\"','0000-00-00 00:00:00',1),
('price_precision','null','0000-00-00 00:00:00',1),
('price_round','\"100\"','0000-00-00 00:00:00',1),
('price_round_direction','\"math\"','0000-00-00 00:00:00',1),
('price_round_order','\"100\"','2017-03-29 15:35:41',1),
('products_sets','{\"split\":\"price_default\"}','0000-00-00 00:00:00',1),
('product_templates','[]','0000-00-00 00:00:00',1),
('prod_do_after_order','\"status\"','0000-00-00 00:00:00',1),
('prod_in_feed_all','\"N\"','0000-00-00 00:00:00',1),
('prod_photo_big_height','\"768\"','0000-00-00 00:00:00',1),
('prod_photo_big_width','\"1024\"','0000-00-00 00:00:00',1),
('prod_photo_medium_height','\"371\"','0000-00-00 00:00:00',1),
('prod_photo_medium_width','\"485\"','0000-00-00 00:00:00',1),
('prod_photo_small_lead_height','\"190\"','0000-00-00 00:00:00',1),
('prod_photo_small_lead_width','\"214\"','0000-00-00 00:00:00',1),
('prod_photo_small_other_height','\"100\"','0000-00-00 00:00:00',1),
('prod_photo_small_other_width','\"140\"','0000-00-00 00:00:00',1),
('prod_prefer_price_vat','\"Y\"','0000-00-00 00:00:00',1),
('prod_show_admin_hidden','\"N\"','0000-00-00 00:00:00',1),
('prod_show_not_in_category','\"Y\"','0000-00-00 00:00:00',1),
('prod_show_not_in_store','\"Y\"','0000-00-00 00:00:00',1),
('prod_show_price_vat','\"Y\"','0000-00-00 00:00:00',1),
('prod_subtract_from_store','\"Y\"','0000-00-00 00:00:00',1),
('rate','1','0000-00-00 00:00:00',1),
('register_to_order','\"N\"','0000-00-00 00:00:00',1),
('reservations','{\"merge_interval\":20}','0000-00-00 00:00:00',1),
('returns','{\"reasons\":[{\"position\":0,\"value\":\"Rozmyslel\\/a jsem si n\\u00e1kup\",\"active\":\"Y\",\"id\":0},{\"position\":1,\"value\":\"Produkt vypad\\u00e1 jinak ne\\u017e na e-shopu\",\"active\":\"Y\",\"id\":1},{\"position\":2,\"value\":\"Barva neodpov\\u00edd\\u00e1 barv\\u011b produktu na e-shopu\",\"active\":\"Y\",\"id\":2},{\"position\":3,\"value\":\"Nejsem spokojen\\u00fd\\/\\u00e1 s kvalitou\",\"active\":\"Y\",\"id\":3},{\"position\":4,\"value\":\"Velikost neodpov\\u00edd\\u00e1\",\"active\":\"Y\",\"id\":4},{\"position\":5,\"value\":\"Produkt m\\u00e1 vadu\",\"active\":\"Y\",\"id\":5},{\"position\":6,\"value\":\"P\\u0159i\\u0161el jin\\u00fd produkt, ne\\u017e jsem objednal\\/a\",\"active\":\"Y\",\"id\":6},{\"position\":7,\"value\":\"Zbo\\u017e\\u00ed dorazilo p\\u0159\\u00edli\\u0161 pozd\\u011b\",\"active\":\"Y\",\"id\":7},{\"position\":8,\"value\":\"Jin\\u00fd d\\u016fvod\",\"active\":\"Y\",\"id\":8}]}','0000-00-00 00:00:00',1),
('review_automatic_confirm','null','0000-00-00 00:00:00',1),
('shop_address','\"Fugnerova 1288\\r\\n543 01 Vrchlab\\u00ed\"','0000-00-00 00:00:00',1),
('shop_closed','\"N\"','0000-00-00 00:00:00',1),
('shop_description','\"Demo Kupshop.cz\"','0000-00-00 00:00:00',1),
('shop_dic','\"CZ123456789\"','0000-00-00 00:00:00',1),
('shop_due_days','\"14\"','0000-00-00 00:00:00',1),
('shop_email','\"info@kupshop.cz\"','0000-00-00 00:00:00',1),
('shop_fax','\"(+420)\"','0000-00-00 00:00:00',1),
('shop_firm_name','\"Demo\"','0000-00-00 00:00:00',1),
('shop_firm_owner','null','0000-00-00 00:00:00',1),
('shop_ico','\"123456789\"','0000-00-00 00:00:00',1),
('shop_keywords','\"Demo Kupshop.cz\"','0000-00-00 00:00:00',1),
('shop_orders_finished','\"\"','0000-00-00 00:00:00',1),
('shop_out_of_order','\"N\"','0000-00-00 00:00:00',1),
('shop_phone','\"777 777 777\"','0000-00-00 00:00:00',1),
('shop_status','\"1\"','0000-00-00 00:00:00',1),
('shop_title','\"Demo Kupshop.cz\"','0000-00-00 00:00:00',1),
('shop_vat_payer','\"Y\"','0000-00-00 00:00:00',1),
('sort_in_cat_by_in_store','\"Y\"','0000-00-00 00:00:00',1),
('telfa','null','0000-00-00 00:00:00',1),
('terms_and_conditions_file','null','0000-00-00 00:00:00',1),
('time_format','\"%H:%i:%s\"','0000-00-00 00:00:00',1),
('user_rights_version','32','2025-02-06 22:16:30',1);
/*!40000 ALTER TABLE `settings` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `settings_translations`
--

DROP TABLE IF EXISTS `settings_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `settings_translations` (
  `key_name` varchar(50) DEFAULT NULL,
  `value` mediumtext DEFAULT NULL,
  `date_update` timestamp NOT NULL DEFAULT current_timestamp(),
  `id_language` varchar(2) NOT NULL,
  UNIQUE KEY `key_name` (`key_name`,`id_language`),
  KEY `id_language` (`id_language`),
  CONSTRAINT `settings_translations_ibfk_1` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `settings_translations`
--

LOCK TABLES `settings_translations` WRITE;
/*!40000 ALTER TABLE `settings_translations` DISABLE KEYS */;
INSERT INTO `settings_translations` VALUES
('returns','{\"reasons\":[{\"position\":0,\"value\":\"Rozmyslel\\/a som si n\\u00e1kup\",\"active\":\"Y\",\"id\":0},{\"position\":1,\"value\":\"Produkt vyzer\\u00e1 inak ako na e-shope\",\"active\":\"Y\",\"id\":1},{\"position\":2,\"value\":\"Farba nezodpoved\\u00e1 farbe produktu na e-shope\",\"active\":\"Y\",\"id\":2},{\"position\":3,\"value\":\"Nie som spokojn\\u00fd\\/\\u00e1 s kvalitou\",\"active\":\"Y\",\"id\":3},{\"position\":4,\"value\":\"Ve\\u013ekos\\u0165 nezodpoved\\u00e1\",\"active\":\"Y\",\"id\":4},{\"position\":5,\"value\":\"Produkt m\\u00e1 vadu\",\"active\":\"Y\",\"id\":5},{\"position\":6,\"value\":\"Pri\\u0161iel in\\u00fd produkt, ne\\u017e som objednal\\/a\",\"active\":\"Y\",\"id\":6},{\"position\":7,\"value\":\"Tovar dorazil pr\\u00edli\\u0161 neskoro\",\"active\":\"Y\",\"id\":7},{\"position\":8,\"value\":\"In\\u00fd d\\u00f4vod\",\"active\":\"Y\",\"id\":8}]}','2023-10-03 13:51:09','sk');
/*!40000 ALTER TABLE `settings_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `shopping_list`
--

DROP TABLE IF EXISTS `shopping_list`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `shopping_list` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_user` int(11) unsigned NOT NULL DEFAULT 0,
  `name` varchar(255) DEFAULT NULL,
  `date` date DEFAULT NULL,
  `note` text DEFAULT NULL,
  `hash` varchar(60) DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `shopping_list_id_uindex` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `shopping_list`
--

LOCK TABLES `shopping_list` WRITE;
/*!40000 ALTER TABLE `shopping_list` DISABLE KEYS */;
/*!40000 ALTER TABLE `shopping_list` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `shopping_list_products`
--

DROP TABLE IF EXISTS `shopping_list_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `shopping_list_products` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_shopping_list` int(11) DEFAULT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` decimal(15,4) DEFAULT 0.0000,
  `date_created` datetime DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  UNIQUE KEY `shopping_list_products_id_uindex` (`id`),
  UNIQUE KEY `shopping_list_uniq` (`id_shopping_list`,`id_product`,`id_variation`),
  KEY `shopping_list_products_products_id_fk` (`id_product`),
  KEY `shopping_list_products_products_variations_id_fk` (`id_variation`),
  CONSTRAINT `shopping_list_products_products_id_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `shopping_list_products_products_variations_id_fk` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `shopping_list_products_shopping_list_id_fk` FOREIGN KEY (`id_shopping_list`) REFERENCES `shopping_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `shopping_list_products`
--

LOCK TABLES `shopping_list_products` WRITE;
/*!40000 ALTER TABLE `shopping_list_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `shopping_list_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sites`
--

DROP TABLE IF EXISTS `sites`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sites` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `domain` varchar(255) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `id_language` (`id_language`),
  CONSTRAINT `sites_ibfk_1` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sites`
--

LOCK TABLES `sites` WRITE;
/*!40000 ALTER TABLE `sites` DISABLE KEYS */;
INSERT INTO `sites` VALUES
(1,'www.kupshop.local - cs','www.kupshop.local','cs'),
(2,'www.czdomena.cz - cs','www.czdomena.cz','cs'),
(3,'www.skdomena.sk - cs','www.skdomena.sk','cs'),
(4,'www.eudomena.eu - cs','www.eudomena.eu','cs');
/*!40000 ALTER TABLE `sites` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sk_eet_payment`
--

DROP TABLE IF EXISTS `sk_eet_payment`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sk_eet_payment` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order` int(10) unsigned DEFAULT NULL,
  `id_payment` int(11) DEFAULT NULL,
  `uid` varchar(50) DEFAULT NULL,
  `okp` varchar(50) DEFAULT NULL,
  `date_sent` datetime NOT NULL,
  `date_confirmed` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `IDX_A6D4C13S65DA13C2` (`id_order`),
  KEY `IDX_H654TNM6TA1VDF3A` (`id_payment`),
  CONSTRAINT `IDXC_A6D4C13S65DA13C2` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
  CONSTRAINT `IDXC_H654TNM6TA1VDF3A` FOREIGN KEY (`id_payment`) REFERENCES `order_payments` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sk_eet_payment`
--

LOCK TABLES `sk_eet_payment` WRITE;
/*!40000 ALTER TABLE `sk_eet_payment` DISABLE KEYS */;
/*!40000 ALTER TABLE `sk_eet_payment` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sliders`
--

DROP TABLE IF EXISTS `sliders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sliders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `size` varchar(100) DEFAULT NULL,
  `size_tablet` varchar(100) DEFAULT NULL,
  `size_mobile` varchar(100) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `label` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `label` (`label`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sliders`
--

LOCK TABLES `sliders` WRITE;
/*!40000 ALTER TABLE `sliders` DISABLE KEYS */;
INSERT INTO `sliders` VALUES
(1,'Úvod',NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `sliders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sliders_images`
--

DROP TABLE IF EXISTS `sliders_images`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sliders_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_slider` int(11) NOT NULL,
  `id_photo` int(11) unsigned DEFAULT NULL,
  `position` int(11) NOT NULL,
  `description` longtext DEFAULT NULL,
  `link` longtext DEFAULT NULL,
  `date_from` datetime DEFAULT NULL,
  `date_to` datetime DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT 'Y',
  PRIMARY KEY (`id`),
  KEY `id_slider` (`id_slider`),
  KEY `id_photo` (`id_photo`),
  CONSTRAINT `sliders_images_ibfk_1` FOREIGN KEY (`id_slider`) REFERENCES `sliders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `sliders_images_ibfk_2` FOREIGN KEY (`id_photo`) REFERENCES `photos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sliders_images`
--

LOCK TABLES `sliders_images` WRITE;
/*!40000 ALTER TABLE `sliders_images` DISABLE KEYS */;
INSERT INTO `sliders_images` VALUES
(1,1,27,0,'Banner 1','/',NULL,NULL,NULL,'Y'),
(2,1,28,1,'Banner 2','/',NULL,NULL,NULL,'Y');
/*!40000 ALTER TABLE `sliders_images` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_sliders_images3 BEFORE INSERT ON sliders_images
    FOR EACH ROW
BEGIN
    IF NEW.position IS NULL THEN
        SET NEW.position = ((SELECT IFNULL(MAX(position), 0) FROM sliders_images WHERE id_slider = NEW.id_slider) + 1);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `sliders_images_translations`
--

DROP TABLE IF EXISTS `sliders_images_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sliders_images_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_sliders_image` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `description` longtext DEFAULT NULL,
  `link` longtext DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sliders_images_translations_id_sliders_image_id_language_uindex` (`id_sliders_image`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `sliders_images_translations_ibfk_1` FOREIGN KEY (`id_sliders_image`) REFERENCES `sliders_images` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `sliders_images_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `sliders_images_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sliders_images_translations`
--

LOCK TABLES `sliders_images_translations` WRITE;
/*!40000 ALTER TABLE `sliders_images_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `sliders_images_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sliders_in_sections`
--

DROP TABLE IF EXISTS `sliders_in_sections`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sliders_in_sections` (
  `id_section` int(11) NOT NULL,
  `position` enum('main') NOT NULL DEFAULT 'main',
  `id_slider` int(11) NOT NULL,
  PRIMARY KEY (`id_section`,`position`),
  KEY `id_slider` (`id_slider`),
  CONSTRAINT `section_to_slider_fk` FOREIGN KEY (`id_section`) REFERENCES `sections` (`id`) ON DELETE CASCADE,
  CONSTRAINT `slider_to_section_fk` FOREIGN KEY (`id_slider`) REFERENCES `sliders` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sliders_in_sections`
--

LOCK TABLES `sliders_in_sections` WRITE;
/*!40000 ALTER TABLE `sliders_in_sections` DISABLE KEYS */;
/*!40000 ALTER TABLE `sliders_in_sections` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `sliders_translations`
--

DROP TABLE IF EXISTS `sliders_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sliders_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_slider` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NOT NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  `size` varchar(100) DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `sliders_translations_id_slider_id_language_uindex` (`id_slider`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `sliders_translations_ibfk_1` FOREIGN KEY (`id_slider`) REFERENCES `sliders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `sliders_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `sliders_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `sliders_translations`
--

LOCK TABLES `sliders_translations` WRITE;
/*!40000 ALTER TABLE `sliders_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `sliders_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `stock_in`
--

DROP TABLE IF EXISTS `stock_in`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_in` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_index` enum('invoice','closure','future') NOT NULL DEFAULT 'invoice',
  `number` int(11) DEFAULT NULL,
  `code` varchar(50) DEFAULT NULL,
  `closed` tinyint(1) NOT NULL DEFAULT 0,
  `flags` set('O') DEFAULT NULL,
  `date_created` datetime NOT NULL,
  `id_supplier` int(11) NOT NULL,
  `total_price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `transport_price` decimal(15,4) NOT NULL DEFAULT 0.0000,
  `date_expiration` date DEFAULT NULL,
  `date_issued` date DEFAULT NULL,
  `payment_method` enum('dobirka','prevodem') NOT NULL DEFAULT 'dobirka',
  `paid` tinyint(1) NOT NULL DEFAULT 0,
  `note` varchar(50) DEFAULT NULL,
  `discount` double NOT NULL DEFAULT 0,
  `finished` tinyint(1) NOT NULL DEFAULT 0,
  `multiplier` decimal(15,4) DEFAULT 1.0000,
  `data` mediumtext DEFAULT NULL,
  `date_stock_in` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`,`id_supplier`),
  KEY `supplier` (`id_supplier`),
  KEY `stock_in_ibfk_2` (`id_index`),
  CONSTRAINT `stock_in_ibfk_1` FOREIGN KEY (`id_supplier`) REFERENCES `suppliers` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=218910 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stock_in`
--

LOCK TABLES `stock_in` WRITE;
/*!40000 ALTER TABLE `stock_in` DISABLE KEYS */;
/*!40000 ALTER TABLE `stock_in` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `stock_in_items`
--

DROP TABLE IF EXISTS `stock_in_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_in_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(100) DEFAULT NULL,
  `id_stock_in` int(11) NOT NULL,
  `id_product` int(11) DEFAULT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  `price` decimal(15,4) NOT NULL,
  `vat` int(11) NOT NULL DEFAULT 0,
  `additional_costs` decimal(15,4) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `id_stock_in` (`id_stock_in`),
  KEY `id_product` (`id_product`),
  KEY `id_variation` (`id_variation`),
  CONSTRAINT `stock_in_items_ibfk_1` FOREIGN KEY (`id_stock_in`) REFERENCES `stock_in` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stock_in_items_ibfk_4` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `stock_in_items_ibfk_5` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3715199 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stock_in_items`
--

LOCK TABLES `stock_in_items` WRITE;
/*!40000 ALTER TABLE `stock_in_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `stock_in_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `stores`
--

DROP TABLE IF EXISTS `stores`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stores` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `position` int(11) DEFAULT NULL,
  `name` varchar(30) NOT NULL,
  `id_delivery` int(11) DEFAULT NULL,
  `id_base_position` int(11) DEFAULT NULL,
  `type` int(11) NOT NULL DEFAULT 0,
  `id_return_table` int(11) DEFAULT NULL,
  `figure` enum('Y','N') CHARACTER SET cp1250 COLLATE cp1250_czech_cs NOT NULL DEFAULT 'Y',
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `stores_delivery_type_delivery_id_fk` (`id_delivery`),
  KEY `stores_transfers_base_position_id_fk` (`id_base_position`),
  KEY `stores_transfers_return_table_id_fk` (`id_return_table`),
  CONSTRAINT `stores_delivery_type_delivery_id_fk` FOREIGN KEY (`id_delivery`) REFERENCES `delivery_type_delivery` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `stores_transfers_base_position_id_fk` FOREIGN KEY (`id_base_position`) REFERENCES `warehouse_positions` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `stores_transfers_return_table_id_fk` FOREIGN KEY (`id_return_table`) REFERENCES `warehouse_positions` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stores`
--

LOCK TABLES `stores` WRITE;
/*!40000 ALTER TABLE `stores` DISABLE KEYS */;
INSERT INTO `stores` VALUES
(1,0,'Hlavní sklad',NULL,NULL,1,NULL,'Y',NULL);
/*!40000 ALTER TABLE `stores` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_stores BEFORE INSERT ON stores
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(stores.position) + 1, 0) FROM stores);
                    END IF;
                END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `stores_items`
--

DROP TABLE IF EXISTS `stores_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stores_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_store` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  `min_quantity` int(11) DEFAULT NULL,
  `custom_data` text DEFAULT '',
  `integrity_unique` varchar(50) GENERATED ALWAYS AS (concat_ws('-',`id_store`,`id_product`,`id_variation`)) VIRTUAL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `stores_items_id_store_id_product_id_variation_pk` (`id_store`,`id_product`,`id_variation`),
  UNIQUE KEY `integrity_unique` (`integrity_unique`),
  KEY `stores_items_products_id_fk` (`id_product`),
  KEY `stores_items_products_variations_id_fk` (`id_variation`),
  CONSTRAINT `stores_items_products_id_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_items_products_variations_id_fk` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_items_stores_id_fk` FOREIGN KEY (`id_store`) REFERENCES `stores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stores_items`
--

LOCK TABLES `stores_items` WRITE;
/*!40000 ALTER TABLE `stores_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `stores_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `stores_log`
--

DROP TABLE IF EXISTS `stores_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stores_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `time` timestamp NOT NULL DEFAULT current_timestamp(),
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `id_store` int(11) NOT NULL,
  `previous` int(11) NOT NULL DEFAULT 0,
  `current` int(11) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `stores_id_product` (`id_product`),
  KEY `stores_id_variation` (`id_variation`),
  KEY `stores_id_store` (`id_store`),
  CONSTRAINT `stores_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_id_store` FOREIGN KEY (`id_store`) REFERENCES `stores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stores_log`
--

LOCK TABLES `stores_log` WRITE;
/*!40000 ALTER TABLE `stores_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `stores_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `stores_transfers`
--

DROP TABLE IF EXISTS `stores_transfers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stores_transfers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_store_from` int(11) NOT NULL,
  `id_store_to` int(11) NOT NULL,
  `date_created` datetime NOT NULL,
  `state` enum('O','S','R') NOT NULL DEFAULT 'O',
  `note` varchar(50) DEFAULT NULL,
  `checkouts` mediumtext DEFAULT NULL,
  `id_position` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `stores_transfers_stores_id_from_fk` (`id_store_from`),
  KEY `stores_transfers_stores_id_to_fk` (`id_store_to`),
  KEY `stores_transfers_position_id_fk` (`id_position`),
  CONSTRAINT `stores_transfers_position_id_fk` FOREIGN KEY (`id_position`) REFERENCES `warehouse_positions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_transfers_stores_id_from_fk` FOREIGN KEY (`id_store_from`) REFERENCES `stores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_transfers_stores_id_to_fk` FOREIGN KEY (`id_store_to`) REFERENCES `stores` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stores_transfers`
--

LOCK TABLES `stores_transfers` WRITE;
/*!40000 ALTER TABLE `stores_transfers` DISABLE KEYS */;
/*!40000 ALTER TABLE `stores_transfers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `stores_transfers_items`
--

DROP TABLE IF EXISTS `stores_transfers_items`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stores_transfers_items` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_stores_transfer` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `quantity` int(11) NOT NULL,
  `custom_data` text DEFAULT '',
  PRIMARY KEY (`id`),
  UNIQUE KEY `stores_transfers_items_id_transfer_id_product_id_variation_pk` (`id_stores_transfer`,`id_product`,`id_variation`),
  KEY `stores_transfers_items_products_id_fk` (`id_product`),
  KEY `stores_transfers_items_variations_id_fk` (`id_variation`),
  CONSTRAINT `stores_transfers_items_products_id_fk` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_transfers_items_stores_transfers_id_fk` FOREIGN KEY (`id_stores_transfer`) REFERENCES `stores_transfers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `stores_transfers_items_variations_id_fk` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5929 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `stores_transfers_items`
--

LOCK TABLES `stores_transfers_items` WRITE;
/*!40000 ALTER TABLE `stores_transfers_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `stores_transfers_items` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `suppliers`
--

DROP TABLE IF EXISTS `suppliers`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `suppliers` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(30) NOT NULL,
  `order_url` longtext DEFAULT NULL,
  `address` mediumtext DEFAULT NULL,
  `phone` varchar(15) DEFAULT NULL,
  `email` varchar(50) DEFAULT NULL,
  `ico` varchar(15) DEFAULT NULL,
  `dic` varchar(15) DEFAULT NULL,
  `import_settings` mediumtext DEFAULT NULL,
  `data` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `ico` (`ico`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `suppliers`
--

LOCK TABLES `suppliers` WRITE;
/*!40000 ALTER TABLE `suppliers` DISABLE KEYS */;
INSERT INTO `suppliers` VALUES
(1,'Test importu',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2,'Obecný Import',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `suppliers` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `templates`
--

DROP TABLE IF EXISTS `templates`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `templates` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_category` int(11) NOT NULL,
  `name` varchar(100) NOT NULL,
  `id_block` int(11) unsigned DEFAULT NULL,
  `position` int(11) unsigned DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT 'Y',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  KEY `id_template_category` (`id_category`),
  KEY `fk_templates_blocks` (`id_block`),
  CONSTRAINT `fk_templates_blocks` FOREIGN KEY (`id_block`) REFERENCES `blocks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `templates_ibfk_1` FOREIGN KEY (`id_category`) REFERENCES `templates_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `templates`
--

LOCK TABLES `templates` WRITE;
/*!40000 ALTER TABLE `templates` DISABLE KEYS */;
/*!40000 ALTER TABLE `templates` ENABLE KEYS */;
UNLOCK TABLES;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection  = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`%`*/ /*!50003 TRIGGER trigger_templates BEFORE INSERT ON templates
                    FOR EACH ROW
                    BEGIN
                    IF NEW.position IS NULL THEN
                        SET NEW.position = (SELECT COALESCE(MAX(templates.position) + 1, 0) FROM templates WHERE id_category = NEW.id_category);
                    END IF;
                END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;

--
-- Table structure for table `templates_categories`
--

DROP TABLE IF EXISTS `templates_categories`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `templates_categories` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) NOT NULL,
  `position` int(11) NOT NULL,
  `product_detail_position` varchar(63) NOT NULL DEFAULT '',
  `label` enum('') DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `templates_categories`
--

LOCK TABLES `templates_categories` WRITE;
/*!40000 ALTER TABLE `templates_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `templates_categories` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `templates_categories_translations`
--

DROP TABLE IF EXISTS `templates_categories_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `templates_categories_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_category` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `templates_categories_translations_id_category_id_language_uindex` (`id_category`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `templates_categories_translations_ibfk_1` FOREIGN KEY (`id_category`) REFERENCES `templates_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `templates_categories_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `templates_categories_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `templates_categories_translations`
--

LOCK TABLES `templates_categories_translations` WRITE;
/*!40000 ALTER TABLE `templates_categories_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `templates_categories_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `templates_products`
--

DROP TABLE IF EXISTS `templates_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `templates_products` (
  `id_template` int(11) NOT NULL,
  `id_product` int(11) NOT NULL,
  PRIMARY KEY (`id_template`,`id_product`),
  KEY `id_product` (`id_product`),
  CONSTRAINT `templates_products_ibfk_1` FOREIGN KEY (`id_template`) REFERENCES `templates` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `templates_products_ibfk_2` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `templates_products`
--

LOCK TABLES `templates_products` WRITE;
/*!40000 ALTER TABLE `templates_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `templates_products` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `templates_translations`
--

DROP TABLE IF EXISTS `templates_translations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `templates_translations` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_template` int(11) NOT NULL,
  `id_language` varchar(2) NOT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `created` timestamp NULL DEFAULT current_timestamp(),
  `updated` datetime DEFAULT NULL,
  `name` varchar(100) DEFAULT NULL,
  `text` text DEFAULT NULL,
  `figure` enum('Y','N') DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `templates_translations_id_template_id_language_uindex` (`id_template`,`id_language`),
  KEY `id_language` (`id_language`),
  KEY `id_admin` (`id_admin`),
  CONSTRAINT `templates_translations_ibfk_1` FOREIGN KEY (`id_template`) REFERENCES `templates` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `templates_translations_ibfk_2` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON UPDATE CASCADE,
  CONSTRAINT `templates_translations_ibfk_3` FOREIGN KEY (`id_admin`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `templates_translations`
--

LOCK TABLES `templates_translations` WRITE;
/*!40000 ALTER TABLE `templates_translations` DISABLE KEYS */;
/*!40000 ALTER TABLE `templates_translations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `translations_frontend`
--

DROP TABLE IF EXISTS `translations_frontend`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `translations_frontend` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_language` varchar(2) NOT NULL,
  `original` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL,
  `type` enum('PHP','PO') NOT NULL,
  `translation` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `translations_frontend_id_language_index` (`id_language`),
  CONSTRAINT `fk_translations_frontend_language` FOREIGN KEY (`id_language`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `translations_frontend`
--

LOCK TABLES `translations_frontend` WRITE;
/*!40000 ALTER TABLE `translations_frontend` DISABLE KEYS */;
/*!40000 ALTER TABLE `translations_frontend` ENABLE KEYS */;
UNLOCK TABLES;

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

DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_language` varchar(2) DEFAULT NULL,
  `passw` varchar(256) NOT NULL DEFAULT '',
  `user_key` varchar(32) NOT NULL DEFAULT '',
  `figure` enum('Y','N') DEFAULT 'Y',
  `name` varchar(20) NOT NULL DEFAULT '',
  `surname` varchar(50) NOT NULL DEFAULT '',
  `firm` varchar(100) NOT NULL DEFAULT '',
  `street` varchar(100) NOT NULL DEFAULT '',
  `city` varchar(50) NOT NULL DEFAULT '',
  `zip` varchar(50) NOT NULL DEFAULT '',
  `country` varchar(50) NOT NULL DEFAULT '',
  `currency` varchar(3) DEFAULT 'CZK',
  `email` varchar(100) NOT NULL DEFAULT '',
  `ico` varchar(20) NOT NULL DEFAULT '',
  `dic` varchar(20) NOT NULL DEFAULT '',
  `phone` varchar(20) NOT NULL DEFAULT '',
  `mobile` varchar(14) NOT NULL DEFAULT '',
  `fax` varchar(20) NOT NULL DEFAULT '',
  `gender` enum('M','F') DEFAULT NULL,
  `delivery_name` varchar(20) NOT NULL DEFAULT '',
  `delivery_surname` varchar(50) NOT NULL DEFAULT '',
  `delivery_firm` varchar(100) NOT NULL DEFAULT '',
  `delivery_street` varchar(100) NOT NULL DEFAULT '',
  `delivery_city` varchar(50) NOT NULL DEFAULT '',
  `delivery_zip` varchar(50) NOT NULL DEFAULT '',
  `delivery_country` varchar(50) NOT NULL DEFAULT '',
  `account_no` varchar(15) NOT NULL DEFAULT '',
  `account_bank` varchar(4) NOT NULL DEFAULT '',
  `account_symbol` varchar(10) NOT NULL DEFAULT '',
  `dealer` enum('Y','N') NOT NULL DEFAULT 'N',
  `get_news` enum('Y','N') NOT NULL DEFAULT 'N',
  `prefer_transport` int(10) unsigned DEFAULT NULL,
  `date_reg` datetime DEFAULT NULL,
  `date_updated` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  `date_logged` datetime DEFAULT NULL,
  `custom_address` varchar(100) NOT NULL DEFAULT '',
  `state` varchar(50) NOT NULL DEFAULT '',
  `delivery_custom_address` varchar(100) NOT NULL DEFAULT '',
  `delivery_state` varchar(50) NOT NULL DEFAULT '',
  `date_subscribe` datetime DEFAULT NULL,
  `date_unsubscribe` datetime DEFAULT NULL,
  `note` longtext DEFAULT NULL,
  `custom_data` longtext DEFAULT NULL,
  `delivery_phone` varchar(20) NOT NULL DEFAULT '',
  `delivery_email` varchar(20) DEFAULT NULL,
  `pohoda_id` int(11) DEFAULT NULL,
  `pohoda_sync_date` datetime DEFAULT NULL,
  `pohoda_id_address` int(11) DEFAULT NULL,
  `id_pricelist` int(11) DEFAULT NULL,
  `due_days` int(11) DEFAULT NULL,
  `birthdate` date DEFAULT NULL,
  `copy_email` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `email` (`email`),
  UNIQUE KEY `pohoda_id` (`pohoda_id`),
  UNIQUE KEY `pohoda_id_address` (`pohoda_id_address`),
  KEY `jmeno_usera` (`name`,`surname`),
  KEY `date_updated` (`date_updated`),
  KEY `users_delivery_type_payment_translations_id_fk` (`prefer_transport`),
  KEY `id_pricelist` (`id_pricelist`),
  CONSTRAINT `users_delivery_type_payment_translations_id_fk` FOREIGN KEY (`prefer_transport`) REFERENCES `delivery_type` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `users_ibfk_1` FOREIGN KEY (`id_pricelist`) REFERENCES `pricelists` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=775680 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='registrovaní uzivatele' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

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

LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES
(1,'cs','79c2b46ce2594ecbcb5b73e928345492','','Y','Petr','Jebavý','wpj s.r.o.','Nádražní 471','Vrchlabí','54301','','CZK','petr@wpj.cz','','','775131400','','',NULL,'','','','','','','','','','','N','Y',1,'2013-09-30 12:09:05','2013-09-30 12:12:44',NULL,'','','','','2013-09-30 12:09:05',NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(2,NULL,'$2y$10$SYA9i04HEUEp31hGoze/WuuWzsLo8xxmJSqmyGubMeoWobxjA0/K.','r90p06rftme6v8dg11j6prcc81','Y','Wpj','Wpj','','Fügnerova 1288','Vrchlabí','54301','','CZK','wpj@wpj.cz','','','+420775131478','','',NULL,'','','','','','','','','','','N','Y',4,'2015-02-16 00:00:00','2015-02-16 00:00:00',NULL,'','','','','2015-02-16 00:00:00',NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(3,NULL,'$2y$10$njbmSrHDfMUwdQUk83t80eyukaqW4EsaCGpvGp1dEOOOnlyAyN.RK','','Y','Joe','Joe','','','','','','CZK','joe@wpj.cz','','','','','',NULL,'','','','','','','','','','','N','Y',NULL,'2015-02-16 00:00:00','2015-02-16 00:00:00',NULL,'','','','','2015-02-16 00:00:00',NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_dealer_price_level`
--

DROP TABLE IF EXISTS `users_dealer_price_level`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_dealer_price_level` (
  `id_user` int(11) unsigned NOT NULL DEFAULT 0,
  `id_price_level` int(10) unsigned NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_user`,`id_price_level`),
  UNIQUE KEY `id_user` (`id_user`),
  KEY `id_price_level` (`id_price_level`),
  CONSTRAINT `users_dealer_price_level_ibfk_1` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `users_dealer_price_level_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='nastaveni dealerske slevy' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_dealer_price_level`
--

LOCK TABLES `users_dealer_price_level` WRITE;
/*!40000 ALTER TABLE `users_dealer_price_level` DISABLE KEYS */;
/*!40000 ALTER TABLE `users_dealer_price_level` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_groups`
--

DROP TABLE IF EXISTS `users_groups`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_groups` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_price_level` int(10) unsigned DEFAULT NULL,
  `name` varchar(50) NOT NULL,
  `descr` longtext DEFAULT NULL,
  `id_pricelist` int(11) DEFAULT NULL,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`),
  UNIQUE KEY `name_2` (`name`),
  KEY `FK_users_groups_id_price_level` (`id_price_level`),
  KEY `users_groups_id_pricelists` (`id_pricelist`),
  CONSTRAINT `FK_users_groups_id_price_level` FOREIGN KEY (`id_price_level`) REFERENCES `price_levels` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `users_groups_id_pricelists` FOREIGN KEY (`id_pricelist`) REFERENCES `pricelists` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_groups`
--

LOCK TABLES `users_groups` WRITE;
/*!40000 ALTER TABLE `users_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `users_groups` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `users_groups_relations`
--

DROP TABLE IF EXISTS `users_groups_relations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users_groups_relations` (
  `id_group` int(11) NOT NULL,
  `id_user` int(11) unsigned NOT NULL,
  PRIMARY KEY (`id_group`,`id_user`),
  KEY `users_groups_relations_ibfk_2` (`id_user`),
  CONSTRAINT `users_groups_relations_ibfk_1` FOREIGN KEY (`id_group`) REFERENCES `users_groups` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `users_groups_relations_ibfk_2` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `users_groups_relations`
--

LOCK TABLES `users_groups_relations` WRITE;
/*!40000 ALTER TABLE `users_groups_relations` DISABLE KEYS */;
/*!40000 ALTER TABLE `users_groups_relations` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `vats`
--

DROP TABLE IF EXISTS `vats`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vats` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `id_country` varchar(10) DEFAULT NULL,
  `descr` varchar(50) NOT NULL DEFAULT '',
  `vat` float NOT NULL DEFAULT 0,
  `is_default` enum('Y','N') NOT NULL DEFAULT 'N',
  `automanaged` tinyint(1) NOT NULL DEFAULT 0,
  `data` mediumtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `vats_id_country_index` (`id_country`),
  CONSTRAINT `vats_countries_id_fk` FOREIGN KEY (`id_country`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='dane z pridane hodnoty' `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `vats`
--

LOCK TABLES `vats` WRITE;
/*!40000 ALTER TABLE `vats` DISABLE KEYS */;
INSERT INTO `vats` VALUES
(1,NULL,'Běžná 21% daň',21,'Y',0,'{\"level\":\"high\"}'),
(2,NULL,'Snížená 15% daň',15,'N',0,'{\"level\":\"high\"}'),
(6,'CZ','10%',10,'N',1,'{\"cnCodes\":[\"0402\",\"0404\",\"0801\",\"1101 00\",\"1102\",\"1103\",\"1104\",\"1105\",\"1106\",\"1107\",\"1108\",\"1109 00 00\",\"1201\",\"1204 00\",\"1206 00\",\"1207\",\"1208\",\"1212\",\"1214\",\"1806\",\"1901\",\"1901 10 00\",\"1901 20 00\",\"1901 90\",\"1903 00 00\",\"2004\",\"2005\",\"2103\",\"2106\",\"2106 10\",\"2201\",\"4901\",\"4902\",\"4903 00 00\",\"4904 00 00\",\"4905\",\"4911\",\"8523\"],\"defaultLevel\":\"low\",\"level\":\"low\"}'),
(7,'CZ','15%',15,'N',1,'{\"cnCodes\":[\"01\",\"02\",\"03\",\"04\",\"05\",\"07\",\"08\",\"09\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\",\"25\",\"5805 00 00\",\"6304\",\"94\",\"9701\",\"9702 00 00\",\"9703 00 00\",\"9704 00 00\",\"9705 00 00\"],\"defaultLevel\":\"low\",\"level\":\"low\"}'),
(8,'CZ','0%',0,'N',1,'{\"cnCodes\":[\"00\"],\"defaultLevel\":\"none\",\"level\":\"none\"}'),
(9,'CZ','21%',21,'Y',1,'{\"cnCodes\":[],\"defaultLevel\":\"high\",\"level\":\"high\"}'),
(14,'SK','20%',20,'Y',1,'{\"cnCodes\":[],\"defaultLevel\":\"high\",\"level\":\"high\"}'),
(15,'SK','10%',10,'N',1,'{\"cnCodes\":[\"0201\",\"0203\",\"0204\",\"0207\",\"0208\",\"0301\",\"0302\",\"0304\",\"0401\",\"0403\",\"0405 10\",\"0406\",\"0409 00 00\",\"0701\",\"0702 00 00\",\"0703\",\"0704\",\"0705\",\"0707 00\",\"0708\",\"0709\",\"0808\",\"1905\",\"1905 90 30\",\"2009\",\"4901\",\"4902 10 00\",\"4903 00 00\",\"4904 00 00\"],\"defaultLevel\":\"low\",\"level\":\"low\"}'),
(16,'SK','0%',0,'N',1,'{\"level\":\"none\",\"defaultLevel\":\"none\",\"cnCodes\":[\"00\"]}');
/*!40000 ALTER TABLE `vats` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `vats_cns`
--

DROP TABLE IF EXISTS `vats_cns`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vats_cns` (
  `id_cn` bigint(12) unsigned DEFAULT NULL,
  `id_vat` int(11) unsigned NOT NULL,
  `automanaged` tinyint(1) NOT NULL DEFAULT 1,
  UNIQUE KEY `vats_cns_uindex` (`id_cn`,`id_vat`),
  KEY `vats_cns_id_cn_index` (`id_cn`),
  KEY `vats_cns_id_vat_index` (`id_vat`),
  CONSTRAINT `vats_cns_ibfk_1` FOREIGN KEY (`id_vat`) REFERENCES `vats` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `vats_cns`
--

LOCK TABLES `vats_cns` WRITE;
/*!40000 ALTER TABLE `vats_cns` DISABLE KEYS */;
/*!40000 ALTER TABLE `vats_cns` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warehouse_locations`
--

DROP TABLE IF EXISTS `warehouse_locations`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `warehouse_locations` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) NOT NULL,
  `sort_index` int(11) DEFAULT NULL,
  `delete_empty` enum('Y','N') DEFAULT 'N',
  `score_multiplier` int(11) DEFAULT 1,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=169 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warehouse_locations`
--

LOCK TABLES `warehouse_locations` WRITE;
/*!40000 ALTER TABLE `warehouse_locations` DISABLE KEYS */;
INSERT INTO `warehouse_locations` VALUES
(1,'STUL',1,'Y',1),
(2,'BOX',0,'Y',1);
/*!40000 ALTER TABLE `warehouse_locations` ENABLE KEYS */;
UNLOCK TABLES;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci ;
/*!50003 SET @saved_cs_client      = @@character_set_client */ ;
/*!50003 SET @saved_cs_results     = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client  = utf8mb3 */ ;
/*!50003 SET character_set_results = utf8mb3 */ ;
/*!50003 SET collation_connection  = utf8mb3_general_ci */ ;
/*!50003 SET @saved_sql_mode       = @@sql_mode */ ;
/*!50003 SET sql_mode              = 'NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
/*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 TRIGGER trigger_warehouse_locations BEFORE INSERT ON warehouse_locations
    FOR EACH ROW
BEGIN
    IF NEW.sort_index IS NULL THEN
        SET NEW.sort_index = (SELECT COALESCE(MAX(sort_index) + 1, 0) FROM warehouse_locations);
    END IF;
END */;;
DELIMITER ;
/*!50003 SET sql_mode              = @saved_sql_mode */ ;
/*!50003 SET character_set_client  = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection  = @saved_col_connection */ ;
ALTER DATABASE `phpunit_test` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci ;

--
-- Table structure for table `warehouse_log`
--

DROP TABLE IF EXISTS `warehouse_log`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `warehouse_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `pieces` int(11) NOT NULL,
  `old_id_position` int(11) DEFAULT NULL,
  `new_id_position` int(11) DEFAULT NULL,
  `id_admin` int(11) DEFAULT NULL,
  `update_datetime` timestamp NOT NULL DEFAULT current_timestamp(),
  `id_order` int(11) unsigned DEFAULT NULL,
  `note` mediumtext DEFAULT NULL,
  `id_transfer` int(11) DEFAULT NULL,
  `id_product_batch` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `warehouse_id_product` (`id_product`),
  KEY `warehouse_log_old_positions_id_fk` (`old_id_position`),
  KEY `warehouse_log_new_positions_id_fk` (`new_id_position`),
  KEY `warehouse_log_orders_id_fk` (`id_order`),
  KEY `warehouse_log_stores_transfers_id_fk` (`id_transfer`),
  CONSTRAINT `warehouse_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `warehouse_log_new_positions_id_fk` FOREIGN KEY (`new_id_position`) REFERENCES `warehouse_positions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `warehouse_log_old_positions_id_fk` FOREIGN KEY (`old_id_position`) REFERENCES `warehouse_positions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `warehouse_log_orders_id_fk` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `warehouse_log_stores_transfers_id_fk` FOREIGN KEY (`id_transfer`) REFERENCES `stores_transfers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=276 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warehouse_log`
--

LOCK TABLES `warehouse_log` WRITE;
/*!40000 ALTER TABLE `warehouse_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `warehouse_log` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warehouse_orders`
--

DROP TABLE IF EXISTS `warehouse_orders`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `warehouse_orders` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `id_order` int(11) unsigned DEFAULT NULL,
  `id_position` int(11) DEFAULT NULL,
  `state` mediumtext DEFAULT NULL,
  `date_start` datetime NOT NULL,
  `date_finish` datetime DEFAULT NULL,
  `date_close` datetime DEFAULT NULL,
  `id_packaged_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `warehouse_orders_uindex` (`id_order`,`id_position`),
  KEY `warehouse_orders_positions_id_fk` (`id_position`),
  KEY `warehouse_orders_admins_id_fk` (`id_packaged_by`),
  CONSTRAINT `warehouse_orders_admins_id_fk` FOREIGN KEY (`id_packaged_by`) REFERENCES `admins` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT `warehouse_orders_orders_id_fk` FOREIGN KEY (`id_order`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `warehouse_orders_positions_id_fk` FOREIGN KEY (`id_position`) REFERENCES `warehouse_positions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=104 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warehouse_orders`
--

LOCK TABLES `warehouse_orders` WRITE;
/*!40000 ALTER TABLE `warehouse_orders` DISABLE KEYS */;
/*!40000 ALTER TABLE `warehouse_orders` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warehouse_positions`
--

DROP TABLE IF EXISTS `warehouse_positions`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `warehouse_positions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `code` varchar(20) NOT NULL,
  `id_location` int(11) NOT NULL,
  `inventory_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `code` (`code`),
  UNIQUE KEY `warehouse_positions` (`code`,`id_location`),
  KEY `FK_wp_id_location` (`id_location`),
  CONSTRAINT `FK_wp_id_location` FOREIGN KEY (`id_location`) REFERENCES `warehouse_locations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=4681 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warehouse_positions`
--

LOCK TABLES `warehouse_positions` WRITE;
/*!40000 ALTER TABLE `warehouse_positions` DISABLE KEYS */;
INSERT INTO `warehouse_positions` VALUES
(1,'STUL-Kos',1,NULL),
(2,'VRATKY',1,NULL),
(14,'PRIJEM',1,NULL),
(15,'INVENTURA',1,NULL);
/*!40000 ALTER TABLE `warehouse_positions` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `warehouse_products`
--

DROP TABLE IF EXISTS `warehouse_products`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `warehouse_products` (
  `id_product` int(11) NOT NULL,
  `id_variation` int(11) DEFAULT NULL,
  `id_position` int(11) NOT NULL,
  `inventory_date` datetime DEFAULT NULL,
  `pieces` int(11) unsigned DEFAULT NULL,
  `over_supply` enum('N','Y') DEFAULT 'N',
  `id_product_batch` int(11) DEFAULT NULL,
  `integrity_unique` varchar(50) GENERATED ALWAYS AS (concat(`id_product`,'-',coalesce(`id_variation`,''),'-',`id_position`,'-',coalesce(`id_product_batch`,''))) VIRTUAL,
  UNIQUE KEY `integrity_unique` (`integrity_unique`),
  KEY `FK_wp_id_position` (`id_position`),
  KEY `FK_wp_id_variation` (`id_variation`),
  KEY `warehouse_products_products_batches_id_fk` (`id_product_batch`),
  KEY `warehouse_products_id_product_index` (`id_product`),
  CONSTRAINT `FK_wp_id_position` FOREIGN KEY (`id_position`) REFERENCES `warehouse_positions` (`id`) ON DELETE CASCADE,
  CONSTRAINT `FK_wp_id_product` FOREIGN KEY (`id_product`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `FK_wp_id_variation` FOREIGN KEY (`id_variation`) REFERENCES `products_variations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
  CONSTRAINT `warehouse_products_products_batches_id_fk` FOREIGN KEY (`id_product_batch`) REFERENCES `products_batches` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci `PAGE_COMPRESSED`='ON';
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `warehouse_products`
--

LOCK TABLES `warehouse_products` WRITE;
/*!40000 ALTER TABLE `warehouse_products` DISABLE KEYS */;
/*!40000 ALTER TABLE `warehouse_products` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed
