{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/stream_snapshot.schema.json","title":"stream_snapshot","type":"object","properties":{"id":{"type":"integer","x-pg-type":"int8"},"project_ref":{"type":"string","x-pg-type":"text"},"stream_id":{"type":"string","x-pg-type":"text"},"upstream_unit_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"downstream_unit_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"flow_m3_d":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"temperature_k":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"pressure_kpa":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"ph":{"anyOf":[{"type":"number"},{"type":"null"}],"x-pg-type":"float8"},"model_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"source_timestamp":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"},"status_code":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"credibility":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"components":{"x-pg-type":"jsonb"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"producer_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"source_boundary_unit_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"destination_boundary_unit_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["project_ref","stream_id","components"],"x-primary-key":["id"],"x-foreign-keys":[{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"stream_snapshot_project_ref_fkey"}]}