{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/shareholder_distribution.schema.json","title":"shareholder_distribution","type":"object","properties":{"dist_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"model_run_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"profile_slug":{"type":"string","x-pg-type":"text"},"shareholder_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"year":{"type":"integer","x-pg-type":"int4"},"distribution_inr":{"type":"number","x-pg-type":"numeric"},"cumulative_distribution_inr":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"exit_event_amount_inr":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"exit_event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"post_exit_residual_value_inr":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"}},"x-table-schema":"public","required":["model_run_id","profile_slug","shareholder_id","year","distribution_inr"],"x-primary-key":["dist_id"],"x-foreign-keys":[{"column":"model_run_id","references_table":"proforma_model_run","references_column":"model_run_id","constraint":"shareholder_distribution_model_run_id_fkey"},{"column":"shareholder_id","references_table":"shareholder","references_column":"shareholder_id","constraint":"shareholder_distribution_shareholder_id_fkey"}]}