ALTER TABLE `tblinvoicepaymentrecords` ADD COLUMN `bulk_client_invoice_payments_id` BIGINT UNSIGNED NULL DEFAULT NULL AFTER `invoiceid`;
ALTER TABLE `tblinvoicepaymentrecords` 	ADD CONSTRAINT `tblinvoicepaymentrecords_ibfk_1` FOREIGN KEY (`bulk_client_invoice_payments_id`) REFERENCES `tblbulk_client_invoice_payments` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION;

ALTER TABLE `tblpayment_image_files` ADD COLUMN `bulk_client_invoice_payments_id` BIGINT UNSIGNED NULL DEFAULT NULL AFTER `payment_id`;
ALTER TABLE `tblpayment_image_files` ADD CONSTRAINT `tblpayment_image_files_ibfk_4` FOREIGN KEY (`bulk_client_invoice_payments_id`) REFERENCES `tblbulk_client_invoice_payments` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION;