{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/cap_table_snapshot.schema.json","title":"cap_table_snapshot","type":"object","properties":{"snapshot_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"snapshot_date":{"type":"string","format":"date","x-pg-type":"date"},"snapshot_kind":{"type":"string","x-pg-type":"text"},"triggered_by_event_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"shareholder_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"share_pct":{"type":"number","x-pg-type":"numeric"},"shares_count":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"basis_inr_cr":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"}},"x-table-schema":"public","required":["project_id","snapshot_date","snapshot_kind","shareholder_id","share_pct"],"x-primary-key":["snapshot_id"],"x-foreign-keys":[{"column":"project_id","references_table":"project","references_column":"project_id","constraint":"cap_table_snapshot_project_id_fkey"},{"column":"shareholder_id","references_table":"shareholder","references_column":"shareholder_id","constraint":"cap_table_snapshot_shareholder_id_fkey"},{"column":"triggered_by_event_id","references_table":"cap_table_event","references_column":"event_id","constraint":"cap_table_snapshot_triggered_by_event_id_fkey"}]}