So I have 3 tables: credit, planned_payment, performed_payment. The planned_payment has a FK to credit, so d
credit
planned_payment
performed_payment