salix/db/versions/.archive/10450-blackIvy/00-firstScript.sql

8 lines
337 B
MySQL
Raw Permalink Normal View History

USE vn;
CREATE TABLE vn.`arcRead` (
`id` smallint(2) unsigned NOT NULL AUTO_INCREMENT,
`printerFk` tinyint(3) unsigned,
PRIMARY KEY (`id`),
CONSTRAINT `worker_printer_FK` FOREIGN KEY (`printerFk`) REFERENCES `printer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;