text: -- MySQL Workbench Forward Engineering
  
  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';
  
  -- -----------------------------------------------------
  -- Schema mydb
  -- -----------------------------------------------------
  -- -----------------------------------------------------
  -- Schema test
  -- -----------------------------------------------------
  
  -- -----------------------------------------------------
  -- Schema test
  -- -----------------------------------------------------
  CREATE SCHEMA IF NOT EXISTS `test` DEFAULT CHARACTER SET utf8 ;
  USE `test` ;
  
  -- -----------------------------------------------------
  -- Table `test`.`users`
  -- -----------------------------------------------------
  CREATE TABLE IF NOT EXISTS `test`.`users` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `username` VARCHAR(45) NOT NULL,
    `password` VARCHAR(255) NOT NULL,
    `FirstName` VARCHAR(255) NULL DEFAULT NULL,
    `LastName` VARCHAR(255) NOT NULL,
    `createdts` DATETIME NULL DEFAULT NULL,
    `modifiedts` DATETIME NULL DEFAULT NULL,
    PRIMARY KEY (`id`))
  ENGINE = InnoDB
  AUTO_INCREMENT = 3
  DEFAULT CHARACTER SET = utf8;
  
  
  -- -----------------------------------------------------
  -- Table `test`.`contact`
  -- -----------------------------------------------------
  CREATE TABLE IF NOT EXISTS `test`.`contact` (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `LastName` VARCHAR(255) NOT NULL,
    `FirstName` VARCHAR(255) NOT NULL,
    `DateOfBirth` DATE NULL DEFAULT NULL,
    `Gender` VARCHAR(1) NULL DEFAULT NULL,
    `createts` DATETIME NULL DEFAULT NULL,
    `modifiedts` DATETIME NULL DEFAULT NULL,
    `userid` INT(11) NOT NULL,
    PRIMARY KEY (`id`),
    INDEX `fk_contact_userid_idx` (`userid` ASC),
    CONSTRAINT `fk_contact_userid`
      FOREIGN KEY (`userid`)
      REFERENCES `test`.`users` (`id`)
      ON DELETE NO ACTION
      ON UPDATE NO ACTION)
  ENGINE = InnoDB
  AUTO_INCREMENT = 8
  DEFAULT CHARACTER SET = utf8;
  
  
  SET SQL_MODE=@OLD_SQL_MODE;
  SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
  SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
  
  