{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://puranwater.com/schemas/postgres/procurement/decision_trace.schema.json","title":"decision_trace","type":"object","properties":{"trace_id":{"type":"integer","x-pg-type":"int8"},"session_id":{"type":"string","x-pg-type":"text"},"agent_persona":{"type":"string","x-pg-type":"text"},"task_summary":{"type":"string","x-pg-type":"text"},"entity_system":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"entity_id":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}],"x-pg-type":"text"},"created_at":{"type":"string","format":"date-time","x-pg-type":"timestamptz"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"x-pg-type":"timestamptz"}},"x-table-schema":"public","required":["session_id","agent_persona","task_summary"],"x-primary-key":["trace_id"]}