8 lines
337 B
MySQL
8 lines
337 B
MySQL
|
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;
|