-- Agregar columna company_account_id a la tabla payments
ALTER TABLE `payments` 
ADD COLUMN `company_account_id` BIGINT UNSIGNED NULL AFTER `customer_id`,
ADD CONSTRAINT `payments_company_account_id_foreign` 
    FOREIGN KEY (`company_account_id`) 
    REFERENCES `company_accounts`(`id`) 
    ON DELETE SET NULL;
