11 lines
341 B
SQL
11 lines
341 B
SQL
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;
|