<?xml version="1.0" encoding="UTF-8"?><database name="certrhythm" schema="public" type="PostgreSQL - 18.4 (Ubuntu 18.4-1.pgdg24.04+1)">
   <sequences>
      <sequence increment="1" name="tier_predictions_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="certifications" remarks="{&quot;what&quot;:&quot;One certification attempt per subject and type, with decision and audit trail.&quot;,&quot;why&quot;:&quot;Without it, certification status and history are unknown, preventing renewal and audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:08.820374492+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="(gen_random_uuid())::text" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID text from gen_random_uuid; primary key for the certification record.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:08.909629237+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="cert_type" nullable="false" remarks="{&quot;what&quot;:&quot;Category of certification; selects the applicable workflow and checks.&quot;,&quot;why&quot;:&quot;Without it, the certification process and required gates are ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.090625810+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="subject" nullable="false" remarks="{&quot;what&quot;:&quot;Entity being certified, e.g., a domain name or service identifier.&quot;,&quot;why&quot;:&quot;Without it, it is unknown which resource the certification applies to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.120579669+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="subject_domain" nullable="true" remarks="{&quot;what&quot;:&quot;Domain of the subject, e.g., 'example.com', when applicable; null otherwise.&quot;,&quot;why&quot;:&quot;Without it, subjects cannot be grouped or filtered by domain for reporting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.153638117+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="decision" nullable="false" remarks="{&quot;what&quot;:&quot;Outcome of the certification, e.g., 'approved', 'rejected', 'pending'.&quot;,&quot;why&quot;:&quot;Without it, the current state of the certification is unknown, blocking next steps.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.203410006+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'[]'::jsonb" digits="0" id="5" name="gates" nullable="false" remarks="{&quot;what&quot;:&quot;JSON array of gate check results, each with status and details; empty if none.&quot;,&quot;why&quot;:&quot;Without it, the specific checks that passed or failed are lost, hindering audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.224162662+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="'{}'::jsonb" digits="0" id="6" name="report" nullable="false" remarks="{&quot;what&quot;:&quot;JSON object with detailed certification output, such as scan results or errors.&quot;,&quot;why&quot;:&quot;Without it, the evidence for the decision is unavailable for review.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.246420425+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="approval_token" nullable="true" remarks="{&quot;what&quot;:&quot;Secret token required to approve the certification; null if not yet issued.&quot;,&quot;why&quot;:&quot;Without it, approval cannot be securely authorized, risking unauthorized changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.266628856+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="emailed_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the notification email was sent to the subject; null if not sent.&quot;,&quot;why&quot;:&quot;Without it, it is unknown whether the subject was notified, causing missed communications.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.300516846+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="approved_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the certification was approved; null if not approved.&quot;,&quot;why&quot;:&quot;Without it, the approval time is unknown, affecting expiry and audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.365883216+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="approved_by" nullable="true" remarks="{&quot;what&quot;:&quot;User or system that approved the certification; null if not approved.&quot;,&quot;why&quot;:&quot;Without it, accountability for the approval decision is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.443709829+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="deployed_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the certification was deployed; null if not deployed.&quot;,&quot;why&quot;:&quot;Without it, the effective start time of the certification is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.589738937+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="12" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the certification record was created; defaults to now.&quot;,&quot;why&quot;:&quot;Without it, the order and age of certifications cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.617915501+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="expires_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the certification expires; null if it does not expire.&quot;,&quot;why&quot;:&quot;Without it, renewal scheduling is impossible, risking expired certifications.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.643170191+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="certifications_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_cert_source" unique="false"/>
         <index name="idx_cert_stealth_fresh" unique="false">
            <column ascending="true" name="subject"/>
            <column ascending="true" name="expires_at"/>
         </index>
         <index name="idx_cert_subject" unique="false">
            <column ascending="true" name="subject"/>
         </index>
      </table>
      <table name="discovery_runs" remarks="{&quot;what&quot;:&quot;A single execution of the discovery process for a domain.&quot;,&quot;why&quot;:&quot;Without it, there is no record of when and for which domain discovery was performed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:20:53.659048710+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="domain" nullable="false" remarks="{&quot;what&quot;:&quot;The website domain (e.g., example.com) that was scanned.&quot;,&quot;why&quot;:&quot;Identifies which site each run belongs to; without it runs are indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:20:53.723511318+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="ran_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the run started, set to current time by default.&quot;,&quot;why&quot;:&quot;Provides chronological ordering and allows auditing when each discovery happened.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:20:53.761807071+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="n_content_layouts" nullable="false" remarks="{&quot;what&quot;:&quot;Number of distinct content layouts found during the run.&quot;,&quot;why&quot;:&quot;Quantifies the result of the run; without it the run's outcome is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:20:53.788504253+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="tier" nullable="true" remarks="{&quot;what&quot;:&quot;Optional classification of the run, e.g., 'full' or 'incremental'.&quot;,&quot;why&quot;:&quot;Distinguishes run types; without it all runs are treated equally, losing context for filtering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:20:53.884337175+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <index name="idx_discovery_runs" unique="false">
            <column ascending="true" name="domain"/>
            <column ascending="false" name="ran_at"/>
         </index>
      </table>
      <table name="room_cert_state" remarks="{&quot;what&quot;:&quot;Tracks the current state of a certificate assigned to a room.&quot;,&quot;why&quot;:&quot;Without it, the validity of a room's certificate is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:09.986060806+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="room_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the room that owns the certificate.&quot;,&quot;why&quot;:&quot;Links the certificate state to a specific room.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:10.058764187+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="cert_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the certificate, e.g., serial number.&quot;,&quot;why&quot;:&quot;Uniquely identifies which certificate's state is recorded.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:10.081111114+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="state" nullable="false" remarks="{&quot;what&quot;:&quot;Current status: active, revoked, expired, etc.&quot;,&quot;why&quot;:&quot;Determines if the certificate is valid for the room.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:10.118846743+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="reason" nullable="true" remarks="{&quot;what&quot;:&quot;Optional explanation for the state, e.g., revocation cause.&quot;,&quot;why&quot;:&quot;Provides audit trail for why the state changed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:10.140622618+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="room_id" sequenceNumberInPK="1"/>
         <primaryKey column="cert_id" sequenceNumberInPK="2"/>
         <index name="room_cert_state_pkey" unique="true">
            <column ascending="true" name="room_id"/>
            <column ascending="true" name="cert_id"/>
         </index>
      </table>
      <table name="room_completion" remarks="{&quot;what&quot;:&quot;Aggregated completion snapshot for a room: percentage, attained and attainable counts.&quot;,&quot;why&quot;:&quot;Centralizes per-room completion metrics so they can be queried without scanning raw events.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:52.919587858+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="room_id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique identifier of the room, as a text string.&quot;,&quot;why&quot;:&quot;Without it, rows for different rooms cannot be distinguished or referenced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:52.943506395+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="domain" nullable="true" remarks="{&quot;what&quot;:&quot;Optional text label that groups rooms into a domain.&quot;,&quot;why&quot;:&quot;Without it, completion metrics cannot be segmented by domain, making domain-level analysis impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:52.963453062+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="2" name="completion_pct" nullable="false" remarks="{&quot;what&quot;:&quot;Integer percentage from 0 to 100 indicating completion level.&quot;,&quot;why&quot;:&quot;Without it, the overall completion level is not directly available and must be derived from attained/attainable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:52.981412333+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="3" name="attained" nullable="false" remarks="{&quot;what&quot;:&quot;Count of completed items or tasks in the room.&quot;,&quot;why&quot;:&quot;Without it, the actual completed count is missing, so progress cannot be measured.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:53.008742735+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="attainable" nullable="false" remarks="{&quot;what&quot;:&quot;Total count of items or tasks that can be completed in the room.&quot;,&quot;why&quot;:&quot;Without it, the denominator for completion percentage is unknown, so relative progress cannot be computed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:53.030443662+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="computed_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) when this completion snapshot was last calculated.&quot;,&quot;why&quot;:&quot;Without it, the freshness of the data is unknown, risking decisions based on stale metrics.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:53.069577688+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="room_id" sequenceNumberInPK="1"/>
         <index name="room_completion_pkey" unique="true">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="room_render_verdicts" remarks="{&quot;what&quot;:&quot;Records pass/fail verdicts for room render checks.&quot;,&quot;why&quot;:&quot;Enables tracking which rooms need attention after rendering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.764632145+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;Unique room slug used as primary key.&quot;,&quot;why&quot;:&quot;Ensures each room has exactly one verdict record.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.786621306+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="passed" nullable="false" remarks="{&quot;what&quot;:&quot;True if all checks passed, false otherwise.&quot;,&quot;why&quot;:&quot;Allows quick filtering of failing rooms without parsing checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.829716094+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'{}'::jsonb" digits="0" id="2" name="checks" nullable="false" remarks="{&quot;what&quot;:&quot;JSON object mapping check names to pass/fail status.&quot;,&quot;why&quot;:&quot;Records which specific checks failed, enabling targeted debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.844152078+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="detail" nullable="true" remarks="{&quot;what&quot;:&quot;Optional JSON with error details for failed checks.&quot;,&quot;why&quot;:&quot;Provides context like error messages for failed checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.879393425+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="screenshot_path" nullable="true" remarks="{&quot;what&quot;:&quot;Filesystem path to a screenshot of the rendered room.&quot;,&quot;why&quot;:&quot;Lets engineers visually inspect the render when a check fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.929435122+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="verified_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the verdict was recorded, in UTC.&quot;,&quot;why&quot;:&quot;Tracks when the check ran to correlate with code changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:15.992662815+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="slug" sequenceNumberInPK="1"/>
         <index name="room_render_verdicts_pkey" unique="true">
            <column ascending="true" name="slug"/>
         </index>
      </table>
      <table name="site_pages" remarks="{&quot;what&quot;:&quot;One row per unique page, identified by domain and representative URL.&quot;,&quot;why&quot;:&quot;Without it, there is no persistent record of scraped pages, so layout analysis cannot be reproduced or audited.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:30.462887977+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="domain" nullable="false" remarks="{&quot;what&quot;:&quot;The website's domain, e.g., example.com; used with representative_url to uniquely identify a page.&quot;,&quot;why&quot;:&quot;Without it, the same URL path on different domains would collide, making page identity ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:31.475709031+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="layout_family" nullable="false" remarks="{&quot;what&quot;:&quot;A classification of the page's visual layout, such as 'article' or 'landing'.&quot;,&quot;why&quot;:&quot;Without it, pages cannot be grouped by layout type, so layout family analysis is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:32.266269400+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="page_role" nullable="true" remarks="{&quot;what&quot;:&quot;The page's function on the site, e.g., 'home', 'listing', 'detail'; may be null if unknown.&quot;,&quot;why&quot;:&quot;Without it, the purpose of a page within its site is unknown, hindering role-based analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:32.392510813+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="representative_url" nullable="false" remarks="{&quot;what&quot;:&quot;Canonical URL of the page, e.g., https://example.com/path; part of the composite key.&quot;,&quot;why&quot;:&quot;Without it, the exact page cannot be referenced or re-fetched, and the composite key fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:32.434381236+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="markdown" nullable="false" remarks="{&quot;what&quot;:&quot;Full page content converted to Markdown format.&quot;,&quot;why&quot;:&quot;Without it, the page's textual content is unavailable for analysis or search.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:32.476876786+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="collected_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the page was scraped, defaulting to current time.&quot;,&quot;why&quot;:&quot;Without it, the freshness of the page data is unknown, and time-based queries are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:32.672353880+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'screenrhythm'::text" digits="0" id="6" name="source" nullable="false" remarks="{&quot;what&quot;:&quot;Origin of the page data, e.g., 'screenrhythm'; default is 'screenrhythm'.&quot;,&quot;why&quot;:&quot;Without it, the provenance of the data is unknown, and filtering by collection source is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:21:32.689075567+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="domain" sequenceNumberInPK="1"/>
         <primaryKey column="representative_url" sequenceNumberInPK="2"/>
         <index name="site_pages_pkey" unique="true">
            <column ascending="true" name="domain"/>
            <column ascending="true" name="representative_url"/>
         </index>
         <index name="idx_site_pages_domain" unique="false">
            <column ascending="true" name="domain"/>
         </index>
      </table>
      <table name="tier_prediction_grades" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH pred AS (&#10;         SELECT DISTINCT ON (tier_predictions.domain) tier_predictions.domain,&#10;            tier_predictions.tier AS ptier,&#10;            tier_predictions.source AS psource,&#10;            tier_predictions.created_at AS pat&#10;           FROM tier_predictions&#10;          WHERE tier_predictions.is_prediction&#10;          ORDER BY tier_predictions.domain, tier_predictions.created_at DESC&#10;        ), act AS (&#10;         SELECT DISTINCT ON (tier_predictions.domain) tier_predictions.domain,&#10;            tier_predictions.tier AS atier,&#10;            tier_predictions.source AS asource,&#10;            tier_predictions.created_at AS aat&#10;           FROM tier_predictions&#10;          WHERE (NOT tier_predictions.is_prediction)&#10;          ORDER BY tier_predictions.domain, tier_predictions.created_at DESC&#10;        )&#10; SELECT p.domain,&#10;    p.psource,&#10;    p.ptier AS predicted_tier,&#10;    a.asource,&#10;    a.atier AS measured_tier,&#10;    (a.atier - p.ptier) AS delta,&#10;    a.aat AS measured_at&#10;   FROM (pred p&#10;     JOIN act a USING (domain));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="domain" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="psource" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="predicted_tier" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="asource" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="measured_tier" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="delta" nullable="true" remarks="" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="measured_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
      </table>
      <table name="tier_predictions" remarks="{&quot;what&quot;:&quot;Predicted or confirmed tier for a domain, with source and decision metadata.&quot;,&quot;why&quot;:&quot;Without it, tier assignments and their provenance are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.044015437+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('tier_predictions_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each prediction row.&quot;,&quot;why&quot;:&quot;Provides a stable reference for updates and joins; without it rows cannot be uniquely addressed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.053952865+00:00&quot;}" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="domain" nullable="false" remarks="{&quot;what&quot;:&quot;Domain name (e.g., example.com) the prediction applies to.&quot;,&quot;why&quot;:&quot;Identifies which domain the tier decision or prediction concerns; without it the row has no subject.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.066939612+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tier" nullable="true" remarks="{&quot;what&quot;:&quot;Predicted or assigned tier level as a small integer (e.g., 1-5).&quot;,&quot;why&quot;:&quot;Records the tier outcome; without it the prediction's result is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.104214240+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="source" nullable="true" remarks="{&quot;what&quot;:&quot;Origin of the prediction, such as model version or manual entry.&quot;,&quot;why&quot;:&quot;Distinguishes predictions from different sources; without it you cannot attribute or compare reliability.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.113956074+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="is_prediction" nullable="false" remarks="{&quot;what&quot;:&quot;Flag true if the tier is a prediction, false if it is a confirmed/actual tier.&quot;,&quot;why&quot;:&quot;Separates predicted from confirmed tiers; without it you cannot filter for only predictions or only actuals.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.124634016+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="decision" nullable="true" remarks="{&quot;what&quot;:&quot;Decision outcome (e.g., 'approved', 'rejected') associated with the tier.&quot;,&quot;why&quot;:&quot;Records the action taken on the domain; without it the result of the review process is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.154558536+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) when the row was inserted.&quot;,&quot;why&quot;:&quot;Enables time-based ordering and auditing; without it you cannot know when the prediction was made.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:12:56.180902194+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="tier_predictions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_tier_pred_domain" unique="false">
            <column ascending="true" name="domain"/>
            <column ascending="false" name="created_at"/>
         </index>
      </table>
   </tables>
</database>
