8 lines
508 B
MySQL
8 lines
508 B
MySQL
|
CREATE TABLE vn.`chronopostSenderAddress` (
|
||
|
`warehouseFk` smallint(6) unsigned NOT NULL,
|
||
|
`addressFk` int(11) NOT NULL,
|
||
|
PRIMARY KEY (`warehouseFk`),
|
||
|
KEY `chronopostSenderAddress_FK_1` (`addressFk`),
|
||
|
CONSTRAINT `chronopostSenderAddress_FK` FOREIGN KEY (`warehouseFk`) REFERENCES `warehouse` (`id`) ON UPDATE CASCADE,
|
||
|
CONSTRAINT `chronopostSenderAddress_FK_1` FOREIGN KEY (`addressFk`) REFERENCES `address` (`id`) ON UPDATE CASCADE
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|