10 lines
526 B
MySQL
10 lines
526 B
MySQL
|
DROP TABLE IF EXISTS vn.packagingWithoutFreight;
|
||
|
|
||
|
CREATE TABLE vn.`packagingWithoutFreight` (
|
||
|
`packagingFk` varchar(10) COLLATE utf8mb3_unicode_ci NOT NULL,
|
||
|
`priority` int(11) NOT NULL,
|
||
|
PRIMARY KEY (`packagingFk`),
|
||
|
UNIQUE KEY `packagingWithoutFreight_UN` (`priority`),
|
||
|
CONSTRAINT `packagingWithoutFreight_FK` FOREIGN KEY (`packagingFk`) REFERENCES `packaging` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Embalajes sin porte para encajar';
|