{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/debt_facility.schema.json","title":"debt_facility","type":"object","properties":{"facility_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"slug":{"type":"string","x-pg-type":"text"},"display_name":{"type":"string","x-pg-type":"text"},"counterparty_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"active_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"x-pg-type":"date"},"active_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"x-pg-type":"date"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["project_id","slug","display_name"],"x-primary-key":["facility_id"],"x-foreign-keys":[{"column":"counterparty_id","references_table":"counterparty","references_column":"counterparty_id","constraint":"debt_facility_counterparty_id_fkey"},{"column":"project_id","references_table":"project","references_column":"project_id","constraint":"debt_facility_project_id_fkey"}]}