{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/engineering_mcp/engineering_artifact.schema.json","title":"engineering_artifact","type":"object","properties":{"artifact_id":{"type":"string","format":"uuid","x-pg-type":"uuid"},"project_ref":{"type":"string","x-pg-type":"text"},"artifact_type":{"type":"string","x-pg-type":"text"},"equipment_uid":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"x-pg-type":"uuid"},"content":{"x-pg-type":"jsonb"},"is_current":{"type":"boolean","x-pg-type":"bool"},"revision":{"type":"string","x-pg-type":"text"},"credibility":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"updated_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"credibility_status":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"credibility_grade":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"credibility_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"producer_tool":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"upstream_artifact_hashes":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"x-pg-type":"_text"},"scope_refs":{"anyOf":[{},{"type":"null"}],"x-pg-type":"jsonb"},"process_unit_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"}},"x-table-schema":"public","required":["project_ref","artifact_type","content"],"x-primary-key":["artifact_id"],"x-foreign-keys":[{"column":"artifact_type","references_table":"artifact_type_registry","references_column":"artifact_type","constraint":"engineering_artifact_artifact_type_fkey"},{"column":"process_unit_type","references_table":"process_unit_type_registry","references_column":"process_unit_type","constraint":"engineering_artifact_process_unit_type_fkey"},{"column":"project_ref","references_table":"project","references_column":"ref","constraint":"engineering_artifact_project_ref_fkey"}]}