ALTER TABLE `company` DROP FOREIGN KEY `company_fk`; ALTER TABLE `company` ADD CONSTRAINT `company_fk` FOREIGN KEY (`country_id`) REFERENCES `country`(`id`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `company` DROP FOREIGN KEY `company_fk_1`; ALTER TABLE `company` ADD CONSTRAINT `company_fk_1` FOREIGN KEY (`state_id`) REFERENCES `states`(`id`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `company` DROP FOREIGN KEY `company_fk_2`; ALTER TABLE `company` ADD CONSTRAINT `company_fk_2` FOREIGN KEY (`city_id`) REFERENCES `cities`(`id`) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE `company` DROP FOREIGN KEY `company_fk_user_id`; ALTER TABLE `company` ADD CONSTRAINT `company_fk_user_id` FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;


