ALTER TABLE `0p4_invoice`
ADD INDEX `idx-inv-gin`(`good_issue_note_id`) USING BTREE;

ALTER TABLE `0p4_invoice`
ADD CONSTRAINT `fk_inv-gin` FOREIGN KEY (`good_issue_note_id`) REFERENCES `system_oop`.`0p4_good_issue_note` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;
