-
Notifications
You must be signed in to change notification settings - Fork 0
/
hoaly.sql
39 lines (33 loc) · 1.35 KB
/
hoaly.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- 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`.`liliaceae`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `test`.`liliaceae` (
`id` INT(6) NOT NULL AUTO_INCREMENT,
`temperature` FLOAT NOT NULL,
`humidity` FLOAT NULL DEFAULT NULL,
`brightness` INT(6) NULL DEFAULT NULL,
`nutrients` VARCHAR(200) NULL DEFAULT NULL,
`createdDate` DATETIME NULL DEFAULT NULL,
`updatedTime` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
AUTO_INCREMENT = 6
DEFAULT CHARACTER SET = utf8;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;