{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/pfd_interunit_stream.schema.json","title":"pfd_interunit_stream","type":"object","properties":{"stream_uid":{"type":"string","format":"uuid","x-pg-type":"uuid"},"assembly_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"upstream_interface_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"downstream_interface_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"stream_name":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"service":{"type":"string","x-pg-type":"text"},"phase":{"type":"string","x-pg-type":"text"},"nominal_size":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"stream_payload":{"x-pg-type":"jsonb"},"status":{"type":"string","x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["assembly_id","upstream_interface_id","downstream_interface_id","service","phase"],"x-primary-key":["stream_uid"],"x-foreign-keys":[{"column":"assembly_id","references_table":"pfd_assembly","references_column":"assembly_id","constraint":"pfd_interunit_stream_assembly_id_fkey"},{"column":"downstream_interface_id","references_table":"pfd_unit_interface","references_column":"interface_id","constraint":"pfd_interunit_stream_downstream_interface_id_fkey"},{"column":"upstream_interface_id","references_table":"pfd_unit_interface","references_column":"interface_id","constraint":"pfd_interunit_stream_upstream_interface_id_fkey"}]}