{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/project_finance/proforma_model_run.schema.json","title":"proforma_model_run","type":"object","properties":{"model_run_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"scenario_name":{"type":"string","x-pg-type":"text"},"engine_version":{"type":"string","x-pg-type":"text"},"model_version":{"type":"string","x-pg-type":"text"},"inputs_hash":{"type":"string","x-pg-type":"text"},"inputs_json":{"x-pg-type":"jsonb"},"outputs_json_legacy":{"x-pg-type":"jsonb"},"summary_json":{"x-pg-type":"jsonb"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"project_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"sweep_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"superseded_by_model_run_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"superseded_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"superseded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["project_ref","engine_version","model_version","inputs_hash","inputs_json","outputs_json_legacy","summary_json","project_id"],"x-primary-key":["model_run_id"],"x-foreign-keys":[{"column":"project_id","references_table":"project","references_column":"project_id","constraint":"proforma_model_run_project_id_fkey"},{"column":"superseded_by_model_run_id","references_table":"proforma_model_run","references_column":"model_run_id","constraint":"proforma_model_run_superseded_by_model_run_id_fkey"},{"column":"sweep_run_id","references_table":"sensitivity_sweep","references_column":"sweep_id","constraint":"proforma_model_run_sweep_run_id_fkey"}]}