{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/lopa_scenario.schema.json","title":"lopa_scenario","type":"object","properties":{"scenario_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"hazard_deviation_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"scenario_name":{"type":"string","x-pg-type":"text"},"initiating_event_frequency_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"consequence_severity":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"tolerable_frequency_per_year":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"required_risk_reduction_factor":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"target_sil":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["hazard_deviation_id","scenario_name"],"x-primary-key":["scenario_id"],"x-foreign-keys":[{"column":"hazard_deviation_id","references_table":"hazop_deviation","references_column":"deviation_id","constraint":"lopa_scenario_hazard_deviation_id_fkey"}]}