{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/shareholder_new_plant_allocation.schema.json","title":"shareholder_new_plant_allocation","type":"object","properties":{"alloc_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"shareholder_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"plant_id":{"type":"integer","x-pg-type":"int4"},"allocation_inr":{"type":"number","x-pg-type":"numeric"},"source":{"type":"string","x-pg-type":"text"},"financing_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"effective_date":{"type":"string","format":"date","x-pg-type":"date"},"confirmation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"confirmation_doc_uri":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["shareholder_id","plant_id","allocation_inr","source","effective_date"],"x-primary-key":["alloc_id"],"x-foreign-keys":[{"column":"financing_round_id","references_table":"financing_round","references_column":"round_id","constraint":"shareholder_new_plant_allocation_financing_round_id_fkey"},{"column":"shareholder_id","references_table":"shareholder","references_column":"shareholder_id","constraint":"shareholder_new_plant_allocation_shareholder_id_fkey"}]}