salix/db/versions/.archive/10727-limeErica/04-createTableScanner.sql

11 lines
343 B
SQL

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;