text: -- MySQL Script generated by MySQL Workbench
  -- Mon Nov 18 16:04:45 2019
  -- Model: New Model    Version: 1.0
  -- 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
  
  -- -----------------------------------------------------
  -- Schema meteo
  -- -----------------------------------------------------
  
  -- -----------------------------------------------------
  -- Schema meteo
  -- -----------------------------------------------------
  CREATE SCHEMA IF NOT EXISTS `meteo` DEFAULT CHARACTER SET utf8 ;
  USE `meteo` ;
  
  -- -----------------------------------------------------
  -- Table `meteo`.`User`
  -- -----------------------------------------------------
  CREATE TABLE IF NOT EXISTS `meteo`.`User` (
    `id` INT NOT NULL AUTO_INCREMENT,
    `nom` VARCHAR(45) NOT NULL,
    `prenom` VARCHAR(45) NOT NULL,
    `password` VARCHAR(45) NOT NULL,
    PRIMARY KEY (`id`))
  ENGINE = InnoDB;
  
  
  -- -----------------------------------------------------
  -- Table `meteo`.`ville`
  -- -----------------------------------------------------
  CREATE TABLE IF NOT EXISTS `meteo`.`ville` (
    `id` INT NOT NULL AUTO_INCREMENT,
    `nom` VARCHAR(255) NOT NULL,
    `pays` VARCHAR(255) NOT NULL,
    `User_id` INT NOT NULL,
    PRIMARY KEY (`id`),
    INDEX `fk_ville_User_idx` (`User_id` ASC),
    CONSTRAINT `fk_ville_User`
      FOREIGN KEY (`User_id`)
      REFERENCES `meteo`.`User` (`id`)
      ON DELETE NO ACTION
      ON UPDATE NO ACTION)
  ENGINE = InnoDB;
  
  
  SET SQL_MODE=@OLD_SQL_MODE;
  SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
  SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
  