-
Notifications
You must be signed in to change notification settings - Fork 0
/
imager.sql
50 lines (42 loc) · 1.77 KB
/
imager.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
40
41
42
43
44
45
46
47
48
49
50
-- 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 mydb
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema imager
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema imager
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `imager` DEFAULT CHARACTER SET utf8mb4 ;
USE `imager` ;
-- -----------------------------------------------------
-- Table `imager`.`image`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imager`.`image` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`title` VARCHAR(100) NULL DEFAULT NULL,
`username` VARCHAR(100) NULL DEFAULT NULL,
`image` VARCHAR(100) NULL DEFAULT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
AUTO_INCREMENT = 14
DEFAULT CHARACTER SET = utf8mb4;
-- -----------------------------------------------------
-- Table `imager`.`user`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imager`.`user` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`username` VARCHAR(100) NULL DEFAULT NULL,
`password` VARCHAR(100) NULL DEFAULT NULL,
`name` VARCHAR(100) NULL DEFAULT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
AUTO_INCREMENT = 7
DEFAULT CHARACTER SET = utf8mb4;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;