<?xml version="1.0" encoding="UTF-8"?><database name="collapserhythm" schema="public" type="PostgreSQL - 18.4 (Ubuntu 18.4-1.pgdg24.04+1)">
   <sequences>
      <sequence increment="1" name="collapse_events_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="collapse_events" remarks="{&quot;what&quot;:&quot;A detected collapse incident with scoring, evidence, and remediation state.&quot;,&quot;why&quot;:&quot;Without it, collapse incidents and their remediation progress would be untracked, blocking incident response.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.802619134+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('collapse_events_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for the event; auto-incremented.&quot;,&quot;why&quot;:&quot;Without it, events cannot be uniquely referenced for updates or joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.856942260+00:00&quot;}" size="19" type="bigserial" typeCode="-5">
            <child column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="remediation_queue"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="source_service" nullable="false" remarks="{&quot;what&quot;:&quot;Service identifier that emitted the collapse signal.&quot;,&quot;why&quot;:&quot;Without it, events from different services cannot be distinguished, making per-service analysis impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.871187003+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model" nullable="true" remarks="{&quot;what&quot;:&quot;Model identifier used for detection, if applicable.&quot;,&quot;why&quot;:&quot;Without it, events cannot be grouped by detection model, obscuring model-specific issues.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.887380371+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="item_type" nullable="false" remarks="{&quot;what&quot;:&quot;Categorical type of the item that collapsed.&quot;,&quot;why&quot;:&quot;Without it, the scope of the collapse is unknown, preventing targeted remediation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.915086923+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="item_ref" nullable="false" remarks="{&quot;what&quot;:&quot;Reference identifier of the specific item that collapsed, such as a hostname or resource ID.&quot;,&quot;why&quot;:&quot;Without it, the exact affected resource cannot be identified for action.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.946215872+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'dante'::text" digits="0" id="5" name="device" nullable="false" remarks="{&quot;what&quot;:&quot;Device or environment label; default 'dante'.&quot;,&quot;why&quot;:&quot;Without it, events cannot be filtered by device, mixing environments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.964666341+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="8" id="6" name="score" nullable="false" remarks="{&quot;what&quot;:&quot;Numeric score (real) representing collapse confidence or severity.&quot;,&quot;why&quot;:&quot;Without it, events cannot be prioritized by severity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:29.998871575+00:00&quot;}" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="reasons" nullable="true" remarks="{&quot;what&quot;:&quot;JSON structure with contributing factors or evidence for the collapse.&quot;,&quot;why&quot;:&quot;Without it, the cause of the collapse is unknown, hindering diagnosis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:30.011701037+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="sample" nullable="true" remarks="{&quot;what&quot;:&quot;Textual sample or snippet of data that triggered the event.&quot;,&quot;why&quot;:&quot;Without it, the triggering data is unavailable for inspection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:30.026610521+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'pending'::text" digits="0" id="9" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Current remediation status; default 'pending'.&quot;,&quot;why&quot;:&quot;Without it, the workflow state is unknown, blocking tracking of remediation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:30.042548144+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="10" name="attempts" nullable="false" remarks="{&quot;what&quot;:&quot;Number of remediation attempts made so far.&quot;,&quot;why&quot;:&quot;Without it, retry limits cannot be enforced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:30.058446706+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="detected_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the collapse was detected; timezone-aware.&quot;,&quot;why&quot;:&quot;Without it, event timing is unknown, preventing time-based analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:30.084863684+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="remediated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when remediation completed, if any.&quot;,&quot;why&quot;:&quot;Without it, remediation duration cannot be calculated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:17:30.097185502+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="collapse_events_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="collapse_events_source_service_item_ref_key" unique="true">
            <column ascending="true" name="source_service"/>
            <column ascending="true" name="item_ref"/>
         </index>
         <index name="idx_collapse_detected" unique="false">
            <column ascending="true" name="detected_at"/>
         </index>
         <index name="idx_collapse_status" unique="false">
            <column ascending="true" name="status"/>
         </index>
      </table>
      <table name="remediation_queue" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id,&#10;    source_service,&#10;    item_type,&#10;    item_ref,&#10;    device,&#10;    score,&#10;    reasons,&#10;    attempts,&#10;    detected_at&#10;   FROM collapse_events&#10;  WHERE (status = 'pending'::text)&#10;  ORDER BY score DESC, detected_at;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="19" type="int8" typeCode="-5">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="collapse_events"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="source_service" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="item_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="item_ref" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="device" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="8" id="5" name="score" nullable="true" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="reasons" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="attempts" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="detected_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
      </table>
   </tables>
</database>
