{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/proforma_facility_amortization.schema.json","title":"proforma_facility_amortization","type":"object","properties":{"amort_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"model_run_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"facility_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"facility_name":{"type":"string","x-pg-type":"text"},"period_index":{"type":"integer","x-pg-type":"int4"},"date":{"type":"string","format":"date","x-pg-type":"date"},"opening_balance":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"drawdown":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"principal":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"interest":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"idc":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"repayment":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"closing_balance":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"facility_dscr":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"}},"x-table-schema":"public","required":["model_run_id","facility_name","period_index","date"],"x-primary-key":["amort_id"],"x-foreign-keys":[{"column":"facility_id","references_table":"debt_facility","references_column":"facility_id","constraint":"proforma_facility_amortization_facility_id_fkey"},{"column":"model_run_id","references_table":"proforma_model_run","references_column":"model_run_id","constraint":"proforma_facility_amortization_model_run_id_fkey"}]}