{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/shareholder_tranche.schema.json","title":"shareholder_tranche","type":"object","properties":{"tranche_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"shareholder_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"tranche_date":{"type":"string","format":"date","x-pg-type":"date"},"amount_inr":{"type":"number","x-pg-type":"numeric"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"source_doc_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"financing_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"ambiguous":{"type":"boolean","x-pg-type":"bool"},"confirmation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"confirmation_doc_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["shareholder_id","tranche_date","amount_inr"],"x-primary-key":["tranche_id"],"x-foreign-keys":[{"column":"financing_round_id","references_table":"financing_round","references_column":"round_id","constraint":"shareholder_tranche_financing_round_id_fkey"},{"column":"shareholder_id","references_table":"shareholder","references_column":"shareholder_id","constraint":"shareholder_tranche_shareholder_id_fkey"}]}