{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/cap_table_event.schema.json","title":"cap_table_event","type":"object","properties":{"event_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"effective_date":{"type":"string","format":"date","x-pg-type":"date"},"event_type":{"type":"string","x-pg-type":"text"},"triggered_by_model_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"triggered_by_financing_round_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"shareholder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"share_pct_before":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"share_pct_after":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"basis_inr_cr":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"numeric"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["project_id","effective_date","event_type"],"x-primary-key":["event_id"],"x-foreign-keys":[{"column":"project_id","references_table":"project","references_column":"project_id","constraint":"cap_table_event_project_id_fkey"},{"column":"shareholder_id","references_table":"shareholder","references_column":"shareholder_id","constraint":"cap_table_event_shareholder_id_fkey"},{"column":"triggered_by_financing_round_id","references_table":"financing_round","references_column":"round_id","constraint":"cap_table_event_triggered_by_financing_round_id_fkey"},{"column":"triggered_by_model_run_id","references_table":"proforma_model_run","references_column":"model_run_id","constraint":"cap_table_event_triggered_by_model_run_id_fkey"}]}