salix/db/versions/.archive/10727-limeErica/02-createTableScreen.sql

11 lines
341 B
MySQL
Raw Normal View History

CREATE OR REPLACE TABLE `vn`.`screen` (
id INT(11) AUTO_INCREMENT NOT NULL,
`name` VARCHAR(100) NOT NULL,
modelFk VARCHAR(50) NOT NULL,
CONSTRAINT screen_PK PRIMARY KEY (id),
CONSTRAINT screen_FK FOREIGN KEY (modelFk) REFERENCES vn.screenModel(code) ON UPDATE CASCADE
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8mb3
COLLATE=utf8mb3_unicode_ci;