text: -- MySQL dump 10.16  Distrib 10.1.34-MariaDB, for Linux (x86_64)
  --
  -- Host: 127.0.0.1    Database: imitator
  -- ------------------------------------------------------
  -- Server version	10.1.34-MariaDB
  
  /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  /*!40101 SET NAMES utf8 */;
  /*!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 `actor`
  --
  
  DROP TABLE IF EXISTS `actor`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `actor` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `actor`
  --
  
  LOCK TABLES `actor` WRITE;
  /*!40000 ALTER TABLE `actor` DISABLE KEYS */;
  /*!40000 ALTER TABLE `actor` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `cinema`
  --
  
  DROP TABLE IF EXISTS `cinema`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `cinema` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `name` varchar(50) NOT NULL,
    `address` varchar(250) NOT NULL,
    `planUrl` varchar(300) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `cinema`
  --
  
  LOCK TABLES `cinema` WRITE;
  /*!40000 ALTER TABLE `cinema` DISABLE KEYS */;
  /*!40000 ALTER TABLE `cinema` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `hall`
  --
  
  DROP TABLE IF EXISTS `hall`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `hall` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `designation` varchar(50) NOT NULL,
    `row` int(11) NOT NULL,
    `seat` int(11) NOT NULL,
    `format` varchar(50) NOT NULL,
    `Cinema_id` int(11) NOT NULL DEFAULT '1',
    PRIMARY KEY (`id`,`Cinema_id`),
    UNIQUE KEY `designation_UNIQUE` (`designation`)
  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `hall`
  --
  
  LOCK TABLES `hall` WRITE;
  /*!40000 ALTER TABLE `hall` DISABLE KEYS */;
  /*!40000 ALTER TABLE `hall` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `movie`
  --
  
  DROP TABLE IF EXISTS `movie`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `movie` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `title` varchar(500) NOT NULL,
    `genre` varchar(100) NOT NULL,
    `country` varchar(100) DEFAULT NULL,
    `ageLimit` varchar(3) DEFAULT NULL,
    `format` varchar(100) NOT NULL,
    `duration` double NOT NULL,
    `startDate` date NOT NULL,
    `finishDate` date NOT NULL,
    `posterUrl` varchar(300) NOT NULL,
    `trailerUrl` varchar(300) DEFAULT NULL,
    `description` text,
    `hallDesignation` varchar(500) NOT NULL DEFAULT 'aloha',
    `redundant` varchar(100) DEFAULT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `movie`
  --
  
  LOCK TABLES `movie` WRITE;
  /*!40000 ALTER TABLE `movie` DISABLE KEYS */;
  /*!40000 ALTER TABLE `movie` ENABLE KEYS */;
  UNLOCK TABLES;
  
  --
  -- Table structure for table `user`
  --
  
  DROP TABLE IF EXISTS `user`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `user` (
    `id` int(11) NOT NULL AUTO_INCREMENT,
    `login` varchar(15) NOT NULL,
    `password` varchar(15) NOT NULL,
    `eMail` varchar(100) NOT NULL,
    `phoneNumber` varchar(10) DEFAULT NULL,
    `Paymentcard_id` int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (`id`,`Paymentcard_id`),
    UNIQUE KEY `login_UNIQUE` (`login`)
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `user`
  --
  
  LOCK TABLES `user` WRITE;
  /*!40000 ALTER TABLE `user` DISABLE KEYS */;
  /*!40000 ALTER TABLE `user` 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 on 2018-08-17 18:53:47
  