12 lines
410 B
MySQL
12 lines
410 B
MySQL
|
CREATE TABLE `vn`.supplierFreighter
|
||
|
(
|
||
|
supplierFk INT NOT NULL,
|
||
|
CONSTRAINT supplierFreighter_pk
|
||
|
PRIMARY KEY (supplierFk),
|
||
|
CONSTRAINT supplier_id_fk
|
||
|
FOREIGN KEY (supplierFk) REFERENCES supplier (id)
|
||
|
ON UPDATE CASCADE ON DELETE CASCADE
|
||
|
);
|
||
|
|
||
|
INSERT IGNORE INTO `vn`.supplierFreighter (supplierFk) VALUES (1);
|
||
|
INSERT IGNORE INTO `vn`.supplierFreighter (supplierFk) VALUES (2);
|