-- Valentina Studio --
-- MySQL dump --
-- ---------------------------------------------------------


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


-- CREATE TABLE "contact__item" ----------------------------
CREATE TABLE `contact__item` (
	`itemID` Int( 11 ) UNSIGNED AUTO_INCREMENT NOT NULL,
	`themeID` Int( 11 ) UNSIGNED NOT NULL,
	`firstName` VarChar( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
	`lastName` VarChar( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
	`fullName` VarChar( 128 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
	`phone` VarChar( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
	`email` VarChar( 64 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
	`message` Text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
	`createDate` Timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
	PRIMARY KEY ( `itemID` ) )
CHARACTER SET = utf8
COLLATE = utf8_general_ci
ENGINE = InnoDB
AUTO_INCREMENT = 116;
-- ---------------------------------------------------------


-- CREATE INDEX "lnk_contact__theme_contact__item_2" -------
CREATE INDEX `lnk_contact__theme_contact__item_2` USING BTREE ON `contact__item`( `themeID` );
-- ---------------------------------------------------------


/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
-- ---------------------------------------------------------


-- CREATE TABLE "contact__item_has_files" ------------------
CREATE TABLE `contact__item_has_files` (
	`itemID` Int( 11 ) UNSIGNED NOT NULL COMMENT 'Kapcsolatfelvétel',
	`fileID` Int( 11 ) UNSIGNED NOT NULL COMMENT 'Fájl',
	PRIMARY KEY ( `itemID`, `fileID` ) )
CHARACTER SET = utf8
COLLATE = utf8_general_ci
ENGINE = InnoDB;
-- ---------------------------------------------------------


-- CREATE INDEX "lnk_cms__file_static_contact__item_has_files_3"
CREATE INDEX `lnk_cms__file_static_contact__item_has_files_3` USING BTREE ON `contact__item_has_files`( `fileID` );
-- ---------------------------------------------------------


/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
-- ---------------------------------------------------------


-- CREATE TABLE "contact__theme" ---------------------------
CREATE TABLE `contact__theme` (
	`themeID` Int( 11 ) UNSIGNED AUTO_INCREMENT NOT NULL COMMENT 'Téma azonosító',
	`name` VarChar( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'Név',
	`emails` Text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
	`status` Enum( 'active', 'inactive' ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'active',
	PRIMARY KEY ( `themeID` ) )
CHARACTER SET = utf8
COLLATE = utf8_general_ci
ENGINE = InnoDB
AUTO_INCREMENT = 397;
-- ---------------------------------------------------------


/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
-- ---------------------------------------------------------
