ALTER TABLE vn.`budget` ADD CONSTRAINT `budget_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE vn.`supplierContact` ADD CONSTRAINT `supplierContact_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE vn.`entry` ADD CONSTRAINT `entry_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`payment` ADD CONSTRAINT `payment_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`travelClonedWeekly` ADD CONSTRAINT `travelClonedWeekly_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE SET NULL ON UPDATE CASCADE; ALTER TABLE vn.`invoiceIn` ADD CONSTRAINT `invoiceIn_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`sinister` ADD CONSTRAINT `sinister_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`company` ADD CONSTRAINT company_supplierFk FOREIGN KEY IF NOT EXISTS (id) REFERENCES vn.supplier(id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`comparativeFilter` ADD CONSTRAINT `comparativeFilter_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE RESTRICT; ALTER TABLE vn.`supplierExpense` ADD CONSTRAINT `supplierExpense_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`supplierAccount` ADD CONSTRAINT `supplierAccount_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`roadmap` ADD CONSTRAINT `roadmap_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`awb` ADD CONSTRAINT `awb_supplierFk` FOREIGN KEY IF NOT EXISTS (transitoryFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`awb` ADD CONSTRAINT `awb_supplierFk` FOREIGN KEY IF NOT EXISTS (freightFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`supplierLog` ADD CONSTRAINT `supplierLog_supplierFk` FOREIGN KEY IF NOT EXISTS (originFk) REFERENCES vn.supplier (id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE vn.`cmr` ADD CONSTRAINT `cmr_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`duaTax` ADD CONSTRAINT `duaTax_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`supplierAgencyTerm` ADD CONSTRAINT `supplierAgencyTerm_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn.`machine` ADD CONSTRAINT `machine_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE SET NULL ON UPDATE CASCADE; ALTER TABLE vn2008.`travel_pattern` ADD CONSTRAINT `travel_pattern_supplierFk` FOREIGN KEY IF NOT EXISTS (cargoSupplierFk) REFERENCES vn.supplier (id) ON DELETE SET NULL ON UPDATE CASCADE; ALTER TABLE vn2008.`Bancos_poliza` ADD CONSTRAINT `Bancos_poliza_notaryFk` FOREIGN KEY IF NOT EXISTS (notaryFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn2008.`Bancos_poliza` ADD CONSTRAINT `Bancos_poliza_supplierFk` FOREIGN KEY IF NOT EXISTS (supplierFk) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn2008.`Vehiculos_consumo` ADD CONSTRAINT `Vehiculos_consumo_supplierFk` FOREIGN KEY IF NOT EXISTS (proveedoresFk) REFERENCES vn.supplier (id) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE vn2008.`albaran` ADD CONSTRAINT `albaran_supplierFk` FOREIGN KEY IF NOT EXISTS (Id_Proveedor) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE; ALTER TABLE vn2008.`Proveedores_cargueras` ADD CONSTRAINT `Proveedores_cargueras_supplierFk` FOREIGN KEY IF NOT EXISTS (Id_Proveedor) REFERENCES vn.supplier (id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE vn2008.`Proveedores_comunicados` ADD CONSTRAINT `Proveedores_comunicados_supplierFk` FOREIGN KEY IF NOT EXISTS (Id_Proveedor) REFERENCES vn.supplier (id) ON DELETE RESTRICT ON UPDATE CASCADE;