text: CREATE DATABASE  IF NOT EXISTS `mtc` /*!40100 DEFAULT CHARACTER SET utf8 */;
  USE `mtc`;
  -- MySQL dump 10.13  Distrib 5.6.13, for Win32 (x86)
  --
  -- Host: localhost    Database: mtc
  -- ------------------------------------------------------
  -- Server version	5.6.16
  
  /*!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 `structurecontent`
  --
  
  DROP TABLE IF EXISTS `structurecontent`;
  /*!40101 SET @saved_cs_client     = @@character_set_client */;
  /*!40101 SET character_set_client = utf8 */;
  CREATE TABLE `structurecontent` (
    `Id` int(11) NOT NULL AUTO_INCREMENT,
    `StructureElementId` int(11) NOT NULL,
    `Title` varchar(45) DEFAULT NULL,
    `Content` longblob,
    `DocumentId` int(11) NOT NULL,
    `Order` int(11) NOT NULL,
    `CurrentProgress` int(11) NOT NULL DEFAULT '0',
    PRIMARY KEY (`Id`),
    KEY `FK_StructureElement_ID_idx` (`StructureElementId`),
    KEY `FK_User_ID_idx` (`DocumentId`),
    CONSTRAINT `FK_StructureContentDocument_Id` FOREIGN KEY (`DocumentId`) REFERENCES `document` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION,
    CONSTRAINT `FK_StructureElementDocument_Id` FOREIGN KEY (`StructureElementId`) REFERENCES `structureelement` (`ID`) ON DELETE NO ACTION ON UPDATE NO ACTION
  ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  /*!40101 SET character_set_client = @saved_cs_client */;
  
  --
  -- Dumping data for table `structurecontent`
  --
  
  LOCK TABLES `structurecontent` WRITE;
  /*!40000 ALTER TABLE `structurecontent` DISABLE KEYS */;
  INSERT INTO `structurecontent` VALUES (1,152,'Структура на документа',NULL,2,1,0),(2,153,'Съдържание','L\0o\0r\0e\0m\0 \0i\0p\0s\0u\0m\0 \0d\0o\0l\0o\0r\0 \0s\0i\0t\0 \0a\0m\0e\0t\0,\0 \0c\0o\0n\0s\0e\0c\0t\0e\0t\0u\0e\0r\0 \0a\0d\0i\0p\0i\0s\0c\0i\0n\0g\0 \0e\0l\0i\0t\0.\0 \0A\0e\0n\0e\0a\0n\0 \0c\0o\0m\0m\0o\0d\0o\0 \0l\0i\0g\0u\0l\0a\0 \0e\0g\0e\0t\0 \0d\0o\0l\0o\0r\0.\0 \0A\0e\0n\0e\0a\0n\0 \0m\0a\0s\0s\0a\0.\0 \0C\0u\0m\0 \0s\0o\0c\0i\0i\0s\0 \0n\0a\0t\0o\0q\0u\0e\0 \0p\0e\0n\0a\0t\0i\0b\0u\0s\0 \0e\0t\0 \0m\0a\0g\0n\0i\0s\0 \0d\0i\0s\0 \0p\0a\0r\0t\0u\0r\0i\0e\0n\0t\0 \0m\0o\0n\0t\0e\0s\0,\0 \0n\0a\0s\0c\0e\0t\0u\0r\0 \0r\0i\0d\0i\0c\0u\0l\0u\0s\0 \0m\0u\0s\0.\0 \0D\0o\0n\0e\0c\0 \0q\0u\0a\0m\0 \0f\0e\0l\0i\0s\0,\0 \0u\0l\0t\0r\0i\0c\0i\0e\0s\0 \0n\0e\0c\0,\0 \0p\0e\0l\0l\0e\0n\0t\0e\0s\0q\0u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_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 2016-05-23 16:56:05
  