11 lines
343 B
MySQL
11 lines
343 B
MySQL
|
CREATE OR REPLACE TABLE `vn`.`scanner` (
|
||
|
id INT(11) auto_increment NOT NULL,
|
||
|
name varchar(100) NOT NULL,
|
||
|
modelFk VARCHAR(50) NOT NULL,
|
||
|
CONSTRAINT scanner_PK PRIMARY KEY (id),
|
||
|
CONSTRAINT scanner_FK FOREIGN KEY (modelFk) REFERENCES vn.scannerModel(code) ON UPDATE CASCADE
|
||
|
)
|
||
|
ENGINE=InnoDB
|
||
|
DEFAULT CHARSET=utf8mb3
|
||
|
COLLATE=utf8mb3_unicode_ci;
|