-- MySQL Workbench Synchronization
-- Generated: 2021-01-06 09:28
-- Model: New Model
-- Version: 1.0
-- Project: Name of the project
-- Author: Steven Heath

SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';

CREATE TABLE IF NOT EXISTS `ems_account_update` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `ems_id` VARCHAR(100) NOT NULL,
    `first_name` VARCHAR(50) NOT NULL,
    `last_name` VARCHAR(45) NOT NULL,
    `email_address` VARCHAR(200) NOT NULL,
    `postcode` VARCHAR(20) NOT NULL,
    `opt_in_newsletter` TINYINT(1) NULL DEFAULT 0,
    `opt_in_3rd_party` TINYINT(1) NULL DEFAULT 0,
    PRIMARY KEY (`id`))
    ENGINE = InnoDB
    DEFAULT CHARACTER SET = utf8;


SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
