<?xml version="1.0" encoding="UTF-8"?><database name="birhythm_metabase" schema="public" type="PostgreSQL - 18.4 (Ubuntu 18.4-1.pgdg24.04+1)">
   <tables>
      <table name="action" remarks="{&quot;what&quot;:&quot;User-defined actions that can be triggered from a UI, with parameters and display settings.&quot;,&quot;why&quot;:&quot;Without it, actions cannot be persisted, shared, or executed consistently.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.733475812+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each action.&quot;,&quot;why&quot;:&quot;Without it, actions cannot be uniquely referenced in foreign keys or API calls.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.760095263+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="action_id" foreignKey="fk_http_action_ref_action_id" implied="false" onDeleteCascade="true" schema="public" table="http_action"/>
            <child column="action_id" foreignKey="fk_implicit_action_action_id" implied="false" onDeleteCascade="true" schema="public" table="implicit_action"/>
            <child column="action_id" foreignKey="fk_query_action_ref_action_id" implied="false" onDeleteCascade="true" schema="public" table="query_action"/>
            <child column="action_id" foreignKey="fk_report_dashboardcard_ref_action_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboardcard"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of row creation, stored with timezone.&quot;,&quot;why&quot;:&quot;Without it, creation time is unknown, breaking audit and ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.775515324+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last row update, stored with timezone.&quot;,&quot;why&quot;:&quot;Without it, last modification time is unknown, breaking change tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.797019352+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Text label that determines how the action is executed.&quot;,&quot;why&quot;:&quot;Without it, the system cannot decide how to run the action or validate its parameters.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.825459400+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="model_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the model this action is associated with.&quot;,&quot;why&quot;:&quot;Without it, the action cannot be scoped to a specific model, breaking its context.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.851952087+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_action_model_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name for the action, used in UI.&quot;,&quot;why&quot;:&quot;Without it, actions cannot be displayed or referenced by users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.867559268+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text description of the action's purpose.&quot;,&quot;why&quot;:&quot;Without it, the action's intent may be unclear to other users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.884991387+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="parameters" nullable="true" remarks="{&quot;what&quot;:&quot;JSON text defining input parameters for the action.&quot;,&quot;why&quot;:&quot;Without it, the action cannot accept user input or validate arguments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.904083627+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="parameter_mappings" nullable="true" remarks="{&quot;what&quot;:&quot;JSON text mapping action parameters to model fields or variables.&quot;,&quot;why&quot;:&quot;Without it, parameter values cannot be correctly bound to the underlying query.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.918253277+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="visualization_settings" nullable="true" remarks="{&quot;what&quot;:&quot;JSON text for UI display settings of the action's result.&quot;,&quot;why&quot;:&quot;Without it, the action's output cannot be rendered with the intended layout.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.952828787+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="public_uuid" nullable="true" remarks="{&quot;what&quot;:&quot;Public UUID for sharing the action without authentication.&quot;,&quot;why&quot;:&quot;Without it, the action cannot be shared publicly via a secret link.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:57.983578963+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="made_public_by_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the person who made the action public.&quot;,&quot;why&quot;:&quot;Without it, the public sharing cannot be attributed or revoked.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:58.018605048+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_action_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the action's creator.&quot;,&quot;why&quot;:&quot;Without it, ownership and permissions for the action are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:58.031097465+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_action_creator_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the action is archived (soft-deleted).&quot;,&quot;why&quot;:&quot;Without it, archived actions would still appear in lists and break filtering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:58.050046795+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Stable unique identifier for the action, used for cross-instance sync.&quot;,&quot;why&quot;:&quot;Without it, actions cannot be reliably synced or merged between environments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:58.062800960+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="public_uuid_prefix" nullable="true" remarks="{&quot;what&quot;:&quot;Short prefix for the public UUID, used in share links.&quot;,&quot;why&quot;:&quot;Without it, share links cannot be shortened or branded.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:05:58.077619027+00:00&quot;}" size="36" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="action_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="action_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="action_public_uuid_key" unique="true">
            <column ascending="true" name="public_uuid"/>
         </index>
         <index name="idx_action_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_action_made_public_by_id" unique="false">
            <column ascending="true" name="made_public_by_id"/>
         </index>
         <index name="idx_action_model_id" unique="false">
            <column ascending="true" name="model_id"/>
         </index>
         <index name="idx_action_public_uuid" unique="false">
            <column ascending="true" name="public_uuid"/>
         </index>
         <index name="idx_action_public_uuid_prefix" unique="false">
            <column ascending="true" name="public_uuid_prefix"/>
         </index>
      </table>
      <table name="analysis_finding" remarks="{&quot;what&quot;:&quot;Findings from automated analysis runs on entities.&quot;,&quot;why&quot;:&quot;Without it, no record of which entities passed or failed analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.095487843+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each finding row.&quot;,&quot;why&quot;:&quot;Needed to reference or update a specific finding.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.116550642+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="analyzed_entity_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of analyzed entity, e.g., 'repository' or 'file'.&quot;,&quot;why&quot;:&quot;Disambiguates which table analyzed_entity_id points to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.141481278+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="analyzed_entity_id" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key of the entity within its type's table.&quot;,&quot;why&quot;:&quot;Together with type, uniquely identifies the analyzed entity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.161971690+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the analysis logic that produced this finding.&quot;,&quot;why&quot;:&quot;Distinguishes results from different analysis versions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.181808275+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="analyzed_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) when the analysis ran.&quot;,&quot;why&quot;:&quot;Records when the finding was produced; needed for time-based queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.207542806+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="result" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean outcome: true if analysis passed, false if failed.&quot;,&quot;why&quot;:&quot;Indicates pass/fail; without it, no conclusion exists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.241645551+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="stale" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether this finding is outdated (default false).&quot;,&quot;why&quot;:&quot;Allows filtering out old findings; without it, stale results appear current.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:06.309509248+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="analysis_finding_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_analysis_finding_stale" unique="false">
            <column ascending="true" name="stale"/>
         </index>
         <index name="idx_analysis_result" unique="false">
            <column ascending="true" name="result"/>
         </index>
         <index name="idx_analyzed_entity" unique="false">
            <column ascending="true" name="analyzed_entity_type"/>
            <column ascending="true" name="analyzed_entity_id"/>
         </index>
         <index name="idx_unique_analysis_finding" unique="true">
            <column ascending="true" name="analyzed_entity_type"/>
            <column ascending="true" name="analyzed_entity_id"/>
         </index>
      </table>
      <table name="analysis_finding_error" remarks="{&quot;what&quot;:&quot;Records of errors encountered during analysis of entities.&quot;,&quot;why&quot;:&quot;Tracks analysis failures so they can be retried or reported.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.656645859+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each error record.&quot;,&quot;why&quot;:&quot;Enables referencing a specific error row for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.682864048+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="analyzed_entity_type" nullable="false" remarks="{&quot;what&quot;:&quot;Kind of entity being analyzed, e.g., 'module' or 'file'.&quot;,&quot;why&quot;:&quot;Distinguishes error handling and lookup across different entity types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.698481586+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="analyzed_entity_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the specific entity being analyzed, within its type.&quot;,&quot;why&quot;:&quot;Links the error to the exact entity that failed, enabling targeted retry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.713886174+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="error_type" nullable="false" remarks="{&quot;what&quot;:&quot;Category of error, e.g., 'timeout' or 'parse_error'.&quot;,&quot;why&quot;:&quot;Allows grouping and filtering by error kind for monitoring and alerting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.731244598+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="error_detail" nullable="true" remarks="{&quot;what&quot;:&quot;Optional human-readable description of the error.&quot;,&quot;why&quot;:&quot;Provides debugging context when error_type alone is insufficient.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.748484420+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="source_entity_type" nullable="true" remarks="{&quot;what&quot;:&quot;Kind of entity that served as input to the analysis, if any.&quot;,&quot;why&quot;:&quot;Identifies which source type contributed to the error, aiding root cause analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.762183175+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="source_entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the source entity within its type, if applicable.&quot;,&quot;why&quot;:&quot;Pinpoints the exact source that triggered the error, enabling targeted fixes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:16.776063488+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="analysis_finding_error_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_analysis_finding_error_analyzed" unique="false">
            <column ascending="true" name="analyzed_entity_type"/>
            <column ascending="true" name="analyzed_entity_id"/>
         </index>
         <index name="idx_analysis_finding_error_source" unique="false">
            <column ascending="true" name="source_entity_type"/>
            <column ascending="true" name="source_entity_id"/>
         </index>
         <index name="idx_analysis_finding_error_type" unique="false">
            <column ascending="true" name="error_type"/>
         </index>
      </table>
      <table name="api_key" remarks="{&quot;what&quot;:&quot;API keys issued to users for authenticating API requests.&quot;,&quot;why&quot;:&quot;Without it, there is no record of valid credentials or their owners.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:20.928468523+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer primary key for the API key row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:20.949413249+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the user who owns this API key.&quot;,&quot;why&quot;:&quot;Without it, it is unknown which user the key belongs to, breaking authorization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:20.976787988+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_api_key_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="key" nullable="false" remarks="{&quot;what&quot;:&quot;The full secret key string used to authenticate requests.&quot;,&quot;why&quot;:&quot;Without it, there is no credential to compare against incoming requests.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.032365616+00:00&quot;}" size="254" type="varchar" typeCode="12">
            <parent column="key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="setting"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="key_prefix" nullable="false" remarks="{&quot;what&quot;:&quot;Short prefix of the key used for fast lookup and identification.&quot;,&quot;why&quot;:&quot;Without it, the full key must be scanned, slowing authentication and preventing partial matches.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.088850385+00:00&quot;}" size="7" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who created this API key.&quot;,&quot;why&quot;:&quot;Without it, it is unknown who issued the key, complicating audit and revocation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.112795290+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_api_key_created_by_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the key was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, key age and rotation schedules cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.149610823+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this key record, in UTC.&quot;,&quot;why&quot;:&quot;Without it, it is unknown when key metadata last changed, hindering change tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.161985381+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable label for the key, e.g., 'CI pipeline'.&quot;,&quot;why&quot;:&quot;Without it, keys are indistinguishable by purpose, making management confusing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.180439770+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="updated_by_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who last modified this key record.&quot;,&quot;why&quot;:&quot;Without it, it is unknown who made changes, complicating audit trails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.193590964+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_api_key_updated_by_id_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="scope" nullable="true" remarks="{&quot;what&quot;:&quot;Comma-separated list of permissions or scopes granted to this key.&quot;,&quot;why&quot;:&quot;Without it, all keys have the same access level, preventing least-privilege security.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:21.211475212+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="api_key_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="api_key_key_prefix_key" unique="true">
            <column ascending="true" name="key_prefix"/>
         </index>
         <index name="api_key_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="idx_api_key_created_by" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_api_key_updated_by_id" unique="false">
            <column ascending="true" name="updated_by_id"/>
         </index>
         <index name="idx_api_key_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="application_permissions_revision" remarks="{&quot;what&quot;:&quot;Audit log of permission changes for applications.&quot;,&quot;why&quot;:&quot;Without it, no history of who changed what permissions and when.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.859048241+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each change event.&quot;,&quot;why&quot;:&quot;Enables referencing a specific change event.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.879865036+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="before" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized permissions state before the change.&quot;,&quot;why&quot;:&quot;Without it, the prior state is lost, making rollback impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.900268942+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="after" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized permissions state after the change.&quot;,&quot;why&quot;:&quot;Without it, the new state is unknown, and the change cannot be verified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.931876717+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who made the change.&quot;,&quot;why&quot;:&quot;Without it, accountability for permission changes is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.947899177+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_general_permissions_revision_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the change was recorded.&quot;,&quot;why&quot;:&quot;Without it, the order of changes is unknown, hindering audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.961963207+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="remark" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text note about the change.&quot;,&quot;why&quot;:&quot;Without it, context or reason for the change is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:21.974963308+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="general_permissions_revision_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_application_permissions_revision_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="audit_log" remarks="{&quot;what&quot;:&quot;Chronological record of auditable events with topic, actor, and affected entity.&quot;,&quot;why&quot;:&quot;Without it, there is no history of actions for security audits or debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.260805898+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each audit entry; primary key.&quot;,&quot;why&quot;:&quot;Without it, entries cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.311464308+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="topic" nullable="false" remarks="{&quot;what&quot;:&quot;Category of the audited event, e.g., 'login', 'update'.&quot;,&quot;why&quot;:&quot;Without it, events cannot be filtered by type, making audit queries impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.323589821+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;UTC time when the event started.&quot;,&quot;why&quot;:&quot;Without it, the order of events is unknown, breaking chronological analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.340151548+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="end_timestamp" nullable="true" remarks="{&quot;what&quot;:&quot;UTC time when the event finished; null if instantaneous.&quot;,&quot;why&quot;:&quot;Without it, duration of events cannot be measured, so performance issues go undetected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.366201698+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="user_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the user who triggered the event; null for system actions.&quot;,&quot;why&quot;:&quot;Without it, accountability for actions is lost, making security audits impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.384831266+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="model" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the affected entity type, e.g., 'Order'.&quot;,&quot;why&quot;:&quot;Without it, the type of affected entity is unknown, so cross-entity audits fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.396238520+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="model_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the affected record within the model.&quot;,&quot;why&quot;:&quot;Without it, the specific record cannot be located, so changes cannot be traced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.420099353+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="details" nullable="false" remarks="{&quot;what&quot;:&quot;Free-form JSON or text with event-specific data.&quot;,&quot;why&quot;:&quot;Without it, event-specific context is missing, so debugging and compliance checks are incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:37.433990079+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="audit_log_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_audit_log_entity_qualified_id" unique="false"/>
      </table>
      <table name="auth_identity" remarks="{&quot;what&quot;:&quot;One row per external login (e.g., Google) for a user.&quot;,&quot;why&quot;:&quot;Enables OAuth sign-in and account linking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.257761327+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate key; unique identifier for each identity row.&quot;,&quot;why&quot;:&quot;Provides a stable reference for updates and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.284593859+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="auth_identity_id" foreignKey="fk_session_auth_identity" implied="false" onDeleteCascade="true" schema="public" table="core_session"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Internal user account this identity belongs to.&quot;,&quot;why&quot;:&quot;Maps external login to the local user; without it, sign-in cannot resolve to an account.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.310663476+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_auth_identity_core_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="provider" nullable="false" remarks="{&quot;what&quot;:&quot;Authentication service name (e.g., 'google', 'github').&quot;,&quot;why&quot;:&quot;Distinguishes identities from different providers; needed to route OAuth flows.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.321821736+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="credentials" nullable="true" remarks="{&quot;what&quot;:&quot;Opaque token or encrypted secret for the provider session.&quot;,&quot;why&quot;:&quot;Holds provider-specific auth material; without it, refresh or API calls fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.337788274+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="metadata" nullable="true" remarks="{&quot;what&quot;:&quot;Provider-supplied profile data as JSON or serialized text.&quot;,&quot;why&quot;:&quot;Preserves user info (email, avatar) without extra API calls.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.355307567+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="provider_id" nullable="true" remarks="{&quot;what&quot;:&quot;Unique identifier for the user at the provider.&quot;,&quot;why&quot;:&quot;Matches incoming provider callbacks to this identity; prevents duplicate accounts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.374893857+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="last_used_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the most recent successful authentication.&quot;,&quot;why&quot;:&quot;Supports session expiry and security audits; unknown usage patterns.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.393691515+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="expires_at" nullable="true" remarks="{&quot;what&quot;:&quot;Time when the provider token or session expires.&quot;,&quot;why&quot;:&quot;Triggers token refresh; without it, stale credentials cause auth failures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.413316462+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Time the identity row was created.&quot;,&quot;why&quot;:&quot;Audit trail and ordering; needed for lifecycle management.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.427877049+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Time the identity row was last modified.&quot;,&quot;why&quot;:&quot;Tracks changes to credentials or metadata; supports concurrency checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:27.445880038+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="auth_identity_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_auth_identity_provider" unique="false">
            <column ascending="true" name="provider"/>
         </index>
         <index name="idx_auth_identity_provider_id" unique="false">
            <column ascending="true" name="provider_id"/>
         </index>
         <index name="idx_auth_identity_provider_provider_id" unique="false">
            <column ascending="true" name="provider"/>
            <column ascending="true" name="provider_id"/>
         </index>
         <index name="idx_auth_identity_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_auth_identity_user_provider" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="provider"/>
         </index>
      </table>
      <table name="bookmark_ordering" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each ordering row.&quot;,&quot;why&quot;:&quot;Needed as primary key for stable references and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:13.806530773+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;User account ID that owns this ordering.&quot;,&quot;why&quot;:&quot;Orders are per user; without it, bookmarks from different users mix.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:13.841978532+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_bookmark_ordering_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Kind of bookmarked item, e.g. 'note' or 'file'.&quot;,&quot;why&quot;:&quot;Distinguishes item_id namespaces; same id may exist across types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:13.881935636+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="item_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the bookmarked item within the type's table.&quot;,&quot;why&quot;:&quot;Identifies which item is ordered; without it, ordering has no target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:13.923685793+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="ordering" nullable="false" remarks="{&quot;what&quot;:&quot;Integer position of the item in the user's list, 0-based.&quot;,&quot;why&quot;:&quot;Defines display order; without it, items have no sequence.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:13.965291121+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="bookmark_ordering_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_bookmark_ordering_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_bookmark_user_id_ordering" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="ordering"/>
         </index>
         <index name="unique_bookmark_user_id_type_item_id" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="type"/>
            <column ascending="true" name="item_id"/>
         </index>
      </table>
      <table name="cache_config" remarks="{&quot;what&quot;:&quot;Configuration for caching a specific model instance.&quot;,&quot;why&quot;:&quot;Without it, cache behavior for a model instance is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:41.869192545+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this cache configuration.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be referenced or updated uniquely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:41.888070364+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the model class or table this config applies to.&quot;,&quot;why&quot;:&quot;Without it, the config cannot be scoped to a specific model type.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:41.928069524+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model_id" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key value of the model instance this config targets.&quot;,&quot;why&quot;:&quot;Without it, the config cannot be tied to a specific record.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:41.979577262+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this configuration row was created.&quot;,&quot;why&quot;:&quot;Without it, audit and debugging of config changes lose creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:41.995065152+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this configuration.&quot;,&quot;why&quot;:&quot;Without it, stale configs cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.013636641+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="strategy" nullable="false" remarks="{&quot;what&quot;:&quot;Caching strategy name, e.g., 'full', 'incremental'.&quot;,&quot;why&quot;:&quot;Without it, the cache refresh method is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.029512301+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="config" nullable="false" remarks="{&quot;what&quot;:&quot;JSON or serialized settings for the strategy.&quot;,&quot;why&quot;:&quot;Without it, strategy parameters are missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.046678593+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="state" nullable="true" remarks="{&quot;what&quot;:&quot;Current cache state, e.g., 'active', 'invalid'.&quot;,&quot;why&quot;:&quot;Without it, cache validity cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.065863587+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="invalidated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the cache was last invalidated.&quot;,&quot;why&quot;:&quot;Without it, time since invalidation is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.087624016+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="next_run_at" nullable="true" remarks="{&quot;what&quot;:&quot;Scheduled time for the next cache refresh.&quot;,&quot;why&quot;:&quot;Without it, refresh scheduling is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.108527187+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="10" name="refresh_automatically" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating whether the cache refreshes automatically.&quot;,&quot;why&quot;:&quot;Without it, automatic refresh behavior is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:42.134575609+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="cache_config_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_cache_config_unique_model" unique="true">
            <column ascending="true" name="model"/>
            <column ascending="true" name="model_id"/>
         </index>
      </table>
      <table name="card_bookmark" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each bookmark row.&quot;,&quot;why&quot;:&quot;Without it, bookmarks cannot be uniquely referenced for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:29.194215674+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who bookmarked the card.&quot;,&quot;why&quot;:&quot;Without it, we cannot tell which user owns the bookmark.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:29.219572722+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the card that is bookmarked.&quot;,&quot;why&quot;:&quot;Without it, we cannot tell which card is bookmarked.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:29.252237344+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_bookmark_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the bookmark was created.&quot;,&quot;why&quot;:&quot;Without it, we cannot order bookmarks by time or audit when they were added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:29.279048040+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="card_bookmark_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_card_bookmark_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_card_bookmark_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_card_bookmark_user_id_card_id" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="card_id"/>
         </index>
      </table>
      <table name="card_label" remarks="{&quot;what&quot;:&quot;Associations linking a card to a label, one row per pair.&quot;,&quot;why&quot;:&quot;Without it, the many-to-many relationship between cards and labels is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:18.020478382+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each association row.&quot;,&quot;why&quot;:&quot;Provides a stable primary key for referencing or deleting a specific link.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:18.077714927+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer identifier of the card being labeled.&quot;,&quot;why&quot;:&quot;Determines which card the label is applied to; without it, the association is meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:18.151631214+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_label_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="label_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer identifier of the label attached to the card.&quot;,&quot;why&quot;:&quot;Identifies which label is applied; without it, the card's label set is incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:18.163124146+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_label_ref_label_id" implied="false" onDeleteCascade="true" schema="public" table="label"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="card_label_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_card_label_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_card_label_label_id" unique="false">
            <column ascending="true" name="label_id"/>
         </index>
         <index name="unique_card_label_card_id_label_id" unique="true">
            <column ascending="true" name="card_id"/>
            <column ascending="true" name="label_id"/>
         </index>
      </table>
      <table name="channel" remarks="{&quot;what&quot;:&quot;A record that defines a named channel with a type and configuration details.&quot;,&quot;why&quot;:&quot;Without it, channel definitions and their active state cannot be persisted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.517980644+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique identifier for each channel row.&quot;,&quot;why&quot;:&quot;Without it, channels cannot be uniquely referenced by foreign keys.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.539855065+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="channel_id" foreignKey="fk_notification_handler_channel_id" implied="false" onDeleteCascade="true" schema="public" table="notification_handler"/>
            <child column="channel_id" foreignKey="fk_pulse_channel_channel_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_channel"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short name for the channel; the primary label.&quot;,&quot;why&quot;:&quot;Without it, there is no human-friendly way to refer to the channel.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.552563578+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text describing the channel's purpose or usage.&quot;,&quot;why&quot;:&quot;Without it, the channel's intended use is undocumented.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.565894508+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Channel type string; defines the kind of channel and how details are parsed.&quot;,&quot;why&quot;:&quot;Without it, the format of details is ambiguous and cannot be processed correctly.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.578468635+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="details" nullable="false" remarks="{&quot;what&quot;:&quot;Configuration payload for the channel; format depends on type.&quot;,&quot;why&quot;:&quot;Without it, the channel cannot be connected or used for delivery.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.595498910+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="active" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the channel is currently enabled for use.&quot;,&quot;why&quot;:&quot;Without it, disabled channels would still be used, causing errors or unintended sends.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.606700717+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the channel record was created.&quot;,&quot;why&quot;:&quot;Without it, audit history and ordering of channel creation is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.621535450+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to the channel record.&quot;,&quot;why&quot;:&quot;Without it, it is unknown when the channel configuration was last changed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:47.635580229+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="channel_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="channel_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="channel_template" remarks="{&quot;what&quot;:&quot;A named template that defines a channel's type and optional details.&quot;,&quot;why&quot;:&quot;Without it, each channel would need its own ad-hoc configuration, risking inconsistent channel types and details.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.318934164+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each template.&quot;,&quot;why&quot;:&quot;Without it, templates cannot be referenced reliably by other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.375478803+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="template_id" foreignKey="fk_notification_handler_template_id" implied="false" onDeleteCascade="false" schema="public" table="notification_handler"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name for the template.&quot;,&quot;why&quot;:&quot;Without it, templates cannot be identified in user interfaces or logs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.408507376+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="channel_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of channel this template applies to, e.g., 'email' or 'slack'.&quot;,&quot;why&quot;:&quot;Without it, the template cannot be matched to a specific channel type, making it ambiguous which channels it configures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.427727124+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="details" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-form text with type-specific configuration details.&quot;,&quot;why&quot;:&quot;Without it, type-specific settings would be lost, forcing hardcoded defaults.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.449337175+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the template was created.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ordering of template changes are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.502064021+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the template was last modified.&quot;,&quot;why&quot;:&quot;Without it, you cannot detect stale templates or track recent changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:06:50.524572176+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="channel_template_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="cloud_migration" remarks="{&quot;what&quot;:&quot;A record of a single cloud migration job with its lifecycle state.&quot;,&quot;why&quot;:&quot;Without it, there is no way to track or manage ongoing migrations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.566687406+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for the migration record.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.596392339+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="external_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier from the external system that initiated the migration.&quot;,&quot;why&quot;:&quot;Without it, the originating request cannot be correlated back to its source.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.669637440+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="upload_url" nullable="false" remarks="{&quot;what&quot;:&quot;Pre-signed URL where the migration data is uploaded.&quot;,&quot;why&quot;:&quot;Without it, the client does not know where to send the data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.723426792+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'init'::character varying" digits="0" id="3" name="state" nullable="false" remarks="{&quot;what&quot;:&quot;Current lifecycle stage, e.g. init, uploading, done.&quot;,&quot;why&quot;:&quot;Without it, the system cannot decide which actions are valid or resume progress.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.762006398+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="4" name="progress" nullable="false" remarks="{&quot;what&quot;:&quot;Percentage of migration completed, from 0 to 100.&quot;,&quot;why&quot;:&quot;Without it, users cannot see how far along the migration is.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.810231837+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the migration record was created.&quot;,&quot;why&quot;:&quot;Without it, there is no way to order or age migrations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.854648735+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to the migration record.&quot;,&quot;why&quot;:&quot;Without it, stale or stuck migrations cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:04.891997983+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="cloud_migration_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="collection" remarks="{&quot;what&quot;:&quot;A collection is a named, hierarchical container for organizing related items.&quot;,&quot;why&quot;:&quot;Without it, there is no way to group items for access control, navigation, or sharing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:25.972459532+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each collection row.&quot;,&quot;why&quot;:&quot;Without it, no stable reference for joins, updates, or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.242229749+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="collection_id" foreignKey="fk_collection_bookmark_collection_id" implied="false" onDeleteCascade="true" schema="public" table="collection_bookmark"/>
            <child column="collection_id" foreignKey="fk_document_ref_collection_id" implied="false" onDeleteCascade="false" schema="public" table="document"/>
            <child column="collection_id" foreignKey="fk_metabase_table_collection_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_table"/>
            <child column="collection_id" foreignKey="fk_snippet_collection_id" implied="false" onDeleteCascade="false" schema="public" table="native_query_snippet"/>
            <child column="collection_id" foreignKey="fk_permissions_ref_collection_id" implied="false" onDeleteCascade="true" schema="public" table="permissions"/>
            <child column="collection_id" foreignKey="fk_pulse_collection_id" implied="false" onDeleteCascade="false" schema="public" table="pulse"/>
            <child column="collection_id" foreignKey="fk_card_collection_id" implied="false" onDeleteCascade="false" schema="public" table="report_card"/>
            <child column="collection_id" foreignKey="fk_dashboard_collection_id" implied="false" onDeleteCascade="false" schema="public" table="report_dashboard"/>
            <child column="collection_id" foreignKey="fk_timeline_collection_id" implied="false" onDeleteCascade="true" schema="public" table="timeline"/>
            <child column="collection_id" foreignKey="fk_transform_collection_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
            <child column="collection_id" foreignKey="fk_workspace_transform_collection_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name of the collection, e.g., 'Q3 Reports'.&quot;,&quot;why&quot;:&quot;Without it, collections cannot be displayed or distinguished in UI lists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.255258784+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text description of the collection's purpose or contents.&quot;,&quot;why&quot;:&quot;Without it, users lack context for what the collection holds, causing confusion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.265847195+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the collection is hidden from active use (true) or visible (false).&quot;,&quot;why&quot;:&quot;Without it, archived collections would appear in normal queries, cluttering results.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.281022132+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'/'::character varying" digits="0" id="4" name="location" nullable="false" remarks="{&quot;what&quot;:&quot;Path-like string indicating the collection's position in a hierarchy, e.g., '/parent/child'.&quot;,&quot;why&quot;:&quot;Without it, hierarchical navigation and breadcrumbs are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.296590493+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="personal_owner_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the individual who owns this collection, if personal.&quot;,&quot;why&quot;:&quot;Without it, personal collections cannot be scoped to a specific user for access control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.316507776+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_collection_personal_owner_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;URL-friendly identifier derived from name, e.g., 'q3-reports'.&quot;,&quot;why&quot;:&quot;Without it, collections cannot be referenced in URLs or API paths.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.333531843+00:00&quot;}" size="510" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="namespace" nullable="true" remarks="{&quot;what&quot;:&quot;Grouping or tenant identifier that scopes the collection, e.g., 'team-a'.&quot;,&quot;why&quot;:&quot;Without it, collections from different namespaces cannot be isolated or filtered.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.357119935+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="authority_level" nullable="true" remarks="{&quot;what&quot;:&quot;Access control level such as 'read', 'write', or 'admin' for this collection.&quot;,&quot;why&quot;:&quot;Without it, permission checks cannot determine allowed actions for a user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.375227242+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of an external entity associated with this collection, format unknown.&quot;,&quot;why&quot;:&quot;Without it, linkage to external systems or objects is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.410489921+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with timezone) when the collection row was created.&quot;,&quot;why&quot;:&quot;Without it, cannot sort by creation date or audit history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.467469819+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="type" nullable="true" remarks="{&quot;what&quot;:&quot;Categorization of the collection, e.g., 'folder', 'dataset', 'dashboard'.&quot;,&quot;why&quot;:&quot;Without it, behavior and rendering cannot vary by collection kind.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.494760605+00:00&quot;}" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="is_sample" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the collection is a sample/demo (true) or real user data (false).&quot;,&quot;why&quot;:&quot;Without it, sample data would be mixed with production data, skewing analytics.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.531593685+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="archive_operation_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the archival operation that archived this collection, if any.&quot;,&quot;why&quot;:&quot;Without it, cannot trace which archive job or process archived it.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.558393529+00:00&quot;}" size="36" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="archived_directly" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating whether the collection was archived directly (true) or via a parent (false/null).&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish direct vs inherited archival state.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.605543800+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="is_remote_synced" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating whether the collection is synced with a remote source (true) or local only (false).&quot;,&quot;why&quot;:&quot;Without it, cannot manage synchronization behavior for remote collections.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.677338170+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="workspace_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the workspace or team that owns this collection, if any.&quot;,&quot;why&quot;:&quot;Without it, collections cannot be scoped to a workspace for access control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:26.716436564+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_collection_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="collection_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="collection_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="idx_collection_location" unique="false">
            <column ascending="true" name="location"/>
         </index>
         <index name="idx_collection_personal_owner_id" unique="false">
            <column ascending="true" name="personal_owner_id"/>
         </index>
         <index name="idx_collection_type" unique="false">
            <column ascending="true" name="type"/>
         </index>
         <index name="idx_collection_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="unique_collection_personal_owner_id" unique="true">
            <column ascending="true" name="personal_owner_id"/>
         </index>
      </table>
      <table name="collection_bookmark" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each bookmark row.&quot;,&quot;why&quot;:&quot;Provides a stable primary key for referencing a specific bookmark.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:33.831449893+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the user who created the bookmark.&quot;,&quot;why&quot;:&quot;Identifies which user owns the bookmark; needed to list a user's saved collections.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:33.877092156+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_collection_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="collection_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the collection being bookmarked.&quot;,&quot;why&quot;:&quot;Identifies the target collection; without it, the bookmark has no referent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:33.893871600+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_collection_bookmark_collection_id" implied="false" onDeleteCascade="true" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the bookmark was created, defaults to now.&quot;,&quot;why&quot;:&quot;Records when the bookmark was added, useful for sorting or auditing user activity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:33.907850359+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="collection_bookmark_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_collection_bookmark_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_collection_bookmark_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_collection_bookmark_user_id_collection_id" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="collection_id"/>
         </index>
      </table>
      <table name="collection_permission_graph_revision" remarks="{&quot;what&quot;:&quot;History of changes to collection permission graphs; each row is one revision.&quot;,&quot;why&quot;:&quot;Without it, permission changes cannot be audited or reverted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:46.986573295+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the revision; primary key.&quot;,&quot;why&quot;:&quot;Without it, revisions cannot be uniquely referenced or linked.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:46.998207125+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="before" nullable="false" remarks="{&quot;what&quot;:&quot;Snapshot of the permission graph prior to the change, in text form.&quot;,&quot;why&quot;:&quot;Without it, the previous state is unknown, making rollback impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:47.016454890+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="after" nullable="false" remarks="{&quot;what&quot;:&quot;Snapshot of the permission graph after the change, in text form.&quot;,&quot;why&quot;:&quot;Without it, the new state is unknown, so the change cannot be applied or compared.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:47.026102519+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who made this revision.&quot;,&quot;why&quot;:&quot;Without it, the author of the change is unknown, breaking accountability and audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:47.037183730+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_collection_revision_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone indicating when the revision was recorded.&quot;,&quot;why&quot;:&quot;Without it, the order of revisions is unknown, preventing chronological audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:47.052834015+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="remark" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text note explaining the reason for the revision.&quot;,&quot;why&quot;:&quot;Without it, the intent behind a change is lost, making future decisions harder.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:47.067642536+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="collection_revision_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_collection_permission_graph_revision_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="comment" remarks="{&quot;what&quot;:&quot;A record of user feedback on a target object, with optional parent for threading.&quot;,&quot;why&quot;:&quot;Without it, user feedback and discussion threads cannot be persisted or queried.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.572274480+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each comment.&quot;,&quot;why&quot;:&quot;Without it, comments cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.600164938+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="parent_comment_id" foreignKey="fk_comment_parent_comment_id" implied="false" onDeleteCascade="true" schema="public" table="comment"/>
            <child column="comment_id" foreignKey="fk_comment_reaction_comment_id" implied="false" onDeleteCascade="true" schema="public" table="comment_reaction"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="parent_comment_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the comment this is a reply to; null for top-level.&quot;,&quot;why&quot;:&quot;Without it, reply threads cannot be reconstructed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.621913346+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_comment_parent_comment_id" implied="false" onDeleteCascade="true" schema="public" table="comment"/>
         </column>
         <column autoUpdated="false" defaultValue="'document'::character varying" digits="0" id="2" name="target_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of the object the comment is attached to, e.g. 'document'.&quot;,&quot;why&quot;:&quot;Without it, the comment's target is ambiguous across multiple object types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.634199297+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="target_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the object (of target_type) this comment belongs to.&quot;,&quot;why&quot;:&quot;Without it, comments cannot be linked to their parent object.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.646794512+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="child_target_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional ID of a sub-part within the target, e.g. a line or block.&quot;,&quot;why&quot;:&quot;Without it, comments on specific sub-elements cannot be distinguished from general ones.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.657601822+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who wrote the comment.&quot;,&quot;why&quot;:&quot;Without it, authorship and permissions cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.669580318+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_comment_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="content" nullable="false" remarks="{&quot;what&quot;:&quot;Plain-text body of the comment.&quot;,&quot;why&quot;:&quot;Without it, there is nothing to display or moderate.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.679571692+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="is_resolved" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the comment thread is resolved.&quot;,&quot;why&quot;:&quot;Without it, resolved state is unknown, so moderators cannot filter open issues.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.692082914+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the comment was created.&quot;,&quot;why&quot;:&quot;Without it, ordering and time-based queries are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.703963056+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last edit to the comment.&quot;,&quot;why&quot;:&quot;Without it, edit history and stale content cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.717752079+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="deleted_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the comment was soft-deleted; null if active.&quot;,&quot;why&quot;:&quot;Without it, deleted comments cannot be hidden while preserving history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.735960996+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="content_html" nullable="true" remarks="{&quot;what&quot;:&quot;Rendered HTML version of the comment content.&quot;,&quot;why&quot;:&quot;Without it, rendering must be done on every read, slowing display.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:12.748607026+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="comment_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_comment_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_comment_entity" unique="false">
            <column ascending="true" name="target_type"/>
            <column ascending="true" name="target_id"/>
         </index>
         <index name="idx_comment_parent_comment_id" unique="false">
            <column ascending="true" name="parent_comment_id"/>
         </index>
      </table>
      <table name="comment_reaction" remarks="{&quot;what&quot;:&quot;A record of a user's emoji reaction to a comment.&quot;,&quot;why&quot;:&quot;Without it, reactions cannot be tracked, so comment reaction counts and per-user reactions are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:57.371814727+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each reaction row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:57.388031854+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="comment_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the comment that received the reaction.&quot;,&quot;why&quot;:&quot;Without it, reactions cannot be associated with a specific comment, breaking reaction counts per comment.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:57.412367779+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_comment_reaction_comment_id" implied="false" onDeleteCascade="true" schema="public" table="comment"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who gave the reaction.&quot;,&quot;why&quot;:&quot;Without it, we cannot know who reacted, preventing per-user reaction state and duplicate prevention.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:57.423772153+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_comment_reaction_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="emoji" nullable="false" remarks="{&quot;what&quot;:&quot;Emoji character(s) used for the reaction, e.g. '&#55357;&#56397;'.&quot;,&quot;why&quot;:&quot;Without it, the reaction type is unknown, so counts per emoji and display are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:57.448732330+00:00&quot;}" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) when the reaction was created, defaults to current time.&quot;,&quot;why&quot;:&quot;Without it, reaction ordering and time-based analytics are unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:57.459257675+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="comment_reaction_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_comment_reaction_comment_id" unique="false">
            <column ascending="true" name="comment_id"/>
         </index>
         <index name="unique_user_comment_emoji" unique="true">
            <column ascending="true" name="comment_id"/>
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="emoji"/>
         </index>
      </table>
      <table name="connection_impersonations" remarks="{&quot;what&quot;:&quot;Defines which group may impersonate which database connection.&quot;,&quot;why&quot;:&quot;Without it, impersonation permissions between groups and connections are undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:58.739527615+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each impersonation rule.&quot;,&quot;why&quot;:&quot;Provides a stable key for referencing and modifying specific rules.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:58.751035660+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the database connection that can be impersonated.&quot;,&quot;why&quot;:&quot;Specifies the target connection for the impersonation rule.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:58.767234353+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_conn_impersonation_db_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the group that is allowed to impersonate.&quot;,&quot;why&quot;:&quot;Determines which group has the impersonation permission.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:58.793917616+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_conn_impersonation_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="attribute" nullable="true" remarks="{&quot;what&quot;:&quot;Optional text qualifier such as a role name or condition.&quot;,&quot;why&quot;:&quot;Refines the impersonation rule; without it, the rule applies to all contexts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:02:58.808760658+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="connection_impersonations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="conn_impersonation_unique_group_id_db_id" unique="true">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="db_id"/>
         </index>
         <index name="idx_conn_impersonations_db_id" unique="false">
            <column ascending="true" name="db_id"/>
         </index>
         <index name="idx_conn_impersonations_group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
      </table>
      <table name="content_translation" remarks="{&quot;what&quot;:&quot;Translation pairs mapping source strings to localized text per locale.&quot;,&quot;why&quot;:&quot;Without it, content cannot be displayed in multiple languages.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:03.102622551+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each translation row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:03.142118384+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="locale" nullable="false" remarks="{&quot;what&quot;:&quot;Language code such as 'en' or 'fr' for the translation.&quot;,&quot;why&quot;:&quot;Without it, translations cannot be matched to a specific language.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:03.174419426+00:00&quot;}" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="msgid" nullable="false" remarks="{&quot;what&quot;:&quot;Source string in the original language to be translated.&quot;,&quot;why&quot;:&quot;Without it, there is no reference to which text is being translated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:03.238351561+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="msgstr" nullable="false" remarks="{&quot;what&quot;:&quot;Translated text for the given locale and msgid.&quot;,&quot;why&quot;:&quot;Without it, the translation itself is missing, making the row useless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:03.264430001+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="content_translation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="core_session" remarks="{&quot;what&quot;:&quot;A session record for an authenticated user, with a unique ID and hashed key.&quot;,&quot;why&quot;:&quot;Without it, authenticated requests cannot be tied to a user, so every request would require re-authentication.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.248459939+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique session token string, the primary key.&quot;,&quot;why&quot;:&quot;Without it, a session cannot be referenced by its token, breaking session lookup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.292846659+00:00&quot;}" size="254" type="varchar" typeCode="12">
            <child column="session_id" foreignKey="fk_login_history_session_id" implied="false" onDeleteCascade="false" schema="public" table="login_history"/>
            <child column="internal_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="notification"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the authenticated user.&quot;,&quot;why&quot;:&quot;Without it, the session cannot be associated with a user, so authorization fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.322609527+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_session_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Creation time of the session, with time zone.&quot;,&quot;why&quot;:&quot;Without it, session age cannot be computed, so expiry policies based on creation time are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.345429536+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="anti_csrf_token" nullable="true" remarks="{&quot;what&quot;:&quot;Optional opaque token for CSRF protection.&quot;,&quot;why&quot;:&quot;Without it, requests cannot be validated against CSRF, leaving the session vulnerable to forged actions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.362211490+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="key_hashed" nullable="false" remarks="{&quot;what&quot;:&quot;Hashed session key, used to verify the session token.&quot;,&quot;why&quot;:&quot;Without it, the session token cannot be verified securely, so a stolen token would be usable directly.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.373854401+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="auth_identity_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the authentication identity used to log in, if any.&quot;,&quot;why&quot;:&quot;Without it, the authentication provider for the session is unknown, so multi-provider login cannot be distinguished.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.386794311+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_session_auth_identity" implied="false" onDeleteCascade="true" schema="public" table="auth_identity"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="expires_at" nullable="true" remarks="{&quot;what&quot;:&quot;Optional timestamp when the session expires.&quot;,&quot;why&quot;:&quot;Without it, sessions do not expire, so stolen tokens remain valid forever.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.400860360+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="core_session_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_core_session_auth_identity_id" unique="false">
            <column ascending="true" name="auth_identity_id"/>
         </index>
         <index name="idx_core_session_key_hashed" unique="false">
            <column ascending="true" name="key_hashed"/>
         </index>
         <index name="idx_core_session_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="core_user" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each user row.&quot;,&quot;why&quot;:&quot;Needed to reference users from other tables; without it rows cannot be uniquely addressed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.004640490+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="creator_id" foreignKey="fk_action_creator_id" implied="false" onDeleteCascade="false" schema="public" table="action"/>
            <child column="made_public_by_id" foreignKey="fk_action_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="action"/>
            <child column="creator_id" foreignKey="fk_api_key_created_by_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_key"/>
            <child column="updated_by_id" foreignKey="fk_api_key_updated_by_id_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_key"/>
            <child column="user_id" foreignKey="fk_api_key_user_id" implied="false" onDeleteCascade="false" schema="public" table="api_key"/>
            <child column="user_id" foreignKey="fk_general_permissions_revision_user_id" implied="false" onDeleteCascade="false" schema="public" table="application_permissions_revision"/>
            <child column="user_id" foreignKey="fk_auth_identity_core_user_id" implied="false" onDeleteCascade="true" schema="public" table="auth_identity"/>
            <child column="user_id" foreignKey="fk_bookmark_ordering_user_id" implied="false" onDeleteCascade="true" schema="public" table="bookmark_ordering"/>
            <child column="user_id" foreignKey="fk_card_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="card_bookmark"/>
            <child column="personal_owner_id" foreignKey="fk_collection_personal_owner_id" implied="false" onDeleteCascade="true" schema="public" table="collection"/>
            <child column="user_id" foreignKey="fk_collection_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="collection_bookmark"/>
            <child column="user_id" foreignKey="fk_collection_revision_user_id" implied="false" onDeleteCascade="true" schema="public" table="collection_permission_graph_revision"/>
            <child column="creator_id" foreignKey="fk_comment_creator_id" implied="false" onDeleteCascade="true" schema="public" table="comment"/>
            <child column="user_id" foreignKey="fk_comment_reaction_user_id" implied="false" onDeleteCascade="true" schema="public" table="comment_reaction"/>
            <child column="user_id" foreignKey="fk_session_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_session"/>
            <child column="user_id" foreignKey="fk_dashboard_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="dashboard_bookmark"/>
            <child column="user_id" foreignKey="fk_dashboard_favorite_user_id" implied="false" onDeleteCascade="true" schema="public" table="dashboard_favorite"/>
            <child column="creator_id" foreignKey="fk_document_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="document"/>
            <child column="made_public_by_id" foreignKey="fk_document_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="document"/>
            <child column="user_id" foreignKey="fk_document_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="document_bookmark"/>
            <child column="creator_id" foreignKey="fk_glossary_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="glossary"/>
            <child column="user_id" foreignKey="fk_login_history_user_id" implied="false" onDeleteCascade="true" schema="public" table="login_history"/>
            <child column="creator_id" foreignKey="fk_measure_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="measure"/>
            <child column="creator_id" foreignKey="fk_database_creator_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_database"/>
            <child column="user_id" foreignKey="fk_metabot_conversation_user_id" implied="false" onDeleteCascade="false" schema="public" table="metabot_conversation"/>
            <child column="creator_id" foreignKey="fk_metric_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="metric"/>
            <child column="creator_id" foreignKey="fk_model_index_creator_id" implied="false" onDeleteCascade="true" schema="public" table="model_index"/>
            <child column="creator_id" foreignKey="fk_snippet_creator_id" implied="false" onDeleteCascade="true" schema="public" table="native_query_snippet"/>
            <child column="creator_id" foreignKey="fk_notification_creator_id" implied="false" onDeleteCascade="true" schema="public" table="notification"/>
            <child column="user_id" foreignKey="fk_notification_recipient_user_id" implied="false" onDeleteCascade="true" schema="public" table="notification_recipient"/>
            <child column="user_id" foreignKey="fk_permissions_group_membership_user_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group_membership"/>
            <child column="user_id" foreignKey="fk_permissions_revision_user_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_revision"/>
            <child column="creator_id" foreignKey="fk_persisted_info_ref_creator_id" implied="false" onDeleteCascade="false" schema="public" table="persisted_info"/>
            <child column="creator_id" foreignKey="fk_pulse_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="pulse"/>
            <child column="user_id" foreignKey="fk_pulse_channel_recipient_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_channel_recipient"/>
            <child column="user_id" foreignKey="fk_recent_views_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="recent_views"/>
            <child column="initiated_by" foreignKey="fk_remote_sync_task_initiated_by" implied="false" onDeleteCascade="false" schema="public" table="remote_sync_task"/>
            <child column="creator_id" foreignKey="fk_card_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
            <child column="made_public_by_id" foreignKey="fk_card_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
            <child column="owner_id" foreignKey="fk_cardfavorite_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="report_cardfavorite"/>
            <child column="creator_id" foreignKey="fk_dashboard_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
            <child column="made_public_by_id" foreignKey="fk_dashboard_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
            <child column="user_id" foreignKey="fk_revision_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="revision"/>
            <child column="creator_id" foreignKey="fk_secret_ref_user_id" implied="false" onDeleteCascade="false" schema="public" table="secret"/>
            <child column="acknowledged_by" foreignKey="fk_security_advisory_acknowledged_by" implied="false" onDeleteCascade="false" schema="public" table="security_advisory"/>
            <child column="creator_id" foreignKey="fk_segment_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="segment"/>
            <child column="revoked_by_user_id" foreignKey="fk_support_access_grant_log_revoked_by_user_id" implied="false" onDeleteCascade="false" schema="public" table="support_access_grant_log"/>
            <child column="user_id" foreignKey="fk_support_access_grant_log_user_id" implied="false" onDeleteCascade="false" schema="public" table="support_access_grant_log"/>
            <child column="creator_id" foreignKey="fk_timeline_creator_id" implied="false" onDeleteCascade="true" schema="public" table="timeline"/>
            <child column="creator_id" foreignKey="fk_event_creator_id" implied="false" onDeleteCascade="true" schema="public" table="timeline_event"/>
            <child column="creator_id" foreignKey="fk_transform_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="transform"/>
            <child column="owner_user_id" foreignKey="fk_transform_owner_user_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
            <child column="user_id" foreignKey="fk_transform_run_user_id" implied="false" onDeleteCascade="false" schema="public" table="transform_run"/>
            <child column="user_id" foreignKey="fk_user_key_value_user_id" implied="false" onDeleteCascade="false" schema="public" table="user_key_value"/>
            <child column="user_id" foreignKey="fk_user_parameter_value_user_id" implied="false" onDeleteCascade="true" schema="public" table="user_parameter_value"/>
            <child column="user_id" foreignKey="fk_view_log_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="view_log"/>
            <child column="creator_id" foreignKey="fk_workspace_merge_creator_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_merge"/>
            <child column="merging_user_id" foreignKey="fk_workspace_merge_transform_merging_user_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_merge_transform"/>
            <child column="creator_id" foreignKey="fk_workspace_transform_creator_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="email" nullable="false" remarks="{&quot;what&quot;:&quot;Email address used for login and contact; format validated by type.&quot;,&quot;why&quot;:&quot;Primary login credential; without it users cannot authenticate or receive account notifications.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.049694790+00:00&quot;}" size="2147483647" type="citext" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="first_name" nullable="true" remarks="{&quot;what&quot;:&quot;User's given name as free text.&quot;,&quot;why&quot;:&quot;Used for personalization in UI and emails; missing leaves greetings generic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.076567139+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="last_name" nullable="true" remarks="{&quot;what&quot;:&quot;User's family name as free text.&quot;,&quot;why&quot;:&quot;Used for full name display and sorting; missing makes name ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.113663050+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="password" nullable="true" remarks="{&quot;what&quot;:&quot;Hashed password string; never plaintext.&quot;,&quot;why&quot;:&quot;Authenticates login; without it password-based login is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.156916147+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'default'::character varying" digits="0" id="5" name="password_salt" nullable="true" remarks="{&quot;what&quot;:&quot;Salt value appended to password before hashing; default placeholder.&quot;,&quot;why&quot;:&quot;Strengthens hash against rainbow tables; missing salt weakens security.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.188472353+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="date_joined" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when user account was created.&quot;,&quot;why&quot;:&quot;Used for account age and audit; without it creation time is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.242539526+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="last_login" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of most recent successful login.&quot;,&quot;why&quot;:&quot;Shows user activity; missing means never logged in or unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.273335037+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="is_superuser" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating full admin privileges.&quot;,&quot;why&quot;:&quot;Controls access to admin features; without it privilege escalation is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.331582454+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="9" name="is_active" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating account can log in and be used.&quot;,&quot;why&quot;:&quot;Disables accounts without deletion; without it deactivated users could still authenticate.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.592646850+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="reset_token" nullable="true" remarks="{&quot;what&quot;:&quot;One-time token for password reset flow.&quot;,&quot;why&quot;:&quot;Validates password reset requests; missing token prevents secure reset.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.717322429+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="reset_triggered" nullable="true" remarks="{&quot;what&quot;:&quot;Unix timestamp when reset token was issued.&quot;,&quot;why&quot;:&quot;Enforces token expiry; without it old tokens remain valid indefinitely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.765021684+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="12" name="is_qbnewb" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating user is new to QuickBase features.&quot;,&quot;why&quot;:&quot;Triggers onboarding tutorials; without it new users miss guidance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.806654850+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="login_attributes" nullable="true" remarks="{&quot;what&quot;:&quot;JSON string of extra login metadata (IP, device).&quot;,&quot;why&quot;:&quot;Used for security analytics; without it login context is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.821575331+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="updated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of last row update.&quot;,&quot;why&quot;:&quot;Tracks record changes; without it stale data cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.836454410+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="sso_source" nullable="true" remarks="{&quot;what&quot;:&quot;Identity provider name for SSO logins (e.g., Google).&quot;,&quot;why&quot;:&quot;Distinguishes SSO from local auth; without it login method is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:29.860864346+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="locale" nullable="true" remarks="{&quot;what&quot;:&quot;Language/region code like en-US.&quot;,&quot;why&quot;:&quot;Localizes UI and emails; missing forces default language.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.048116904+00:00&quot;}" size="5" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="17" name="is_datasetnewb" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating user is new to dataset features.&quot;,&quot;why&quot;:&quot;Shows dataset onboarding prompts; without it new users miss help.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.069955479+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="settings" nullable="true" remarks="{&quot;what&quot;:&quot;JSON string of user preferences.&quot;,&quot;why&quot;:&quot;Persists UI settings; without it preferences reset each session.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.337465579+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'personal'::character varying" digits="0" id="19" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Account type: personal, team, or service.&quot;,&quot;why&quot;:&quot;Determines permissions and behavior; without it account role is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.439581347+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier linking to an external entity (e.g., org).&quot;,&quot;why&quot;:&quot;Associates user with a tenant or group; missing breaks multi-tenant scoping.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.459259641+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="deactivated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when account was deactivated.&quot;,&quot;why&quot;:&quot;Records deactivation time; without it deactivation status is unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.471728922+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="tenant_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to tenant/organization.&quot;,&quot;why&quot;:&quot;Scopes data to a tenant; missing makes multi-tenant isolation impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.496804060+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_core_user_tenant_id" implied="false" onDeleteCascade="false" schema="public" table="tenant"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="jwt_attributes" nullable="true" remarks="{&quot;what&quot;:&quot;JSON string of claims embedded in JWT tokens.&quot;,&quot;why&quot;:&quot;Customizes token payload; without it JWT lacks user-specific data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.522049041+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="deactivated_with_tenant" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating deactivation was due to tenant deletion.&quot;,&quot;why&quot;:&quot;Explains deactivation reason; without it cause is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.543705429+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="25" name="is_data_analyst" nullable="false" remarks="{&quot;what&quot;:&quot;Flag granting data analyst role permissions.&quot;,&quot;why&quot;:&quot;Controls access to analytics tools; without it role is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:30.564660654+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="core_user_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="core_user_email_key" unique="true">
            <column ascending="true" name="email"/>
         </index>
         <index name="core_user_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="idx_core_user_tenant_id" unique="false">
            <column ascending="true" name="tenant_id"/>
         </index>
         <index name="idx_lower_email" unique="false"/>
         <index name="idx_user_full_name" unique="false"/>
         <index name="idx_user_qualified_id" unique="false"/>
      </table>
      <table name="dashboard_bookmark" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each bookmark row.&quot;,&quot;why&quot;:&quot;Without it, bookmarks cannot be uniquely referenced for deletion or updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.180672059+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who created the bookmark.&quot;,&quot;why&quot;:&quot;Without it, we cannot tell which user owns the bookmark.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.194495009+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="dashboard_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the dashboard that is bookmarked.&quot;,&quot;why&quot;:&quot;Without it, we cannot tell which dashboard is bookmarked.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.209859112+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_bookmark_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the bookmark was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, we cannot order bookmarks by creation time or audit when they were added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:15.223907808+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="dashboard_bookmark_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_dashboard_bookmark_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
         <index name="idx_dashboard_bookmark_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_dashboard_bookmark_user_id_dashboard_id" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="dashboard_id"/>
         </index>
      </table>
      <table name="dashboard_favorite" remarks="{&quot;what&quot;:&quot;Links a user to a dashboard they marked as favorite.&quot;,&quot;why&quot;:&quot;Without it, user-specific favorite lists and quick-access shortcuts are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:14.039553695+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each favorite record.&quot;,&quot;why&quot;:&quot;Serves as primary key for stable row identity and efficient updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:14.058513056+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the user who favorited the dashboard.&quot;,&quot;why&quot;:&quot;Determines which user's favorite set this entry belongs to; without it, favorites are not per-user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:14.099244361+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_favorite_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="dashboard_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the dashboard that was favorited.&quot;,&quot;why&quot;:&quot;Identifies the target dashboard; without it, the favorite has no object.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:14.122410192+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_favorite_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="dashboard_favorite_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_dashboard_favorite_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
         <index name="idx_dashboard_favorite_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_dashboard_favorite_user_id_dashboard_id" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="dashboard_id"/>
         </index>
      </table>
      <table name="dashboard_tab" remarks="{&quot;what&quot;:&quot;A tab within a dashboard, grouping related widgets or views.&quot;,&quot;why&quot;:&quot;Without it, dashboards cannot present multiple named views; navigation between sections is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.446339774+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for the tab; internal primary key.&quot;,&quot;why&quot;:&quot;Without it, no stable reference exists for updates, deletions, or foreign keys.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.469676463+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="dashboard_tab_id" foreignKey="fk_report_dashboardcard_ref_dashboard_tab_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboardcard"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="dashboard_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the dashboard that owns this tab.&quot;,&quot;why&quot;:&quot;Without it, tabs cannot be scoped to a specific dashboard; a tab would be ambiguous across dashboards.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.513415347+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_tab_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Display name of the tab, e.g., 'Overview' or 'Metrics'.&quot;,&quot;why&quot;:&quot;Without it, users cannot distinguish tabs in the UI; navigation becomes meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.530466548+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="position" nullable="false" remarks="{&quot;what&quot;:&quot;Ordering index of the tab within the dashboard, starting at 0.&quot;,&quot;why&quot;:&quot;Without it, tab order is undefined; UI would display tabs in arbitrary sequence.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.543644467+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional identifier of a related entity (e.g., a report or saved view) shown in this tab.&quot;,&quot;why&quot;:&quot;Without it, the tab cannot load the specific entity's data; the tab would be empty or generic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.566409047+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the tab was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ordering by creation time are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.587714336+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to the tab, in UTC.&quot;,&quot;why&quot;:&quot;Without it, concurrent edits cannot be detected; stale data may be shown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:09.609570698+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="dashboard_tab_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="dashboard_tab_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="idx_dashboard_tab_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
      </table>
      <table name="dashboardcard_series" remarks="{&quot;what&quot;:&quot;Links dashboard cards to their series, one row per series per card.&quot;,&quot;why&quot;:&quot;Without it, a dashboard card cannot display multiple series or their ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:17.364743859+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each dashboardcard_series row.&quot;,&quot;why&quot;:&quot;Provides a stable primary key for referencing and updating specific links.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:17.377624368+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="dashboardcard_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the dashboard card that owns this series link.&quot;,&quot;why&quot;:&quot;Identifies which dashboard card the series belongs to; without it, series are orphaned.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:17.397806980+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboardcard_series_ref_dashboardcard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboardcard"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the card (series definition) being displayed on the dashboard.&quot;,&quot;why&quot;:&quot;Determines which series data to fetch; without it, the dashboard card has no content.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:17.417743173+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboardcard_series_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="position" nullable="false" remarks="{&quot;what&quot;:&quot;Integer order of the series within the dashboard card, starting from 0 or 1.&quot;,&quot;why&quot;:&quot;Controls the display order of multiple series; without it, series order is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:17.434386242+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="dashboardcard_series_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_dashboardcard_series_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_dashboardcard_series_dashboardcard_id" unique="false">
            <column ascending="true" name="dashboardcard_id"/>
         </index>
      </table>
      <table name="data_edit_undo_chain" remarks="{&quot;what&quot;:&quot;Log of row-level edits grouped into undo batches; each row is one reversible change.&quot;,&quot;why&quot;:&quot;Without it, edits cannot be reverted or replayed, so accidental changes become permanent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.232756662+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each undo entry.&quot;,&quot;why&quot;:&quot;Without it, entries cannot be referenced individually for undo or redo operations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.253354280+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="batch_num" nullable="false" remarks="{&quot;what&quot;:&quot;Integer grouping edits that were applied together as one undoable action.&quot;,&quot;why&quot;:&quot;Without it, multi-row edits cannot be undone atomically; partial undo would corrupt data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.268068029+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the database table that was edited.&quot;,&quot;why&quot;:&quot;Without it, the target table for the edit is unknown, so undo cannot locate the correct table.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.288539087+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="row_pk" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key value of the edited row, as text to handle any key type.&quot;,&quot;why&quot;:&quot;Without it, the specific row to revert is ambiguous, so undo cannot target the correct record.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.301112821+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who performed the edit.&quot;,&quot;why&quot;:&quot;Without it, audit trails and per-user undo permissions are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.311467248+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="scope" nullable="false" remarks="{&quot;what&quot;:&quot;Scope of the edit, e.g., 'row' or 'batch', indicating granularity of undo.&quot;,&quot;why&quot;:&quot;Without it, undo logic cannot decide whether to revert a single row or a whole batch.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.322431684+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="undoable" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether this edit can be undone (true) or is irreversible (false).&quot;,&quot;why&quot;:&quot;Without it, attempts to undo irreversible operations would corrupt data or fail silently.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.339094621+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="raw_before" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized snapshot of the row's data before the edit; null if not captured.&quot;,&quot;why&quot;:&quot;Without it, the original values are lost, so undo cannot restore the prior state.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.354737370+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="raw_after" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized snapshot of the row's data after the edit; null if not captured.&quot;,&quot;why&quot;:&quot;Without it, redo cannot reapply the change, and audit of the new state is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.378086240+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="undone" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether this edit has been undone (true) or is still active (false).&quot;,&quot;why&quot;:&quot;Without it, the undo chain cannot track which edits are already reverted, leading to double undo or lost redo.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.394236055+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the edit entry was created.&quot;,&quot;why&quot;:&quot;Without it, the order of edits is unknown, so undo sequence cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.412840798+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the edit entry was last modified (e.g., when undone).&quot;,&quot;why&quot;:&quot;Without it, the time of undo/redo actions is unknown, breaking audit trails and conflict resolution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:27.423021985+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="data_edit_undo_chain_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="data_permissions" remarks="A table to store database and table permissions" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each permission record.&quot;,&quot;why&quot;:&quot;Needed to reference a specific permission row; without it, rows cannot be uniquely identified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:21.855651563+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="group_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user group that this permission applies to.&quot;,&quot;why&quot;:&quot;Without it, we cannot know which group is granted the permission; permissions would be ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:21.880822489+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_data_permissions_ref_permissions_group" implied="false" onDeleteCascade="true" schema="public" table="permissions_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="perm_type" nullable="false" remarks="{&quot;what&quot;:&quot;String code that distinguishes permission kinds; allowed values are application-defined.&quot;,&quot;why&quot;:&quot;Without it, we cannot differentiate between different operations or levels of access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:21.935504528+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the database to which this permission applies.&quot;,&quot;why&quot;:&quot;Without it, we cannot scope the permission to a specific database; permissions would be ambiguous across databases.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:21.952999456+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_data_permissions_ref_db_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="schema_name" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the schema within the database; null if permission applies to whole database.&quot;,&quot;why&quot;:&quot;Without it, we cannot restrict permission to a specific schema; null indicates database-wide scope.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:21.968183494+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the table within the schema; null if permission applies to whole schema or database.&quot;,&quot;why&quot;:&quot;Without it, we cannot target a specific table; null indicates broader scope.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:21.983793185+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_data_permissions_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="perm_value" nullable="false" remarks="{&quot;what&quot;:&quot;String holding the permission's specific value, such as a filter or column list; format depends on perm_type.&quot;,&quot;why&quot;:&quot;Without it, the permission lacks its specific constraint or parameter; the permission would be incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:22.000408315+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="data_permissions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_data_permissions_db_id" unique="false">
            <column ascending="true" name="db_id"/>
         </index>
         <index name="idx_data_permissions_group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="idx_data_permissions_group_id_db_id_perm_value" unique="false">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="perm_value"/>
         </index>
         <index name="idx_data_permissions_group_id_db_id_table_id_perm_value" unique="false">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="table_id"/>
            <column ascending="true" name="perm_value"/>
         </index>
         <index name="idx_data_permissions_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
      </table>
      <table name="databasechangelog" remarks="{&quot;what&quot;:&quot;History of database changes applied via Liquibase; one row per execution.&quot;,&quot;why&quot;:&quot;Ensures each change set runs exactly once and provides an audit trail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:44.662751631+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Change set identifier, e.g., '1' or 'create-table'.&quot;,&quot;why&quot;:&quot;Uniquely identifies a change set within a file for tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:44.703490771+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="author" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the change set author.&quot;,&quot;why&quot;:&quot;Part of the unique key (id+author+filename) to distinguish same IDs from different authors.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:44.809493543+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="filename" nullable="false" remarks="{&quot;what&quot;:&quot;Path to the changelog file containing the change set.&quot;,&quot;why&quot;:&quot;Identifies the source file, part of the unique key.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:44.857166031+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="dateexecuted" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the change was applied.&quot;,&quot;why&quot;:&quot;Shows when each change was applied for audit and rollback ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:44.887161955+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="orderexecuted" nullable="false" remarks="{&quot;what&quot;:&quot;Sequential integer order of execution across all changes.&quot;,&quot;why&quot;:&quot;Preserves the order changes were applied, needed for rollback.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.157575729+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="exectype" nullable="false" remarks="{&quot;what&quot;:&quot;Execution status, e.g., EXECUTED, FAILED, RERAN.&quot;,&quot;why&quot;:&quot;Indicates whether the change was applied successfully or needs attention.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.180450480+00:00&quot;}" size="10" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="md5sum" nullable="true" remarks="{&quot;what&quot;:&quot;MD5 checksum of the change set content.&quot;,&quot;why&quot;:&quot;Detects if a change set was modified after being applied.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.196657176+00:00&quot;}" size="35" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Short description of the change set's purpose.&quot;,&quot;why&quot;:&quot;Provides human-readable context for what the change does.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.220750353+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="comments" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form comments from the change set.&quot;,&quot;why&quot;:&quot;Adds extra context for developers and auditors.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.234581532+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="tag" nullable="true" remarks="{&quot;what&quot;:&quot;Tag name assigned to the change set.&quot;,&quot;why&quot;:&quot;Allows marking rollback points or release versions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.253312329+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="liquibase" nullable="true" remarks="{&quot;what&quot;:&quot;Liquibase version that executed the change.&quot;,&quot;why&quot;:&quot;Tracks tool version for compatibility and debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.271525301+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="contexts" nullable="true" remarks="{&quot;what&quot;:&quot;Comma-separated contexts where the change set runs.&quot;,&quot;why&quot;:&quot;Filters which changes apply to which environments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.320363325+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="labels" nullable="true" remarks="{&quot;what&quot;:&quot;Comma-separated labels for the change set.&quot;,&quot;why&quot;:&quot;Provides another filtering mechanism for execution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.334661478+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="deployment_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier for the deployment run that applied the change.&quot;,&quot;why&quot;:&quot;Groups changes applied in a single deployment for tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:45.514245251+00:00&quot;}" size="10" type="varchar" typeCode="12"/>
         <index name="idx_databasechangelog_id_author_filename" unique="true">
            <column ascending="true" name="id"/>
            <column ascending="true" name="author"/>
            <column ascending="true" name="filename"/>
         </index>
      </table>
      <table name="db_router" remarks="{&quot;what&quot;:&quot;Maps user attribute values to target database IDs.&quot;,&quot;why&quot;:&quot;Routes each request to the database that owns the user's data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:18.111667285+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each routing rule.&quot;,&quot;why&quot;:&quot;Uniquely identifies a routing rule for updates and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:18.125505762+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="database_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the database that handles the user attribute.&quot;,&quot;why&quot;:&quot;Determines which database serves requests for a given user attribute.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:18.138536756+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_db_router_database_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_attribute" nullable="false" remarks="{&quot;what&quot;:&quot;User property value (e.g., tenant ID) that selects a database.&quot;,&quot;why&quot;:&quot;Without it, requests cannot be routed to the correct database.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:18.179411624+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="db_router_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="db_router_database_id_key" unique="true">
            <column ascending="true" name="database_id"/>
         </index>
      </table>
      <table name="dependency" remarks="A table to track dependencies between Metabase entities" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique identifier for each dependency record.&quot;,&quot;why&quot;:&quot;Provides a stable key for referencing and updating a specific dependency.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:24.343550832+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="from_entity_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of the source entity (e.g., 'table', 'view') for polymorphic lookup.&quot;,&quot;why&quot;:&quot;Distinguishes which entity table to join with from_entity_id, since dependencies span multiple types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:24.356146652+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="from_entity_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the source entity within its type's table.&quot;,&quot;why&quot;:&quot;Together with from_entity_type, uniquely identifies the source; without it the dependency has no origin.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:24.376727918+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="to_entity_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of the target entity (e.g., 'table', 'view') for polymorphic lookup.&quot;,&quot;why&quot;:&quot;Distinguishes which entity table to join with to_entity_id, since dependencies span multiple types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:24.390521654+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="to_entity_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the target entity within its type's table.&quot;,&quot;why&quot;:&quot;Together with to_entity_type, uniquely identifies the target; without it the dependency has no destination.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:24.402328219+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="dependency_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_dependency_from" unique="false">
            <column ascending="true" name="from_entity_type"/>
            <column ascending="true" name="from_entity_id"/>
         </index>
         <index name="idx_dependency_to" unique="false">
            <column ascending="true" name="to_entity_type"/>
            <column ascending="true" name="to_entity_id"/>
         </index>
         <index name="idx_unique_dependency" unique="true">
            <column ascending="true" name="from_entity_type"/>
            <column ascending="true" name="from_entity_id"/>
            <column ascending="true" name="to_entity_type"/>
            <column ascending="true" name="to_entity_id"/>
         </index>
      </table>
      <table name="dimension" remarks="{&quot;what&quot;:&quot;Definition of a data dimension, linking a source field to a display name and type.&quot;,&quot;why&quot;:&quot;Without it, analytics queries lack a catalog of available dimensions and their properties.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.125308918+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the dimension row.&quot;,&quot;why&quot;:&quot;Needed as a stable reference from fact tables and other metadata.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.339265114+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the source field this dimension is built from.&quot;,&quot;why&quot;:&quot;Links the dimension to its origin column; without it, the mapping is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.462814546+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dimension_ref_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable label for the dimension, e.g., 'Product Category'.&quot;,&quot;why&quot;:&quot;Used in reports and UI; without it, users cannot identify the dimension.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.494218680+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Data type of the dimension values, e.g., 'string', 'numeric'.&quot;,&quot;why&quot;:&quot;Determines formatting and aggregation rules; without it, processing is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.615967132+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="human_readable_field_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of a field that provides a readable label for the dimension's values.&quot;,&quot;why&quot;:&quot;Enables mapping codes to display names; without it, only raw values are available.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.711893859+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dimension_displayfk_ref_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) when the dimension row was created.&quot;,&quot;why&quot;:&quot;Needed for auditing and tracking when dimensions were added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.780200107+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (with time zone) of the last modification to the dimension row.&quot;,&quot;why&quot;:&quot;Shows staleness; without it, change detection is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.801137849+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the entity (e.g., table) this dimension belongs to.&quot;,&quot;why&quot;:&quot;Scopes dimensions to a specific entity; without it, dimensions from different entities could conflict.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:07:55.822623173+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="dimension_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="dimension_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="idx_dimension_field_id" unique="false">
            <column ascending="true" name="field_id"/>
         </index>
         <index name="idx_dimension_human_readable_field_id" unique="false">
            <column ascending="true" name="human_readable_field_id"/>
         </index>
         <index name="unique_dimension_field_id" unique="true">
            <column ascending="true" name="field_id"/>
         </index>
      </table>
      <table name="document" remarks="{&quot;what&quot;:&quot;A document record with metadata, optional content, and sharing flags.&quot;,&quot;why&quot;:&quot;Without it, documents cannot be persisted or associated with users and collections.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.780962705+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the document row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be referenced or joined uniquely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.800482694+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="document_id" foreignKey="fk_document_bookmark_document_id" implied="false" onDeleteCascade="true" schema="public" table="document_bookmark"/>
            <child column="document_id" foreignKey="fk_report_card_document_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable title of the document, e.g., 'Q3 Report'.&quot;,&quot;why&quot;:&quot;Without it, users cannot distinguish documents in lists or search results.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.813582599+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the document row was inserted.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ordering by creation time are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.826151206+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="document" nullable="true" remarks="{&quot;what&quot;:&quot;Full text content of the document; may be null if only metadata.&quot;,&quot;why&quot;:&quot;Without it, the document's body is unavailable for display or processing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.843837843+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="content_type" nullable="false" remarks="{&quot;what&quot;:&quot;MIME type or format of the document, e.g., 'text/markdown'.&quot;,&quot;why&quot;:&quot;Without it, clients cannot decide how to render or parse the document.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.861177676+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the account that created the document.&quot;,&quot;why&quot;:&quot;Without it, ownership and access control cannot be enforced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.874484486+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_document_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last modification to any column.&quot;,&quot;why&quot;:&quot;Without it, change tracking and optimistic concurrency checks fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.897590328+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the collection or folder this document belongs to; null if unassigned.&quot;,&quot;why&quot;:&quot;Without it, documents cannot be grouped or navigated hierarchically.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.934970387+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_document_ref_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the document is hidden from normal views.&quot;,&quot;why&quot;:&quot;Without it, archived documents would appear in active lists, breaking user expectations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.950090036+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="archived_directly" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating the document was archived by direct action, not via parent collection.&quot;,&quot;why&quot;:&quot;Without it, the reason for archival is ambiguous, affecting restore behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.971338390+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Single-character code identifying the entity type, e.g., 'D' for document.&quot;,&quot;why&quot;:&quot;Without it, polymorphic references to other entities cannot be resolved.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:49.996253378+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="last_viewed_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the most recent view by any user.&quot;,&quot;why&quot;:&quot;Without it, recency-based sorting or 'recently viewed' features are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.019349302+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="12" name="view_count" nullable="false" remarks="{&quot;what&quot;:&quot;Total number of times the document has been viewed.&quot;,&quot;why&quot;:&quot;Without it, popularity metrics and analytics are unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.040593559+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="collection_position" nullable="true" remarks="{&quot;what&quot;:&quot;Ordinal position of the document within its collection, starting at 0.&quot;,&quot;why&quot;:&quot;Without it, manual ordering of documents in a collection is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.059178016+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="14" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the dependency analysis run on this document; 0 means none.&quot;,&quot;why&quot;:&quot;Without it, stale analysis results cannot be detected or invalidated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.079383841+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="public_uuid" nullable="true" remarks="{&quot;what&quot;:&quot;UUID string used for public sharing links; null if not shared.&quot;,&quot;why&quot;:&quot;Without it, public access cannot be granted or revoked.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.092553430+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="made_public_by_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the person who made the document public.&quot;,&quot;why&quot;:&quot;Without it, audit trail for public sharing is incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.120354127+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_document_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="public_uuid_prefix" nullable="true" remarks="{&quot;what&quot;:&quot;Short prefix of the public UUID for display or routing.&quot;,&quot;why&quot;:&quot;Without it, shortened public links cannot be generated or validated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:50.133121408+00:00&quot;}" size="36" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="document_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="document_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="idx_document_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_document_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_document_dependency_analysis_version" unique="false">
            <column ascending="true" name="dependency_analysis_version"/>
         </index>
         <index name="idx_document_made_public_by_id" unique="false">
            <column ascending="true" name="made_public_by_id"/>
         </index>
         <index name="idx_document_public_uuid" unique="true">
            <column ascending="true" name="public_uuid"/>
         </index>
         <index name="idx_document_public_uuid_prefix" unique="false">
            <column ascending="true" name="public_uuid_prefix"/>
         </index>
      </table>
      <table name="document_bookmark" remarks="{&quot;what&quot;:&quot;A many-to-many relation between users and documents, each row a saved bookmark.&quot;,&quot;why&quot;:&quot;Without it, users cannot persist a list of documents to revisit; the link is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:06.198623887+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this bookmark row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely addressed for updates or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:06.213266099+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the user who saved the bookmark.&quot;,&quot;why&quot;:&quot;Without it, the bookmark cannot be attributed to a specific user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:06.233863818+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_document_bookmark_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="document_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the document that is bookmarked.&quot;,&quot;why&quot;:&quot;Without it, the bookmark has no target document.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:06.283296758+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_document_bookmark_document_id" implied="false" onDeleteCascade="true" schema="public" table="document"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the bookmark was created.&quot;,&quot;why&quot;:&quot;Without it, bookmark recency and ordering are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:06.307824207+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="document_bookmark_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_document_bookmark_document_id" unique="false">
            <column ascending="true" name="document_id"/>
         </index>
         <index name="idx_document_bookmark_user_document_unique" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="document_id"/>
         </index>
         <index name="idx_document_bookmark_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="field_usage" remarks="{&quot;what&quot;:&quot;One row per field used in a query execution, with usage details.&quot;,&quot;why&quot;:&quot;Without it, there is no record of how fields are used across queries, making impact analysis of field changes impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.725639884+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this usage row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.836308970+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="field_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the field that was used in the query.&quot;,&quot;why&quot;:&quot;Without it, you cannot know which field the usage record applies to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.858166963+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_field_usage_field_id_metabase_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="query_execution_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the query execution in which the field was used.&quot;,&quot;why&quot;:&quot;Without it, you cannot associate the usage with a specific query run.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.883618674+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_field_usage_query_execution_id" implied="false" onDeleteCascade="true" schema="public" table="query_execution"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="used_in" nullable="false" remarks="{&quot;what&quot;:&quot;Query section where the field appears: filter, aggregation, breakout, etc.&quot;,&quot;why&quot;:&quot;Without it, you cannot distinguish which part of the query the field influenced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.904099343+00:00&quot;}" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="filter_op" nullable="true" remarks="{&quot;what&quot;:&quot;Comparison operator used when the field is in a filter, e.g., =, &gt;, contains.&quot;,&quot;why&quot;:&quot;Without it, filter usage lacks the operator, so you cannot analyze filter patterns or replicate the condition.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.927021128+00:00&quot;}" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="aggregation_function" nullable="true" remarks="{&quot;what&quot;:&quot;Aggregate function applied to the field, e.g., sum, avg, count.&quot;,&quot;why&quot;:&quot;Without it, you cannot know how the field was aggregated, making usage analysis incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.948334403+00:00&quot;}" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="breakout_temporal_unit" nullable="true" remarks="{&quot;what&quot;:&quot;Temporal unit for a breakout, e.g., day, week, month.&quot;,&quot;why&quot;:&quot;Without it, you cannot know the time granularity of a breakout, losing query intent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:17.975831818+00:00&quot;}" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="breakout_binning_strategy" nullable="true" remarks="{&quot;what&quot;:&quot;Binning strategy for a breakout, e.g., equal width, quantile.&quot;,&quot;why&quot;:&quot;Without it, you cannot know how numeric values were grouped, affecting analysis of usage.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:18.004176244+00:00&quot;}" size="25" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="breakout_binning_num_bins" nullable="true" remarks="{&quot;what&quot;:&quot;Number of bins used in the binning strategy.&quot;,&quot;why&quot;:&quot;Without it, the binning configuration is incomplete, so you cannot reproduce the breakout.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:18.029176846+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="breakout_binning_bin_width" nullable="true" remarks="{&quot;what&quot;:&quot;Width of each bin in the binning strategy.&quot;,&quot;why&quot;:&quot;Without it, the binning configuration is incomplete, so you cannot reproduce the breakout.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:18.058812251+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of when the usage was recorded.&quot;,&quot;why&quot;:&quot;Without it, you cannot know when the usage occurred, losing temporal context for analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:18.093586527+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="field_usage_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_field_usage_field_id" unique="false">
            <column ascending="true" name="field_id"/>
         </index>
         <index name="idx_field_usage_query_execution_id" unique="false">
            <column ascending="true" name="query_execution_id"/>
         </index>
      </table>
      <table name="glossary" remarks="{&quot;what&quot;:&quot;A glossary of domain terms and their definitions.&quot;,&quot;why&quot;:&quot;Without it, term meanings are undocumented and ambiguous across the codebase.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.542665144+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique per glossary row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely identified for updates or joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.564726236+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="term" nullable="false" remarks="{&quot;what&quot;:&quot;The term being defined; a short phrase, e.g., 'idempotent'.&quot;,&quot;why&quot;:&quot;Without it, the definition has no subject to attach to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.586876554+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="definition" nullable="false" remarks="{&quot;what&quot;:&quot;The full explanation of the term in plain language.&quot;,&quot;why&quot;:&quot;Without it, the term's meaning is unknown to readers.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.611182607+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of row creation, with timezone, set to now() on insert.&quot;,&quot;why&quot;:&quot;Without it, audit history and ordering of glossary additions is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.648057925+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last modification, with timezone, defaults to now().&quot;,&quot;why&quot;:&quot;Without it, you cannot tell when a definition was last revised.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.669089557+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="13371338" digits="0" id="5" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the creator; defaults to 13371338.&quot;,&quot;why&quot;:&quot;Without it, you cannot trace who introduced the term.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:33.694649466+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_glossary_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="glossary_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="glossary_term_key" unique="true">
            <column ascending="true" name="term"/>
         </index>
         <index name="idx_glossary_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
      </table>
      <table name="http_action" remarks="An http api call type of action" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="action_id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each HTTP action; primary key.&quot;,&quot;why&quot;:&quot;Without it, actions cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:07.729185852+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_http_action_ref_action_id" implied="false" onDeleteCascade="true" schema="public" table="action"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="template" nullable="false" remarks="{&quot;what&quot;:&quot;Text template used to generate the HTTP request or response content.&quot;,&quot;why&quot;:&quot;Without it, the action has no payload or format to send.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:07.796499308+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="response_handle" nullable="true" remarks="{&quot;what&quot;:&quot;Name or reference to a handler for successful responses; nullable.&quot;,&quot;why&quot;:&quot;Without it, successful responses have no defined processing path.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:07.813806100+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="error_handle" nullable="true" remarks="{&quot;what&quot;:&quot;Name or reference to a handler for error responses; nullable.&quot;,&quot;why&quot;:&quot;Without it, error responses have no defined fallback or handling.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:07.837512251+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="action_id" sequenceNumberInPK="1"/>
         <index name="pk_http_action" unique="true">
            <column ascending="true" name="action_id"/>
         </index>
      </table>
      <table name="implicit_action" remarks="{&quot;what&quot;:&quot;A record of an automatically triggered action, identified by action_id and classified by kind.&quot;,&quot;why&quot;:&quot;Without it, implicit actions are untracked, so their occurrence and type cannot be audited or analyzed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:01.676379580+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="action_id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each implicit action occurrence.&quot;,&quot;why&quot;:&quot;Without it, individual actions cannot be distinguished or referenced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:01.690334169+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_implicit_action_action_id" implied="false" onDeleteCascade="true" schema="public" table="action"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="kind" nullable="false" remarks="{&quot;what&quot;:&quot;Text label classifying the type of implicit action.&quot;,&quot;why&quot;:&quot;Without it, the action's purpose is ambiguous and actions cannot be grouped by type.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:01.703877213+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="action_id" sequenceNumberInPK="1"/>
         <index name="pk_implicit_action" unique="true">
            <column ascending="true" name="action_id"/>
         </index>
      </table>
      <table name="label" remarks="{&quot;what&quot;:&quot;Defines a label used for categorization or tagging.&quot;,&quot;why&quot;:&quot;Without it, there is no canonical set of labels to reference.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:45.686508262+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique identifier for a label.&quot;,&quot;why&quot;:&quot;Needed to reference labels from other tables; without it, labels cannot be uniquely identified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:45.713617485+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="label_id" foreignKey="fk_card_label_ref_label_id" implied="false" onDeleteCascade="true" schema="public" table="card_label"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable label text, e.g. 'Urgent'.&quot;,&quot;why&quot;:&quot;Shown in UI; without it, the label has no display text.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:45.752299457+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;URL-safe unique string, e.g. 'urgent'.&quot;,&quot;why&quot;:&quot;Used in URLs/API lookups; without it, references are ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:45.808899850+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="icon" nullable="true" remarks="{&quot;what&quot;:&quot;Optional icon name or path for the label.&quot;,&quot;why&quot;:&quot;Provides visual cue in UI; without it, labels are text-only.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:45.825022024+00:00&quot;}" size="128" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="label_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_label_slug" unique="false">
            <column ascending="true" name="slug"/>
         </index>
         <index name="label_slug_key" unique="true">
            <column ascending="true" name="slug"/>
         </index>
      </table>
      <table name="login_history" remarks="{&quot;what&quot;:&quot;Records of user login attempts with device and network context.&quot;,&quot;why&quot;:&quot;Without it, access events cannot be audited or analyzed for security threats.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.772414850+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each login event.&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-23T00:03:57.789461230+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;Moment the login event occurred, in UTC with timezone.&quot;,&quot;why&quot;:&quot;Without it, order and timing of logins is unknown, breaking audit trails and anomaly detection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.827170928+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Internal ID of the user account attempting login.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute logins to a specific user, making per-user security review impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.839238317+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_login_history_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="session_id" nullable="true" remarks="{&quot;what&quot;:&quot;Opaque token assigned to the authenticated session, if login succeeded.&quot;,&quot;why&quot;:&quot;Without it, cannot link login event to subsequent session activity or revoke sessions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.852446685+00:00&quot;}" size="254" type="varchar" typeCode="12">
            <parent column="id" foreignKey="fk_login_history_session_id" implied="false" onDeleteCascade="false" schema="public" table="core_session"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="device_id" nullable="false" remarks="{&quot;what&quot;:&quot;Short code identifying the device type or class (e.g., 'M', 'D', 'T').&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish device categories for risk scoring or device-specific policies.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.871921836+00:00&quot;}" size="36" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="device_description" nullable="false" remarks="{&quot;what&quot;:&quot;Free-text description of the device, such as browser and OS.&quot;,&quot;why&quot;:&quot;Without it, support staff cannot identify the exact client used, hindering troubleshooting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.883513119+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ip_address" nullable="false" remarks="{&quot;what&quot;:&quot;Source IP address of the login request, in dotted-decimal or IPv6 format.&quot;,&quot;why&quot;:&quot;Without it, cannot geolocate or block malicious sources, weakening security monitoring.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:57.900054226+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="login_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_session_id" unique="false">
            <column ascending="true" name="session_id"/>
         </index>
         <index name="idx_timestamp" unique="false">
            <column ascending="true" name="timestamp"/>
         </index>
         <index name="idx_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="idx_user_id_device_id" unique="false">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="device_id"/>
         </index>
         <index name="idx_user_id_timestamp" unique="false">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="timestamp"/>
         </index>
      </table>
      <table name="measure" remarks="{&quot;what&quot;:&quot;Definitions of computed metrics, each tied to a table and entity.&quot;,&quot;why&quot;:&quot;Without it, metrics cannot be defined, versioned, or shared across the system.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.672818693+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each measure row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced by foreign keys or updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.786819904+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer identifier of the database table the measure is defined on.&quot;,&quot;why&quot;:&quot;Without it, the measure's scope is unknown, so it cannot be computed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.812386602+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_measure_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer identifier of the user who created the measure.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trail for the measure is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.859806103+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_measure_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short human-readable name for the measure, e.g., 'Total Revenue'.&quot;,&quot;why&quot;:&quot;Without it, measures cannot be displayed or referenced in UI/API.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.885268535+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text explaining the measure's purpose or calculation.&quot;,&quot;why&quot;:&quot;Without it, context for future maintainers is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.024936024+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the measure is soft-deleted (true) or active (false).&quot;,&quot;why&quot;:&quot;Without it, inactive measures would still appear in lists and computations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.109303773+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="definition" nullable="false" remarks="{&quot;what&quot;:&quot;The actual formula or SQL expression that computes the measure.&quot;,&quot;why&quot;:&quot;Without it, the measure cannot be evaluated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.143878613+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the measure row was inserted.&quot;,&quot;why&quot;:&quot;Without it, creation time is unknown, affecting audit and ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.178529095+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last update to the measure row.&quot;,&quot;why&quot;:&quot;Without it, stale definitions cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.247966211+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Character code identifying the entity type the measure applies to (e.g., 'order').&quot;,&quot;why&quot;:&quot;Without it, measures cannot be filtered by entity type.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.297198485+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="10" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Integer version number for the measure's dependency analysis, incremented on changes.&quot;,&quot;why&quot;:&quot;Without it, cached analysis results may be stale.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.324985346+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="measure_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_measure_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_measure_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
         <index name="measure_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="metabase_cluster_lock" remarks="{&quot;what&quot;:&quot;Named locks for coordinating exclusive operations across Metabase cluster nodes.&quot;,&quot;why&quot;:&quot;Without it, concurrent nodes could run the same scheduled job simultaneously.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:48.762623551+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="lock_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique string identifying a lock; the primary key.&quot;,&quot;why&quot;:&quot;Without it, locks cannot be distinguished or acquired exclusively.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:48.790008479+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <primaryKey column="lock_name" sequenceNumberInPK="1"/>
         <index name="metabase_cluster_lock_pkey" unique="true">
            <column ascending="true" name="lock_name"/>
         </index>
      </table>
      <table name="metabase_database" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the database record.&quot;,&quot;why&quot;:&quot;Needed to reference the database from other tables (queries, permissions).&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.175641629+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="db_id" foreignKey="fk_conn_impersonation_db_id" implied="false" onDeleteCascade="true" schema="public" table="connection_impersonations"/>
            <child column="db_id" foreignKey="fk_data_permissions_ref_db_id" implied="false" onDeleteCascade="true" schema="public" table="data_permissions"/>
            <child column="database_id" foreignKey="fk_db_router_database_id" implied="false" onDeleteCascade="false" schema="public" table="db_router"/>
            <child column="router_database_id" foreignKey="fk_metabase_database_metabase_database_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_database"/>
            <child column="db_id" foreignKey="fk_table_ref_database_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
            <child column="database_id" foreignKey="fk_persisted_info_database_id" implied="false" onDeleteCascade="true" schema="public" table="persisted_info"/>
            <child column="database_id" foreignKey="fk_query_action_database_id" implied="false" onDeleteCascade="true" schema="public" table="query_action"/>
            <child column="database_id" foreignKey="fk_report_card_ref_database_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
            <child column="source_database_id" foreignKey="fk_tranform_source_database_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
            <child column="target_db_id" foreignKey="fk_transform_target_db_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the database record was created.&quot;,&quot;why&quot;:&quot;Needed for auditing and ordering by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.190835422+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this record.&quot;,&quot;why&quot;:&quot;Needed to detect stale configurations and for change tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.203077778+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name for the database, e.g., 'Production DB'.&quot;,&quot;why&quot;:&quot;Needed to display and identify the database in UI and logs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.213655563+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text description of the database.&quot;,&quot;why&quot;:&quot;Provides context for users; without it, purpose of the database may be unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.226478205+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="details" nullable="false" remarks="{&quot;what&quot;:&quot;JSON string containing connection details (host, port, credentials).&quot;,&quot;why&quot;:&quot;Required to establish a connection; without it, cannot connect.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.258880252+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="engine" nullable="false" remarks="{&quot;what&quot;:&quot;Database engine type, e.g., 'postgres', 'mysql'.&quot;,&quot;why&quot;:&quot;Determines which driver and SQL dialect to use; without it, connection is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.287309416+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="is_sample" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if this is Metabase's sample database.&quot;,&quot;why&quot;:&quot;Distinguishes sample data from user-added databases; used to filter sample data from production.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.300877782+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="8" name="is_full_sync" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether to perform full metadata sync.&quot;,&quot;why&quot;:&quot;Controls whether all tables/columns are synced; without it, sync behavior is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.316097271+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text notes about interesting aspects of this database.&quot;,&quot;why&quot;:&quot;Provides context for users; without it, insights may be lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.328427079+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text warnings or limitations about this database.&quot;,&quot;why&quot;:&quot;Alerts users to known issues; without it, users may make incorrect assumptions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.345310583+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'0 50 * * * ? *'::character varying" digits="0" id="11" name="metadata_sync_schedule" nullable="false" remarks="{&quot;what&quot;:&quot;Cron expression for when to sync metadata.&quot;,&quot;why&quot;:&quot;Determines how often schema changes are picked up; without it, sync timing is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.371050613+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="NULL::character varying" digits="0" id="12" name="cache_field_values_schedule" nullable="true" remarks="{&quot;what&quot;:&quot;Cron expression for refreshing cached field values.&quot;,&quot;why&quot;:&quot;Controls when field value caches are updated; without it, cache freshness is unpredictable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.385609225+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="timezone" nullable="true" remarks="{&quot;what&quot;:&quot;Timezone of the database server.&quot;,&quot;why&quot;:&quot;Needed to interpret timestamps correctly; without it, time-based queries may be off.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.409688014+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="is_on_demand" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if field values are fetched on demand.&quot;,&quot;why&quot;:&quot;Controls caching strategy; without it, performance characteristics are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.423624496+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="15" name="auto_run_queries" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if queries can run automatically.&quot;,&quot;why&quot;:&quot;Controls whether users can run queries without manual approval; without it, behavior is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.443727396+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="refingerprint" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating if fingerprinting should be redone.&quot;,&quot;why&quot;:&quot;Used to trigger re-analysis of data; without it, stale fingerprints may persist.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.461099873+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="cache_ttl" nullable="true" remarks="{&quot;what&quot;:&quot;Time-to-live in seconds for cached query results.&quot;,&quot;why&quot;:&quot;Controls cache expiration; without it, cache behavior is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.480461402+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="'complete'::character varying" digits="0" id="18" name="initial_sync_status" nullable="false" remarks="{&quot;what&quot;:&quot;Status of initial metadata sync, e.g., 'complete', 'incomplete'.&quot;,&quot;why&quot;:&quot;Indicates whether the database is ready for querying; without it, readiness is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.496068386+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the user who created this database record.&quot;,&quot;why&quot;:&quot;Needed for ownership and audit trails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.515388032+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_database_creator_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="settings" nullable="true" remarks="{&quot;what&quot;:&quot;JSON string of additional database-specific settings.&quot;,&quot;why&quot;:&quot;Stores extra configuration not covered by other columns; without it, settings are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.532173206+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="dbms_version" nullable="true" remarks="{&quot;what&quot;:&quot;Version string of the database server.&quot;,&quot;why&quot;:&quot;Needed to determine feature compatibility; without it, version-specific behavior is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.546834851+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="22" name="is_audit" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if this database is used for audit logging.&quot;,&quot;why&quot;:&quot;Distinguishes audit databases from regular ones; used for special handling.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.562640972+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="23" name="uploads_enabled" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if file uploads to this database are allowed.&quot;,&quot;why&quot;:&quot;Controls whether users can upload data; without it, upload capability is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.578609571+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="uploads_schema_name" nullable="true" remarks="{&quot;what&quot;:&quot;Schema name where uploaded tables are stored.&quot;,&quot;why&quot;:&quot;Needed to locate uploaded data; without it, uploads cannot be organized.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.601685554+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="uploads_table_prefix" nullable="true" remarks="{&quot;what&quot;:&quot;Prefix for table names created by uploads.&quot;,&quot;why&quot;:&quot;Helps identify uploaded tables; without it, naming is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.615175453+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="26" name="is_attached_dwh" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if this is an attached data warehouse.&quot;,&quot;why&quot;:&quot;Distinguishes attached DWH from regular databases; used for routing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.625896312+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="router_database_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the database used for routing queries.&quot;,&quot;why&quot;:&quot;Needed to route queries to the correct database; without it, routing is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.644893679+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metabase_database_metabase_database_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="provider_name" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the cloud provider, e.g., 'aws'.&quot;,&quot;why&quot;:&quot;Used for provider-specific features; without it, provider-specific behavior is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.661096138+00:00&quot;}" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="workspace_permissions_status" nullable="true" remarks="{&quot;what&quot;:&quot;Status of workspace permissions for this database.&quot;,&quot;why&quot;:&quot;Indicates if permissions are synced; without it, access control may be inconsistent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.678179616+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="write_data_details" nullable="true" remarks="{&quot;what&quot;:&quot;JSON string with write access details (e.g., credentials for writing).&quot;,&quot;why&quot;:&quot;Needed to enable write operations; without it, writes are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:03:51.692208746+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabase_database_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metabase_database_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_unique_metabase_database_router_database_id_name" unique="true">
            <column ascending="true" name="router_database_id"/>
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="metabase_field" remarks="{&quot;what&quot;:&quot;A column in a database table, as modeled by Metabase.&quot;,&quot;why&quot;:&quot;Central entity linking database schema to Metabase's semantic layer.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:34.867889115+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for this field record.&quot;,&quot;why&quot;:&quot;Primary key for stable references and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:34.891585442+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="field_id" foreignKey="fk_dimension_ref_field_id" implied="false" onDeleteCascade="true" schema="public" table="dimension"/>
            <child column="human_readable_field_id" foreignKey="fk_dimension_displayfk_ref_field_id" implied="false" onDeleteCascade="true" schema="public" table="dimension"/>
            <child column="field_id" foreignKey="fk_field_usage_field_id_metabase_field_id" implied="false" onDeleteCascade="true" schema="public" table="field_usage"/>
            <child column="parent_id" foreignKey="fk_field_parent_ref_field_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_field"/>
            <child column="field_id" foreignKey="fk_field_user_setting_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field_user_settings"/>
            <child column="field_id" foreignKey="fk_fieldvalues_ref_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_fieldvalues"/>
            <child column="field_id" foreignKey="fk_metric_important_field_metabase_field_id" implied="false" onDeleteCascade="true" schema="public" table="metric_important_field"/>
            <child column="field_id" foreignKey="fk_query_field_field_id" implied="false" onDeleteCascade="true" schema="public" table="query_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this field record was created.&quot;,&quot;why&quot;:&quot;Audit trail and ordering of field additions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:34.990097462+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last modification to this field record.&quot;,&quot;why&quot;:&quot;Tracks changes for sync and cache invalidation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.090900697+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Original column name from the database, e.g. 'user_id'.&quot;,&quot;why&quot;:&quot;Matches physical schema; used for queries and sync.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.217142083+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="base_type" nullable="false" remarks="{&quot;what&quot;:&quot;Metabase's generic data type (e.g. type/Integer, type/Text).&quot;,&quot;why&quot;:&quot;Determines default behavior for filtering, aggregation, and display.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.246448821+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="semantic_type" nullable="true" remarks="{&quot;what&quot;:&quot;Semantic meaning like type/PK, type/FK, type/Category.&quot;,&quot;why&quot;:&quot;Enables smart features like foreign key linking and human-readable labels.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.277963874+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="6" name="active" nullable="false" remarks="{&quot;what&quot;:&quot;Whether this field is currently visible and usable in queries.&quot;,&quot;why&quot;:&quot;Hides deprecated or hidden fields without deleting them.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.307988996+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text explanation of the field's meaning or usage.&quot;,&quot;why&quot;:&quot;Provides context for analysts; shown in UI and docs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.325356282+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="8" name="preview_display" nullable="false" remarks="{&quot;what&quot;:&quot;Whether to show this field in previews and auto-generated charts.&quot;,&quot;why&quot;:&quot;Controls noise in exploratory views; avoids cluttering with irrelevant fields.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.402017869+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="9" name="position" nullable="false" remarks="{&quot;what&quot;:&quot;Display order of the field within its table.&quot;,&quot;why&quot;:&quot;Determines column ordering in UI and exports.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.422830949+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the metabase_table that contains this field.&quot;,&quot;why&quot;:&quot;Associates field with its parent table; essential for schema navigation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.475027932+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_field_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="parent_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to a parent field, for nested or structured fields.&quot;,&quot;why&quot;:&quot;Supports hierarchical fields like JSON or nested objects.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.491896009+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_field_parent_ref_field_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="display_name" nullable="true" remarks="{&quot;what&quot;:&quot;Human-friendly label shown in UI, overrides name if set.&quot;,&quot;why&quot;:&quot;Allows renaming without changing physical column name.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.557813936+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'normal'::character varying" digits="0" id="13" name="visibility_type" nullable="false" remarks="{&quot;what&quot;:&quot;Visibility mode: normal, sensitive, hidden, etc.&quot;,&quot;why&quot;:&quot;Controls field exposure in queries and dashboards; enforces data privacy.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.660941760+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="fk_target_field_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to the field that this field references (if FK).&quot;,&quot;why&quot;:&quot;Enables automatic joins and semantic understanding of relationships.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.749639622+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="last_analyzed" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of last metadata analysis (e.g., fingerprinting).&quot;,&quot;why&quot;:&quot;Indicates freshness of field statistics; triggers re-analysis when stale.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.972444960+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Notes about interesting aspects of the field's data.&quot;,&quot;why&quot;:&quot;Captures analyst insights for future users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:35.999545989+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Warnings or limitations about the field's data quality.&quot;,&quot;why&quot;:&quot;Prevents misinterpretation; alerts users to known issues.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.048957848+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="fingerprint" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized summary of field's data distribution (e.g., min, max, top values).&quot;,&quot;why&quot;:&quot;Powers auto-binning, smart defaults, and data profiling.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.070089107+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="19" name="fingerprint_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the fingerprint format.&quot;,&quot;why&quot;:&quot;Ensures compatibility when fingerprint algorithm changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.104500141+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="database_type" nullable="false" remarks="{&quot;what&quot;:&quot;Native database type as reported by the DB, e.g. 'varchar'.&quot;,&quot;why&quot;:&quot;Preserves original type for accurate query generation and sync.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.118227825+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="has_field_values" nullable="true" remarks="{&quot;what&quot;:&quot;Indicates if field has a list of known values: 'list', 'search', 'none'.&quot;,&quot;why&quot;:&quot;Drives filter UI: dropdown vs. search vs. free text.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.150374602+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="settings" nullable="true" remarks="{&quot;what&quot;:&quot;JSON-encoded per-field settings (e.g., formatting, currency).&quot;,&quot;why&quot;:&quot;Stores user preferences without schema changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.198846835+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="23" name="database_position" nullable="false" remarks="{&quot;what&quot;:&quot;Original column position in the database table.&quot;,&quot;why&quot;:&quot;Preserves physical order for sync and diffing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.214189698+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="24" name="custom_position" nullable="false" remarks="{&quot;what&quot;:&quot;User-defined ordering override for display.&quot;,&quot;why&quot;:&quot;Allows custom ordering independent of database order.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.281548981+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="effective_type" nullable="true" remarks="{&quot;what&quot;:&quot;Computed type after coercion, e.g. type/DateTime from string.&quot;,&quot;why&quot;:&quot;Determines actual behavior when base_type is overridden.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.298734616+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="coercion_strategy" nullable="true" remarks="{&quot;what&quot;:&quot;Strategy to convert raw data to effective_type (e.g., 'ConvertToUTC').&quot;,&quot;why&quot;:&quot;Defines how to parse and transform values for consistency.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.482268138+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="nfc_path" nullable="true" remarks="{&quot;what&quot;:&quot;Path to nested field in a JSON structure, e.g. '$.user.name'.&quot;,&quot;why&quot;:&quot;Identifies subfields for JSON unfolding.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.528248055+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="28" name="database_required" nullable="false" remarks="{&quot;what&quot;:&quot;Whether the database marks this column as NOT NULL.&quot;,&quot;why&quot;:&quot;Informs validation and query planning; affects required filters.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.548803434+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="29" name="json_unfolding" nullable="false" remarks="{&quot;what&quot;:&quot;Whether to unfold JSON content into separate fields.&quot;,&quot;why&quot;:&quot;Enables querying nested JSON as individual columns.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.636720026+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="30" name="database_is_auto_increment" nullable="false" remarks="{&quot;what&quot;:&quot;Whether the database column is auto-incrementing.&quot;,&quot;why&quot;:&quot;Helps identify surrogate keys and default values.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.782062355+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="31" name="database_indexed" nullable="true" remarks="{&quot;what&quot;:&quot;Whether the database has an index on this column.&quot;,&quot;why&quot;:&quot;Optimizes query performance; informs index recommendations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.826828345+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="database_partitioned" nullable="true" remarks="{&quot;what&quot;:&quot;Whether the column is part of a partition key.&quot;,&quot;why&quot;:&quot;Indicates partitioning strategy for query optimization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.859667682+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="33" name="is_defective_duplicate" nullable="false" remarks="{&quot;what&quot;:&quot;Flag for fields that are duplicates or defective from sync.&quot;,&quot;why&quot;:&quot;Allows hiding broken fields while preserving data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.877952198+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0A434153450A202020205748454E202869735F6465666563746976655F6475706C6963617465203D207472756529205448454E204E554C4C3A3A696E74656765720A20202020454C53450A20202020434153450A20202020202020205748454E2028706172656E745F6964204953204E554C4C29205448454E20300A2020202020202020454C534520706172656E745F69640A20202020454E440A454E44" defaultValueIsBinary="true" digits="0" id="34" name="unique_field_helper" nullable="true" remarks="{&quot;what&quot;:&quot;Internal helper for unique field detection.&quot;,&quot;why&quot;:&quot;Supports deduplication and uniqueness checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.920352015+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="35" name="database_is_pk" nullable="true" remarks="{&quot;what&quot;:&quot;Whether the column is a primary key in the database.&quot;,&quot;why&quot;:&quot;Identifies key fields for joins and row identity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:36.977387362+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="database_is_nullable" nullable="true" remarks="{&quot;what&quot;:&quot;Whether the column allows NULL values in the database.&quot;,&quot;why&quot;:&quot;Informs required filters and data quality checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.024925016+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="37" name="database_is_generated" nullable="true" remarks="{&quot;what&quot;:&quot;Whether the column is generated (computed) by the database.&quot;,&quot;why&quot;:&quot;Prevents writes; indicates read-only nature.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.127547946+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="database_default" nullable="true" remarks="{&quot;what&quot;:&quot;Default value expression from the database schema.&quot;,&quot;why&quot;:&quot;Shows expected value when not provided; aids data understanding.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:37.169874358+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabase_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_field_entity_qualified_id" unique="false"/>
         <index name="idx_field_name_lower" unique="false"/>
         <index name="idx_field_parent_id" unique="false">
            <column ascending="true" name="parent_id"/>
         </index>
         <index name="idx_field_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
         <index name="idx_unique_field" unique="true">
            <column ascending="true" name="name"/>
            <column ascending="true" name="table_id"/>
            <column ascending="true" name="unique_field_helper"/>
         </index>
      </table>
      <table name="metabase_field_user_settings" remarks="Mirror table of metabase_field to keep track of user-set values (only settable fields are mirrored)" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="field_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the field these settings customize.&quot;,&quot;why&quot;:&quot;Uniquely links each settings row to a field; without it, settings cannot be associated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.378700320+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_field_user_setting_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this settings row was created.&quot;,&quot;why&quot;:&quot;Provides audit trail and ordering; without it, creation time is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.390287418+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this settings row.&quot;,&quot;why&quot;:&quot;Tracks changes and supports concurrency checks; without it, staleness is undetectable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.400186426+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="semantic_type" nullable="true" remarks="{&quot;what&quot;:&quot;Semantic meaning of the field, e.g. category, latitude, URL.&quot;,&quot;why&quot;:&quot;Drives Metabase's automatic display and analysis behavior; without it, field semantics are guessed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.414006084+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form explanation of the field's content or purpose.&quot;,&quot;why&quot;:&quot;Shown to users in the UI to clarify field meaning; without it, context is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.425390983+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="display_name" nullable="true" remarks="{&quot;what&quot;:&quot;Custom label shown for the field instead of the raw column name.&quot;,&quot;why&quot;:&quot;Allows user-friendly names without renaming the database column; without it, raw name is used.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.439949498+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="visibility_type" nullable="true" remarks="{&quot;what&quot;:&quot;Controls field visibility, e.g. normal, hidden, sensitive.&quot;,&quot;why&quot;:&quot;Determines whether and how the field appears in queries and results; without it, visibility is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.458212319+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="fk_target_field_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the field this foreign key references.&quot;,&quot;why&quot;:&quot;Defines the relationship target for FK fields; without it, FK relationships are incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.484459098+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="has_field_values" nullable="true" remarks="{&quot;what&quot;:&quot;Indicates how field values are handled, e.g. list, search, none.&quot;,&quot;why&quot;:&quot;Configures the value picker in the query builder; without it, value selection is not optimized.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.499507174+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="effective_type" nullable="true" remarks="{&quot;what&quot;:&quot;Overridden data type for the field, e.g. type/Integer.&quot;,&quot;why&quot;:&quot;Corrects or refines the database type for Metabase's type system; without it, type inference may be wrong.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.514912234+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="coercion_strategy" nullable="true" remarks="{&quot;what&quot;:&quot;Strategy to convert the field's data to the effective type.&quot;,&quot;why&quot;:&quot;Defines how to parse or cast values; without it, type conversion is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.526545690+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Warnings or limitations about the field's data quality.&quot;,&quot;why&quot;:&quot;Alerts users to potential issues; without it, data pitfalls are hidden.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.541692023+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Notes about interesting aspects or usage of the field.&quot;,&quot;why&quot;:&quot;Provides context for analysts; without it, field insights are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.554381136+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="nfc_path" nullable="true" remarks="{&quot;what&quot;:&quot;Path to the field in the NFC (nested field container) hierarchy.&quot;,&quot;why&quot;:&quot;Identifies the field's location in nested structures; without it, nested field navigation is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.568894914+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="json_unfolding" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating whether JSON fields should be unfolded into separate columns.&quot;,&quot;why&quot;:&quot;Controls JSON expansion in queries; without it, JSON handling is not customizable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.584023374+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="settings" nullable="true" remarks="{&quot;what&quot;:&quot;JSON-encoded additional settings for the field.&quot;,&quot;why&quot;:&quot;Stores arbitrary field-specific configuration; without it, extensibility is limited.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.597746538+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="field_id" sequenceNumberInPK="1"/>
         <index name="metabase_field_user_settings_pkey" unique="true">
            <column ascending="true" name="field_id"/>
         </index>
      </table>
      <table name="metabase_fieldvalues" remarks="{&quot;what&quot;:&quot;Cached distinct values for a field, keyed by field_id and hash_key.&quot;,&quot;why&quot;:&quot;Without it, filter dropdowns would need live queries, causing slow UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.150342639+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be referenced or updated individually.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.161239380+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the row was inserted.&quot;,&quot;why&quot;:&quot;Without it, cannot determine age of cached values.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.196208590+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this row.&quot;,&quot;why&quot;:&quot;Without it, cannot know if cached values are stale.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.215510331+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="values" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized representation of the field's distinct values.&quot;,&quot;why&quot;:&quot;Without it, the cache cannot provide the value list, forcing a recompute.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.230711281+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="human_readable_values" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized mapping of raw values to display labels.&quot;,&quot;why&quot;:&quot;Without it, only raw values are shown, losing user-friendly labels.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.249985089+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="field_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the field these values belong to.&quot;,&quot;why&quot;:&quot;Without it, cannot associate cached values with a specific field.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.263256562+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_fieldvalues_ref_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="has_more_values" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating whether additional values exist beyond those stored.&quot;,&quot;why&quot;:&quot;Without it, the UI cannot show a 'load more' option or know the list is incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.281270627+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'full'::character varying" digits="0" id="7" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Category of the cached value set, defaulting to 'full'.&quot;,&quot;why&quot;:&quot;Without it, consumers cannot distinguish a complete list from a truncated one.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.291923997+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="hash_key" nullable="true" remarks="{&quot;what&quot;:&quot;Hash of the query parameters that produced this value set.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish cached results for different filter conditions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.302950766+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="last_used_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last time this cache entry was accessed.&quot;,&quot;why&quot;:&quot;Without it, cannot implement LRU eviction or know which entries are unused.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:05.317812302+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabase_fieldvalues_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_fieldvalues_field_id" unique="false">
            <column ascending="true" name="field_id"/>
         </index>
      </table>
      <table name="metabase_table" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this table record.&quot;,&quot;why&quot;:&quot;Needed as primary key for referencing from other tables and for updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.779679181+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="table_id" foreignKey="fk_data_permissions_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="data_permissions"/>
            <child column="table_id" foreignKey="fk_measure_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="measure"/>
            <child column="table_id" foreignKey="fk_field_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
            <child column="table_id" foreignKey="fk_metric_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metric"/>
            <child column="table_id" foreignKey="fk_query_table_table_id" implied="false" onDeleteCascade="true" schema="public" table="query_table"/>
            <child column="table_id" foreignKey="fk_report_card_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
            <child column="table_id" foreignKey="fk_gtap_table_id" implied="false" onDeleteCascade="true" schema="public" table="sandboxes"/>
            <child column="table_id" foreignKey="fk_segment_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="segment"/>
            <child column="table_id" foreignKey="fk_table_privileges_table_id" implied="false" onDeleteCascade="true" schema="public" table="table_privileges"/>
            <child column="table_id" foreignKey="fk_workspace_input_table_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_input"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when this record was created.&quot;,&quot;why&quot;:&quot;Needed for auditing and ordering by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.791490859+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of the last update to this record.&quot;,&quot;why&quot;:&quot;Needed for change tracking and optimistic locking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.806912026+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the table as it appears in the source database.&quot;,&quot;why&quot;:&quot;Needed to identify the table in queries and UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.820744703+00:00&quot;}" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text describing the table's purpose.&quot;,&quot;why&quot;:&quot;Provides context for users; without it, table purpose is unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.833771888+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="entity_type" nullable="true" remarks="{&quot;what&quot;:&quot;Classification of the table, e.g., 'table', 'view', 'question'.&quot;,&quot;why&quot;:&quot;Needed to distinguish table types for UI and permission logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.852225176+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="active" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean indicating whether the table is currently active and usable.&quot;,&quot;why&quot;:&quot;Inactive tables are hidden or excluded; without it, stale tables appear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.867694045+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the database (Metabase database) this table belongs to.&quot;,&quot;why&quot;:&quot;Needed to associate table with its source database.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.882929520+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_table_ref_database_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="display_name" nullable="true" remarks="{&quot;what&quot;:&quot;Human-friendly name shown in UI, may differ from 'name'.&quot;,&quot;why&quot;:&quot;Needed for user-facing labels; without it, raw name may be cryptic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.902646333+00:00&quot;}" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="visibility_type" nullable="true" remarks="{&quot;what&quot;:&quot;Controls visibility of table, e.g., 'normal', 'hidden', 'technical'.&quot;,&quot;why&quot;:&quot;Needed to filter tables from user views.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.917630727+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="schema" nullable="true" remarks="{&quot;what&quot;:&quot;Database schema (namespace) containing the table.&quot;,&quot;why&quot;:&quot;Needed to fully qualify table name and avoid ambiguity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.931250420+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Notes about interesting aspects of the table.&quot;,&quot;why&quot;:&quot;Provides guidance to users; without it, insights are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.942780418+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Warnings or limitations about the table's data.&quot;,&quot;why&quot;:&quot;Alerts users to potential issues; without it, data may be misinterpreted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.961009834+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="13" name="show_in_getting_started" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean indicating whether to display this table in the 'Getting Started' guide.&quot;,&quot;why&quot;:&quot;Controls onboarding content; without it, new users miss sample tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:24.989405298+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'database'::character varying" digits="0" id="14" name="field_order" nullable="false" remarks="{&quot;what&quot;:&quot;Ordering scheme for fields, e.g., 'database', 'alphabetical'.&quot;,&quot;why&quot;:&quot;Determines field display order; without it, order is unpredictable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.006623425+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'complete'::character varying" digits="0" id="15" name="initial_sync_status" nullable="false" remarks="{&quot;what&quot;:&quot;Status of initial metadata sync, e.g., 'incomplete', 'complete'.&quot;,&quot;why&quot;:&quot;Needed to know if table metadata is fully loaded.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.023173651+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="is_upload" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean indicating whether this table was created via CSV upload.&quot;,&quot;why&quot;:&quot;Distinguishes user-uploaded tables from database tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.036073827+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="database_require_filter" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean indicating whether queries on this table require a filter.&quot;,&quot;why&quot;:&quot;Needed to enforce query safety; without it, expensive queries may run.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.047442232+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="estimated_row_count" nullable="true" remarks="{&quot;what&quot;:&quot;Approximate number of rows in the table.&quot;,&quot;why&quot;:&quot;Used for query planning and UI display; without it, size unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.066815638+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="19" name="view_count" nullable="false" remarks="{&quot;what&quot;:&quot;Number of times this table has been viewed.&quot;,&quot;why&quot;:&quot;Tracks popularity; used for sorting or recommendations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.083497412+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="20" name="is_defective_duplicate" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean indicating whether this table is a defective duplicate of another.&quot;,&quot;why&quot;:&quot;Needed to hide or flag duplicates; without it, confusion arises.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.101641588+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0A434153450A202020205748454E202869735F6465666563746976655F6475706C6963617465203D207472756529205448454E204E554C4C3A3A6368617261637465722076617279696E670A20202020454C534520434F414C4553434528736368656D612C2027273A3A6368617261637465722076617279696E67290A454E44" defaultValueIsBinary="true" digits="0" id="21" name="unique_table_helper" nullable="true" remarks="{&quot;what&quot;:&quot;Helper string to ensure uniqueness of table names across databases.&quot;,&quot;why&quot;:&quot;Needed to avoid name collisions; without it, ambiguous references.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.119140751+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="deactivated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when table was deactivated.&quot;,&quot;why&quot;:&quot;Needed to know when table became inactive.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.130633851+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="23" name="archived_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when table was archived.&quot;,&quot;why&quot;:&quot;Needed to know when table was archived for cleanup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.143731002+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="is_writable" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean indicating whether the table allows write operations.&quot;,&quot;why&quot;:&quot;Needed to control data modification permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.156572376+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'unconfigured'::character varying" digits="0" id="25" name="data_authority" nullable="false" remarks="{&quot;what&quot;:&quot;Authority level for data, e.g., 'unconfigured', 'official'.&quot;,&quot;why&quot;:&quot;Needed to indicate data trustworthiness.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.190145505+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="data_source" nullable="true" remarks="{&quot;what&quot;:&quot;Source of the data, e.g., 'system', 'user'.&quot;,&quot;why&quot;:&quot;Needed to understand data origin.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.202618962+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="data_layer" nullable="true" remarks="{&quot;what&quot;:&quot;Layer in data architecture, e.g., 'raw', 'staging'.&quot;,&quot;why&quot;:&quot;Needed to classify data processing stage.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.223120897+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="owner_email" nullable="true" remarks="{&quot;what&quot;:&quot;Email of the user who owns this table.&quot;,&quot;why&quot;:&quot;Needed for ownership and contact.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.238301210+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="owner_user_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to the user who owns this table.&quot;,&quot;why&quot;:&quot;Needed to link to user account.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.261869708+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="30" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to the collection this table belongs to.&quot;,&quot;why&quot;:&quot;Needed for organization and permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.271093433+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metabase_table_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="31" name="is_published" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean indicating whether this table is published to a wider audience.&quot;,&quot;why&quot;:&quot;Controls visibility; without it, unpublished tables may be exposed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.287240966+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="transform_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to a transformation definition applied to this table.&quot;,&quot;why&quot;:&quot;Needed to track data transformations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:25.307241141+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metabase_table_transform_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabase_table_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metabase_table_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_metabase_table_db_deactivated" unique="false">
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="deactivated_at"/>
         </index>
         <index name="idx_metabase_table_db_id_schema" unique="false">
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="schema"/>
         </index>
         <index name="idx_metabase_table_show_in_getting_started" unique="false">
            <column ascending="true" name="show_in_getting_started"/>
         </index>
         <index name="idx_metabase_table_transform_id" unique="false">
            <column ascending="true" name="transform_id"/>
         </index>
         <index name="idx_table_db_id" unique="false">
            <column ascending="true" name="db_id"/>
         </index>
         <index name="idx_uniq_table_db_id_schema_name" unique="true">
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="schema"/>
            <column ascending="true" name="name"/>
         </index>
         <index name="idx_uniq_table_db_id_schema_name_2col" unique="true">
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="name"/>
         </index>
         <index name="idx_unique_table" unique="true">
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="name"/>
            <column ascending="true" name="unique_table_helper"/>
         </index>
      </table>
      <table name="metabot" remarks="{&quot;what&quot;:&quot;A bot configuration tied to an entity, with optional collection grouping.&quot;,&quot;why&quot;:&quot;Without it, bot instances cannot be stored, retrieved, or associated with entities.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.424044649+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each metabot row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or relationships.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.438996736+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="metabot_id" foreignKey="fk_metabot_prompt_metabot_id" implied="false" onDeleteCascade="true" schema="public" table="metabot_prompt"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable label for the metabot, used in UI and logs.&quot;,&quot;why&quot;:&quot;Without it, metabots cannot be distinguished by name in user-facing lists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.454713347+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text describing the metabot's purpose or behavior.&quot;,&quot;why&quot;:&quot;Without it, the metabot's intended function is undocumented for humans.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.468849138+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;External entity identifier (e.g., UUID) that this metabot is bound to.&quot;,&quot;why&quot;:&quot;Without it, the metabot's target entity is unknown, breaking association.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.479576201+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of row creation, set to current time on insert.&quot;,&quot;why&quot;:&quot;Without it, there is no record of when the metabot was added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.494273459+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of the last modification, set to current time on insert.&quot;,&quot;why&quot;:&quot;Without it, stale or outdated metabot configurations cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.510279326+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="use_verified_content" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag indicating whether only verified content is used, default false.&quot;,&quot;why&quot;:&quot;Without it, the metabot's content filtering behavior is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.536494020+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the collection this metabot belongs to, if any.&quot;,&quot;why&quot;:&quot;Without it, the metabot's membership in a collection is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:15.550536579+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabot_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="metabot_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="metabot_conversation" remarks="{&quot;what&quot;:&quot;A conversation session between a user and the bot.&quot;,&quot;why&quot;:&quot;Groups messages and state per user for context.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:21.954332501+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique identifier for the conversation, e.g., UUID.&quot;,&quot;why&quot;:&quot;Primary key for referencing and joining.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:21.966793827+00:00&quot;}" size="36" type="varchar" typeCode="12">
            <child column="conversation_id" foreignKey="fk_metabot_message_conversation_id" implied="false" onDeleteCascade="false" schema="public" table="metabot_message"/>
            <child column="parameter_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="parameter_card"/>
            <child column="parameter_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="user_parameter_value"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the conversation was created, in UTC.&quot;,&quot;why&quot;:&quot;Orders conversations and supports retention policies.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:21.980674269+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who owns this conversation.&quot;,&quot;why&quot;:&quot;Links conversation to a user account for access control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:21.996078785+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metabot_conversation_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="summary" nullable="true" remarks="{&quot;what&quot;:&quot;Short text summarizing the conversation's content.&quot;,&quot;why&quot;:&quot;Provides a quick overview without reading full history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:22.013674888+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="state" nullable="true" remarks="{&quot;what&quot;:&quot;Current state of the conversation, e.g., 'active' or 'closed'.&quot;,&quot;why&quot;:&quot;Determines if the conversation accepts new messages.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:22.028714812+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabot_conversation_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metabot_conversation_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="metabot_message" remarks="{&quot;what&quot;:&quot;One row per message in a bot conversation, with role, content, and usage.&quot;,&quot;why&quot;:&quot;Without it, conversation history and per-message token costs are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:42.615429970+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique per message.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:42.763863501+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of when the message was logged; defaults to current time.&quot;,&quot;why&quot;:&quot;Needed to sort messages chronologically and correlate with other events.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:42.802374175+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="profile_id" nullable="false" remarks="{&quot;what&quot;:&quot;Text identifier of the user profile associated with the message.&quot;,&quot;why&quot;:&quot;Without it, messages cannot be attributed to a specific user or profile.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:42.843382271+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="role" nullable="false" remarks="{&quot;what&quot;:&quot;Role of the message sender, such as 'user' or 'assistant'.&quot;,&quot;why&quot;:&quot;Without it, the direction of the message (incoming vs. outgoing) is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:42.867768282+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="data" nullable="false" remarks="{&quot;what&quot;:&quot;Full text content of the message, either user input or bot response.&quot;,&quot;why&quot;:&quot;Without it, the actual message content is missing, making conversation reconstruction impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:42.937159685+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="usage" nullable="true" remarks="{&quot;what&quot;:&quot;Text field with detailed token usage breakdown, often JSON; may be null.&quot;,&quot;why&quot;:&quot;Needed to break down token counts by category (e.g., prompt vs. completion) for cost analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:43.002003082+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="total_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Total token count for the message, sum of all usage categories.&quot;,&quot;why&quot;:&quot;Without it, per-message token consumption and cumulative cost cannot be computed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:43.120478710+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="conversation_id" nullable="false" remarks="{&quot;what&quot;:&quot;String identifier grouping messages into a single conversation thread.&quot;,&quot;why&quot;:&quot;Without it, messages cannot be grouped into coherent conversations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:43.215337072+00:00&quot;}" size="36" type="varchar" typeCode="12">
            <parent column="id" foreignKey="fk_metabot_message_conversation_id" implied="false" onDeleteCascade="false" schema="public" table="metabot_conversation"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabot_message_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metabot_message_conversation_id" unique="false">
            <column ascending="true" name="conversation_id"/>
         </index>
      </table>
      <table name="metabot_prompt" remarks="{&quot;what&quot;:&quot;Prompt texts for metabot interactions, each linked to a card, entity, and model.&quot;,&quot;why&quot;:&quot;Without it, prompt history and model usage per card/entity would be lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.851787574+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique identifier for each prompt row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.870907040+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the language model used, e.g. 'gpt-4'.&quot;,&quot;why&quot;:&quot;Without it, the model that produced the prompt is unknown, breaking reproducibility.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.886827254+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the card this prompt is associated with.&quot;,&quot;why&quot;:&quot;Without it, prompts cannot be linked to a specific card, losing context.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.900912211+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metabot_prompt_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Character code identifying the entity the prompt targets.&quot;,&quot;why&quot;:&quot;Without it, prompts cannot be filtered by entity, making per-entity analysis impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.922310026+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="prompt" nullable="false" remarks="{&quot;what&quot;:&quot;The exact prompt text sent to the model.&quot;,&quot;why&quot;:&quot;Without it, there is no prompt to send or review, so the record is meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.938711048+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the prompt record was created (UTC).&quot;,&quot;why&quot;:&quot;Without it, creation time is unknown, preventing chronological ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.953829398+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this prompt record (UTC).&quot;,&quot;why&quot;:&quot;Without it, modification history is lost, hindering change tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.971327037+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="metabot_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the metabot that owns this prompt.&quot;,&quot;why&quot;:&quot;Without it, prompts cannot be scoped to a specific bot, causing cross-bot confusion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:30.995862903+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metabot_prompt_metabot_id" implied="false" onDeleteCascade="true" schema="public" table="metabot"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metabot_prompt_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metabot_prompt_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_metabot_prompt_metabot_id" unique="false">
            <column ascending="true" name="metabot_id"/>
         </index>
         <index name="metabot_prompt_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="metric" remarks="{&quot;what&quot;:&quot;A metric definition: a named, computed measure on a data table.&quot;,&quot;why&quot;:&quot;Without it, there is no central catalog for metrics, leading to inconsistent calculations across reports.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:15.233759560+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each metric row.&quot;,&quot;why&quot;:&quot;Without it, metrics cannot be uniquely referenced for joins, updates, or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:15.315225489+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="metric_id" foreignKey="fk_metric_important_field_metric_id" implied="false" onDeleteCascade="true" schema="public" table="metric_important_field"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the data table this metric is defined against.&quot;,&quot;why&quot;:&quot;Without it, the metric's source table is unknown, so its definition cannot be executed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:15.525099382+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metric_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who created this metric.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trail for metric changes is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:15.545476096+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metric_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short human-readable metric name, e.g., 'Revenue'.&quot;,&quot;why&quot;:&quot;Without it, metrics cannot be displayed or referenced in UI and reports.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:15.992454093+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text explanation of the metric's meaning and use.&quot;,&quot;why&quot;:&quot;Without it, consumers cannot understand the metric's intent, leading to misuse.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:16.599958857+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the metric is hidden from active use; true means archived.&quot;,&quot;why&quot;:&quot;Without it, retired metrics would still appear in lists and be used, causing confusion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:16.838781128+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="definition" nullable="false" remarks="{&quot;what&quot;:&quot;SQL expression or formula that computes the metric value.&quot;,&quot;why&quot;:&quot;Without it, the metric cannot be calculated or validated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:17.474573138+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the metric row was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, audit history and ordering of metric creation is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:17.485666468+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to this metric row.&quot;,&quot;why&quot;:&quot;Without it, stale or conflicting edits cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:17.676500035+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text notes highlighting notable aspects or anomalies in the metric.&quot;,&quot;why&quot;:&quot;Without it, analysts miss context about unusual data patterns.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:17.794196467+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text warnings about limitations or conditions affecting metric interpretation.&quot;,&quot;why&quot;:&quot;Without it, users may misinterpret metric values under certain conditions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:18.239509304+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="how_is_this_calculated" nullable="true" remarks="{&quot;what&quot;:&quot;Plain-language explanation of the calculation steps behind the metric.&quot;,&quot;why&quot;:&quot;Without it, non-technical users cannot trust or verify the metric's methodology.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:18.294149805+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="show_in_getting_started" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the metric appears in the getting-started guide for new users.&quot;,&quot;why&quot;:&quot;Without it, onboarding content cannot be curated to highlight key metrics.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:18.434907380+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Single-character code identifying the entity type this metric applies to.&quot;,&quot;why&quot;:&quot;Without it, metrics cannot be filtered by entity type, making cross-entity comparisons ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:18.510655107+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metric_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metric_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_metric_show_in_getting_started" unique="false">
            <column ascending="true" name="show_in_getting_started"/>
         </index>
         <index name="idx_metric_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
         <index name="metric_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="metric_important_field" remarks="{&quot;what&quot;:&quot;Links a metric to a field marked as important for that metric.&quot;,&quot;why&quot;:&quot;Without it, the set of important fields per metric is unknown, so metric context is incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:31.133698184+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate primary key for each metric-field association row.&quot;,&quot;why&quot;:&quot;Provides a unique identifier for each link, enabling stable references and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:31.151119015+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="metric_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the metric that owns this important-field link.&quot;,&quot;why&quot;:&quot;Identifies which metric the field importance applies to; without it, the association is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:31.168699412+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metric_important_field_metric_id" implied="false" onDeleteCascade="true" schema="public" table="metric"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="field_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the field that is important for the linked metric.&quot;,&quot;why&quot;:&quot;Specifies which field is important; without it, the metric's important fields cannot be enumerated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:31.184625251+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_metric_important_field_metabase_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="metric_important_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_metric_important_field_field_id" unique="false">
            <column ascending="true" name="field_id"/>
         </index>
         <index name="idx_metric_important_field_metric_id" unique="false">
            <column ascending="true" name="metric_id"/>
         </index>
         <index name="unique_metric_important_field_metric_id_field_id" unique="true">
            <column ascending="true" name="metric_id"/>
            <column ascending="true" name="field_id"/>
         </index>
      </table>
      <table name="model_index" remarks="{&quot;what&quot;:&quot;Index definitions for models, including schedule and state.&quot;,&quot;why&quot;:&quot;Centralizes per-model indexing configuration and status for monitoring.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.139831445+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each index row.&quot;,&quot;why&quot;:&quot;Uniquely identifies a row for updates and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.179498142+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="model_index_id" foreignKey="fk_model_index_value_model_id" implied="false" onDeleteCascade="true" schema="public" table="model_index_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the model this index belongs to; null for global.&quot;,&quot;why&quot;:&quot;Links index to a specific model; null means applies to all.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.223478283+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_model_index_model_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="pk_ref" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key reference of the indexed entity as text.&quot;,&quot;why&quot;:&quot;Identifies the source row in the model's table for lookup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.339512261+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="value_ref" nullable="false" remarks="{&quot;what&quot;:&quot;Value reference used for indexing, e.g., a column value or key.&quot;,&quot;why&quot;:&quot;Determines the indexed value to match against queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.354181165+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="schedule" nullable="false" remarks="{&quot;what&quot;:&quot;Cron expression or interval for when indexing runs.&quot;,&quot;why&quot;:&quot;Defines the refresh cadence for this index entry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.371589150+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="state" nullable="false" remarks="{&quot;what&quot;:&quot;Current status of the index: pending, active, failed, etc.&quot;,&quot;why&quot;:&quot;Tracks whether the index is usable or needs attention.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.436533195+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="indexed_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the last successful indexing run.&quot;,&quot;why&quot;:&quot;Shows staleness; null if never indexed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.467506308+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="error" nullable="true" remarks="{&quot;what&quot;:&quot;Error message from the last failed indexing attempt.&quot;,&quot;why&quot;:&quot;Provides diagnostic info when state indicates failure.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.481384477+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the index entry was created.&quot;,&quot;why&quot;:&quot;Audits creation time and supports time-based cleanup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.538406204+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the creator of this index entry.&quot;,&quot;why&quot;:&quot;Tracks ownership for permissions and audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:08:57.550952915+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_model_index_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="model_index_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_model_index_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_model_index_model_id" unique="false">
            <column ascending="true" name="model_id"/>
         </index>
      </table>
      <table name="model_index_value" remarks="{&quot;what&quot;:&quot;Holds one indexed value per model row per index definition.&quot;,&quot;why&quot;:&quot;Without it, indexed lookups on model fields have no data to search.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:08.875016708+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="model_index_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the index definition this value belongs to.&quot;,&quot;why&quot;:&quot;Without it, values from different indexes would be indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:08.981685274+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_model_index_value_model_id" implied="false" onDeleteCascade="true" schema="public" table="model_index"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model_pk" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key of the model row this value is indexed for.&quot;,&quot;why&quot;:&quot;Without it, the value cannot be linked to its owning record.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:09.042369425+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;The actual text value being indexed for the field.&quot;,&quot;why&quot;:&quot;Without it, the index has no content to match against.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:09.133669978+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <index name="unique_model_index_value_model_index_id_model_pk" unique="true">
            <column ascending="true" name="model_index_id"/>
            <column ascending="true" name="model_pk"/>
         </index>
      </table>
      <table name="moderation_review" remarks="{&quot;what&quot;:&quot;One moderation decision on a specific item by a moderator.&quot;,&quot;why&quot;:&quot;Provides an audit trail and current status for moderated content.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.047804585+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for this review row.&quot;,&quot;why&quot;:&quot;Enables referencing a specific review from other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.067684054+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this row, in UTC.&quot;,&quot;why&quot;:&quot;Shows when the review was last modified; needed for audit and ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.141256409+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this review was created, in UTC.&quot;,&quot;why&quot;:&quot;Records when the decision was made; used for time-based queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.173738873+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="true" remarks="{&quot;what&quot;:&quot;Current moderation status, e.g., 'pending', 'approved', 'rejected'.&quot;,&quot;why&quot;:&quot;Determines whether the item is visible or flagged; without it the item's state is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.237891611+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="text" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form comment from the moderator explaining the decision.&quot;,&quot;why&quot;:&quot;Provides context for the decision; without it the reason for the status is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.317091930+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="moderated_item_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the item being moderated, e.g., a post or comment.&quot;,&quot;why&quot;:&quot;Identifies which content this review applies to; without it the review is orphaned.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.356684052+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="moderated_item_type" nullable="false" remarks="{&quot;what&quot;:&quot;Class name of the moderated item, e.g., 'Post' or 'Comment'.&quot;,&quot;why&quot;:&quot;Disambiguates which table the item ID refers to in a polymorphic relation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.454420111+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="moderator_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the moderator who performed the review.&quot;,&quot;why&quot;:&quot;Attributes the decision to a specific user; needed for accountability and permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.575470112+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="most_recent" nullable="false" remarks="{&quot;what&quot;:&quot;True if this is the latest review for the same item and type.&quot;,&quot;why&quot;:&quot;Allows quick lookup of the current status without scanning all reviews; without it the active decision is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:33.687267532+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="moderation_review_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_moderation_review_item_type_item_id" unique="false">
            <column ascending="true" name="moderated_item_type"/>
            <column ascending="true" name="moderated_item_id"/>
         </index>
      </table>
      <table name="native_query_snippet" remarks="{&quot;what&quot;:&quot;A stored native SQL query snippet with metadata for reuse and management.&quot;,&quot;why&quot;:&quot;Without it, there is no way to persist and retrieve reusable query fragments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:56.955693692+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for a snippet; primary key.&quot;,&quot;why&quot;:&quot;Without it, snippets cannot be uniquely referenced or joined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:56.987503726+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable label for the snippet; used in lists and search.&quot;,&quot;why&quot;:&quot;Without it, users cannot identify or select a snippet by name.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.016844495+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text describing the snippet's purpose or usage.&quot;,&quot;why&quot;:&quot;Without it, the snippet's intent is undocumented, making reuse risky.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.041448525+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="content" nullable="false" remarks="{&quot;what&quot;:&quot;The exact query text to execute; typically SQL.&quot;,&quot;why&quot;:&quot;Without it, the snippet has no executable logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.064877576+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the person who created this snippet.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trail for the snippet are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.095832086+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_snippet_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the snippet is hidden from active use; true means archived.&quot;,&quot;why&quot;:&quot;Without it, obsolete snippets cannot be hidden without deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.110628114+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Creation timestamp with timezone; set automatically to now.&quot;,&quot;why&quot;:&quot;Without it, there is no record of when the snippet was added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.128972325+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Last modification timestamp with timezone; updated on each change.&quot;,&quot;why&quot;:&quot;Without it, there is no way to know if a snippet is stale or to sort by recent activity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.145222766+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the collection this snippet belongs to; null if unassigned.&quot;,&quot;why&quot;:&quot;Without it, snippets cannot be grouped or filtered by collection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.168606133+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_snippet_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional single-character code referencing an external entity; exact meaning not defined in schema.&quot;,&quot;why&quot;:&quot;Without it, the link to an external entity is unknown; schema does not clarify its purpose.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.188217834+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="template_tags" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text containing tags for the snippet, e.g., comma-separated keywords.&quot;,&quot;why&quot;:&quot;Without it, snippets cannot be categorized or searched by tags.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.209087790+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="11" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the dependency analysis performed on this snippet; 0 means none.&quot;,&quot;why&quot;:&quot;Without it, it is unknown whether the snippet's dependencies have been analyzed or if the analysis is outdated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:57.239451187+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="native_query_snippet_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_native_query_snippet_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_native_query_snippet_dependency_analysis_version" unique="false">
            <column ascending="true" name="dependency_analysis_version"/>
         </index>
         <index name="idx_snippet_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_snippet_name" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="native_query_snippet_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="native_query_snippet_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="notification" remarks="{&quot;what&quot;:&quot;A notification record with type, state, and audit timestamps.&quot;,&quot;why&quot;:&quot;Centralizes notification data so it can be queried, filtered, and managed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:26.526668295+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each notification row.&quot;,&quot;why&quot;:&quot;Enables referencing a notification from other tables and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:26.665193154+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="notification_id" foreignKey="fk_notification_handler_notification_id" implied="false" onDeleteCascade="true" schema="public" table="notification_handler"/>
            <child column="notification_id" foreignKey="fk_notification_subscription_notification_id" implied="false" onDeleteCascade="true" schema="public" table="notification_subscription"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="payload_type" nullable="false" remarks="{&quot;what&quot;:&quot;String naming the notification kind, e.g. email or push.&quot;,&quot;why&quot;:&quot;Determines how the notification is rendered and routed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:26.693060158+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="2" name="active" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the notification is currently enabled.&quot;,&quot;why&quot;:&quot;Allows disabling a notification without deleting it.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:26.909669668+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the notification row was inserted.&quot;,&quot;why&quot;:&quot;Provides audit trail and ordering of notifications.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:26.935780333+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this row.&quot;,&quot;why&quot;:&quot;Shows when the notification was last modified, useful for sync.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:27.036164521+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="internal_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional external system identifier for the notification.&quot;,&quot;why&quot;:&quot;Maps to an external reference when the notification originates elsewhere.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:27.051467569+00:00&quot;}" size="254" type="varchar" typeCode="12">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="core_session"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="payload_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to a payload table holding notification content.&quot;,&quot;why&quot;:&quot;Links to the specific data used to generate the notification.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:27.073616831+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the account that created the notification.&quot;,&quot;why&quot;:&quot;Tracks ownership and allows filtering by creator.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:27.089784976+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_notification_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="notification_internal_id_key" unique="true">
            <column ascending="true" name="internal_id"/>
         </index>
      </table>
      <table name="notification_card" remarks="{&quot;what&quot;:&quot;Settings controlling when and how a notification is sent for a card.&quot;,&quot;why&quot;:&quot;Without it, card notifications would have no defined trigger or delivery rules.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.642770607+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each notification-card row.&quot;,&quot;why&quot;:&quot;Needed to reference a specific notification configuration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.683860273+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="card_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the card this notification configuration applies to.&quot;,&quot;why&quot;:&quot;Without it, a configuration cannot be linked to its card.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.720543597+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_card_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="send_once" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating the notification is sent only once per card.&quot;,&quot;why&quot;:&quot;Prevents duplicate notifications when the condition repeats.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.778226849+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="send_condition" nullable="false" remarks="{&quot;what&quot;:&quot;Expression or rule that must be true to trigger the notification.&quot;,&quot;why&quot;:&quot;Without it, there is no defined moment to send the notification.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.794463846+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this configuration row was created.&quot;,&quot;why&quot;:&quot;Tracks when the notification rule was added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.815287021+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to this configuration.&quot;,&quot;why&quot;:&quot;Shows how recently the rule was changed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.829477295+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="disable_links" nullable="true" remarks="{&quot;what&quot;:&quot;Flag that disables clickable links in the notification content.&quot;,&quot;why&quot;:&quot;Without it, links would always be active, risking unintended navigation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:04:50.840126753+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_card_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_notification_card_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
      </table>
      <table name="notification_handler" remarks="{&quot;what&quot;:&quot;Delivery configuration linking a notification to a channel type and optional template.&quot;,&quot;why&quot;:&quot;Enables sending the same notification through multiple channels with distinct settings.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.723419505+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each handler record.&quot;,&quot;why&quot;:&quot;Without it, no stable way to identify a single handler for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.735081658+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="notification_handler_id" foreignKey="fk_notification_recipient_notification_handler_id" implied="false" onDeleteCascade="true" schema="public" table="notification_recipient"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="channel_type" nullable="false" remarks="{&quot;what&quot;:&quot;Channel category such as email, SMS, or push.&quot;,&quot;why&quot;:&quot;Determines which channel-specific logic or provider to use for delivery.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.754947606+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="notification_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the notification event this handler processes.&quot;,&quot;why&quot;:&quot;Links each handler to its parent notification; without it, a handler has no event to send.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.772990883+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_handler_notification_id" implied="false" onDeleteCascade="true" schema="public" table="notification"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="channel_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the concrete channel endpoint (e.g., device token) when applicable.&quot;,&quot;why&quot;:&quot;Without it, only the channel type is known, not the exact destination.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.819713580+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_handler_channel_id" implied="false" onDeleteCascade="true" schema="public" table="channel"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="template_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the message template used for this notification.&quot;,&quot;why&quot;:&quot;Defines the content structure; without it, the message body is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.842626179+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_handler_template_id" implied="false" onDeleteCascade="false" schema="public" table="channel_template"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="5" name="active" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether this handler is currently enabled.&quot;,&quot;why&quot;:&quot;Allows disabling a handler without deleting it; inactive handlers are skipped during sending.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.858996075+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the handler row was created.&quot;,&quot;why&quot;:&quot;Without it, cannot determine when the handler was added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.879364963+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to this handler.&quot;,&quot;why&quot;:&quot;Tracks changes; without it, stale configurations cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.898977196+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_handler_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_notification_handler_channel_id" unique="false">
            <column ascending="true" name="channel_id"/>
         </index>
         <index name="idx_notification_handler_notification_id" unique="false">
            <column ascending="true" name="notification_id"/>
         </index>
         <index name="idx_notification_handler_template_id" unique="false">
            <column ascending="true" name="template_id"/>
         </index>
      </table>
      <table name="notification_recipient" remarks="{&quot;what&quot;:&quot;Links a notification handler to a recipient (user or permission group) for delivery.&quot;,&quot;why&quot;:&quot;Without it, which users or groups receive a handler's notifications is undefined, breaking delivery routing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:00.903036129+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each row; primary key.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:00.915593784+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="notification_handler_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the notification handler this recipient belongs to.&quot;,&quot;why&quot;:&quot;Without it, the handler context is missing, making it impossible to know which notification configuration this recipient applies to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:00.934621441+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_recipient_notification_handler_id" implied="false" onDeleteCascade="true" schema="public" table="notification_handler"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Recipient kind: 'user' or 'permissions_group'.&quot;,&quot;why&quot;:&quot;Without it, it is ambiguous whether user_id or permissions_group_id is the actual recipient.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:00.963518797+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the user recipient when type is 'user'.&quot;,&quot;why&quot;:&quot;Without it, the specific user for a user-type recipient is unknown, breaking per-user delivery.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:00.977448801+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_recipient_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="permissions_group_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the permission group recipient when type is 'permissions_group'.&quot;,&quot;why&quot;:&quot;Without it, group-based recipients cannot be resolved, so notifications to groups are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:00.997000050+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_recipient_permissions_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="details" nullable="true" remarks="{&quot;what&quot;:&quot;Additional recipient-specific configuration or metadata as free text.&quot;,&quot;why&quot;:&quot;Without it, any extra per-recipient settings are unavailable, limiting customization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:01.012887832+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 when the recipient link was created.&quot;,&quot;why&quot;:&quot;Without it, audit history of when recipients were added is missing, complicating debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:01.034029866+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to the recipient link.&quot;,&quot;why&quot;:&quot;Without it, it is unknown when the recipient configuration last changed, hindering change tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:01.048377848+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_recipient_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_notification_recipient_notification_handler_id" unique="false">
            <column ascending="true" name="notification_handler_id"/>
         </index>
         <index name="idx_notification_recipient_permissions_group_id" unique="false">
            <column ascending="true" name="permissions_group_id"/>
         </index>
         <index name="idx_notification_recipient_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="notification_subscription" remarks="{&quot;what&quot;:&quot;A subscription that ties a notification to a schedule or event for delivery.&quot;,&quot;why&quot;:&quot;Without it, notifications have no defined delivery timing or event trigger.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.569611256+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the subscription row.&quot;,&quot;why&quot;:&quot;Needed as primary key for stable references and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.703000477+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="notification_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the notification being subscribed to.&quot;,&quot;why&quot;:&quot;Identifies which notification this subscription applies to; without it the subscription is meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.718206272+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_notification_subscription_notification_id" implied="false" onDeleteCascade="true" schema="public" table="notification"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Subscription kind, e.g. 'cron' or 'event', selecting the schedule field.&quot;,&quot;why&quot;:&quot;Determines whether cron_schedule or event_name is used; without it the subscription's trigger is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.732411839+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="event_name" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the event that triggers this subscription when type is 'event'.&quot;,&quot;why&quot;:&quot;Without it, event-based subscriptions have no trigger condition.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.793249888+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the subscription was created, in UTC.&quot;,&quot;why&quot;:&quot;Enables audit and ordering of subscriptions; without it we cannot know when it was set up.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.814438691+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="cron_schedule" nullable="true" remarks="{&quot;what&quot;:&quot;Cron expression defining the recurring schedule when type is 'cron'.&quot;,&quot;why&quot;:&quot;Without it, cron-based subscriptions have no schedule to execute on.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.925628509+00:00&quot;}" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ui_display_type" nullable="true" remarks="{&quot;what&quot;:&quot;UI presentation hint for the subscription, e.g. 'banner' or 'email'.&quot;,&quot;why&quot;:&quot;Without it, the frontend cannot decide how to render the subscription's notifications.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:41.947334262+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="notification_subscription_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_notification_subscription_notification_id" unique="false">
            <column ascending="true" name="notification_id"/>
         </index>
      </table>
      <table name="parameter_card" remarks="{&quot;what&quot;:&quot;Links a card to a specific parameter of a polymorphic object.&quot;,&quot;why&quot;:&quot;Without it, the mapping between cards and object parameters is missing, so card content and parameter usage cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.421165475+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate primary key; unique integer per row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely identified for updates or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.442123212+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last row modification, timezone-aware, defaults to now.&quot;,&quot;why&quot;:&quot;Without it, there is no record of when the association was last changed, breaking audit or sync logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.456578757+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of row creation, timezone-aware, defaults to now.&quot;,&quot;why&quot;:&quot;Without it, the creation time of the association is unknown, breaking ordering or retention policies.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.474939292+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the card table; identifies the card in this association.&quot;,&quot;why&quot;:&quot;Without it, the card side of the relationship is unknown, so you cannot list parameters for a card.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.502464047+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_parameter_card_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="parameterized_object_type" nullable="false" remarks="{&quot;what&quot;:&quot;Polymorphic type name of the associated object (e.g., 'Product', 'User').&quot;,&quot;why&quot;:&quot;Without it, the object type is ambiguous, so the object cannot be resolved from the ID alone.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.574409803+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="parameterized_object_id" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key value of the associated object within its type.&quot;,&quot;why&quot;:&quot;Without it, the specific object is unknown, so the parameter cannot be attached to a concrete entity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.602308166+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="parameter_id" nullable="false" remarks="{&quot;what&quot;:&quot;String identifier of the parameter on the object (e.g., 'color', 'size').&quot;,&quot;why&quot;:&quot;Without it, the specific parameter is unknown, so the card cannot be linked to a particular attribute.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:05.650929972+00:00&quot;}" size="36" type="varchar" typeCode="12">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="metabot_conversation"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="parameter_card_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_parameter_card_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_parameter_card_parameterized_object_id" unique="false">
            <column ascending="true" name="parameterized_object_id"/>
         </index>
         <index name="unique_parameterized_object_card_parameter" unique="true">
            <column ascending="true" name="parameterized_object_id"/>
            <column ascending="true" name="parameterized_object_type"/>
            <column ascending="true" name="parameter_id"/>
         </index>
      </table>
      <table name="permissions" remarks="{&quot;what&quot;:&quot;Access control entries linking groups to objects with permission values.&quot;,&quot;why&quot;:&quot;Without it, no authorization decisions can be made for resources.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.331378792+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each permission record.&quot;,&quot;why&quot;:&quot;Needed to reference and update specific permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.355720736+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="object" nullable="false" remarks="{&quot;what&quot;:&quot;Name or identifier of the resource being protected.&quot;,&quot;why&quot;:&quot;Determines which resource the permission applies to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.397444863+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user group granted the permission.&quot;,&quot;why&quot;:&quot;Links permission to a group for access checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.419504868+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_permissions_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="perm_value" nullable="true" remarks="{&quot;what&quot;:&quot;Permission level such as 'read' or 'write'.&quot;,&quot;why&quot;:&quot;Specifies the allowed action on the object.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.443488508+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="perm_type" nullable="true" remarks="{&quot;what&quot;:&quot;Type like 'allow' or 'deny' for the rule.&quot;,&quot;why&quot;:&quot;Distinguishes allow from deny rules.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.467892971+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of a collection if the object is a collection.&quot;,&quot;why&quot;:&quot;Scopes permission to a specific collection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:46.496738353+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_permissions_ref_collection_id" implied="false" onDeleteCascade="true" schema="public" table="collection"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="permissions_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_permissions_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_permissions_group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="idx_permissions_group_id_object" unique="false">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="object"/>
         </index>
         <index name="idx_permissions_object" unique="false">
            <column ascending="true" name="object"/>
         </index>
         <index name="idx_permissions_perm_type" unique="false">
            <column ascending="true" name="perm_type"/>
         </index>
         <index name="idx_permissions_perm_value" unique="false">
            <column ascending="true" name="perm_value"/>
         </index>
         <index name="permissions_group_id_object_key" unique="true">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="object"/>
         </index>
      </table>
      <table name="permissions_group" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for the group.&quot;,&quot;why&quot;:&quot;Needed to reference groups from other tables; without it rows cannot be uniquely addressed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:14.533201073+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="group_id" foreignKey="fk_conn_impersonation_group_id" implied="false" onDeleteCascade="true" schema="public" table="connection_impersonations"/>
            <child column="group_id" foreignKey="fk_data_permissions_ref_permissions_group" implied="false" onDeleteCascade="true" schema="public" table="data_permissions"/>
            <child column="permissions_group_id" foreignKey="fk_notification_recipient_permissions_group_id" implied="false" onDeleteCascade="true" schema="public" table="notification_recipient"/>
            <child column="group_id" foreignKey="fk_permissions_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions"/>
            <child column="group_id" foreignKey="fk_permissions_group_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group_membership"/>
            <child column="group_id" foreignKey="fk_gtap_group_id" implied="false" onDeleteCascade="true" schema="public" table="sandboxes"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable group name, e.g. 'Admins'.&quot;,&quot;why&quot;:&quot;Used for display and lookup; without it groups are indistinguishable in UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:14.549046431+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the entity this group applies to, if scoped.&quot;,&quot;why&quot;:&quot;Distinguishes global groups from entity-specific ones; without it scope is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:14.572963514+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="magic_group_type" nullable="true" remarks="{&quot;what&quot;:&quot;Type of predefined group, e.g. 'owner' or 'member'.&quot;,&quot;why&quot;:&quot;Identifies built-in groups that cannot be edited; without it special handling is unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:14.587860238+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="is_tenant_group" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if group is scoped to a tenant.&quot;,&quot;why&quot;:&quot;Separates tenant-level groups from global ones; without it multi-tenant isolation breaks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:14.600331839+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="permissions_group_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_permissions_group_name" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="permissions_group_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="permissions_group_magic_group_type_key" unique="true">
            <column ascending="true" name="magic_group_type"/>
         </index>
         <index name="unique_permissions_group_name" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <checkConstraint constraint="id IS NOT NULL" name="permissions_group_id_not_null1"/>
      </table>
      <table name="permissions_group_membership" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate key uniquely identifying a membership record.&quot;,&quot;why&quot;:&quot;Without it, a membership cannot be referenced unambiguously for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:04.694099385+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who is a member of the group.&quot;,&quot;why&quot;:&quot;Without it, we cannot know which user belongs to the group.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:04.715130735+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_permissions_group_membership_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the group the user belongs to.&quot;,&quot;why&quot;:&quot;Without it, we cannot know which group the user is in.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:04.727123730+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_permissions_group_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="is_group_manager" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if the user manages the group, false otherwise.&quot;,&quot;why&quot;:&quot;Without it, managers and regular members are indistinguishable, so admin actions cannot be scoped.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:04.741312367+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="permissions_group_membership_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_permissions_group_membership_group_id" unique="false">
            <column ascending="true" name="group_id"/>
         </index>
         <index name="idx_permissions_group_membership_group_id_user_id" unique="false">
            <column ascending="true" name="group_id"/>
            <column ascending="true" name="user_id"/>
         </index>
         <index name="idx_permissions_group_membership_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="unique_permissions_group_membership_user_id_group_id" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="group_id"/>
         </index>
      </table>
      <table name="permissions_revision" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer ID for each revision row.&quot;,&quot;why&quot;:&quot;Enables stable reference and joins to other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:50.667515540+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="before" nullable="false" remarks="{&quot;what&quot;:&quot;Permission state before the change, serialized (e.g., JSON).&quot;,&quot;why&quot;:&quot;Needed to compare old vs new and to revert if needed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:50.681704159+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="after" nullable="false" remarks="{&quot;what&quot;:&quot;Permission state after the change, serialized (e.g., JSON).&quot;,&quot;why&quot;:&quot;Shows the new state; without it the change is not recorded.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:50.704337846+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who made the change.&quot;,&quot;why&quot;:&quot;Identifies who is responsible; essential for audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:50.729606920+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_permissions_revision_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the change was recorded.&quot;,&quot;why&quot;:&quot;Provides chronological order and time-based audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:50.743513651+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="remark" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text note about the change.&quot;,&quot;why&quot;:&quot;Allows context like reason or ticket number; without it context is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:50.756113180+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="permissions_revision_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_permissions_revision_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="persisted_info" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each persisted info record.&quot;,&quot;why&quot;:&quot;Without it, records cannot be referenced or updated individually.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:04.890717873+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="database_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the database the query runs against.&quot;,&quot;why&quot;:&quot;Without it, we don't know which database the persisted data belongs to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:04.929056868+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_persisted_info_database_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="card_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the card that triggered this persistence, if any.&quot;,&quot;why&quot;:&quot;Without it, we cannot link the persisted info to a specific card.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:04.950577105+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_persisted_info_card_id" implied="false" onDeleteCascade="false" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="question_slug" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable slug for the question, e.g., 'sales-by-month'.&quot;,&quot;why&quot;:&quot;Without it, we cannot identify the question in URLs or logs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:04.980994003+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="table_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the destination table where the data is persisted.&quot;,&quot;why&quot;:&quot;Without it, we don't know where the data is stored.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.035226733+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="definition" nullable="true" remarks="{&quot;what&quot;:&quot;Query definition or SQL text used to generate the data.&quot;,&quot;why&quot;:&quot;Without it, we cannot reproduce or audit the query.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.052779191+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="query_hash" nullable="true" remarks="{&quot;what&quot;:&quot;Hash of the query definition for quick comparison.&quot;,&quot;why&quot;:&quot;Without it, we cannot detect if the query changed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.069500313+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="active" nullable="false" remarks="{&quot;what&quot;:&quot;Whether this persistence is currently active (true/false).&quot;,&quot;why&quot;:&quot;Without it, we cannot filter out inactive entries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.086508045+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="state" nullable="false" remarks="{&quot;what&quot;:&quot;Current state of the persistence job, e.g., 'running', 'success', 'failed'.&quot;,&quot;why&quot;:&quot;Without it, we cannot know if the data is ready or if a refresh is needed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.120204839+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="refresh_begin" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the last refresh started.&quot;,&quot;why&quot;:&quot;Without it, we cannot measure refresh duration or schedule.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.131301705+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="refresh_end" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the last refresh finished.&quot;,&quot;why&quot;:&quot;Without it, we cannot know if refresh is still running or compute duration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.145383665+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="state_change_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the last state change.&quot;,&quot;why&quot;:&quot;Without it, we cannot know how long the current state has been in effect.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.157280207+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="error" nullable="true" remarks="{&quot;what&quot;:&quot;Error message from the last failed refresh.&quot;,&quot;why&quot;:&quot;Without it, we cannot diagnose failures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.170457486+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="13" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this record was created.&quot;,&quot;why&quot;:&quot;Without it, we cannot track when the persistence was set up.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.185863914+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the user who created this persistence.&quot;,&quot;why&quot;:&quot;Without it, we cannot attribute ownership.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.196738533+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_persisted_info_ref_creator_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="persisted_info_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_persisted_info_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_persisted_info_database_id" unique="false">
            <column ascending="true" name="database_id"/>
         </index>
         <index name="persisted_info_card_id_key" unique="true">
            <column ascending="true" name="card_id"/>
         </index>
      </table>
      <table name="premium_features_token_cache" remarks="{&quot;what&quot;:&quot;Cache of premium feature token hashes to their status hashes.&quot;,&quot;why&quot;:&quot;Avoids repeated lookups of token status; enables quick invalidation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:53.102863735+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="token_hash" nullable="false" remarks="{&quot;what&quot;:&quot;SHA-256 hash of the premium feature token; primary key.&quot;,&quot;why&quot;:&quot;Uniquely identifies a token to look up its cached status.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:53.120173514+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="token_status_hash" nullable="false" remarks="{&quot;what&quot;:&quot;Hash of the token's current status value.&quot;,&quot;why&quot;:&quot;Detects status changes without storing raw status; used for cache invalidation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:53.303153408+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last cache write, timezone-aware.&quot;,&quot;why&quot;:&quot;Enables expiry or staleness checks for the cached entry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:09:53.323566689+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="token_hash" sequenceNumberInPK="1"/>
         <index name="premium_features_token_cache_pkey" unique="true">
            <column ascending="true" name="token_hash"/>
         </index>
      </table>
      <table name="pulse" remarks="{&quot;what&quot;:&quot;A scheduled query that runs periodically and can trigger alerts.&quot;,&quot;why&quot;:&quot;Without it, scheduled queries and their alert configurations cannot be persisted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.370328117+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the pulse.&quot;,&quot;why&quot;:&quot;Without it, pulses cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.388390745+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="pulse_id" foreignKey="fk_pulse_card_ref_pulse_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_card"/>
            <child column="pulse_id" foreignKey="fk_pulse_channel_ref_pulse_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_channel"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the person who created the pulse.&quot;,&quot;why&quot;:&quot;Without it, ownership and permission checks are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.413646360+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="true" remarks="{&quot;what&quot;:&quot;Human-readable name for the pulse.&quot;,&quot;why&quot;:&quot;Without it, pulses cannot be labeled or distinguished in lists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.425796649+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the pulse was created.&quot;,&quot;why&quot;:&quot;Without it, creation time is unknown, breaking audit trails and sorting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.444802068+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to the pulse.&quot;,&quot;why&quot;:&quot;Without it, last modification time is unknown, breaking stale detection and concurrency checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.465235788+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="skip_if_empty" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: if true, skip execution when query returns no rows.&quot;,&quot;why&quot;:&quot;Without it, empty results would trigger alerts or actions unintentionally.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.493251188+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="alert_condition" nullable="true" remarks="{&quot;what&quot;:&quot;Condition string (e.g., SQL expression) that triggers an alert.&quot;,&quot;why&quot;:&quot;Without it, alert triggering logic is undefined, making alerts impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.511533282+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="alert_first_only" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag: if true, alert only on first occurrence.&quot;,&quot;why&quot;:&quot;Without it, repeated alerts would spam users for the same condition.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.532202960+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="alert_above_goal" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag: if true, alert when value exceeds goal.&quot;,&quot;why&quot;:&quot;Without it, the comparison direction for alerts is ambiguous, causing incorrect triggers.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.544635700+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the collection this pulse belongs to.&quot;,&quot;why&quot;:&quot;Without it, pulses cannot be grouped into collections for organization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.559807939+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="collection_position" nullable="true" remarks="{&quot;what&quot;:&quot;Position of the pulse within its collection.&quot;,&quot;why&quot;:&quot;Without it, ordering within a collection is undefined, making display order arbitrary.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.576324154+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="archived" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag: if true, pulse is archived and hidden.&quot;,&quot;why&quot;:&quot;Without it, pulses cannot be hidden without deletion, risking data loss.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.591732192+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="dashboard_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the dashboard associated with this pulse.&quot;,&quot;why&quot;:&quot;Without it, the associated dashboard is unknown, losing context for the pulse.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.614989788+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="parameters" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized parameters (e.g., JSON) for the pulse query.&quot;,&quot;why&quot;:&quot;Without it, the pulse's query configuration is missing, so execution fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.627507814+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of an entity (e.g., user or group) related to the pulse.&quot;,&quot;why&quot;:&quot;Without it, the target entity is unknown, so alerts cannot be directed appropriately.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.646337121+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="15" name="disable_links" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag: if true, links in alerts are disabled.&quot;,&quot;why&quot;:&quot;Without it, links in alerts would be exposed, posing a security risk.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:20.661452767+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pulse_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_pulse_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_pulse_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_pulse_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
         <index name="pulse_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="pulse_card" remarks="{&quot;what&quot;:&quot;关联一次脉冲与一张卡片的连接记录，含展示顺序和导出开关。&quot;,&quot;why&quot;:&quot;没有它则无法知道哪些卡片属于哪个脉冲及其顺序。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.288328258+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;自增整数主键，唯一标识一行关联记录。&quot;,&quot;why&quot;:&quot;无它则无法稳定引用或更新单条关联。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.303005503+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="pulse_id" nullable="false" remarks="{&quot;what&quot;:&quot;所属脉冲的ID，引用pulse表的主键。&quot;,&quot;why&quot;:&quot;无它则不知道卡片属于哪个脉冲。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.316429066+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_card_ref_pulse_id" implied="false" onDeleteCascade="true" schema="public" table="pulse"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;关联的卡片ID，引用card表的主键。&quot;,&quot;why&quot;:&quot;无它则不知道脉冲包含哪些卡片。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.339452082+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_card_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="position" nullable="false" remarks="{&quot;what&quot;:&quot;卡片在脉冲内的显示顺序，从0或1开始递增。&quot;,&quot;why&quot;:&quot;无它则卡片顺序不确定，展示混乱。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.355057224+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="include_csv" nullable="false" remarks="{&quot;what&quot;:&quot;是否在导出中包含CSV格式，默认否。&quot;,&quot;why&quot;:&quot;无它则无法控制导出格式，用户选择丢失。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.369564589+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="include_xls" nullable="false" remarks="{&quot;what&quot;:&quot;是否在导出中包含XLS格式，默认否。&quot;,&quot;why&quot;:&quot;无它则无法控制导出格式，用户选择丢失。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.388740333+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="dashboard_card_id" nullable="true" remarks="{&quot;what&quot;:&quot;关联的仪表盘卡片ID，可能引用dashboard_card表。&quot;,&quot;why&quot;:&quot;无它则无法关联到仪表盘卡片，可能用于跳转或引用。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.411302501+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_card_ref_pulse_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboardcard"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;关联的实体标识符，可能是UUID或字符串。&quot;,&quot;why&quot;:&quot;无它则无法确定具体实体，可能用于多态关联。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.434676088+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="8" name="format_rows" nullable="true" remarks="{&quot;what&quot;:&quot;是否格式化行，默认启用。&quot;,&quot;why&quot;:&quot;无它则无法控制行格式，影响显示效果。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.452545227+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="pivot_results" nullable="true" remarks="{&quot;what&quot;:&quot;是否对结果进行透视，默认关闭。&quot;,&quot;why&quot;:&quot;无它则无法控制结果透视，影响数据展示方式。&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:05.465975398+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pulse_card_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_pulse_card_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_pulse_card_dashboard_card_id" unique="false">
            <column ascending="true" name="dashboard_card_id"/>
         </index>
         <index name="idx_pulse_card_pulse_id" unique="false">
            <column ascending="true" name="pulse_id"/>
         </index>
         <index name="pulse_card_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="pulse_channel" remarks="{&quot;what&quot;:&quot;A delivery channel configuration attached to a pulse, defining how and when to send.&quot;,&quot;why&quot;:&quot;Without it, pulses have no delivery targets or schedules, so notifications cannot be sent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.211306476+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique ID for this channel.&quot;,&quot;why&quot;:&quot;Without it, cannot uniquely identify a channel for updates or foreign key references.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.225607014+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="pulse_channel_id" foreignKey="fk_pulse_channel_recipient_ref_pulse_channel_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_channel_recipient"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="pulse_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID referencing the pulse that owns this channel.&quot;,&quot;why&quot;:&quot;Without it, cannot determine which pulse this channel serves, breaking per-pulse configuration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.243277847+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_channel_ref_pulse_id" implied="false" onDeleteCascade="true" schema="public" table="pulse"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="channel_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of channel, e.g., email, SMS, webhook; determines how details are interpreted.&quot;,&quot;why&quot;:&quot;Without it, the format of details and delivery method are unknown, so messages cannot be sent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.258450635+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="details" nullable="false" remarks="{&quot;what&quot;:&quot;Free-form configuration for the channel, e.g., URL or phone number, parsed according to channel_type.&quot;,&quot;why&quot;:&quot;Without it, the channel lacks the target or settings needed to send a pulse.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.272505111+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="schedule_type" nullable="false" remarks="{&quot;what&quot;:&quot;Recurrence pattern type, e.g., daily, weekly, hourly; controls how schedule_hour/day/frame are used.&quot;,&quot;why&quot;:&quot;Without it, the schedule fields have no meaning, so the channel cannot be triggered at the right time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.286570375+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="schedule_hour" nullable="true" remarks="{&quot;what&quot;:&quot;Hour of day (0-23) for scheduled delivery, when schedule_type requires it.&quot;,&quot;why&quot;:&quot;Without it, the exact time of day for the schedule is unknown, so delivery may occur at wrong hour or not at all.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.312552613+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="schedule_day" nullable="true" remarks="{&quot;what&quot;:&quot;Day(s) of week or month for schedule, e.g., 'MON' or '1,15', depending on schedule_type.&quot;,&quot;why&quot;:&quot;Without it, the day of recurrence is unspecified, so the schedule cannot be computed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.332459469+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the channel was created.&quot;,&quot;why&quot;:&quot;Without it, cannot track when a channel was added, which is needed for auditing and lifecycle management.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.350547894+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of the last update to this channel row.&quot;,&quot;why&quot;:&quot;Without it, cannot know if configuration changed, leading to stale data and inability to detect drift.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.371450366+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="schedule_frame" nullable="true" remarks="{&quot;what&quot;:&quot;Optional time window or frame for scheduling, e.g., 'business_hours' or 'night', further constrains schedule.&quot;,&quot;why&quot;:&quot;Without it, the schedule may fire outside allowed periods, causing unwanted deliveries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.388812864+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="10" name="enabled" nullable="false" remarks="{&quot;what&quot;:&quot;Whether this channel is active and eligible for delivery; default true.&quot;,&quot;why&quot;:&quot;Without it, cannot disable a channel without deleting it, so temporary suspension is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.406546679+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Character string identifying an external entity (e.g., user ID) that this channel belongs to.&quot;,&quot;why&quot;:&quot;Without it, cannot map a channel to a specific entity, breaking per-entity configuration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.422765849+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="channel_id" nullable="true" remarks="{&quot;what&quot;:&quot;Numeric ID of a related channel, possibly for grouping or parent-child relationships.&quot;,&quot;why&quot;:&quot;Without it, cannot associate this channel with another channel, so hierarchical or grouped channel logic is unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:26.436132688+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_channel_channel_id" implied="false" onDeleteCascade="true" schema="public" table="channel"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pulse_channel_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_pulse_channel_pulse_id" unique="false">
            <column ascending="true" name="pulse_id"/>
         </index>
         <index name="idx_pulse_channel_schedule_type" unique="false">
            <column ascending="true" name="schedule_type"/>
         </index>
         <index name="pulse_channel_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="pulse_channel_recipient" remarks="{&quot;what&quot;:&quot;Links a pulse channel to a user who receives it.&quot;,&quot;why&quot;:&quot;Without it, the set of recipients per channel is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.923676960+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key, unique per association row.&quot;,&quot;why&quot;:&quot;Without it, individual channel-user links cannot be referenced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.953423704+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="pulse_channel_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the pulse channel being subscribed to.&quot;,&quot;why&quot;:&quot;Without it, the channel for each recipient is unidentified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:12.991074449+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_channel_recipient_ref_pulse_channel_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_channel"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the user who is a recipient of the channel.&quot;,&quot;why&quot;:&quot;Without it, the user for each subscription is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:13.059120671+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_pulse_channel_recipient_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pulse_channel_recipient_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_pulse_channel_recipient_pulse_channel_id" unique="false">
            <column ascending="true" name="pulse_channel_id"/>
         </index>
         <index name="idx_pulse_channel_recipient_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="python_library" remarks="{&quot;what&quot;:&quot;A Python library file or module entry with path, source, and timestamps.&quot;,&quot;why&quot;:&quot;Provides a single record per library to support code analysis and dependency tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.715449934+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each library record.&quot;,&quot;why&quot;:&quot;Serves as primary key for stable references and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.740502748+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="path" nullable="false" remarks="{&quot;what&quot;:&quot;Filesystem or import path of the library, e.g., 'os/path.py'.&quot;,&quot;why&quot;:&quot;Uniquely identifies the library; without it, duplicates and lookups fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.755828471+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="source" nullable="true" remarks="{&quot;what&quot;:&quot;Full source code of the library as text; null if not stored.&quot;,&quot;why&quot;:&quot;Enables code inspection and analysis; absence means content unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.774296018+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the record was inserted, in UTC.&quot;,&quot;why&quot;:&quot;Shows when library was added; needed for audit and ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.794475340+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last update to the record, in UTC.&quot;,&quot;why&quot;:&quot;Detects stale entries and tracks modifications over time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.811569801+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Single-character code classifying the library entity type.&quot;,&quot;why&quot;:&quot;Distinguishes entity kinds (e.g., module, package) for filtering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:23.842801495+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="pk_python_library" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_python_library_entity_id" unique="false">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="uk_python_library_path" unique="true">
            <column ascending="true" name="path"/>
         </index>
         <index name="unique_python_library_entity_id" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="qrtz_blob_triggers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, triggers from different schedulers collide.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:30.002664370+00:00&quot;}" size="120" type="varchar" typeCode="12">
            <parent column="sched_name" foreignKey="fk_qrtz_blob_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="trigger_name" nullable="false" remarks="{&quot;what&quot;:&quot;Trigger name within its group; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, triggers in the same group cannot be distinguished.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:30.018942993+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_name" foreignKey="fk_qrtz_blob_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name that categorizes triggers; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, trigger names are not unique across groups.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:30.031447065+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_group" foreignKey="fk_qrtz_blob_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="blob_data" nullable="true" remarks="{&quot;what&quot;:&quot;Binary serialized trigger details; format depends on scheduler.&quot;,&quot;why&quot;:&quot;Without it, trigger data that relies on BLOB storage is unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:30.060435061+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="trigger_name" sequenceNumberInPK="2"/>
         <primaryKey column="trigger_group" sequenceNumberInPK="3"/>
         <index name="pk_qrtz_blob_triggers" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
      </table>
      <table name="qrtz_calendars" remarks="{&quot;what&quot;:&quot;Quartz scheduler calendar definitions, one row per named calendar per scheduler.&quot;,&quot;why&quot;:&quot;Without it, custom calendars for scheduling cannot be persisted or retrieved.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.223064186+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name; part of composite primary key.&quot;,&quot;why&quot;:&quot;Distinguishes calendars belonging to different scheduler instances.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.237751477+00:00&quot;}" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="calendar_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique calendar name within a scheduler; part of composite primary key.&quot;,&quot;why&quot;:&quot;Identifies which calendar to use when scheduling jobs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.258556711+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="calendar" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized Quartz Calendar object as bytea.&quot;,&quot;why&quot;:&quot;Without it, the calendar's rules are unavailable, so scheduling cannot respect them.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.290120648+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="calendar_name" sequenceNumberInPK="2"/>
         <index name="pk_qrtz_calendars" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="calendar_name"/>
         </index>
      </table>
      <table name="qrtz_cron_triggers" remarks="{&quot;what&quot;:&quot;Holds cron-specific parameters for triggers that use cron scheduling.&quot;,&quot;why&quot;:&quot;Without it, cron triggers would lack their schedule definition and timezone.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.779580452+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name that owns this trigger; part of composite key.&quot;,&quot;why&quot;:&quot;Distinguishes triggers across multiple scheduler instances in a shared database.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.799759224+00:00&quot;}" size="120" type="varchar" typeCode="12">
            <parent column="sched_name" foreignKey="fk_qrtz_cron_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="trigger_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique name of the trigger within its group and scheduler.&quot;,&quot;why&quot;:&quot;Identifies the specific trigger for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.868476036+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_name" foreignKey="fk_qrtz_cron_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name that organizes triggers; part of composite key.&quot;,&quot;why&quot;:&quot;Allows grouping triggers for batch operations and avoids name collisions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.903964898+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_group" foreignKey="fk_qrtz_cron_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="cron_expression" nullable="false" remarks="{&quot;what&quot;:&quot;Cron syntax string defining the firing schedule (e.g., \&quot;0 0 12 * * ?\&quot;).&quot;,&quot;why&quot;:&quot;Without it, the trigger has no schedule and cannot fire.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.934930710+00:00&quot;}" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="time_zone_id" nullable="true" remarks="{&quot;what&quot;:&quot;IANA time zone identifier used to interpret the cron expression.&quot;,&quot;why&quot;:&quot;Ensures schedule aligns with a specific timezone; missing it may default to server timezone causing unexpected firing times.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:21.956317443+00:00&quot;}" size="80" type="varchar" typeCode="12"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="trigger_name" sequenceNumberInPK="2"/>
         <primaryKey column="trigger_group" sequenceNumberInPK="3"/>
         <index name="pk_qrtz_cron_triggers" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
      </table>
      <table name="qrtz_fired_triggers" remarks="{&quot;what&quot;:&quot;Records of triggers that have fired and are being executed.&quot;,&quot;why&quot;:&quot;Tracks running jobs for monitoring, recovery, and concurrency control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.099429140+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name that fired the trigger; part of composite key.&quot;,&quot;why&quot;:&quot;Distinguishes rows from different schedulers in a shared table.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.598612647+00:00&quot;}" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entry_id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique identifier for this firing event within the scheduler.&quot;,&quot;why&quot;:&quot;Uniquely identifies a firing record for updates and deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.645826313+00:00&quot;}" size="95" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="trigger_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the trigger that caused this firing.&quot;,&quot;why&quot;:&quot;Identifies which trigger is running; needed for job lookup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.660694942+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name of the fired trigger.&quot;,&quot;why&quot;:&quot;Groups triggers for management; used with trigger_name to locate trigger definition.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.689721104+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="instance_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the scheduler instance that is executing the trigger.&quot;,&quot;why&quot;:&quot;Tracks which node is handling the job; essential for failover and load balancing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.722419019+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="fired_time" nullable="false" remarks="{&quot;what&quot;:&quot;Epoch milliseconds when the trigger fired.&quot;,&quot;why&quot;:&quot;Used to compute execution duration and detect hung jobs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.761781220+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="sched_time" nullable="true" remarks="{&quot;what&quot;:&quot;Epoch milliseconds when the trigger was scheduled to fire.&quot;,&quot;why&quot;:&quot;Shows delay between scheduled and actual fire time; helps monitor scheduling accuracy.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.875557343+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="priority" nullable="false" remarks="{&quot;what&quot;:&quot;Priority of the fired trigger; higher value runs first.&quot;,&quot;why&quot;:&quot;Determines execution order when multiple triggers fire simultaneously.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.903458324+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="state" nullable="false" remarks="{&quot;what&quot;:&quot;Current state of the firing, e.g., ACQUIRED or EXECUTING.&quot;,&quot;why&quot;:&quot;Tracks lifecycle of the firing; needed for recovery and cleanup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:40.961555155+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="job_name" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the job that the trigger is associated with.&quot;,&quot;why&quot;:&quot;Links firing to job details; used for job recovery and monitoring.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:41.109492439+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="job_group" nullable="true" remarks="{&quot;what&quot;:&quot;Group name of the associated job.&quot;,&quot;why&quot;:&quot;Identifies job group; used with job_name to locate job definition.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:41.264518838+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="is_nonconcurrent" nullable="true" remarks="{&quot;what&quot;:&quot;True if the job disallows concurrent execution.&quot;,&quot;why&quot;:&quot;Prevents overlapping executions; needed to enforce concurrency policy.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:41.374717307+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="requests_recovery" nullable="true" remarks="{&quot;what&quot;:&quot;True if the job should be re-executed after a scheduler failure.&quot;,&quot;why&quot;:&quot;Determines if the job must be recovered; critical for durability.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:41.965992916+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="entry_id" sequenceNumberInPK="2"/>
         <index name="pk_qrtz_fired_triggers" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="entry_id"/>
         </index>
         <index name="idx_qrtz_ft_inst_job_req_rcvry" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="instance_name"/>
            <column ascending="true" name="requests_recovery"/>
         </index>
         <index name="idx_qrtz_ft_j_g" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="job_name"/>
            <column ascending="true" name="job_group"/>
         </index>
         <index name="idx_qrtz_ft_jg" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="job_group"/>
         </index>
         <index name="idx_qrtz_ft_t_g" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
         <index name="idx_qrtz_ft_tg" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
         <index name="idx_qrtz_ft_trig_inst_name" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="instance_name"/>
         </index>
      </table>
      <table name="qrtz_job_details" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the scheduler instance that owns this job.&quot;,&quot;why&quot;:&quot;Distinguishes jobs across multiple scheduler instances in same DB.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.641280193+00:00&quot;}" size="120" type="varchar" typeCode="12">
            <child column="sched_name" foreignKey="fk_qrtz_triggers_job_details" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique job name within its group and scheduler.&quot;,&quot;why&quot;:&quot;Identifies a specific job for lookup and management.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.652148723+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <child column="job_name" foreignKey="fk_qrtz_triggers_job_details" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="job_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name that organizes jobs.&quot;,&quot;why&quot;:&quot;Allows grouping jobs for operations like pause/resume by group.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.678597313+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <child column="job_group" foreignKey="fk_qrtz_triggers_job_details" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Human-readable description of the job's purpose.&quot;,&quot;why&quot;:&quot;Provides context for operators; not used by scheduler logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.709029583+00:00&quot;}" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="job_class_name" nullable="false" remarks="{&quot;what&quot;:&quot;Java class name that implements the job.&quot;,&quot;why&quot;:&quot;Scheduler instantiates this class to execute the job.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.739245417+00:00&quot;}" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="is_durable" nullable="false" remarks="{&quot;what&quot;:&quot;True if job remains stored even with no triggers.&quot;,&quot;why&quot;:&quot;Distinguishes durable jobs from transient ones; prevents incorrect deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.752505566+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="is_nonconcurrent" nullable="false" remarks="{&quot;what&quot;:&quot;True if job cannot run concurrently with itself.&quot;,&quot;why&quot;:&quot;Prevents race conditions for stateful jobs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.770412508+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="is_update_data" nullable="false" remarks="{&quot;what&quot;:&quot;True if job data should be re-stored after execution.&quot;,&quot;why&quot;:&quot;Ensures updated job data persists for next run.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.810555055+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="requests_recovery" nullable="false" remarks="{&quot;what&quot;:&quot;True if job should be re-executed after a crash.&quot;,&quot;why&quot;:&quot;Ensures critical jobs are not lost on failure.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.833732601+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="job_data" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized binary data associated with the job.&quot;,&quot;why&quot;:&quot;Holds job-specific parameters needed at execution time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:36.916124690+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="job_name" sequenceNumberInPK="2"/>
         <primaryKey column="job_group" sequenceNumberInPK="3"/>
         <index name="pk_qrtz_job_details" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="job_name"/>
            <column ascending="true" name="job_group"/>
         </index>
         <index name="idx_qrtz_j_grp" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="job_group"/>
         </index>
         <index name="idx_qrtz_j_req_recovery" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="requests_recovery"/>
         </index>
      </table>
      <table name="qrtz_locks" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name; part of composite primary key.&quot;,&quot;why&quot;:&quot;Distinguishes locks belonging to different scheduler instances.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:36.952630976+00:00&quot;}" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="lock_name" nullable="false" remarks="{&quot;what&quot;:&quot;Lock identifier (e.g., TRIGGER_ACCESS); part of composite primary key.&quot;,&quot;why&quot;:&quot;Uniquely identifies a lock within a scheduler to serialize access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:37.175883624+00:00&quot;}" size="40" type="varchar" typeCode="12"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="lock_name" sequenceNumberInPK="2"/>
         <index name="pk_qrtz_locks" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="lock_name"/>
         </index>
      </table>
      <table name="qrtz_paused_trigger_grps" remarks="{&quot;what&quot;:&quot;Rows identify trigger groups paused per scheduler instance.&quot;,&quot;why&quot;:&quot;Without it, paused groups would be forgotten after restart or across schedulers.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:32.243040581+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name; part of composite key with trigger_group.&quot;,&quot;why&quot;:&quot;Distinguishes paused groups across multiple scheduler instances.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:32.260890514+00:00&quot;}" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name whose triggers are paused; part of composite key.&quot;,&quot;why&quot;:&quot;Ensures new triggers in this group start paused; otherwise they'd run unexpectedly.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:32.293411551+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="trigger_group" sequenceNumberInPK="2"/>
         <index name="pk_sched_name" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
      </table>
      <table name="qrtz_scheduler_state" remarks="{&quot;what&quot;:&quot;State of each Quartz scheduler instance for cluster coordination.&quot;,&quot;why&quot;:&quot;Without it, cluster nodes cannot know which instances are alive and when they last checked in.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:45.788711658+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the scheduler cluster; part of composite key.&quot;,&quot;why&quot;:&quot;Identifies which scheduler cluster this state belongs to, enabling multiple schedulers in one DB.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:45.959754584+00:00&quot;}" size="120" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="instance_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique identifier of a scheduler instance within the cluster.&quot;,&quot;why&quot;:&quot;Distinguishes each node's state so the cluster can detect failures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:46.450477575+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="last_checkin_time" nullable="false" remarks="{&quot;what&quot;:&quot;Epoch milliseconds of the last heartbeat from this instance.&quot;,&quot;why&quot;:&quot;Without it, the cluster cannot determine if an instance is alive or has failed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:46.540925895+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="checkin_interval" nullable="false" remarks="{&quot;what&quot;:&quot;Expected interval in milliseconds between heartbeats.&quot;,&quot;why&quot;:&quot;Without it, the cluster cannot decide when a missed check-in indicates a dead instance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:46.634457221+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="instance_name" sequenceNumberInPK="2"/>
         <index name="pk_qrtz_scheduler_state" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="instance_name"/>
         </index>
      </table>
      <table name="qrtz_simple_triggers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name that owns this trigger; part of composite key.&quot;,&quot;why&quot;:&quot;Without it, triggers from different schedulers would collide in the same table.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:50.652494803+00:00&quot;}" size="120" type="varchar" typeCode="12">
            <parent column="sched_name" foreignKey="fk_qrtz_simple_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="trigger_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique trigger name within its group and scheduler; part of composite key.&quot;,&quot;why&quot;:&quot;Identifies which trigger these simple settings belong to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:50.668405809+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_name" foreignKey="fk_qrtz_simple_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name that scopes the trigger name; part of composite key.&quot;,&quot;why&quot;:&quot;Allows same trigger name in different groups without ambiguity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:50.694379640+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_group" foreignKey="fk_qrtz_simple_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="repeat_count" nullable="false" remarks="{&quot;what&quot;:&quot;Number of additional firings after the first.&quot;,&quot;why&quot;:&quot;Without it, the scheduler cannot determine when to stop repeating the trigger.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:50.706426060+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="repeat_interval" nullable="false" remarks="{&quot;what&quot;:&quot;Milliseconds between successive firings.&quot;,&quot;why&quot;:&quot;Without it, the scheduler cannot compute when to fire next.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:50.717290642+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="times_triggered" nullable="false" remarks="{&quot;what&quot;:&quot;Count of how many times this trigger has already fired.&quot;,&quot;why&quot;:&quot;Without it, the scheduler cannot know how many repeats remain or if the trigger is exhausted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:50.726719690+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="trigger_name" sequenceNumberInPK="2"/>
         <primaryKey column="trigger_group" sequenceNumberInPK="3"/>
         <index name="pk_qrtz_simple_triggers" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
      </table>
      <table name="qrtz_simprop_triggers" remarks="{&quot;what&quot;:&quot;Holds typed property values for triggers that use simple properties in Quartz.&quot;,&quot;why&quot;:&quot;Without it, trigger-specific property values would be lost, breaking trigger recovery and execution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:58.038856180+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name that owns the trigger; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, triggers from different schedulers would collide, making property lookup ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:58.663430920+00:00&quot;}" size="120" type="varchar" typeCode="12">
            <parent column="sched_name" foreignKey="fk_qrtz_simprop_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="trigger_name" nullable="false" remarks="{&quot;what&quot;:&quot;Trigger name within its group; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, the trigger cannot be uniquely identified to fetch its properties.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.314509521+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_name" foreignKey="fk_qrtz_simprop_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Trigger group name; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, triggers with same name in different groups would be ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.365966067+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="trigger_group" foreignKey="fk_qrtz_simprop_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="str_prop_1" nullable="true" remarks="{&quot;what&quot;:&quot;First string property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's first string property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.413434214+00:00&quot;}" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="str_prop_2" nullable="true" remarks="{&quot;what&quot;:&quot;Second string property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's second string property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.440117126+00:00&quot;}" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="str_prop_3" nullable="true" remarks="{&quot;what&quot;:&quot;Third string property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's third string property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.470721445+00:00&quot;}" size="512" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="int_prop_1" nullable="true" remarks="{&quot;what&quot;:&quot;First integer property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's first integer property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.560037548+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="int_prop_2" nullable="true" remarks="{&quot;what&quot;:&quot;Second integer property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's second integer property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.654477686+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="long_prop_1" nullable="true" remarks="{&quot;what&quot;:&quot;First long integer property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's first long property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.737480882+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="long_prop_2" nullable="true" remarks="{&quot;what&quot;:&quot;Second long integer property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's second long property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.839070321+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="10" name="dec_prop_1" nullable="true" remarks="{&quot;what&quot;:&quot;First decimal property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's first decimal property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.852955864+00:00&quot;}" size="13" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="4" id="11" name="dec_prop_2" nullable="true" remarks="{&quot;what&quot;:&quot;Second decimal property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's second decimal property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.887849792+00:00&quot;}" size="13" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="bool_prop_1" nullable="true" remarks="{&quot;what&quot;:&quot;First boolean property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's first boolean property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.901902762+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="bool_prop_2" nullable="true" remarks="{&quot;what&quot;:&quot;Second boolean property value; semantics depend on the trigger's configuration.&quot;,&quot;why&quot;:&quot;Without it, the trigger's second boolean property is missing, altering its behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:10:59.948211280+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="trigger_name" sequenceNumberInPK="2"/>
         <primaryKey column="trigger_group" sequenceNumberInPK="3"/>
         <index name="pk_qrtz_simprop_triggers" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
      </table>
      <table name="qrtz_triggers" remarks="{&quot;what&quot;:&quot;Scheduler trigger records that define when and how jobs are fired.&quot;,&quot;why&quot;:&quot;Without it, the scheduler cannot track or execute scheduled jobs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:11.096404804+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="sched_name" nullable="false" remarks="{&quot;what&quot;:&quot;Scheduler instance name; part of composite primary key.&quot;,&quot;why&quot;:&quot;Distinguishes triggers across multiple scheduler instances in shared tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:11.221095939+00:00&quot;}" size="120" type="varchar" typeCode="12">
            <child column="sched_name" foreignKey="fk_qrtz_blob_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_blob_triggers"/>
            <child column="sched_name" foreignKey="fk_qrtz_cron_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_cron_triggers"/>
            <child column="sched_name" foreignKey="fk_qrtz_simple_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_simple_triggers"/>
            <child column="sched_name" foreignKey="fk_qrtz_simprop_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_simprop_triggers"/>
            <parent column="sched_name" foreignKey="fk_qrtz_triggers_job_details" implied="false" onDeleteCascade="false" schema="public" table="qrtz_job_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="trigger_name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique trigger name within its group and scheduler.&quot;,&quot;why&quot;:&quot;Identifies a specific trigger for update, pause, or removal.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:11.260941419+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <child column="trigger_name" foreignKey="fk_qrtz_blob_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_blob_triggers"/>
            <child column="trigger_name" foreignKey="fk_qrtz_cron_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_cron_triggers"/>
            <child column="trigger_name" foreignKey="fk_qrtz_simple_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_simple_triggers"/>
            <child column="trigger_name" foreignKey="fk_qrtz_simprop_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_simprop_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="trigger_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name for organizing triggers; part of composite key.&quot;,&quot;why&quot;:&quot;Allows grouping triggers for bulk operations like pausing all in a group.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:11.685639601+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <child column="trigger_group" foreignKey="fk_qrtz_blob_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_blob_triggers"/>
            <child column="trigger_group" foreignKey="fk_qrtz_cron_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_cron_triggers"/>
            <child column="trigger_group" foreignKey="fk_qrtz_simple_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_simple_triggers"/>
            <child column="trigger_group" foreignKey="fk_qrtz_simprop_triggers_triggers" implied="false" onDeleteCascade="false" schema="public" table="qrtz_simprop_triggers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="job_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the job this trigger fires.&quot;,&quot;why&quot;:&quot;Links trigger to its job definition; without it, firing would have no target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:12.141874912+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="job_name" foreignKey="fk_qrtz_triggers_job_details" implied="false" onDeleteCascade="false" schema="public" table="qrtz_job_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="job_group" nullable="false" remarks="{&quot;what&quot;:&quot;Group name of the associated job.&quot;,&quot;why&quot;:&quot;Together with job_name uniquely identifies the job to execute.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:13.109646869+00:00&quot;}" size="200" type="varchar" typeCode="12">
            <parent column="job_group" foreignKey="fk_qrtz_triggers_job_details" implied="false" onDeleteCascade="false" schema="public" table="qrtz_job_details"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text description of the trigger's purpose.&quot;,&quot;why&quot;:&quot;Provides human-readable context for maintenance and debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:13.540936567+00:00&quot;}" size="250" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="next_fire_time" nullable="true" remarks="{&quot;what&quot;:&quot;Epoch milliseconds of the next scheduled fire time.&quot;,&quot;why&quot;:&quot;Determines when the scheduler should wake up; missing it breaks scheduling.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.256584549+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="prev_fire_time" nullable="true" remarks="{&quot;what&quot;:&quot;Epoch milliseconds of the last fire time.&quot;,&quot;why&quot;:&quot;Used to compute misfire and for audit; without it, recovery after restart is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.585959063+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="priority" nullable="true" remarks="{&quot;what&quot;:&quot;Priority for firing when multiple triggers are due; higher wins.&quot;,&quot;why&quot;:&quot;Resolves ordering conflicts when several triggers fire at the same time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.647535605+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="trigger_state" nullable="false" remarks="{&quot;what&quot;:&quot;Current state: WAITING, PAUSED, ACQUIRED, etc.&quot;,&quot;why&quot;:&quot;Determines whether the trigger is eligible for firing; without it, scheduler cannot decide.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.736573634+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="trigger_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of trigger: SIMPLE, CRON, etc.&quot;,&quot;why&quot;:&quot;Defines how next fire time is computed; wrong type breaks scheduling logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.759056058+00:00&quot;}" size="8" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="start_time" nullable="false" remarks="{&quot;what&quot;:&quot;Epoch milliseconds when the trigger becomes active.&quot;,&quot;why&quot;:&quot;Prevents firing before the start; without it, early fires are possible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.781507908+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="end_time" nullable="true" remarks="{&quot;what&quot;:&quot;Epoch milliseconds after which the trigger stops firing.&quot;,&quot;why&quot;:&quot;Limits trigger lifetime; without it, trigger would fire indefinitely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.836405759+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="calendar_name" nullable="true" remarks="{&quot;what&quot;:&quot;Name of a calendar that excludes certain times.&quot;,&quot;why&quot;:&quot;Applies holiday exclusions; without it, trigger would fire on excluded days.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:14.896001467+00:00&quot;}" size="200" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="misfire_instr" nullable="true" remarks="{&quot;what&quot;:&quot;Instruction code for handling missed fires (e.g., 1=ignore).&quot;,&quot;why&quot;:&quot;Defines behavior when a fire time is missed; without it, misfire policy is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:15.016598762+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="job_data" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized job data map (binary) passed to the job.&quot;,&quot;why&quot;:&quot;Carries job-specific parameters; without it, job loses its configuration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:15.061434054+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="sched_name" sequenceNumberInPK="1"/>
         <primaryKey column="trigger_name" sequenceNumberInPK="2"/>
         <primaryKey column="trigger_group" sequenceNumberInPK="3"/>
         <index name="pk_qrtz_triggers" unique="true">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
         <index name="idx_qrtz_t_c" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="calendar_name"/>
         </index>
         <index name="idx_qrtz_t_g" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_group"/>
         </index>
         <index name="idx_qrtz_t_j" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="job_name"/>
            <column ascending="true" name="job_group"/>
         </index>
         <index name="idx_qrtz_t_jg" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="job_group"/>
         </index>
         <index name="idx_qrtz_t_n_g_state" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_group"/>
            <column ascending="true" name="trigger_state"/>
         </index>
         <index name="idx_qrtz_t_n_state" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_name"/>
            <column ascending="true" name="trigger_group"/>
            <column ascending="true" name="trigger_state"/>
         </index>
         <index name="idx_qrtz_t_next_fire_time" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="next_fire_time"/>
         </index>
         <index name="idx_qrtz_t_nft_misfire" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="misfire_instr"/>
            <column ascending="true" name="next_fire_time"/>
         </index>
         <index name="idx_qrtz_t_nft_st" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_state"/>
            <column ascending="true" name="next_fire_time"/>
         </index>
         <index name="idx_qrtz_t_nft_st_misfire" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="misfire_instr"/>
            <column ascending="true" name="next_fire_time"/>
            <column ascending="true" name="trigger_state"/>
         </index>
         <index name="idx_qrtz_t_nft_st_misfire_grp" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="misfire_instr"/>
            <column ascending="true" name="next_fire_time"/>
            <column ascending="true" name="trigger_group"/>
            <column ascending="true" name="trigger_state"/>
         </index>
         <index name="idx_qrtz_t_state" unique="false">
            <column ascending="true" name="sched_name"/>
            <column ascending="true" name="trigger_state"/>
         </index>
      </table>
      <table name="query" remarks="{&quot;what&quot;:&quot;Aggregated performance statistics for distinct SQL queries.&quot;,&quot;why&quot;:&quot;Without it, there is no record of query execution times for optimization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:03.870484631+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="query_hash" nullable="false" remarks="{&quot;what&quot;:&quot;Binary hash of the query text; unique identifier for a query.&quot;,&quot;why&quot;:&quot;Without it, identical queries cannot be grouped or looked up efficiently.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:03.891120059+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="average_execution_time" nullable="false" remarks="{&quot;what&quot;:&quot;Average execution time of the query, in the unit used by the application.&quot;,&quot;why&quot;:&quot;Without it, query performance trends cannot be analyzed or compared.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:03.953871201+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="query" nullable="true" remarks="{&quot;what&quot;:&quot;The full SQL query text.&quot;,&quot;why&quot;:&quot;Without it, the hash cannot be mapped back to the actual query for review or debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:03.987855731+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="query_hash" sequenceNumberInPK="1"/>
         <index name="query_pkey" unique="true">
            <column ascending="true" name="query_hash"/>
         </index>
      </table>
      <table name="query_action" remarks="{&quot;what&quot;:&quot;Associates a query action with a database and its query definition.&quot;,&quot;why&quot;:&quot;Without it, there is no mapping between an action and the query it runs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:46.210903918+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="action_id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each query action.&quot;,&quot;why&quot;:&quot;Enables unique reference to a query action from other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:46.241448013+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_query_action_ref_action_id" implied="false" onDeleteCascade="true" schema="public" table="action"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="database_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer referencing the database used by this query.&quot;,&quot;why&quot;:&quot;Determines which database the query executes against.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:46.260420725+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_query_action_database_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="dataset_query" nullable="false" remarks="{&quot;what&quot;:&quot;Query definition in the application's dataset format (e.g., JSON).&quot;,&quot;why&quot;:&quot;Provides the executable query definition for the action.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:46.290381976+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="legacy_query" nullable="true" remarks="{&quot;what&quot;:&quot;Query in an older format, present only when different from dataset_query.&quot;,&quot;why&quot;:&quot;Supports clients that only understand the legacy query format.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:46.310391208+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="action_id" sequenceNumberInPK="1"/>
         <index name="pk_query_action" unique="true">
            <column ascending="true" name="action_id"/>
         </index>
         <index name="idx_query_action_database_id" unique="false">
            <column ascending="true" name="database_id"/>
         </index>
      </table>
      <table name="query_cache" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="query_hash" nullable="false" remarks="{&quot;what&quot;:&quot;Binary hash of the query text; the unique cache key.&quot;,&quot;why&quot;:&quot;Without it, identical queries cannot be matched to cached results.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:10.743761831+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last refresh of this cache entry.&quot;,&quot;why&quot;:&quot;Without it, stale entries cannot be identified for eviction.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:10.778801210+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="results" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized result set for the query, in application-specific format.&quot;,&quot;why&quot;:&quot;Without it, the cache would hold no data to return.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:10.826887930+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="query_hash" sequenceNumberInPK="1"/>
         <index name="query_cache_pkey" unique="true">
            <column ascending="true" name="query_hash"/>
         </index>
         <index name="idx_query_cache_updated_at" unique="false">
            <column ascending="true" name="updated_at"/>
         </index>
      </table>
      <table name="query_execution" remarks="{&quot;what&quot;:&quot;Log of each query execution with timing, result, and context.&quot;,&quot;why&quot;:&quot;Without it, there is no record of query activity for performance, debugging, or audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:57.975862536+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each execution record.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or joined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:57.997912096+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="query_execution_id" foreignKey="fk_field_usage_query_execution_id" implied="false" onDeleteCascade="true" schema="public" table="field_usage"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="hash" nullable="false" remarks="{&quot;what&quot;:&quot;Binary digest of the query text, used to detect duplicate executions.&quot;,&quot;why&quot;:&quot;Without it, identical queries cannot be grouped for performance analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.011268355+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="started_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the query execution began.&quot;,&quot;why&quot;:&quot;Without it, cannot measure execution time or order events.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.029643191+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="running_time" nullable="false" remarks="{&quot;what&quot;:&quot;Duration of execution in milliseconds.&quot;,&quot;why&quot;:&quot;Without it, performance regressions cannot be identified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.042527849+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="result_rows" nullable="false" remarks="{&quot;what&quot;:&quot;Number of rows returned by the query.&quot;,&quot;why&quot;:&quot;Without it, cannot assess result size or validate expected row counts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.070651267+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="native" nullable="false" remarks="{&quot;what&quot;:&quot;True if the query is raw SQL, false if built with the query builder.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish user-written SQL from generated queries for debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.083137709+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="context" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form string describing the execution context (e.g., source, environment).&quot;,&quot;why&quot;:&quot;Without it, the origin of the query cannot be traced beyond explicit foreign keys.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.104986278+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="error" nullable="true" remarks="{&quot;what&quot;:&quot;Error message if execution failed, otherwise null.&quot;,&quot;why&quot;:&quot;Without it, failed executions cannot be diagnosed or alerted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.167523442+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="executor_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the user or service that executed the query.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute executions to specific users for auditing or quotas.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.187248990+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="card_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the saved question (card) that triggered this execution.&quot;,&quot;why&quot;:&quot;Without it, cannot link executions to specific saved questions for usage analytics.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.204822458+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="dashboard_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the dashboard that triggered this execution.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute executions to dashboards for performance monitoring.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.220077582+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="pulse_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the pulse (scheduled report) that triggered this execution.&quot;,&quot;why&quot;:&quot;Without it, cannot track executions from scheduled alerts or reports.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.239294325+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="database_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the database the query ran against.&quot;,&quot;why&quot;:&quot;Without it, cannot filter or aggregate executions per database.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.272970560+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="cache_hit" nullable="true" remarks="{&quot;what&quot;:&quot;True if the result was served from cache, false if executed.&quot;,&quot;why&quot;:&quot;Without it, cannot measure cache effectiveness or identify cache misses.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.288893129+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="action_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the action (e.g., button) that triggered this execution.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute executions to interactive actions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.316361296+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="is_sandboxed" nullable="true" remarks="{&quot;what&quot;:&quot;True if the query ran with row-level security sandboxing.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish sandboxed executions for security audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.341869739+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="cache_hash" nullable="true" remarks="{&quot;what&quot;:&quot;Binary hash of the cached result set, if cached.&quot;,&quot;why&quot;:&quot;Without it, cannot verify cache integrity or match results to cache entries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.355021367+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="embedding_client" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the embedding client (e.g., app name) that initiated the query.&quot;,&quot;why&quot;:&quot;Without it, cannot track usage from embedded analytics.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.370741972+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="embedding_version" nullable="true" remarks="{&quot;what&quot;:&quot;Version string of the embedding client.&quot;,&quot;why&quot;:&quot;Without it, cannot correlate issues with specific embedding versions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.388009809+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="parameterized" nullable="true" remarks="{&quot;what&quot;:&quot;True if the query used parameters, false if literal values.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish parameterized queries for caching or security analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:05:58.415567700+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="query_execution_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_query_execution_action_id" unique="false">
            <column ascending="true" name="action_id"/>
         </index>
         <index name="idx_query_execution_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_query_execution_card_id_started_at" unique="false">
            <column ascending="true" name="card_id"/>
            <column ascending="true" name="started_at"/>
         </index>
         <index name="idx_query_execution_card_qualified_id" unique="false"/>
         <index name="idx_query_execution_context" unique="false">
            <column ascending="true" name="context"/>
         </index>
         <index name="idx_query_execution_executor_id" unique="false">
            <column ascending="true" name="executor_id"/>
         </index>
         <index name="idx_query_execution_query_hash_started_at" unique="false">
            <column ascending="true" name="hash"/>
            <column ascending="true" name="started_at"/>
         </index>
         <index name="idx_query_execution_started_at" unique="false">
            <column ascending="true" name="started_at"/>
         </index>
      </table>
      <table name="query_field" remarks="{&quot;what&quot;:&quot;Links a query card to a field and carries the database column reference used to fetch it.&quot;,&quot;why&quot;:&quot;Without it, a card cannot define which fields to select, so the query builder cannot generate SELECT clauses.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.839586285+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key, unique per row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely identified for updates or deletions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.860345322+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the query card this field belongs to.&quot;,&quot;why&quot;:&quot;Without it, a field mapping cannot be associated with a specific card, making queries ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.896765042+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_query_field_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="field_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional identifier of a predefined field definition this mapping refers to.&quot;,&quot;why&quot;:&quot;Without it, the mapping cannot link to field metadata like label or type when using a predefined field.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:26.010681964+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_query_field_field_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_field"/>
         </column>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="explicit_reference" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the column reference is explicit (true) or derived from field_id (false).&quot;,&quot;why&quot;:&quot;Without it, the query builder cannot decide whether to use the column/table/schema directly or resolve via field_id.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:26.120523966+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="column" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the database column to select or filter on.&quot;,&quot;why&quot;:&quot;Without it, the query has no column to reference, so the SELECT or WHERE clause cannot be built.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:26.179418171+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="table" nullable="true" remarks="{&quot;what&quot;:&quot;Optional table name that qualifies the column.&quot;,&quot;why&quot;:&quot;Without it, the column may be ambiguous if multiple tables are in scope.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:26.228270475+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional numeric identifier of the table, alternative to the table name.&quot;,&quot;why&quot;:&quot;Without it, the table can only be referenced by name, which may change or be ambiguous across schemas.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:26.379581205+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="schema" nullable="true" remarks="{&quot;what&quot;:&quot;Database schema that qualifies the table, if any.&quot;,&quot;why&quot;:&quot;Without it, the table may be searched in the default schema, causing wrong resolution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:26.508103766+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="query_field_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_query_field_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_query_field_field_id" unique="false">
            <column ascending="true" name="field_id"/>
         </index>
      </table>
      <table name="query_table" remarks="{&quot;what&quot;:&quot;Mapping of cards to database tables for query execution.&quot;,&quot;why&quot;:&quot;Without it, cards would have no defined data source.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:25.166505148+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each mapping row.&quot;,&quot;why&quot;:&quot;Provides a stable key for updates and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:25.191034878+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Numeric ID of the card that owns this mapping.&quot;,&quot;why&quot;:&quot;Links a card to its data source; without it, card-to-table association is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:25.207629770+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_query_table_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional numeric ID of a registered table metadata record.&quot;,&quot;why&quot;:&quot;When present, enables joins to table metadata; null when only a raw name is used.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:25.240400740+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_query_table_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="schema" nullable="true" remarks="{&quot;what&quot;:&quot;Database schema qualifier such as 'public'.&quot;,&quot;why&quot;:&quot;Disambiguates tables with same name in different schemas; null implies default schema.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:25.255698370+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="table" nullable="false" remarks="{&quot;what&quot;:&quot;Database table name such as 'orders'.&quot;,&quot;why&quot;:&quot;Identifies the actual table to query; without it, the data source is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:25.316969882+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="query_table_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_query_table_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_query_table_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
      </table>
      <table name="recent_views" remarks="{&quot;what&quot;:&quot;Event log of user content views, each row one view occurrence.&quot;,&quot;why&quot;:&quot;Without it, there is no record of which content a user has seen, so 'recently viewed' lists and re-engagement prompts are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.720513054+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer primary key for each event row.&quot;,&quot;why&quot;:&quot;Without it, individual events cannot be targeted for deletion or deduplication.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.738943267+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the user who viewed the content; references a user record.&quot;,&quot;why&quot;:&quot;Without it, we cannot attribute views to a user, so per-user recent lists are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.757123789+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_recent_views_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the content type viewed, e.g., 'post' or 'video'.&quot;,&quot;why&quot;:&quot;Without it, we cannot distinguish which content type the model_id refers to, making the view ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.777348303+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="model_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the specific content item within the model type.&quot;,&quot;why&quot;:&quot;Without it, we cannot know which exact item was viewed, so recent items cannot be fetched.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.789605731+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;Date and time of the view, with timezone.&quot;,&quot;why&quot;:&quot;Without it, we cannot order views chronologically or filter by time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.802406315+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'view'::character varying" digits="0" id="5" name="context" nullable="false" remarks="{&quot;what&quot;:&quot;Context label for the event, default 'view'.&quot;,&quot;why&quot;:&quot;Without it, events with different interaction types would be indistinguishable, breaking filtering by context.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:01.817476243+00:00&quot;}" size="256" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="recent_views_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_recent_views_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="remote_sync_object" remarks="{&quot;what&quot;:&quot;Tracks sync state of a model instance to a remote system.&quot;,&quot;why&quot;:&quot;Without it, there is no way to know which objects are pending, synced, or failed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.837588099+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this sync record.&quot;,&quot;why&quot;:&quot;Without it, updates and deletes would be ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.854957269+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model_type" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the source model class, e.g. 'User' or 'Post'.&quot;,&quot;why&quot;:&quot;Without it, the polymorphic reference to model_id is meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.872558346+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model_id" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key of the source model instance.&quot;,&quot;why&quot;:&quot;Without it, cannot identify which specific object to sync.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.885937223+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Current sync state: pending, synced, failed, etc.&quot;,&quot;why&quot;:&quot;Without it, cannot know which objects need retry or are out of sync.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.906331560+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="status_changed_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of last status change.&quot;,&quot;why&quot;:&quot;Without it, cannot order or age sync attempts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.920225424+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="model_name" nullable="false" remarks="{&quot;what&quot;:&quot;The remote system's model name for this object.&quot;,&quot;why&quot;:&quot;Without it, remote system cannot map to its own model name.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.933104961+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="model_collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the remote collection this object belongs to.&quot;,&quot;why&quot;:&quot;Without it, remote system cannot place the object in the correct collection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.945265651+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="model_display" nullable="true" remarks="{&quot;what&quot;:&quot;Human-readable label for the object, e.g. 'John Doe'.&quot;,&quot;why&quot;:&quot;Without it, remote system lacks a display name for the object.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.962628584+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="model_table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the target table in the remote system.&quot;,&quot;why&quot;:&quot;Without it, remote system cannot determine which table to write to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.976766613+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="model_table_name" nullable="true" remarks="{&quot;what&quot;:&quot;The remote system's table name for this object.&quot;,&quot;why&quot;:&quot;Without it, remote system cannot resolve the table name for writes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:21.990460406+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="remote_sync_object_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_remote_sync_object_model_lookup" unique="false">
            <column ascending="true" name="model_type"/>
            <column ascending="true" name="model_id"/>
         </index>
      </table>
      <table name="remote_sync_task" remarks="{&quot;what&quot;:&quot;A record of a single remote synchronization operation.&quot;,&quot;why&quot;:&quot;Without it, sync attempts and their outcomes cannot be tracked or audited.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:24.905711597+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each sync task.&quot;,&quot;why&quot;:&quot;Without it, tasks cannot be referenced or updated individually.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.003536761+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="sync_task_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of sync operation, e.g., 'push' or 'pull'.&quot;,&quot;why&quot;:&quot;Without it, the correct sync handler cannot be selected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.135315657+00:00&quot;}" size="24" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="2" name="progress" nullable="true" remarks="{&quot;what&quot;:&quot;Completion ratio from 0.0 to 1.0, or NULL if unknown.&quot;,&quot;why&quot;:&quot;Without it, progress cannot be displayed or estimated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.174446478+00:00&quot;}" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="cancelled" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if cancelled, false otherwise.&quot;,&quot;why&quot;:&quot;Without it, cancelled tasks would appear active or failed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.208880073+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="started_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the task started.&quot;,&quot;why&quot;:&quot;Without it, task duration and scheduling are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.267535201+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="ended_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when the task finished, or NULL if running.&quot;,&quot;why&quot;:&quot;Without it, completion time and duration are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.329086141+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="last_progress_report_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the most recent progress update.&quot;,&quot;why&quot;:&quot;Without it, stale tasks cannot be detected or timed out.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.426273885+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="initiated_by" nullable="true" remarks="{&quot;what&quot;:&quot;User ID that started the task, or NULL if system.&quot;,&quot;why&quot;:&quot;Without it, the task's origin is unknown, complicating audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.529744814+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_remote_sync_task_initiated_by" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="error_message" nullable="true" remarks="{&quot;what&quot;:&quot;Full error text if the task failed, or NULL if none.&quot;,&quot;why&quot;:&quot;Without it, failure reasons are lost, making debugging impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.709498206+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="version" nullable="true" remarks="{&quot;what&quot;:&quot;Version identifier of the synced data or client.&quot;,&quot;why&quot;:&quot;Without it, version mismatches cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.955455250+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="conflicts" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized list of conflicts encountered during sync.&quot;,&quot;why&quot;:&quot;Without it, conflicting changes cannot be reviewed or resolved.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:25.981819823+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="remote_sync_task_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_remote_sync_task_current" unique="false">
            <column ascending="false" name="started_at"/>
            <column ascending="false" name="id"/>
         </index>
         <index name="idx_remote_sync_task_initiated_by" unique="false">
            <column ascending="true" name="initiated_by"/>
         </index>
         <index name="idx_remote_sync_task_progress_report" unique="false">
            <column ascending="true" name="last_progress_report_at"/>
         </index>
      </table>
      <table name="report_card" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the card.&quot;,&quot;why&quot;:&quot;Needed to reference cards from other tables (e.g., dashboard cards, permissions).&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.265215919+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="model_id" foreignKey="fk_action_model_id" implied="false" onDeleteCascade="true" schema="public" table="action"/>
            <child column="card_id" foreignKey="fk_card_bookmark_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="card_bookmark"/>
            <child column="card_id" foreignKey="fk_card_label_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="card_label"/>
            <child column="card_id" foreignKey="fk_dashboardcard_series_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="dashboardcard_series"/>
            <child column="card_id" foreignKey="fk_metabot_prompt_card_id" implied="false" onDeleteCascade="true" schema="public" table="metabot_prompt"/>
            <child column="model_id" foreignKey="fk_model_index_model_id" implied="false" onDeleteCascade="true" schema="public" table="model_index"/>
            <child column="card_id" foreignKey="fk_notification_card_card_id" implied="false" onDeleteCascade="true" schema="public" table="notification_card"/>
            <child column="card_id" foreignKey="fk_parameter_card_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="parameter_card"/>
            <child column="card_id" foreignKey="fk_persisted_info_card_id" implied="false" onDeleteCascade="false" schema="public" table="persisted_info"/>
            <child column="card_id" foreignKey="fk_pulse_card_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_card"/>
            <child column="card_id" foreignKey="fk_query_field_card_id" implied="false" onDeleteCascade="true" schema="public" table="query_field"/>
            <child column="card_id" foreignKey="fk_query_table_card_id" implied="false" onDeleteCascade="true" schema="public" table="query_table"/>
            <child column="source_card_id" foreignKey="fk_report_card_source_card_id_ref_report_card_id" implied="false" onDeleteCascade="false" schema="public" table="report_card"/>
            <child column="card_id" foreignKey="fk_cardfavorite_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_cardfavorite"/>
            <child column="card_id" foreignKey="fk_dashboardcard_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboardcard"/>
            <child column="card_id" foreignKey="fk_gtap_card_id" implied="false" onDeleteCascade="true" schema="public" table="sandboxes"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the card was created.&quot;,&quot;why&quot;:&quot;Enables audit trails and ordering by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.292687869+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to the card.&quot;,&quot;why&quot;:&quot;Tracks staleness and supports optimistic concurrency checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.343151787+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name for the card, e.g., 'Monthly Revenue'.&quot;,&quot;why&quot;:&quot;Identifies the card in lists and navigation; without it, cards are indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.399378276+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text description of the card's purpose or content.&quot;,&quot;why&quot;:&quot;Provides context for other users; without it, intent may be unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.461866244+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="display" nullable="false" remarks="{&quot;what&quot;:&quot;Display mode for results, e.g., 'table', 'bar', 'line'.&quot;,&quot;why&quot;:&quot;Determines how the query results are rendered; missing it would break visualization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.629046925+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="dataset_query" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized query definition (JSON) including database, query type, and filters.&quot;,&quot;why&quot;:&quot;Core of the card; without it, there is no query to execute.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.710034996+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="visualization_settings" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized JSON settings for the chosen display, e.g., column formatting.&quot;,&quot;why&quot;:&quot;Controls how the visualization looks; without it, charts lose custom formatting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.875596692+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the card's creator.&quot;,&quot;why&quot;:&quot;Enables ownership and permission checks; missing it breaks audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:01.939080252+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="database_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the database the query runs against.&quot;,&quot;why&quot;:&quot;Required to execute the query; without it, the card has no data source.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.025264520+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_card_ref_database_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="table_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the base table if the query is a simple table query.&quot;,&quot;why&quot;:&quot;Used for metadata and quick query building; may be null for custom queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.050184316+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_card_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="query_type" nullable="true" remarks="{&quot;what&quot;:&quot;Query type, e.g., 'query', 'native', 'mbql'.&quot;,&quot;why&quot;:&quot;Helps parse and validate the query; missing it may break query execution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.094466996+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating the card is archived (hidden) but not deleted.&quot;,&quot;why&quot;:&quot;Allows soft deletion without losing data; without it, cards cannot be hidden.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.127658267+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the collection (folder) containing the card.&quot;,&quot;why&quot;:&quot;Organizes cards and controls permissions; missing it leaves card ungrouped.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.157762061+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="public_uuid" nullable="true" remarks="{&quot;what&quot;:&quot;UUID for public sharing link.&quot;,&quot;why&quot;:&quot;Enables unauthenticated access via a secret URL; without it, public sharing is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.186574944+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="made_public_by_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID who enabled public sharing.&quot;,&quot;why&quot;:&quot;Audit trail for public links; missing it loses accountability.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.201263293+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_card_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="16" name="enable_embedding" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating the card can be embedded in other apps.&quot;,&quot;why&quot;:&quot;Controls embedding security; without it, embedding would be unrestricted or impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.294630389+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="embedding_params" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized JSON of allowed embedding parameters (e.g., filters).&quot;,&quot;why&quot;:&quot;Defines which parameters can be passed via embedded URL; missing it breaks embedded interactivity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.310186362+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="cache_ttl" nullable="true" remarks="{&quot;what&quot;:&quot;Time-to-live in seconds for cached query results.&quot;,&quot;why&quot;:&quot;Controls caching behavior; without it, caching falls back to default.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.342919483+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="result_metadata" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized JSON describing result columns (names, types, formatting).&quot;,&quot;why&quot;:&quot;Used for column-level features like formatting and drill-through; missing it degrades UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.373731104+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="collection_position" nullable="true" remarks="{&quot;what&quot;:&quot;Numeric position for ordering within the collection.&quot;,&quot;why&quot;:&quot;Controls manual ordering; without it, order is arbitrary.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.402509774+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Stable unique identifier (UUID) for the card across environments.&quot;,&quot;why&quot;:&quot;Used for syncing and referencing; missing it breaks external references.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.446615862+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="parameters" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized JSON of parameters (e.g., field filters) defined for the card.&quot;,&quot;why&quot;:&quot;Enables interactive filters; without them, dashboards lose parameterization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.486035880+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="parameter_mappings" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized JSON mapping dashboard parameters to card query parameters.&quot;,&quot;why&quot;:&quot;Connects dashboard filters to card queries; missing it breaks dashboard interactivity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.524210592+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="24" name="collection_preview" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the card shows a preview in collection.&quot;,&quot;why&quot;:&quot;Controls performance and UI; without it, previews may be heavy.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.550807599+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="metabase_version" nullable="true" remarks="{&quot;what&quot;:&quot;Metabase version that last saved the card.&quot;,&quot;why&quot;:&quot;Tracks schema/feature compatibility; missing it may cause migration issues.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.567276742+00:00&quot;}" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'question'::character varying" digits="0" id="26" name="type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of card: 'question' or 'model' (or others).&quot;,&quot;why&quot;:&quot;Distinguishes saved questions from data models; missing it breaks routing and permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.705049265+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="27" name="initially_published_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the card was first published (made public).&quot;,&quot;why&quot;:&quot;Audit trail for public sharing; missing it loses history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.869464306+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="28" name="cache_invalidated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the cache was last invalidated.&quot;,&quot;why&quot;:&quot;Helps manage cache freshness; missing it may serve stale data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.881541260+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="CURRENT_TIMESTAMP" digits="6" id="29" name="last_used_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last time the card was viewed or executed.&quot;,&quot;why&quot;:&quot;Used for usage analytics and deprecation decisions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.903859584+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="30" name="view_count" nullable="false" remarks="{&quot;what&quot;:&quot;Number of times the card has been viewed.&quot;,&quot;why&quot;:&quot;Measures popularity; missing it loses usage metrics.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:02.936879414+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="31" name="archived_directly" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating the card was archived directly, not via a parent.&quot;,&quot;why&quot;:&quot;Distinguishes direct archive from cascade; helps restore logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.003475519+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="dataset_query_metrics_v2_migration_backup" nullable="true" remarks="{&quot;what&quot;:&quot;Backup of dataset_query before migration to metrics v2.&quot;,&quot;why&quot;:&quot;Preserves old query for rollback; missing it risks data loss during migration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.046579838+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="source_card_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the card this card is based on (e.g., for models).&quot;,&quot;why&quot;:&quot;Tracks lineage; missing it breaks dependency analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.067398204+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_card_source_card_id_ref_report_card_id" implied="false" onDeleteCascade="false" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="34" name="dashboard_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the dashboard this card belongs to (if it's a dashboard card).&quot;,&quot;why&quot;:&quot;Links card to dashboard; missing it breaks dashboard membership.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.097315517+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_card_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <column autoUpdated="false" defaultValue="20" digits="0" id="35" name="card_schema" nullable="false" remarks="{&quot;what&quot;:&quot;Schema version of the card definition.&quot;,&quot;why&quot;:&quot;Enables migrations; missing it breaks versioning.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.210997888+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="36" name="document_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of an associated document (e.g., in a knowledge base).&quot;,&quot;why&quot;:&quot;Links card to documentation; missing it loses context.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.250685920+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_card_document_id" implied="false" onDeleteCascade="true" schema="public" table="document"/>
         </column>
         <column autoUpdated="false" defaultValue="0" digits="0" id="37" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version of dependency analysis performed on the card.&quot;,&quot;why&quot;:&quot;Tracks analysis state; missing it may cause stale dependencies.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.287637593+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="38" name="legacy_query" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized legacy query format before migration.&quot;,&quot;why&quot;:&quot;Preserves old query for rollback; missing it risks breaking old cards.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.417012079+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="39" name="embedding_type" nullable="true" remarks="{&quot;what&quot;:&quot;Type of embedding, e.g., 'signed' or 'token'.&quot;,&quot;why&quot;:&quot;Determines embedding authentication; missing it breaks embedded access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.457792266+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="40" name="public_uuid_prefix" nullable="true" remarks="{&quot;what&quot;:&quot;Prefix for public UUID, used for short links.&quot;,&quot;why&quot;:&quot;Enables short URLs; missing it may break existing public links.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:03.479834679+00:00&quot;}" size="36" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="report_card_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_card_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_card_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_card_public_uuid" unique="false">
            <column ascending="true" name="public_uuid"/>
         </index>
         <index name="idx_repord_card_document_id" unique="false">
            <column ascending="true" name="document_id"/>
         </index>
         <index name="idx_report_card_card_schema" unique="false">
            <column ascending="true" name="card_schema"/>
         </index>
         <index name="idx_report_card_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
         <index name="idx_report_card_database_id" unique="false">
            <column ascending="true" name="database_id"/>
         </index>
         <index name="idx_report_card_dependency_analysis_version" unique="false">
            <column ascending="true" name="dependency_analysis_version"/>
         </index>
         <index name="idx_report_card_made_public_by_id" unique="false">
            <column ascending="true" name="made_public_by_id"/>
         </index>
         <index name="idx_report_card_public_uuid_prefix" unique="false">
            <column ascending="true" name="public_uuid_prefix"/>
         </index>
         <index name="idx_report_card_source_card_id" unique="false">
            <column ascending="true" name="source_card_id"/>
         </index>
         <index name="idx_report_card_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
         <index name="idx_report_card_type" unique="false">
            <column ascending="true" name="type"/>
         </index>
         <index name="report_card_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="report_card_public_uuid_key" unique="true">
            <column ascending="true" name="public_uuid"/>
         </index>
      </table>
      <table name="report_cardfavorite" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this favorite record.&quot;,&quot;why&quot;:&quot;Needed to reference a specific favorite row for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:41.743440892+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with timezone when the favorite was created.&quot;,&quot;why&quot;:&quot;Shows when the user favorited the card, useful for sorting or auditing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:42.067004884+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with timezone of the last modification to this favorite.&quot;,&quot;why&quot;:&quot;Tracks changes to the favorite, e.g., if the status is toggled.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:44.375852100+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="card_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the card being favorited.&quot;,&quot;why&quot;:&quot;Identifies which card the favorite refers to; without it, the favorite has no target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:44.644679186+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_cardfavorite_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="owner_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the user who marked the favorite.&quot;,&quot;why&quot;:&quot;Identifies which user favorited the card; without it, the favorite's owner is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:44.886599183+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_cardfavorite_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="report_cardfavorite_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_cardfavorite_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_cardfavorite_owner_id" unique="false">
            <column ascending="true" name="owner_id"/>
         </index>
         <index name="idx_unique_cardfavorite_card_id_owner_id" unique="true">
            <column ascending="true" name="card_id"/>
            <column ascending="true" name="owner_id"/>
         </index>
      </table>
      <table name="report_dashboard" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for the dashboard.&quot;,&quot;why&quot;:&quot;Primary key; without it, rows cannot be uniquely referenced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.101524504+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="dashboard_id" foreignKey="fk_dashboard_bookmark_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="dashboard_bookmark"/>
            <child column="dashboard_id" foreignKey="fk_dashboard_favorite_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="dashboard_favorite"/>
            <child column="dashboard_id" foreignKey="fk_dashboard_tab_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="dashboard_tab"/>
            <child column="dashboard_id" foreignKey="fk_pulse_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="pulse"/>
            <child column="dashboard_id" foreignKey="fk_report_card_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
            <child column="dashboard_id" foreignKey="fk_dashboardcard_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboardcard"/>
            <child column="dashboard_id" foreignKey="fk_user_parameter_value_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="user_parameter_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the dashboard row was created.&quot;,&quot;why&quot;:&quot;Audit trail and ordering; without it, creation time is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.112340235+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last update to any column.&quot;,&quot;why&quot;:&quot;Tracks modification time; without it, staleness cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.125961847+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable dashboard title, e.g., 'Sales Overview'.&quot;,&quot;why&quot;:&quot;Display name; without it, dashboards are indistinguishable in UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.155010899+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text describing the dashboard's purpose.&quot;,&quot;why&quot;:&quot;Provides context for users; without it, intent is unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.167948500+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the dashboard's author.&quot;,&quot;why&quot;:&quot;Ownership and permissions; without it, cannot attribute or restrict access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.180875622+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="parameters" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized JSON of default filter parameters applied to all cards.&quot;,&quot;why&quot;:&quot;Defines initial filter state; without it, dashboards lose their configured defaults.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.199432177+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized JSON of highlighted data points or annotations.&quot;,&quot;why&quot;:&quot;Stores user-flagged insights; without it, these annotations are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.213214054+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text listing known limitations or warnings.&quot;,&quot;why&quot;:&quot;Communicates data caveats; without it, users may misinterpret results.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.229494407+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="show_in_getting_started" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if dashboard appears in the getting-started guide.&quot;,&quot;why&quot;:&quot;Controls onboarding visibility; without it, guide content cannot be curated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.243862650+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="public_uuid" nullable="true" remarks="{&quot;what&quot;:&quot;UUID string for public sharing link.&quot;,&quot;why&quot;:&quot;Enables unauthenticated access; without it, public sharing is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.260412909+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="made_public_by_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID who last made the dashboard public.&quot;,&quot;why&quot;:&quot;Audit trail for public exposure; without it, who published is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.278625929+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_made_public_by_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="12" name="enable_embedding" nullable="false" remarks="{&quot;what&quot;:&quot;Flag allowing iframe embedding in external sites.&quot;,&quot;why&quot;:&quot;Security control; without it, embedding cannot be restricted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.292587125+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="embedding_params" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized JSON of allowed parameters for embedded dashboards.&quot;,&quot;why&quot;:&quot;Defines embeddable filter options; without it, embedded dashboards cannot be configured.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.306337547+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="14" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if dashboard is soft-deleted and hidden.&quot;,&quot;why&quot;:&quot;Allows recovery; without it, deletion would be permanent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.319451069+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="position" nullable="true" remarks="{&quot;what&quot;:&quot;Sort order index within a collection.&quot;,&quot;why&quot;:&quot;Controls ordering; without it, dashboards appear in arbitrary order.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.352648590+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the collection this dashboard belongs to.&quot;,&quot;why&quot;:&quot;Groups dashboards; without it, organization is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.368719291+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboard_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="collection_position" nullable="true" remarks="{&quot;what&quot;:&quot;Sort order index within the collection, separate from global position.&quot;,&quot;why&quot;:&quot;Refines ordering within collection; without it, ordering is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.381501072+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="cache_ttl" nullable="true" remarks="{&quot;what&quot;:&quot;Time-to-live in seconds for cached dashboard results.&quot;,&quot;why&quot;:&quot;Controls cache freshness; without it, caching behavior is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.404863625+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Stable unique identifier for the dashboard, possibly UUID.&quot;,&quot;why&quot;:&quot;External references; without it, renaming or moving breaks links.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.423763488+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="20" name="auto_apply_filters" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if filters apply automatically on change.&quot;,&quot;why&quot;:&quot;Controls UX; without it, filter behavior is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.437758460+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="'fixed'::character varying" digits="0" id="21" name="width" nullable="false" remarks="{&quot;what&quot;:&quot;Layout width mode: 'fixed' or 'full'.&quot;,&quot;why&quot;:&quot;Determines responsive design; without it, dashboard layout is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.448220500+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="initially_published_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when dashboard was first made public.&quot;,&quot;why&quot;:&quot;Tracks publication history; without it, first publish date is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.467014084+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="23" name="view_count" nullable="false" remarks="{&quot;what&quot;:&quot;Number of times the dashboard has been viewed.&quot;,&quot;why&quot;:&quot;Popularity metric; without it, usage analytics are missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.504864331+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="24" name="archived_directly" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating if archived was set directly vs via parent.&quot;,&quot;why&quot;:&quot;Distinguishes direct archive; without it, archive source is unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.523613926+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="25" name="last_viewed_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the most recent view.&quot;,&quot;why&quot;:&quot;Tracks recency; without it, inactive dashboards cannot be identified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.543777729+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="26" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version of dependency analysis used for this dashboard.&quot;,&quot;why&quot;:&quot;Ensures cache invalidation; without it, stale dependencies may persist.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.556531938+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="embedding_type" nullable="true" remarks="{&quot;what&quot;:&quot;Type of embedding, e.g., 'public' or 'signed'.&quot;,&quot;why&quot;:&quot;Determines embedding security model; without it, embedding behavior is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.571360347+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="public_uuid_prefix" nullable="true" remarks="{&quot;what&quot;:&quot;Prefix for the public UUID, used for vanity URLs.&quot;,&quot;why&quot;:&quot;Customizes share links; without it, URLs are less readable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:24.594055758+00:00&quot;}" size="36" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="report_dashboard_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_dashboard_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_dashboard_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_dashboard_public_uuid" unique="false">
            <column ascending="true" name="public_uuid"/>
         </index>
         <index name="idx_report_dashboard_dependency_analysis_version" unique="false">
            <column ascending="true" name="dependency_analysis_version"/>
         </index>
         <index name="idx_report_dashboard_made_public_by_id" unique="false">
            <column ascending="true" name="made_public_by_id"/>
         </index>
         <index name="idx_report_dashboard_public_uuid_prefix" unique="false">
            <column ascending="true" name="public_uuid_prefix"/>
         </index>
         <index name="idx_report_dashboard_show_in_getting_started" unique="false">
            <column ascending="true" name="show_in_getting_started"/>
         </index>
         <index name="report_dashboard_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="report_dashboard_public_uuid_key" unique="true">
            <column ascending="true" name="public_uuid"/>
         </index>
      </table>
      <table name="report_dashboardcard" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each dashboard-card placement.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:35.967713320+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="dashboardcard_id" foreignKey="fk_dashboardcard_series_ref_dashboardcard_id" implied="false" onDeleteCascade="true" schema="public" table="dashboardcard_series"/>
            <child column="dashboard_card_id" foreignKey="fk_pulse_card_ref_pulse_card_id" implied="false" onDeleteCascade="true" schema="public" table="pulse_card"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the placement row was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, audit history and ordering by creation time are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:35.988467929+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="2" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this placement row, in UTC.&quot;,&quot;why&quot;:&quot;Without it, concurrent edits cannot be detected or reconciled.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.004122247+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="size_x" nullable="false" remarks="{&quot;what&quot;:&quot;Width of the card in grid columns (e.g., 1-12).&quot;,&quot;why&quot;:&quot;Without it, the card's horizontal extent on the dashboard is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.023653825+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="size_y" nullable="false" remarks="{&quot;what&quot;:&quot;Height of the card in grid rows (e.g., 1-12).&quot;,&quot;why&quot;:&quot;Without it, the card's vertical extent on the dashboard is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.041669217+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="row" nullable="false" remarks="{&quot;what&quot;:&quot;Vertical grid position of the card's top edge, starting at 0.&quot;,&quot;why&quot;:&quot;Without it, cards would overlap or have no defined vertical placement.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.050886724+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="col" nullable="false" remarks="{&quot;what&quot;:&quot;Horizontal grid position of the card's left edge, starting at 0.&quot;,&quot;why&quot;:&quot;Without it, cards would have no defined horizontal placement.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.098585171+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="card_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to the card being placed; null if the card is an action.&quot;,&quot;why&quot;:&quot;Without it, the placed content cannot be identified as a card.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.132389641+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboardcard_ref_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="dashboard_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the dashboard that contains this placement.&quot;,&quot;why&quot;:&quot;Without it, the placement is not associated with any dashboard.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.147794907+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_dashboardcard_ref_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="parameter_mappings" nullable="false" remarks="{&quot;what&quot;:&quot;JSON text mapping dashboard parameters to card parameters.&quot;,&quot;why&quot;:&quot;Without it, dashboard-level filters cannot propagate to the card.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.157236254+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="visualization_settings" nullable="false" remarks="{&quot;what&quot;:&quot;JSON text with card-specific visualization options (e.g., chart type, axes).&quot;,&quot;why&quot;:&quot;Without it, the card's display configuration is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.184967606+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Stable unique identifier for the placement, used for external references.&quot;,&quot;why&quot;:&quot;Without it, external systems cannot refer to this placement without exposing the integer id.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.202603026+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="action_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to an action associated with this placement; null if none.&quot;,&quot;why&quot;:&quot;Without it, click actions on the card cannot be defined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.219931954+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_dashboardcard_ref_action_id" implied="false" onDeleteCascade="true" schema="public" table="action"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="dashboard_tab_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to the dashboard tab that contains this placement; null if single-tab.&quot;,&quot;why&quot;:&quot;Without it, multi-tab dashboards cannot place cards on specific tabs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.233411118+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_report_dashboardcard_ref_dashboard_tab_id" implied="false" onDeleteCascade="true" schema="public" table="dashboard_tab"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="inline_parameters" nullable="true" remarks="{&quot;what&quot;:&quot;JSON text of parameters defined directly on the card, overriding dashboard parameters.&quot;,&quot;why&quot;:&quot;Without it, card-specific parameter overrides are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:36.252073311+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="report_dashboardcard_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_dashboardcard_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_dashboardcard_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
         <index name="idx_report_dashboardcard_action_id" unique="false">
            <column ascending="true" name="action_id"/>
         </index>
         <index name="idx_report_dashboardcard_dashboard_tab_id" unique="false">
            <column ascending="true" name="dashboard_tab_id"/>
         </index>
         <index name="report_dashboardcard_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="revision" remarks="{&quot;what&quot;:&quot;History of changes to any model record; each row is one saved version.&quot;,&quot;why&quot;:&quot;Enables audit, rollback, and diffing of record states across models.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:58.514989370+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer assigned to each revision; the primary key.&quot;,&quot;why&quot;:&quot;Without it, revisions cannot be uniquely addressed or linked to other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:58.645249140+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the model class this revision belongs to, e.g. 'Card' or 'Dashboard'.&quot;,&quot;why&quot;:&quot;Identifies which model's history this revision is for; without it, revisions from different models would be indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:58.807034083+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model_id" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key of the specific record in the model that this revision changes.&quot;,&quot;why&quot;:&quot;Links the revision to the exact record; without it, cannot retrieve history for a given record.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.015107787+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who made this revision.&quot;,&quot;why&quot;:&quot;Tracks authorship; without it, cannot attribute changes or audit user actions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.091316278+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_revision_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;UTC time when the revision was created.&quot;,&quot;why&quot;:&quot;Provides chronological ordering; without it, cannot determine the sequence of changes or time-based queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.162848815+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="object" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized snapshot of the record's state at this revision.&quot;,&quot;why&quot;:&quot;Holds the actual data to restore or diff; without it, the revision is just metadata with no content.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.265725868+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="is_reversion" nullable="false" remarks="{&quot;what&quot;:&quot;True if this revision reverts a previous change.&quot;,&quot;why&quot;:&quot;Distinguishes revert actions from normal edits; without it, revert history is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.356723032+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="is_creation" nullable="false" remarks="{&quot;what&quot;:&quot;True if this revision is the initial creation of the record.&quot;,&quot;why&quot;:&quot;Identifies the first version; without it, cannot know when a record was created or separate creation from edits.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.409882192+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="message" nullable="true" remarks="{&quot;what&quot;:&quot;Optional user-supplied note describing the change.&quot;,&quot;why&quot;:&quot;Provides context for why a change was made; without it, the reason for a revision is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.435481916+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="most_recent" nullable="false" remarks="{&quot;what&quot;:&quot;True if this revision is the latest for its (model, model_id) pair.&quot;,&quot;why&quot;:&quot;Allows quick lookup of current state without scanning all revisions; without it, finding the latest version requires ordering and filtering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.511873496+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="metabase_version" nullable="true" remarks="{&quot;what&quot;:&quot;Version of the application that created this revision.&quot;,&quot;why&quot;:&quot;Tracks which software version produced the change; without it, cannot correlate changes with app releases or debug version-specific issues.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:11:59.563979560+00:00&quot;}" size="100" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="revision_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_revision_model_model_id" unique="false">
            <column ascending="true" name="model"/>
            <column ascending="true" name="model_id"/>
         </index>
         <index name="idx_revision_most_recent" unique="false">
            <column ascending="true" name="most_recent"/>
         </index>
         <index name="idx_revision_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="sandboxes" remarks="{&quot;what&quot;:&quot;A sandbox configuration linking a group to a table and optionally a card.&quot;,&quot;why&quot;:&quot;Without it, per-group table customizations and dependency analysis versions would be lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:37.915386464+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the sandbox row.&quot;,&quot;why&quot;:&quot;Provides a stable reference for foreign keys and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:37.927459937+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="group_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the group that owns this sandbox.&quot;,&quot;why&quot;:&quot;Scopes sandbox configuration to a specific group; without it, sandboxes would be ambiguous across groups.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:37.945876145+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_gtap_group_id" implied="false" onDeleteCascade="true" schema="public" table="permissions_group"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the table this sandbox applies to.&quot;,&quot;why&quot;:&quot;Determines which table's attributes are remapped; without it, the sandbox has no target.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:37.966659354+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_gtap_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="card_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of an optional card within the table; null if sandbox is table-wide.&quot;,&quot;why&quot;:&quot;Distinguishes table-level from card-level sandbox configurations; without it, card-specific overrides are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:37.979319521+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_gtap_card_id" implied="false" onDeleteCascade="true" schema="public" table="report_card"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="attribute_remappings" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized mapping of attribute names or IDs to new values or aliases.&quot;,&quot;why&quot;:&quot;Preserves custom attribute renames or transformations; without it, customizations are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:37.998019046+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the dependency analysis used for this sandbox; starts at 0.&quot;,&quot;why&quot;:&quot;Tracks which analysis version produced the remappings; without it, stale analyses cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:38.014176528+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="group_table_access_policy_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_gtap_table_id_group_id" unique="false">
            <column ascending="true" name="table_id"/>
            <column ascending="true" name="group_id"/>
         </index>
         <index name="idx_sandboxes_card_id" unique="false">
            <column ascending="true" name="card_id"/>
         </index>
         <index name="idx_sandboxes_dependency_analysis_version" unique="false">
            <column ascending="true" name="dependency_analysis_version"/>
         </index>
         <index name="unique_gtap_table_id_group_id" unique="true">
            <column ascending="true" name="table_id"/>
            <column ascending="true" name="group_id"/>
         </index>
      </table>
      <table name="search_index__doh7a8bjkyts7mrbe8o2y" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="search_vector" nullable="false" remarks="" size="2147483647" type="tsvector" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="with_native_query_vector" nullable="false" remarks="" size="2147483647" type="tsvector" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="model" nullable="false" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="display_data" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="legacy_input" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="CURRENT_TIMESTAMP" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="archived" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="model_updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_published" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="pinned" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="collection_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="official_collection" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="source_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="has_temporal_dim" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="last_edited_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="dashboardcard_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="non_temporal_dim_ids" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="dashboard_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="last_editor_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="model_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="display_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="last_viewed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="database_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="creator_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="view_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="28" name="model_created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="verified" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="search_index__doh7a8bjkyts7mrbe8o2y_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="search_index__doh7a8bjkyts7mrbe8o2y_archived_idx" unique="false">
            <column ascending="true" name="archived"/>
         </index>
         <index name="search_index__doh7a8bjkyts7mrbe8o2y_identity_idx" unique="true">
            <column ascending="true" name="model"/>
            <column ascending="true" name="model_id"/>
         </index>
         <index name="search_index__doh7a8bjkyts7mrbe8o2y_model_archived_idx" unique="false">
            <column ascending="true" name="model"/>
            <column ascending="true" name="archived"/>
         </index>
         <index name="search_index__doh7a8bjkyts7mrbe8o2y_native_tsvector_idx" unique="false">
            <column ascending="true" name="with_native_query_vector"/>
         </index>
         <index name="search_index__doh7a8bjkyts7mrbe8o2y_tsvector_idx" unique="false">
            <column ascending="true" name="search_vector"/>
         </index>
      </table>
      <table name="search_index__ntgrte0f0kqq07pxwaiwg" remarks="{&quot;what&quot;:&quot;Search index for models (cards, dashboards) with full-text vectors.&quot;,&quot;why&quot;:&quot;Central lookup for search; without it, no unified search across model types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:22.913421849+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each index row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:22.928199578+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="search_vector" nullable="false" remarks="{&quot;what&quot;:&quot;Full-text search vector built from indexed text fields.&quot;,&quot;why&quot;:&quot;Enables full-text search; without it, no searchable representation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:22.943245068+00:00&quot;}" size="2147483647" type="tsvector" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="with_native_query_vector" nullable="false" remarks="{&quot;what&quot;:&quot;Search vector that includes native query terms for matching.&quot;,&quot;why&quot;:&quot;Distinguishes native query results; without it, native query search fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:22.956020984+00:00&quot;}" size="2147483647" type="tsvector" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="model" nullable="false" remarks="{&quot;what&quot;:&quot;Type or name of the indexed model (e.g., 'card', 'dashboard').&quot;,&quot;why&quot;:&quot;Filters search results by model type; without it, cannot scope searches.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:22.967760555+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="display_data" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized JSON or text for rendering search result snippets.&quot;,&quot;why&quot;:&quot;Provides display content without loading full model; without it, results lack preview.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.024402192+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="legacy_input" nullable="false" remarks="{&quot;what&quot;:&quot;Original input text used to generate the index.&quot;,&quot;why&quot;:&quot;Allows re-indexing or debugging; without it, cannot trace search matches.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.050902212+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="CURRENT_TIMESTAMP" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the index row was created.&quot;,&quot;why&quot;:&quot;Tracks when entry was added; without it, cannot order by creation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.087199668+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of last update to this row.&quot;,&quot;why&quot;:&quot;Needed for incremental re-indexing and cache invalidation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.106696571+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating the indexed item is archived and hidden from search.&quot;,&quot;why&quot;:&quot;Without it, archived items would appear in results.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.149099190+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="model_updated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the underlying model's last update.&quot;,&quot;why&quot;:&quot;Used to decide if index is stale; without it, cannot detect outdated entries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.171012849+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_published" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating the model is published and searchable.&quot;,&quot;why&quot;:&quot;Filters unpublished content; without it, drafts appear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.199163419+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="pinned" nullable="true" remarks="{&quot;what&quot;:&quot;Flag to pin the result to top of search.&quot;,&quot;why&quot;:&quot;Without it, pinned items lose priority.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.233060433+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the collection this model belongs to.&quot;,&quot;why&quot;:&quot;Filters by collection; without it, collection-scoped search impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.281564071+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="official_collection" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating the collection is official.&quot;,&quot;why&quot;:&quot;Used to boost official content; without it, cannot distinguish.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.302535064+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name of the indexed model.&quot;,&quot;why&quot;:&quot;Used for display and search matching; without it, results lack title.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.322289194+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="source_type" nullable="true" remarks="{&quot;what&quot;:&quot;Origin type of the model (e.g., 'csv', 'api').&quot;,&quot;why&quot;:&quot;Filters by source; without it, cannot segment by source.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.354222347+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="has_temporal_dim" nullable="true" remarks="{&quot;what&quot;:&quot;Indicates if the model has a time dimension.&quot;,&quot;why&quot;:&quot;Used for time-based search filters; without it, temporal queries fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.366114865+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="17" name="last_edited_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp of last edit to the model.&quot;,&quot;why&quot;:&quot;Used for sorting by recency; without it, cannot order by edit time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.385039591+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="dashboardcard_count" nullable="true" remarks="{&quot;what&quot;:&quot;Number of dashboard cards referencing this model.&quot;,&quot;why&quot;:&quot;Used for popularity or usage metrics; without it, cannot rank by usage.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.487982961+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="non_temporal_dim_ids" nullable="true" remarks="{&quot;what&quot;:&quot;Serialized list of dimension IDs that are not temporal.&quot;,&quot;why&quot;:&quot;Used for filtering by dimensions; without it, dimension filters break.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.512899609+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="dashboard_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the dashboard this model belongs to.&quot;,&quot;why&quot;:&quot;Filters by dashboard; without it, dashboard-scoped search impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.527955744+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="last_editor_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the last editor.&quot;,&quot;why&quot;:&quot;Tracks ownership or audit; without it, cannot attribute changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.553948117+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="model_id" nullable="true" remarks="{&quot;what&quot;:&quot;Unique identifier of the underlying model (e.g., UUID).&quot;,&quot;why&quot;:&quot;Links index to actual model; without it, cannot fetch full model.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.581548700+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="display_type" nullable="true" remarks="{&quot;what&quot;:&quot;Rendering type for the result (e.g., 'table', 'chart').&quot;,&quot;why&quot;:&quot;Determines how to display; without it, UI cannot choose layout.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.596244968+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="24" name="last_viewed_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp of last view.&quot;,&quot;why&quot;:&quot;Used for recency sorting; without it, cannot order by last view.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.615967361+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="25" name="database_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the database connection.&quot;,&quot;why&quot;:&quot;Filters by database; without it, cannot scope to database.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.651880861+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the creator.&quot;,&quot;why&quot;:&quot;Filters by creator; without it, cannot find user's content.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.680172565+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="view_count" nullable="true" remarks="{&quot;what&quot;:&quot;Number of times the model was viewed.&quot;,&quot;why&quot;:&quot;Used for popularity ranking; without it, cannot sort by views.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.698592775+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="28" name="model_created_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when the model was created.&quot;,&quot;why&quot;:&quot;Used for sorting by creation; without it, cannot order by creation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.710164119+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="29" name="verified" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating the model is verified.&quot;,&quot;why&quot;:&quot;Used to boost verified content; without it, cannot distinguish.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:23.732611099+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="search_index__ntgrte0f0kqq07pxwaiwg_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="search_index__ntgrte0f0kqq07pxwaiwg_archived_idx" unique="false">
            <column ascending="true" name="archived"/>
         </index>
         <index name="search_index__ntgrte0f0kqq07pxwaiwg_identity_idx" unique="true">
            <column ascending="true" name="model"/>
            <column ascending="true" name="model_id"/>
         </index>
         <index name="search_index__ntgrte0f0kqq07pxwaiwg_model_archived_idx" unique="false">
            <column ascending="true" name="model"/>
            <column ascending="true" name="archived"/>
         </index>
         <index name="search_index__ntgrte0f0kqq07pxwaiwg_native_tsvector_idx" unique="false">
            <column ascending="true" name="with_native_query_vector"/>
         </index>
         <index name="search_index__ntgrte0f0kqq07pxwaiwg_tsvector_idx" unique="false">
            <column ascending="true" name="search_vector"/>
         </index>
      </table>
      <table name="search_index_metadata" remarks="{&quot;what&quot;:&quot;Metadata about a search index instance, including engine, version, and language.&quot;,&quot;why&quot;:&quot;Without it, no record of which search indexes exist or their configuration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:16.778823668+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each metadata row.&quot;,&quot;why&quot;:&quot;Without it, cannot reference a specific index metadata record.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:17.154020429+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="engine" nullable="false" remarks="{&quot;what&quot;:&quot;Search engine name (e.g., Elasticsearch, Solr).&quot;,&quot;why&quot;:&quot;Without it, cannot know which engine to connect to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:17.522656184+00:00&quot;}" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="version" nullable="false" remarks="{&quot;what&quot;:&quot;Engine version string (e.g., '7.10.2').&quot;,&quot;why&quot;:&quot;Without it, client compatibility with the engine is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:17.794349547+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="index_name" nullable="false" remarks="{&quot;what&quot;:&quot;Actual index name in the engine (e.g., 'products_en').&quot;,&quot;why&quot;:&quot;Without it, cannot locate the index in the engine.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:17.920834403+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="status" nullable="true" remarks="{&quot;what&quot;:&quot;Current lifecycle state (e.g., 'active', 'building', 'failed').&quot;,&quot;why&quot;:&quot;Without it, cannot tell if index is ready for queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:17.955496102+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the metadata row was created.&quot;,&quot;why&quot;:&quot;Without it, cannot audit when index was registered.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:18.026521490+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last update to this row.&quot;,&quot;why&quot;:&quot;Without it, cannot know if metadata is stale.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:18.096913165+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'en'::character varying" digits="0" id="7" name="lang_code" nullable="false" remarks="{&quot;what&quot;:&quot;Language code (e.g., 'en', 'fr') for the index content.&quot;,&quot;why&quot;:&quot;Without it, cannot route queries to the correct language-specific index.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:18.172940021+00:00&quot;}" size="10" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="search_index_metadata_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_search_index_metadata_unique_status" unique="true">
            <column ascending="true" name="engine"/>
            <column ascending="true" name="version"/>
            <column ascending="true" name="lang_code"/>
            <column ascending="true" name="status"/>
         </index>
         <index name="search_index_metadata_index_name_key" unique="true">
            <column ascending="true" name="index_name"/>
         </index>
      </table>
      <table name="secret" remarks="{&quot;what&quot;:&quot;Versioned secret entries; each row is one immutable version.&quot;,&quot;why&quot;:&quot;Without it, secrets could not be rotated or audited over time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.843892479+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer identifier for a secret; same across versions.&quot;,&quot;why&quot;:&quot;Without it, versions of the same secret cannot be grouped.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.853711367+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="1" name="version" nullable="false" remarks="{&quot;what&quot;:&quot;Integer version number for a secret; increments per change.&quot;,&quot;why&quot;:&quot;Without it, multiple versions of a secret would be ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.865455836+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the principal who created this version.&quot;,&quot;why&quot;:&quot;Without it, accountability for secret changes is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.876777505+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_secret_ref_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when this version was created.&quot;,&quot;why&quot;:&quot;Without it, the order of versions cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.886061994+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp of last update to this version's metadata.&quot;,&quot;why&quot;:&quot;Without it, staleness of a secret version is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.898617871+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name for the secret, e.g., 'db-password'.&quot;,&quot;why&quot;:&quot;Without it, secrets cannot be referenced by a stable identifier.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.909467634+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="kind" nullable="false" remarks="{&quot;what&quot;:&quot;Type of secret, e.g., 'password', 'api-key', 'certificate'.&quot;,&quot;why&quot;:&quot;Without it, consumers cannot know how to interpret the value.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.921185844+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="source" nullable="true" remarks="{&quot;what&quot;:&quot;Origin of the secret, e.g., 'vault', 'manual', 'env'.&quot;,&quot;why&quot;:&quot;Without it, provenance of the secret is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.934367380+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="value" nullable="false" remarks="{&quot;what&quot;:&quot;Encrypted or raw secret payload as bytes.&quot;,&quot;why&quot;:&quot;Without it, the secret itself is unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:46.953007500+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <primaryKey column="version" sequenceNumberInPK="2"/>
         <index name="secret_pkey" unique="true">
            <column ascending="true" name="id"/>
            <column ascending="true" name="version"/>
         </index>
         <index name="idx_secret_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
      </table>
      <table name="security_advisory" remarks="{&quot;what&quot;:&quot;A security advisory record with metadata, remediation, and processing state.&quot;,&quot;why&quot;:&quot;Without it, there is no persistent record of advisories to evaluate or act on.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.519873248+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for this advisory row.&quot;,&quot;why&quot;:&quot;Primary key for stable references from other tables; without it rows cannot be uniquely addressed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.535565927+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="advisory_id" nullable="false" remarks="{&quot;what&quot;:&quot;External advisory identifier (e.g., CVE) as published by the source.&quot;,&quot;why&quot;:&quot;Matches against source feeds and deduplicates; without it the same advisory could be ingested multiple times.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.577474427+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="severity" nullable="false" remarks="{&quot;what&quot;:&quot;Severity rating from the source, e.g., critical, high, medium, low.&quot;,&quot;why&quot;:&quot;Drives prioritization of remediation; without it all advisories would be treated equally.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.649920898+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="title" nullable="false" remarks="{&quot;what&quot;:&quot;Short human-readable summary of the vulnerability.&quot;,&quot;why&quot;:&quot;Identifies the advisory in lists and notifications; without it only the ID is shown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.774136601+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="false" remarks="{&quot;what&quot;:&quot;Full technical description of the vulnerability and its impact.&quot;,&quot;why&quot;:&quot;Provides context needed to assess applicability; without it engineers cannot judge relevance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.834462637+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="advisory_url" nullable="true" remarks="{&quot;what&quot;:&quot;URL to the original advisory page on the source site.&quot;,&quot;why&quot;:&quot;Links to authoritative details; without it users must search externally.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.862701781+00:00&quot;}" size="2048" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="remediation" nullable="false" remarks="{&quot;what&quot;:&quot;Instructions or version ranges that fix the vulnerability.&quot;,&quot;why&quot;:&quot;Tells engineers what action to take; without it no fix guidance exists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.938555427+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="affected_versions" nullable="false" remarks="{&quot;what&quot;:&quot;Version range or pattern of affected software versions.&quot;,&quot;why&quot;:&quot;Determines if a given installed version is vulnerable; without it matching is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:34.956266702+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="matching_query" nullable="true" remarks="{&quot;what&quot;:&quot;Custom query or expression used to match this advisory against inventory.&quot;,&quot;why&quot;:&quot;Overrides default version matching when affected_versions is insufficient; without it only default matching applies.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.071669285+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="published_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the advisory was published by the source.&quot;,&quot;why&quot;:&quot;Sorts advisories by age and triggers time-based policies; without it recency is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.127805524+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="fetched_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this advisory was first fetched into the system.&quot;,&quot;why&quot;:&quot;Tracks ingestion time for auditing and freshness; without it data provenance is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.216532292+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="match_status" nullable="false" remarks="{&quot;what&quot;:&quot;Current matching state, e.g., pending, matched, not_matched.&quot;,&quot;why&quot;:&quot;Drives workflow and reporting; without it it's unclear which advisories need attention.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.284261007+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="last_evaluated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the last time this advisory was evaluated against inventory.&quot;,&quot;why&quot;:&quot;Shows staleness of matching; without it cannot know if evaluation is current.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.331594308+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="acknowledged_by" nullable="true" remarks="{&quot;what&quot;:&quot;User ID who acknowledged this advisory.&quot;,&quot;why&quot;:&quot;Tracks accountability for handling; without it responsibility is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.372039220+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_security_advisory_acknowledged_by" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="acknowledged_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the advisory was acknowledged.&quot;,&quot;why&quot;:&quot;Records when acknowledgment occurred; without it cannot measure response time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.386313335+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="last_notified_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the last notification sent about this advisory.&quot;,&quot;why&quot;:&quot;Prevents duplicate notifications; without it users may be spammed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.466589860+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this row.&quot;,&quot;why&quot;:&quot;Tracks changes for auditing and sync; without it modification history is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:35.535473772+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="security_advisory_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_security_advisory_acknowledged_by" unique="false">
            <column ascending="true" name="acknowledged_by"/>
         </index>
         <index name="idx_security_advisory_match_status" unique="false">
            <column ascending="true" name="match_status"/>
         </index>
         <index name="uq_security_advisory_advisory_id" unique="true">
            <column ascending="true" name="advisory_id"/>
         </index>
      </table>
      <table name="segment" remarks="{&quot;what&quot;:&quot;A named, reusable subset of rows from a source table, defined by a query.&quot;,&quot;why&quot;:&quot;Without it, there is no way to group rows for analysis or sharing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.753471391+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the segment.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be referenced or joined uniquely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.795324788+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the source table this segment is defined on.&quot;,&quot;why&quot;:&quot;Without it, the segment's scope is unknown and cannot be applied to the correct data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.806708308+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_segment_ref_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who created the segment.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trail are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.825363495+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_segment_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short human-readable name for the segment, e.g., 'Active Users'.&quot;,&quot;why&quot;:&quot;Without it, segments cannot be distinguished in lists or UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.850989457+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form explanation of the segment's purpose or contents.&quot;,&quot;why&quot;:&quot;Without it, future users cannot understand the segment's intent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.861719918+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the segment is hidden from active use (true) or available (false).&quot;,&quot;why&quot;:&quot;Without it, retired segments would clutter the interface and confuse users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.887863129+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="definition" nullable="false" remarks="{&quot;what&quot;:&quot;Query or condition logic that selects the segment's rows from the source table.&quot;,&quot;why&quot;:&quot;Without it, the segment has no actual data and cannot be executed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.922937887+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the segment was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, creation order and audit history are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.955883291+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to the segment, in UTC.&quot;,&quot;why&quot;:&quot;Without it, stale or conflicting edits cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:36.974886088+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="points_of_interest" nullable="true" remarks="{&quot;what&quot;:&quot;Notes about notable rows or patterns within the segment.&quot;,&quot;why&quot;:&quot;Without it, analysts lose context on interesting data points.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:37.003203748+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="caveats" nullable="true" remarks="{&quot;what&quot;:&quot;Warnings or limitations about the segment's data or definition.&quot;,&quot;why&quot;:&quot;Without it, users may misinterpret results or apply the segment incorrectly.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:37.025321209+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="11" name="show_in_getting_started" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the segment appears in the getting-started guide (true) or not (false).&quot;,&quot;why&quot;:&quot;Without it, onboarding content cannot be curated for new users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:37.070635095+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Single-character code for the entity type the segment is associated with.&quot;,&quot;why&quot;:&quot;Without it, the segment's target entity type is ambiguous when multiple entity types exist.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:37.113278123+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="13" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Integer version number for the dependency analysis algorithm used on this segment.&quot;,&quot;why&quot;:&quot;Without it, changes in analysis logic cannot be tracked or invalidated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:37.143018171+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="segment_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_segment_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_segment_show_in_getting_started" unique="false">
            <column ascending="true" name="show_in_getting_started"/>
         </index>
         <index name="idx_segment_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
         <index name="segment_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="semantic_search_token_tracking" remarks="{&quot;what&quot;:&quot;Log of token consumption per semantic search request.&quot;,&quot;why&quot;:&quot;Without it, token usage and cost attribution for semantic search are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:49.995978185+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each tracking record.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:50.025414041+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="model_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the embedding model used for the request, e.g. 'text-embedding-3-small'.&quot;,&quot;why&quot;:&quot;Without it, token usage cannot be attributed to a specific model for cost analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:50.202689609+00:00&quot;}" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="request_type" nullable="true" remarks="{&quot;what&quot;:&quot;Type of semantic search request, e.g. 'query' or 'document'.&quot;,&quot;why&quot;:&quot;Without it, usage breakdown by request kind is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:50.258470167+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the token usage was recorded.&quot;,&quot;why&quot;:&quot;Without it, time-based trends and billing periods cannot be computed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:50.297572649+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="total_tokens" nullable="false" remarks="{&quot;what&quot;:&quot;Number of tokens consumed by the request, as reported by the model API.&quot;,&quot;why&quot;:&quot;Without it, total token consumption and associated costs are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:50.360188743+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="semantic_search_token_tracking_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_semantic_search_token_tracking_created_at" unique="false">
            <column ascending="true" name="created_at"/>
         </index>
      </table>
      <table name="sequences" remarks="A table for generating atomic sequence numbers" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Unique sequence name, e.g., 'order_id_seq'; the lookup key.&quot;,&quot;why&quot;:&quot;Without it, sequences cannot be referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:50.496873254+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="next_val" nullable="false" remarks="{&quot;what&quot;:&quot;Next bigint value to be returned; incremented on each allocation.&quot;,&quot;why&quot;:&quot;Without it, the sequence cannot provide the next number, breaking ID generation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:50.509555958+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <primaryKey column="name" sequenceNumberInPK="1"/>
         <index name="sequences_pkey" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="setting" remarks="{&quot;what&quot;:&quot;Key-value pairs for application configuration.&quot;,&quot;why&quot;:&quot;Centralizes tunable parameters so behavior changes without code deployment.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:54.621647340+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="key" nullable="false" remarks="{&quot;what&quot;:&quot;Unique setting name, e.g. 'max_connections'.&quot;,&quot;why&quot;:&quot;Identifies which setting to read or update; without it, lookups are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:54.639297050+00:00&quot;}" size="254" type="varchar" typeCode="12">
            <child column="key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="api_key"/>
            <child column="key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="user_key_value"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="value" nullable="false" remarks="{&quot;what&quot;:&quot;Setting's value as text; format depends on the key.&quot;,&quot;why&quot;:&quot;Holds the actual configuration; without it, the key has no effect.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:06:54.660866170+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="key" sequenceNumberInPK="1"/>
         <index name="setting_pkey" unique="true">
            <column ascending="true" name="key"/>
         </index>
      </table>
      <table name="support_access_grant_log" remarks="{&quot;what&quot;:&quot;Log of support access grants with start/end times and revocation details.&quot;,&quot;why&quot;:&quot;Audits who had support access and when, for security and compliance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.398701106+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each grant log entry.&quot;,&quot;why&quot;:&quot;Needed to reference a specific grant record; without it, rows cannot be uniquely identified.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.427380092+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the user who received support access.&quot;,&quot;why&quot;:&quot;Without it, the grant cannot be attributed to a user, making access history ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.441726223+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_support_access_grant_log_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ticket_number" nullable="true" remarks="{&quot;what&quot;:&quot;Support ticket number associated with this grant.&quot;,&quot;why&quot;:&quot;Links the grant to a support request; without it, the reason for access is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.456631395+00:00&quot;}" size="100" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="notes" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text notes about the grant.&quot;,&quot;why&quot;:&quot;Captures context or justification; without it, the purpose of the grant may be unclear.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.538507817+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="grant_start_timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;Date and time when the access grant becomes effective.&quot;,&quot;why&quot;:&quot;Defines the beginning of the access window; without it, the grant period is undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.560928226+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="grant_end_timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;Date and time when the access grant expires.&quot;,&quot;why&quot;:&quot;Defines the end of the access window; without it, the grant would be open-ended.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.577573754+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="revoked_at" nullable="true" remarks="{&quot;what&quot;:&quot;Date and time when the grant was revoked, if any.&quot;,&quot;why&quot;:&quot;Indicates early termination; without it, we cannot know if the grant was revoked before expiry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.595952369+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="revoked_by_user_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the user who revoked the grant.&quot;,&quot;why&quot;:&quot;Records who performed the revocation; without it, accountability for revocation is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.638264118+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_support_access_grant_log_revoked_by_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this log entry was created.&quot;,&quot;why&quot;:&quot;Provides audit trail of when the record was inserted; without it, the log's chronological order is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.658183145+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this log entry.&quot;,&quot;why&quot;:&quot;Tracks modifications; without it, we cannot know if the record was changed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:12:58.684825468+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="support_access_grant_log_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_support_access_grant_log_active" unique="false">
            <column ascending="true" name="grant_end_timestamp"/>
            <column ascending="true" name="revoked_at"/>
         </index>
         <index name="idx_support_access_grant_log_revoked_by_user_id" unique="false">
            <column ascending="true" name="revoked_by_user_id"/>
         </index>
         <index name="idx_support_access_grant_log_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="table_privileges" remarks="{&quot;what&quot;:&quot;Rows each grant a set of boolean privileges on one table to one role.&quot;,&quot;why&quot;:&quot;Without it, access control decisions cannot be enforced; the system cannot know who may read or modify a table.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:16.768581743+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="table_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the table that the privileges apply to.&quot;,&quot;why&quot;:&quot;Identifies which table the privilege row governs; without it the grant is meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:16.788914046+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_table_privileges_table_id" implied="false" onDeleteCascade="true" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="role" nullable="true" remarks="{&quot;what&quot;:&quot;Role name that the privileges are granted to; null if the grant is not role-specific.&quot;,&quot;why&quot;:&quot;Determines which role gets the privileges; without it, the grant cannot be applied to the intended user or group.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:16.848792334+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="2" name="select" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if the role can SELECT rows from the table.&quot;,&quot;why&quot;:&quot;Controls read access; without it, read permissions are undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:16.870763913+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="3" name="update" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if the role can UPDATE rows in the table.&quot;,&quot;why&quot;:&quot;Controls write access; without it, update permissions are undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:16.910110776+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="4" name="insert" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if the role can INSERT rows into the table.&quot;,&quot;why&quot;:&quot;Controls insert access; without it, insert permissions are undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:17.088193110+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="delete" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if the role can DELETE rows from the table.&quot;,&quot;why&quot;:&quot;Controls delete access; without it, delete permissions are undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:17.151979954+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <index name="idx_table_privileges_role" unique="false">
            <column ascending="true" name="role"/>
         </index>
         <index name="idx_table_privileges_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
      </table>
      <table name="task_history" remarks="{&quot;what&quot;:&quot;History of task executions with timing, status, and logs.&quot;,&quot;why&quot;:&quot;Provides an audit trail to debug and monitor scheduled or manual tasks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.755785447+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate key for a single task run.&quot;,&quot;why&quot;:&quot;Enables referencing a specific run in logs and foreign keys.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.769671066+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="task" nullable="false" remarks="{&quot;what&quot;:&quot;Name or identifier of the task that was executed, e.g., 'nightly_backup'.&quot;,&quot;why&quot;:&quot;Distinguishes which task this history entry belongs to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.813168040+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="db_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the database or connection used for the task.&quot;,&quot;why&quot;:&quot;Links the run to a specific database context for filtering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.832447560+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="CURRENT_TIMESTAMP" digits="6" id="3" name="started_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the task started, in UTC with timezone.&quot;,&quot;why&quot;:&quot;Allows ordering runs and computing duration with ended_at.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.878033399+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="ended_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the task finished, null if still running.&quot;,&quot;why&quot;:&quot;Needed to compute duration and detect incomplete runs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.934488498+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="duration" nullable="true" remarks="{&quot;what&quot;:&quot;Elapsed time of the task run in seconds.&quot;,&quot;why&quot;:&quot;Allows quick comparison of run times without timestamp arithmetic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:03.975469186+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="task_details" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text with task parameters or output details.&quot;,&quot;why&quot;:&quot;Provides context for debugging when status is not success.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:04.022774989+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'started'::character varying" digits="0" id="7" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Current state of the task, e.g., 'started', 'completed', 'failed'.&quot;,&quot;why&quot;:&quot;Filters runs by outcome and identifies unfinished tasks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:04.047794075+00:00&quot;}" size="21" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="run_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the parent run or batch that triggered this task.&quot;,&quot;why&quot;:&quot;Groups multiple task executions under a single run for analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:04.076425145+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_task_history_run_id" implied="false" onDeleteCascade="false" schema="public" table="task_run"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="logs" nullable="true" remarks="{&quot;what&quot;:&quot;Captured log output from the task execution.&quot;,&quot;why&quot;:&quot;Diagnoses failures without re-running the task.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:04.131053691+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="task_history_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_task_history_db_id" unique="false">
            <column ascending="true" name="db_id"/>
         </index>
         <index name="idx_task_history_end_time" unique="false">
            <column ascending="true" name="ended_at"/>
         </index>
         <index name="idx_task_history_run_id" unique="false">
            <column ascending="true" name="run_id"/>
         </index>
         <index name="idx_task_history_started_at" unique="false">
            <column ascending="true" name="started_at"/>
         </index>
      </table>
      <table name="task_run" remarks="{&quot;what&quot;:&quot;One execution of a background task, tied to an entity via entity_type/entity_id.&quot;,&quot;why&quot;:&quot;Without it, there is no audit trail of task runs, so failures and retries cannot be diagnosed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:28.523925670+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate key; unique integer per run.&quot;,&quot;why&quot;:&quot;Without it, runs cannot be referenced individually, breaking updates and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:28.550424578+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="run_id" foreignKey="fk_task_history_run_id" implied="false" onDeleteCascade="false" schema="public" table="task_history"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="run_type" nullable="false" remarks="{&quot;what&quot;:&quot;Categorizes the task kind; values are application-defined.&quot;,&quot;why&quot;:&quot;Without it, you cannot filter runs by task kind, so per-type monitoring and retries fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:28.622817507+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of entity the run operates on; values are application-defined.&quot;,&quot;why&quot;:&quot;Without it, entity_id is meaningless, so you cannot link a run to its subject.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:28.849629902+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer ID of the entity this run targets, paired with entity_type.&quot;,&quot;why&quot;:&quot;Without it, you cannot identify which specific entity the run processed, breaking per-entity history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:28.968932005+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="started_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the run started; timezone-aware.&quot;,&quot;why&quot;:&quot;Without it, run duration and ordering are unknown, so performance analysis fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:29.027171075+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="ended_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the run finished; null if still running or failed to end.&quot;,&quot;why&quot;:&quot;Without it, you cannot compute duration or detect stuck runs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:29.049536397+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;State of the run; values are application-defined.&quot;,&quot;why&quot;:&quot;Without it, you cannot know if a run succeeded or failed, so error handling and retries are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:29.073970175+00:00&quot;}" size="21" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'unknown'::character varying" digits="0" id="7" name="process_uuid" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the process that executed the run; 'unknown' if not set.&quot;,&quot;why&quot;:&quot;Without it, you cannot correlate a run with a specific process instance, making distributed debugging hard.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:29.091323092+00:00&quot;}" size="36" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this run's row.&quot;,&quot;why&quot;:&quot;Without it, you cannot detect stale or recently modified runs, so monitoring and cleanup fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:29.107102037+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="task_run_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_task_run_started_at" unique="false">
            <column ascending="false" name="started_at"/>
         </index>
         <index name="idx_task_run_type_entity" unique="false">
            <column ascending="true" name="run_type"/>
            <column ascending="true" name="entity_type"/>
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="tenant" remarks="{&quot;what&quot;:&quot;A distinct customer or organization with its own data partition.&quot;,&quot;why&quot;:&quot;Enables multi-tenancy; without it, data from different customers would be indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.253021983+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key, unique per tenant.&quot;,&quot;why&quot;:&quot;Referenced by other tables as tenant_id to associate rows.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.288851331+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="tenant_id" foreignKey="fk_core_user_tenant_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Display name for the tenant, e.g., 'Acme Corp'.&quot;,&quot;why&quot;:&quot;Shown in UI and reports; without it, tenants are only numbers.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.321847844+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;URL-safe unique string, e.g., 'acme-corp'.&quot;,&quot;why&quot;:&quot;Used in API paths and subdomains; without it, routing would need numeric IDs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.348634225+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="3" name="is_active" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag; true means tenant is enabled.&quot;,&quot;why&quot;:&quot;Allows disabling a tenant without deleting data; without it, deactivation would require removal.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.393754696+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last row update, timezone-aware.&quot;,&quot;why&quot;:&quot;Supports change tracking and cache invalidation; without it, stale data is undetectable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.405001011+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when tenant was created, timezone-aware.&quot;,&quot;why&quot;:&quot;Provides tenant age for lifecycle analysis; without it, onboarding date is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.418042876+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="attributes" nullable="true" remarks="{&quot;what&quot;:&quot;Text field for JSON or key-value configuration.&quot;,&quot;why&quot;:&quot;Stores tenant-specific settings without schema migration; without it, custom fields require ALTER TABLE.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.433264016+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="tenant_collection_id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer foreign key to a tenant collection group.&quot;,&quot;why&quot;:&quot;Groups tenants for bulk operations; without it, collections cannot be assigned.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:30.446846850+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="tenant_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="tenant_name_key" unique="true">
            <column ascending="true" name="name"/>
         </index>
         <index name="tenant_slug_key" unique="true">
            <column ascending="true" name="slug"/>
         </index>
      </table>
      <table name="timeline" remarks="{&quot;what&quot;:&quot;A named timeline that groups time-ordered items under a common context.&quot;,&quot;why&quot;:&quot;Without it, there is no entity to attach time-ordered items to, so they cannot be grouped or referenced.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.510128577+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier; foreign key target from other tables.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced, breaking relationships.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.521367916+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="timeline_id" foreignKey="fk_events_timeline_id" implied="false" onDeleteCascade="true" schema="public" table="timeline_event"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short human-readable label for the timeline, e.g., 'Q3 Launch'.&quot;,&quot;why&quot;:&quot;Without it, users cannot distinguish timelines in lists or dropdowns.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.546293350+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text explanation of the timeline's purpose or contents.&quot;,&quot;why&quot;:&quot;Without it, context for the timeline is missing, making it hard to understand its intent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.555612279+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="icon" nullable="false" remarks="{&quot;what&quot;:&quot;Icon name or path used for UI display of the timeline.&quot;,&quot;why&quot;:&quot;Without it, the timeline lacks a visual cue in interfaces, reducing usability.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.576527726+00:00&quot;}" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;Foreign key to a parent collection that groups timelines.&quot;,&quot;why&quot;:&quot;Without it, timelines cannot be organized into collections, so grouping and filtering by collection is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.597181833+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_timeline_collection_id" implied="false" onDeleteCascade="true" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="false" digits="0" id="5" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the timeline is hidden from active use; true means archived.&quot;,&quot;why&quot;:&quot;Without it, archived timelines would appear in normal queries, cluttering active views.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.610487343+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the user who created the timeline.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trail for the timeline is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.622567097+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_timeline_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of row creation.&quot;,&quot;why&quot;:&quot;Without it, there is no record of when the timeline was created, breaking audit and sorting by creation date.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.635304896+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of the last update to the timeline row.&quot;,&quot;why&quot;:&quot;Without it, there is no way to know when the timeline was last modified, breaking change tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.665455662+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="9" name="default" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether this timeline is the default for its context (e.g., user or collection).&quot;,&quot;why&quot;:&quot;Without it, there is no way to determine which timeline to use when none is explicitly chosen.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.684775747+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;String identifier of an external entity this timeline belongs to, if any.&quot;,&quot;why&quot;:&quot;Without it, the timeline cannot be associated with a specific entity, making its scope ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:22.705163490+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="timeline_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_timeline_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_timeline_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="timeline_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="timeline_event" remarks="{&quot;what&quot;:&quot;Events belonging to a timeline, each with a name, timestamp, and display options.&quot;,&quot;why&quot;:&quot;Without it, timelines would have no content to show.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.344876760+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each event.&quot;,&quot;why&quot;:&quot;Without it, events cannot be referenced or updated individually.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.401508390+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="timeline_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the timeline this event belongs to.&quot;,&quot;why&quot;:&quot;Without it, events cannot be associated with a specific timeline.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.464822192+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_events_timeline_id" implied="false" onDeleteCascade="true" schema="public" table="timeline"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short display name for the event, e.g., 'Release v1.0'.&quot;,&quot;why&quot;:&quot;Without it, the event has no label to show in the timeline.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.592376999+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Optional longer text describing the event details.&quot;,&quot;why&quot;:&quot;Without it, additional context about the event is unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.635418487+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;The event's date and time in UTC, with timezone offset.&quot;,&quot;why&quot;:&quot;Without it, the event cannot be placed chronologically on the timeline.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.663432872+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="time_matters" nullable="false" remarks="{&quot;what&quot;:&quot;Whether the exact time is significant; false means only the date matters.&quot;,&quot;why&quot;:&quot;Without it, the UI cannot decide whether to display time or just date.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.699043742+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="timezone" nullable="false" remarks="{&quot;what&quot;:&quot;IANA timezone name (e.g., 'America/New_York') for displaying the timestamp.&quot;,&quot;why&quot;:&quot;Without it, the timestamp cannot be shown in the user's local time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.823203829+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="icon" nullable="false" remarks="{&quot;what&quot;:&quot;Icon identifier (e.g., FontAwesome class) for the event's visual marker.&quot;,&quot;why&quot;:&quot;Without it, the event lacks a distinct icon in the timeline UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.836127943+00:00&quot;}" size="128" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="archived" nullable="false" remarks="{&quot;what&quot;:&quot;Whether the event is hidden from normal view; true means archived.&quot;,&quot;why&quot;:&quot;Without it, archived events would still appear, cluttering the timeline.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.864109180+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the user who created the event.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trails for the event are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.875740976+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_event_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the event row was inserted.&quot;,&quot;why&quot;:&quot;Without it, the creation time is lost, affecting audit and sorting.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.905447782+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last update to the event row.&quot;,&quot;why&quot;:&quot;Without it, stale data cannot be detected or resolved.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.931235920+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="timeline_event_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_timeline_event_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_timeline_event_timeline_id" unique="false">
            <column ascending="true" name="timeline_id"/>
         </index>
         <index name="idx_timeline_event_timeline_id_timestamp" unique="false">
            <column ascending="true" name="timeline_id"/>
            <column ascending="true" name="timestamp"/>
         </index>
      </table>
      <table name="transform" remarks="The main table for Transform entities" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the transform row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be referenced or joined uniquely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.065663729+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="transform_id" foreignKey="fk_metabase_table_transform_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_table"/>
            <child column="transform_id" foreignKey="fk_transform_run_transform_id" implied="false" onDeleteCascade="false" schema="public" table="transform_run"/>
            <child column="transform_id" foreignKey="fk_transform_transform_tag_transform_id" implied="false" onDeleteCascade="true" schema="public" table="transform_transform_tag"/>
            <child column="transform_id" foreignKey="fk_workspace_merge_transform_transform_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_merge_transform"/>
            <child column="transform_id" foreignKey="fk_workspace_output_external_transform_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_output_external"/>
            <child column="global_id" foreignKey="fk_workspace_transform_global_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name of the transform, e.g., 'Daily Sales Rollup'.&quot;,&quot;why&quot;:&quot;Without it, users cannot identify or select a transform in UI or logs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.082712959+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form explanation of the transform's purpose or logic.&quot;,&quot;why&quot;:&quot;Without it, future maintainers lack context for why the transform exists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.098688287+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="source" nullable="false" remarks="{&quot;what&quot;:&quot;Source table or query string that the transform reads from.&quot;,&quot;why&quot;:&quot;Without it, the input data is unknown, so the transform cannot be executed or validated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.114381614+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="target" nullable="false" remarks="{&quot;what&quot;:&quot;Destination table or output location where transformed data is written.&quot;,&quot;why&quot;:&quot;Without it, the output destination is unknown, so results cannot be stored or consumed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.131964993+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the business entity this transform applies to, e.g., account or product ID.&quot;,&quot;why&quot;:&quot;Without it, transforms cannot be scoped to a specific entity, causing cross-entity data mixing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.144748655+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the transform row was first inserted.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ordering of transform creation are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.165412336+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last update to this transform row.&quot;,&quot;why&quot;:&quot;Without it, stale or concurrent modifications cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.178682586+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="8" name="dependency_analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the dependency analysis algorithm used for this transform.&quot;,&quot;why&quot;:&quot;Without it, results from different analysis versions become indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.196120157+00:00&quot;}" size="5" type="int2" typeCode="5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="source_type" nullable="false" remarks="{&quot;what&quot;:&quot;Type of source, e.g., 'table', 'query', 'file'.&quot;,&quot;why&quot;:&quot;Without it, the parser cannot interpret the source string correctly.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.220849766+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="13371338" digits="0" id="10" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the person who created this transform; default is system user.&quot;,&quot;why&quot;:&quot;Without it, ownership and accountability for the transform are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.234097794+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_ref_creator_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="source_database_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the database where the source data resides.&quot;,&quot;why&quot;:&quot;Without it, the source connection cannot be resolved, breaking execution.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.268629957+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_tranform_source_database_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the collection or folder this transform belongs to, if any.&quot;,&quot;why&quot;:&quot;Without it, transforms cannot be grouped or filtered by collection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.280121269+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="owner_user_id" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the current owner responsible for this transform.&quot;,&quot;why&quot;:&quot;Without it, responsibility for maintenance and approvals is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.301453720+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_owner_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="owner_email" nullable="true" remarks="{&quot;what&quot;:&quot;Email address of the owner, denormalized for quick contact.&quot;,&quot;why&quot;:&quot;Without it, contacting the owner requires a join to user table.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.322658165+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="target_db_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the database where the target output is written; null if same as source.&quot;,&quot;why&quot;:&quot;Without it, the output connection is unknown, preventing writes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.347992668+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_target_db_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_database"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="last_checkpoint_value" nullable="true" remarks="{&quot;what&quot;:&quot;Last processed value (e.g., watermark) used for incremental transforms.&quot;,&quot;why&quot;:&quot;Without it, incremental runs cannot resume from the correct position.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:10.370723196+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_transform_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_transform_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_transform_dependency_analysis_version" unique="false">
            <column ascending="true" name="dependency_analysis_version"/>
         </index>
         <index name="idx_transform_owner_user_id" unique="false">
            <column ascending="true" name="owner_user_id"/>
         </index>
         <index name="idx_transform_source_database_id" unique="false">
            <column ascending="true" name="source_database_id"/>
         </index>
         <index name="idx_transform_target_db_id" unique="false">
            <column ascending="true" name="target_db_id"/>
         </index>
         <index name="transform_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="transform_job" remarks="{&quot;what&quot;:&quot;A job that runs a data transformation on a target entity.&quot;,&quot;why&quot;:&quot;Without it, transformation jobs cannot be scheduled, executed, or audited.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.661975200+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the job.&quot;,&quot;why&quot;:&quot;Without it, no stable reference exists for job operations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.673693836+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="job_id" foreignKey="fk_transform_job_transform_tag_job_id" implied="false" onDeleteCascade="true" schema="public" table="transform_job_transform_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Text label for the job, used in UI and logs.&quot;,&quot;why&quot;:&quot;Without it, jobs are only identifiable by ID, making UI and debugging ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.687045343+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form details about the job's purpose or behavior.&quot;,&quot;why&quot;:&quot;Without it, the job's intent is undocumented, hindering maintenance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.698698349+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="schedule" nullable="false" remarks="{&quot;what&quot;:&quot;Cron expression or raw schedule string, e.g., '0 0 * * *'.&quot;,&quot;why&quot;:&quot;Without it, the job has no trigger time and cannot run automatically.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.710878133+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;String identifier of the entity this job operates on.&quot;,&quot;why&quot;:&quot;Without it, the job's target is unknown, so execution cannot be scoped.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.721983718+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of job creation.&quot;,&quot;why&quot;:&quot;Without it, the job's age and creation order are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.733379649+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last modification to the job.&quot;,&quot;why&quot;:&quot;Without it, stale job definitions cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.746077684+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="built_in_type" nullable="true" remarks="{&quot;what&quot;:&quot;Name of a built-in transformation template, if used.&quot;,&quot;why&quot;:&quot;Without it, the job's execution engine cannot be determined for built-in jobs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.762148413+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'cron/raw'::character varying" digits="0" id="8" name="ui_display_type" nullable="false" remarks="{&quot;what&quot;:&quot;UI widget type for schedule editing, defaulting to 'cron/raw'.&quot;,&quot;why&quot;:&quot;Without it, the frontend does not know how to render the schedule editor.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:29.779148646+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_job_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="transform_job_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="transform_job_run" remarks="{&quot;what&quot;:&quot;A single execution attempt of a transform job, with method, status, and timing.&quot;,&quot;why&quot;:&quot;Without it, there is no history of job executions, so debugging failures or auditing runs becomes impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.436615464+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this run; primary key.&quot;,&quot;why&quot;:&quot;Without it, runs cannot be referenced individually, breaking updates and joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.521465623+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the transform job that this run belongs to.&quot;,&quot;why&quot;:&quot;Without it, a run cannot be linked to its parent job, so per-job history is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.575665593+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="run_method" nullable="false" remarks="{&quot;what&quot;:&quot;Text label indicating how the run was initiated, e.g., manual or scheduled.&quot;,&quot;why&quot;:&quot;Without it, you cannot distinguish runs by trigger source, so auditing or filtering by method is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.617738005+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Text label for the run's state, such as running, succeeded, or failed.&quot;,&quot;why&quot;:&quot;Without it, you cannot know if a run completed successfully, so error handling and monitoring break.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.636529817+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_active" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag indicating whether this run is active; null if not set.&quot;,&quot;why&quot;:&quot;Without it, the notion of an active run is undefined, so any logic relying on it breaks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.659951810+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="start_time" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone marking the start of the run; defaults to now.&quot;,&quot;why&quot;:&quot;Without it, you cannot measure run duration or know when a run began, so performance analysis fails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.851425420+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="end_time" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp with time zone marking the end of the run; null if still running.&quot;,&quot;why&quot;:&quot;Without it, you cannot know if a run finished or how long it took, so completion status and duration are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.872146872+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="message" nullable="true" remarks="{&quot;what&quot;:&quot;Text field for additional information about the run, such as error details.&quot;,&quot;why&quot;:&quot;Without it, error details or run output are lost, making debugging difficult.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.884421323+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the run record was created; defaults to now.&quot;,&quot;why&quot;:&quot;Without it, you cannot know when the record was inserted, so audit trails and ordering are incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.896093728+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this run record; defaults to now.&quot;,&quot;why&quot;:&quot;Without it, you cannot know when the run's status or other fields changed, so change tracking is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:03.912329206+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_job_run_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="transform_job_transform_tag" remarks="{&quot;what&quot;:&quot;Links a transform job to a tag, optionally scoped to an entity, with an order.&quot;,&quot;why&quot;:&quot;Without it, jobs cannot have multiple tags with per-entity scope and ordering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.410579573+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Surrogate primary key for this link row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely identified for updates or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.457054230+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="job_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the transform job this tag belongs to.&quot;,&quot;why&quot;:&quot;Without it, the tag is not linked to any job, so the job's tags are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.541405454+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_job_transform_tag_job_id" implied="false" onDeleteCascade="true" schema="public" table="transform_job"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tag_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the tag applied.&quot;,&quot;why&quot;:&quot;Without it, the job's tag is unknown, so the job's tagging is incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.592113916+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_job_transform_tag_tag_id" implied="false" onDeleteCascade="true" schema="public" table="transform_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional identifier of the entity the tag applies to, as a string.&quot;,&quot;why&quot;:&quot;Without it, tags apply to the whole job, losing per-entity granularity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.628319410+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="position" nullable="false" remarks="{&quot;what&quot;:&quot;Integer order of the tag within the job; lower values come first.&quot;,&quot;why&quot;:&quot;Without it, the order of tags is ambiguous, so the intended sequence is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:13:55.663781885+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_job_transform_tag_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="transform_job_transform_tag_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="unique_job_tag" unique="true">
            <column ascending="true" name="job_id"/>
            <column ascending="true" name="tag_id"/>
         </index>
      </table>
      <table name="transform_run" remarks="{&quot;what&quot;:&quot;A single execution attempt of a transformation job.&quot;,&quot;why&quot;:&quot;Without it, there is no record of when or how a transform ran, so audit and debugging are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:59.921159003+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for this run record.&quot;,&quot;why&quot;:&quot;Without it, runs cannot be referenced or linked to other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:59.938653412+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="run_id" foreignKey="fk_transform_run_cancelation_transform_run_run_id" implied="false" onDeleteCascade="true" schema="public" table="transform_run_cancelation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="transform_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the transform definition this run belongs to.&quot;,&quot;why&quot;:&quot;Without it, you cannot tell which transform was executed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:59.964632937+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_run_transform_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="run_method" nullable="false" remarks="{&quot;what&quot;:&quot;Method used to trigger the run, e.g. manual, scheduled, API.&quot;,&quot;why&quot;:&quot;Without it, you cannot distinguish automated from manual runs for auditing or debugging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:59.982643620+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="status" nullable="false" remarks="{&quot;what&quot;:&quot;Current state of the run, e.g. running, succeeded, failed.&quot;,&quot;why&quot;:&quot;Without it, you cannot know if the run completed successfully or is still in progress.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.001137707+00:00&quot;}" size="50" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_active" nullable="true" remarks="{&quot;what&quot;:&quot;Flag indicating whether this run is the latest active one for its transform.&quot;,&quot;why&quot;:&quot;Without it, you cannot filter to the current run when multiple runs exist.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.018592618+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="start_time" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the run started, in UTC with timezone.&quot;,&quot;why&quot;:&quot;Without it, you cannot measure run duration or order runs chronologically.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.042197140+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="end_time" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the run finished, null if still running.&quot;,&quot;why&quot;:&quot;Without it, you cannot compute duration or know if the run completed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.063393005+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="message" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text log or error message from the run.&quot;,&quot;why&quot;:&quot;Without it, you lose diagnostic details needed to debug failures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.081639644+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="user_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the user who triggered the run, if any.&quot;,&quot;why&quot;:&quot;Without it, you cannot attribute runs to users for audit or access control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.104709023+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_run_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="transform_name" nullable="true" remarks="{&quot;what&quot;:&quot;Snapshot of the transform's name at run time.&quot;,&quot;why&quot;:&quot;Without it, the run's meaning is lost if the transform is later renamed or deleted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.122183008+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="transform_entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the entity the transform operates on, as a character string.&quot;,&quot;why&quot;:&quot;Without it, you cannot know which data entity was processed by this run.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.136956440+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="checkpoint_filter_field_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the field used as the checkpoint filter for incremental runs.&quot;,&quot;why&quot;:&quot;Without it, you cannot know which field determined the incremental range.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.149072700+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="checkpoint_lo_value" nullable="true" remarks="{&quot;what&quot;:&quot;Lower bound value of the checkpoint filter range, as text.&quot;,&quot;why&quot;:&quot;Without it, the start of the processed data range is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.162012388+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="checkpoint_hi_value" nullable="true" remarks="{&quot;what&quot;:&quot;Upper bound value of the checkpoint filter range, as text.&quot;,&quot;why&quot;:&quot;Without it, the end of the processed data range is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:00.186152135+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_run_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_transform_run_active_runs" unique="false">
            <column ascending="true" name="is_active"/>
            <column ascending="true" name="transform_id"/>
         </index>
         <index name="idx_transform_run_last_run_idx" unique="false">
            <column ascending="true" name="transform_id"/>
            <column ascending="false" name="start_time"/>
         </index>
         <index name="idx_transform_run_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="idx_unique_active_transform_run" unique="true">
            <column ascending="true" name="transform_id"/>
            <column ascending="true" name="is_active"/>
         </index>
      </table>
      <table name="transform_run_cancelation" remarks="{&quot;what&quot;:&quot;Log of canceled transform runs, one row per cancellation.&quot;,&quot;why&quot;:&quot;Without it, canceled runs would be indistinguishable from completed or failed runs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:26.570620227+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="run_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the canceled run; references the run's primary key.&quot;,&quot;why&quot;:&quot;Identifies which run was canceled; without it the cancellation cannot be linked to a run.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:26.585953412+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_run_cancelation_transform_run_run_id" implied="false" onDeleteCascade="true" schema="public" table="transform_run"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="time" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone when the cancellation was recorded.&quot;,&quot;why&quot;:&quot;Records when the cancellation happened; without it the timing and order of cancellations is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:26.604481241+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="run_id" sequenceNumberInPK="1"/>
         <index name="transform_run_cancelation_pkey" unique="true">
            <column ascending="true" name="run_id"/>
         </index>
      </table>
      <table name="transform_tag" remarks="{&quot;what&quot;:&quot;Mappings between tag names and transform entities; one row per tag applied.&quot;,&quot;why&quot;:&quot;Without it, tags on transforms would be unknown, breaking tag-based filtering or grouping.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.771148016+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this tag assignment row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.782522369+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="tag_id" foreignKey="fk_transform_job_transform_tag_tag_id" implied="false" onDeleteCascade="true" schema="public" table="transform_job_transform_tag"/>
            <child column="tag_id" foreignKey="fk_transform_transform_tag_tag_id" implied="false" onDeleteCascade="true" schema="public" table="transform_transform_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Text label for the tag, e.g., 'urgent'.&quot;,&quot;why&quot;:&quot;Without it, the tag has no displayable name, making tags indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.798595778+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;String identifier of the transform this tag applies to.&quot;,&quot;why&quot;:&quot;Without it, the tagged transform is unknown, so tag-to-transform association is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.811547294+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with timezone when the tag was applied.&quot;,&quot;why&quot;:&quot;Without it, the time of tagging is unknown, breaking audit trails or time-based queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.833893386+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with timezone of the last modification to this tag assignment.&quot;,&quot;why&quot;:&quot;Without it, the recency of changes is unknown, making it impossible to detect stale tags.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.850384514+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="built_in_type" nullable="true" remarks="{&quot;what&quot;:&quot;Optional string classifying the tag as a built-in type; null for custom tags.&quot;,&quot;why&quot;:&quot;Without it, built-in tags cannot be distinguished from user-defined ones, breaking system tag management.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:21.860379931+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_tag_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="transform_tag_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
      <table name="transform_transform_tag" remarks="Join table for transforms and tags" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each link row.&quot;,&quot;why&quot;:&quot;Provides a stable key for updates and deletes of specific links.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.440396545+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="transform_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the transform being tagged.&quot;,&quot;why&quot;:&quot;Identifies which transform the tag is attached to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.451080358+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_transform_tag_transform_id" implied="false" onDeleteCascade="true" schema="public" table="transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="tag_id" nullable="false" remarks="{&quot;what&quot;:&quot;Foreign key to the tag applied to the transform.&quot;,&quot;why&quot;:&quot;Identifies which tag is applied to the transform.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.464375174+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_transform_transform_tag_tag_id" implied="false" onDeleteCascade="true" schema="public" table="transform_tag"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional character code for the entity type the tag applies to.&quot;,&quot;why&quot;:&quot;Distinguishes tag links by entity context when a transform has multiple tagged entities.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.473224939+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="position" nullable="false" remarks="{&quot;what&quot;:&quot;Zero-based ordering index of the tag within the transform's tag list.&quot;,&quot;why&quot;:&quot;Preserves the intended display order of tags for a transform.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.485455004+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="transform_transform_tag_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="transform_transform_tag_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
         <index name="unique_transform_tag" unique="true">
            <column ascending="true" name="transform_id"/>
            <column ascending="true" name="tag_id"/>
         </index>
      </table>
      <table name="user_key_value" remarks="{&quot;what&quot;:&quot;Arbitrary key-value data per user, namespaced, with optional expiry.&quot;,&quot;why&quot;:&quot;Without it, per-user arbitrary data would require new tables or columns per feature, causing schema churn.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:40.946098376+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key, unique per row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:40.957985765+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who owns this entry.&quot;,&quot;why&quot;:&quot;Without it, entries cannot be scoped to a specific user, making per-user retrieval impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:40.977844075+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_user_key_value_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="namespace" nullable="false" remarks="{&quot;what&quot;:&quot;String grouping keys into logical sets, e.g. 'preferences' or 'session'.&quot;,&quot;why&quot;:&quot;Without it, keys from different features would collide, and per-feature isolation would be lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:40.995002245+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="key" nullable="false" remarks="{&quot;what&quot;:&quot;Unique key within a (user_id, namespace) pair; the lookup identifier.&quot;,&quot;why&quot;:&quot;Without it, values cannot be addressed or updated individually within a namespace.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:41.017547710+00:00&quot;}" size="254" type="varchar" typeCode="12">
            <parent column="key" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="setting"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="value" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text content of the entry; null when no value is set.&quot;,&quot;why&quot;:&quot;Without it, there would be no payload to retrieve; null allows explicit absence of data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:41.029158048+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of row creation, set to current time on insert.&quot;,&quot;why&quot;:&quot;Without it, the age of entries cannot be determined, breaking audit or cleanup logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:41.039266973+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the most recent update to the row; defaults to creation time.&quot;,&quot;why&quot;:&quot;Without it, you cannot know when the value was last changed, breaking cache invalidation or staleness checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:41.059557241+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="expires_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp after which the entry is considered expired; null means no expiry.&quot;,&quot;why&quot;:&quot;Without it, temporary data like sessions or one-time tokens would persist indefinitely, requiring manual cleanup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:41.071115347+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="user_key_value_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="unique_user_key_value_user_id_namespace_key" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="namespace"/>
            <column ascending="true" name="key"/>
         </index>
      </table>
      <table name="user_parameter_value" remarks="{&quot;what&quot;:&quot;User-specific parameter values, optionally scoped to a dashboard.&quot;,&quot;why&quot;:&quot;Enables per-user customization of parameters, including dashboard-scoped overrides.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:04.765095481+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Integer primary key; unique row identifier.&quot;,&quot;why&quot;:&quot;Provides a stable reference for each setting row.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:04.776686399+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the user who owns this parameter value.&quot;,&quot;why&quot;:&quot;Identifies the user the setting applies to; without it, settings cannot be per-user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:04.827951674+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_user_parameter_value_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="parameter_id" nullable="false" remarks="{&quot;what&quot;:&quot;String key naming the parameter (e.g., 'theme').&quot;,&quot;why&quot;:&quot;Determines which parameter is being set; without it, the setting is meaningless.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:04.851760497+00:00&quot;}" size="36" type="varchar" typeCode="12">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="metabot_conversation"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="value" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text value for the parameter.&quot;,&quot;why&quot;:&quot;Holds the actual setting; without it, the parameter has no effect.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:04.891051300+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="dashboard_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the dashboard this value applies to; null means global.&quot;,&quot;why&quot;:&quot;Allows the same parameter to have different values per dashboard; without it, settings are global only.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:04.914463724+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_user_parameter_value_dashboard_id" implied="false" onDeleteCascade="true" schema="public" table="report_dashboard"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="user_parameter_value_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_user_parameter_value_dashboard_id" unique="false">
            <column ascending="true" name="dashboard_id"/>
         </index>
         <index name="idx_user_parameter_value_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
         <index name="idx_user_parameter_value_user_id_dashboard_id_parameter_id" unique="false">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="dashboard_id"/>
            <column ascending="true" name="parameter_id"/>
         </index>
      </table>
      <table name="v_alerts" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH parsed_cron AS (&#10;         SELECT n_1.id,&#10;            ns.cron_schedule,&#10;            ns.ui_display_type,&#10;            split_part((ns.cron_schedule)::text, ' '::text, 2) AS minutes,&#10;            split_part((ns.cron_schedule)::text, ' '::text, 3) AS hours,&#10;            split_part((ns.cron_schedule)::text, ' '::text, 4) AS day_of_month,&#10;            split_part((ns.cron_schedule)::text, ' '::text, 6) AS day_of_week&#10;           FROM (notification n_1&#10;             JOIN notification_subscription ns ON ((n_1.id = ns.notification_id)))&#10;          WHERE (((n_1.payload_type)::text = 'notification/card'::text) AND ((ns.type)::text = 'notification-subscription/cron'::text))&#10;        ), schedule_info AS (&#10;         SELECT parsed_cron.id,&#10;                CASE&#10;                    WHEN ((parsed_cron.ui_display_type)::text = 'cron/raw'::text) THEN 'custom'::text&#10;                    WHEN ((parsed_cron.minutes ~ '^\*$'::text) OR (parsed_cron.minutes ~ '^\d+/\d+$'::text)) THEN 'by the minute'::text&#10;                    WHEN ((parsed_cron.day_of_month &lt;&gt; '*'::text) AND ((parsed_cron.day_of_week = '?'::text) OR (parsed_cron.day_of_week ~ '^\d#1$'::text) OR (parsed_cron.day_of_week ~ '^\dL$'::text))) THEN 'monthly'::text&#10;                    WHEN ((parsed_cron.day_of_week &lt;&gt; '?'::text) AND (parsed_cron.day_of_week &lt;&gt; '*'::text)) THEN 'weekly'::text&#10;                    WHEN (parsed_cron.hours &lt;&gt; '*'::text) THEN 'daily'::text&#10;                    ELSE 'hourly'::text&#10;                END AS schedule_type,&#10;                CASE&#10;                    WHEN (parsed_cron.day_of_week ~ '^1'::text) THEN 'sun'::text&#10;                    WHEN (parsed_cron.day_of_week ~ '^2'::text) THEN 'mon'::text&#10;                    WHEN (parsed_cron.day_of_week ~ '^3'::text) THEN 'tue'::text&#10;                    WHEN (parsed_cron.day_of_week ~ '^4'::text) THEN 'wed'::text&#10;                    WHEN (parsed_cron.day_of_week ~ '^5'::text) THEN 'thu'::text&#10;                    WHEN (parsed_cron.day_of_week ~ '^6'::text) THEN 'fri'::text&#10;                    WHEN (parsed_cron.day_of_week ~ '^7'::text) THEN 'sat'::text&#10;                    ELSE NULL::text&#10;                END AS schedule_day,&#10;                CASE&#10;                    WHEN (parsed_cron.hours = '*'::text) THEN NULL::integer&#10;                    WHEN (parsed_cron.hours ~ '^\d+$'::text) THEN (parsed_cron.hours)::integer&#10;                    WHEN (parsed_cron.hours ~ '^(\d+)/\d+$'::text) THEN (&quot;substring&quot;(parsed_cron.hours, '^(\d+)/\d+$'::text))::integer&#10;                    ELSE NULL::integer&#10;                END AS schedule_hour&#10;           FROM parsed_cron&#10;        ), agg_recipients AS (&#10;         SELECT nr.notification_handler_id,&#10;            string_agg((cu.email)::text, ','::text) AS recipients,&#10;            ( SELECT string_agg(nr2.details, ','::text) AS string_agg&#10;                   FROM notification_recipient nr2&#10;                  WHERE ((nr2.notification_handler_id = nr.notification_handler_id) AND ((nr2.type)::text = 'notification-recipient/raw-value'::text))) AS recipient_external&#10;           FROM (notification_recipient nr&#10;             LEFT JOIN core_user cu ON (((nr.user_id = cu.id) AND ((nr.type)::text = 'notification-recipient/user'::text))))&#10;          GROUP BY nr.notification_handler_id&#10;        )&#10; SELECT n.id AS entity_id,&#10;    ('notification_'::text || n.id) AS entity_qualified_id,&#10;    n.created_at,&#10;    n.updated_at,&#10;    n.creator_id,&#10;    nc.card_id,&#10;    ('card_'::text || nc.card_id) AS card_qualified_id,&#10;        CASE&#10;            WHEN ((nc.send_condition)::text = 'has_result'::text) THEN 'rows'::text&#10;            WHEN ((nc.send_condition)::text = ANY ((ARRAY['goal_above'::character varying, 'goal_below'::character varying])::text[])) THEN 'goal'::text&#10;            ELSE NULL::text&#10;        END AS alert_condition,&#10;    si.schedule_type,&#10;    si.schedule_day,&#10;    si.schedule_hour,&#10;    (NOT n.active) AS archived,&#10;    nh.channel_type AS recipient_type,&#10;    ar.recipients,&#10;    ar.recipient_external&#10;   FROM ((((notification n&#10;     JOIN notification_card nc ON ((n.payload_id = nc.id)))&#10;     JOIN schedule_info si ON ((n.id = si.id)))&#10;     LEFT JOIN notification_handler nh ON ((n.id = nh.notification_id)))&#10;     LEFT JOIN agg_recipients ar ON ((nh.id = ar.notification_handler_id)))&#10;  WHERE ((n.payload_type)::text = 'notification/card'::text);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="creator_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="card_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="card_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="alert_condition" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="schedule_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="schedule_day" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="schedule_hour" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="archived" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="recipient_type" nullable="true" remarks="" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="recipients" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="recipient_external" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_audit_log" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id,&#10;        CASE&#10;            WHEN ((topic)::text = 'card-create'::text) THEN 'card-create'::character varying&#10;            WHEN ((topic)::text = 'card-delete'::text) THEN 'card-delete'::character varying&#10;            WHEN ((topic)::text = 'card-update'::text) THEN 'card-update'::character varying&#10;            WHEN ((topic)::text = 'pulse-create'::text) THEN 'subscription-create'::character varying&#10;            WHEN ((topic)::text = 'pulse-delete'::text) THEN 'subscription-delete'::character varying&#10;            ELSE topic&#10;        END AS topic,&#10;    &quot;timestamp&quot;,&#10;    NULL::text AS end_timestamp,&#10;    COALESCE(user_id, 0) AS user_id,&#10;    lower((model)::text) AS entity_type,&#10;    model_id AS entity_id,&#10;        CASE&#10;            WHEN ((model)::text = 'Dataset'::text) THEN ('card_'::text || model_id)&#10;            WHEN (model_id IS NULL) THEN NULL::text&#10;            ELSE ((lower((model)::text) || '_'::text) || model_id)&#10;        END AS entity_qualified_id,&#10;    details&#10;   FROM audit_log&#10;  WHERE ((topic)::text &lt;&gt; ALL ((ARRAY['card-read'::character varying, 'card-query'::character varying, 'dashboard-read'::character varying, 'dashboard-query'::character varying, 'table-read'::character varying])::text[]));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="topic" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="timestamp" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="end_timestamp" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="entity_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="details" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_content" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT action.id AS entity_id,&#10;    ('action_'::text || action.id) AS entity_qualified_id,&#10;    'action'::text AS entity_type,&#10;    action.created_at,&#10;    action.updated_at,&#10;    action.creator_id,&#10;    action.name,&#10;    action.description,&#10;    NULL::integer AS collection_id,&#10;    action.made_public_by_id AS made_public_by_user,&#10;    NULL::boolean AS is_embedding_enabled,&#10;    NULL::boolean AS is_verified,&#10;    action.archived,&#10;    action.type AS action_type,&#10;    action.model_id AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM action&#10;UNION&#10; SELECT collection.id AS entity_id,&#10;    ('collection_'::text || collection.id) AS entity_qualified_id,&#10;    'collection'::text AS entity_type,&#10;    collection.created_at,&#10;    NULL::timestamp with time zone AS updated_at,&#10;    NULL::integer AS creator_id,&#10;    collection.name,&#10;    collection.description,&#10;    NULL::integer AS collection_id,&#10;    NULL::integer AS made_public_by_user,&#10;    NULL::boolean AS is_embedding_enabled,&#10;    NULL::boolean AS is_verified,&#10;    collection.archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;        CASE&#10;            WHEN ((collection.authority_level)::text = 'official'::text) THEN true&#10;            ELSE false&#10;        END AS collection_is_official,&#10;        CASE&#10;            WHEN (collection.personal_owner_id IS NOT NULL) THEN true&#10;            ELSE false&#10;        END AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM collection&#10;UNION&#10; SELECT report_card.id AS entity_id,&#10;    ('card_'::text || report_card.id) AS entity_qualified_id,&#10;    report_card.type AS entity_type,&#10;    report_card.created_at,&#10;    report_card.updated_at,&#10;    report_card.creator_id,&#10;    report_card.name,&#10;    report_card.description,&#10;    report_card.collection_id,&#10;    report_card.made_public_by_id AS made_public_by_user,&#10;    report_card.enable_embedding AS is_embedding_enabled,&#10;        CASE&#10;            WHEN moderation.is_verified THEN true&#10;            ELSE false&#10;        END AS is_verified,&#10;    report_card.archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    report_card.display AS question_viz_type,&#10;    ('database_'::text || report_card.database_id) AS question_database_id,&#10;        CASE&#10;            WHEN ((report_card.query_type)::text = 'native'::text) THEN true&#10;            ELSE false&#10;        END AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM (report_card&#10;     LEFT JOIN ( SELECT (((moderation_review.moderated_item_type)::text || '_'::text) || moderation_review.moderated_item_id) AS entity_qualified_id,&#10;                CASE&#10;                    WHEN ((moderation_review.status)::text = 'verified'::text) THEN true&#10;                    ELSE false&#10;                END AS is_verified&#10;           FROM moderation_review&#10;          WHERE moderation_review.most_recent) moderation ON ((('card_'::text || report_card.id) = moderation.entity_qualified_id)))&#10;UNION&#10; SELECT report_dashboard.id AS entity_id,&#10;    ('dashboard_'::text || report_dashboard.id) AS entity_qualified_id,&#10;    'dashboard'::text AS entity_type,&#10;    report_dashboard.created_at,&#10;    report_dashboard.updated_at,&#10;    report_dashboard.creator_id,&#10;    report_dashboard.name,&#10;    report_dashboard.description,&#10;    report_dashboard.collection_id,&#10;    report_dashboard.made_public_by_id AS made_public_by_user,&#10;    report_dashboard.enable_embedding AS is_embedding_enabled,&#10;        CASE&#10;            WHEN moderation.is_verified THEN true&#10;            ELSE false&#10;        END AS is_verified,&#10;    report_dashboard.archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM (report_dashboard&#10;     LEFT JOIN ( SELECT (((moderation_review.moderated_item_type)::text || '_'::text) || moderation_review.moderated_item_id) AS entity_qualified_id,&#10;                CASE&#10;                    WHEN ((moderation_review.status)::text = 'verified'::text) THEN true&#10;                    ELSE false&#10;                END AS is_verified&#10;           FROM moderation_review&#10;          WHERE moderation_review.most_recent) moderation ON ((('dashboard_'::text || report_dashboard.id) = moderation.entity_qualified_id)))&#10;UNION&#10; SELECT document.id AS entity_id,&#10;    ('document_'::text || document.id) AS entity_qualified_id,&#10;    'document'::text AS entity_type,&#10;    document.created_at,&#10;    document.updated_at,&#10;    document.creator_id,&#10;    document.name,&#10;    NULL::text AS description,&#10;    document.collection_id,&#10;    NULL::integer AS made_public_by_user,&#10;    NULL::boolean AS is_embedding_enabled,&#10;    NULL::boolean AS is_verified,&#10;    document.archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM document&#10;UNION&#10; SELECT event.id AS entity_id,&#10;    ('event_'::text || event.id) AS entity_qualified_id,&#10;    'event'::text AS entity_type,&#10;    event.created_at,&#10;    event.updated_at,&#10;    event.creator_id,&#10;    event.name,&#10;    event.description,&#10;    timeline.collection_id,&#10;    NULL::integer AS made_public_by_user,&#10;    NULL::boolean AS is_embedding_enabled,&#10;    NULL::boolean AS is_verified,&#10;    event.archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    event.&quot;timestamp&quot; AS event_timestamp&#10;   FROM (timeline_event event&#10;     LEFT JOIN timeline ON ((event.timeline_id = timeline.id)))&#10;UNION&#10; SELECT transform.id AS entity_id,&#10;    ('transform_'::text || transform.id) AS entity_qualified_id,&#10;    'transform'::text AS entity_type,&#10;    transform.created_at,&#10;    transform.updated_at,&#10;    transform.creator_id,&#10;    transform.name,&#10;    transform.description,&#10;    NULL::integer AS collection_id,&#10;    NULL::integer AS made_public_by_user,&#10;    NULL::boolean AS is_embedding_enabled,&#10;    NULL::boolean AS is_verified,&#10;    false AS archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM transform&#10;UNION&#10; SELECT glossary.id AS entity_id,&#10;    ('glossary_'::text || glossary.id) AS entity_qualified_id,&#10;    'glossary'::text AS entity_type,&#10;    glossary.created_at,&#10;    glossary.updated_at,&#10;    glossary.creator_id,&#10;    glossary.term AS name,&#10;    glossary.definition AS description,&#10;    NULL::integer AS collection_id,&#10;    NULL::integer AS made_public_by_user,&#10;    NULL::boolean AS is_embedding_enabled,&#10;    NULL::boolean AS is_verified,&#10;    false AS archived,&#10;    NULL::text AS action_type,&#10;    NULL::integer AS action_model_id,&#10;    NULL::boolean AS collection_is_official,&#10;    NULL::boolean AS collection_is_personal,&#10;    NULL::text AS question_viz_type,&#10;    NULL::text AS question_database_id,&#10;    NULL::boolean AS question_is_native,&#10;    NULL::timestamp without time zone AS event_timestamp&#10;   FROM glossary;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="creator_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="collection_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="made_public_by_user" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_embedding_enabled" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="is_verified" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="archived" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="action_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="action_model_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="collection_is_official" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="collection_is_personal" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="question_viz_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="question_database_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="question_is_native" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="event_timestamp" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
      </table>
      <table name="v_dashboardcard" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id AS entity_id,&#10;    concat('dashboardcard_', id) AS entity_qualified_id,&#10;    concat('dashboard_', dashboard_id) AS dashboard_qualified_id,&#10;    concat('dashboardtab_', dashboard_tab_id) AS dashboardtab_id,&#10;    concat('card_', card_id) AS card_qualified_id,&#10;    created_at,&#10;    updated_at,&#10;    size_x,&#10;    size_y,&#10;    visualization_settings,&#10;    parameter_mappings&#10;   FROM report_dashboardcard;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="dashboard_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="dashboardtab_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="card_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="size_x" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="size_y" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="visualization_settings" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="parameter_mappings" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_databases" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id AS entity_id,&#10;    concat('database_', id) AS entity_qualified_id,&#10;    created_at,&#10;    updated_at,&#10;    name,&#10;    description,&#10;    engine AS database_type,&#10;    metadata_sync_schedule,&#10;    cache_field_values_schedule,&#10;    timezone,&#10;    is_on_demand,&#10;    auto_run_queries,&#10;    cache_ttl,&#10;    creator_id,&#10;    dbms_version AS db_version&#10;   FROM metabase_database&#10;  WHERE (id &lt;&gt; 13371337);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="database_type" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="metadata_sync_schedule" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="cache_field_values_schedule" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="timezone" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_on_demand" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="auto_run_queries" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="cache_ttl" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="creator_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="db_version" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_fields" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id AS entity_id,&#10;    ('field_'::text || id) AS entity_qualified_id,&#10;    created_at,&#10;    updated_at,&#10;    name,&#10;    display_name,&#10;    description,&#10;    base_type,&#10;    visibility_type,&#10;    fk_target_field_id,&#10;    has_field_values,&#10;    active,&#10;    table_id&#10;   FROM metabase_field;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="display_name" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="base_type" nullable="true" remarks="" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="visibility_type" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="fk_target_field_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="has_field_values" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="table_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
      </table>
      <table name="v_group_members" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT permissions_group_membership.user_id,&#10;    permissions_group.id AS group_id,&#10;    permissions_group.name AS group_name&#10;   FROM (permissions_group_membership&#10;     LEFT JOIN permissions_group ON ((permissions_group_membership.group_id = permissions_group.id)))&#10;UNION&#10; SELECT 0 AS user_id,&#10;    0 AS group_id,&#10;    'Anonymous users'::character varying AS group_name;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="group_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="group_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
      </table>
      <table name="v_query_log" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT query_execution.id AS entity_id,&#10;    query_execution.started_at,&#10;    ((query_execution.running_time)::double precision / (1000)::double precision) AS running_time_seconds,&#10;    query_execution.result_rows,&#10;    query_execution.native AS is_native,&#10;    query_execution.context AS query_source,&#10;    query_execution.error,&#10;    COALESCE(query_execution.executor_id, 0) AS user_id,&#10;    query_execution.card_id,&#10;    ('card_'::text || query_execution.card_id) AS card_qualified_id,&#10;    query_execution.dashboard_id,&#10;    ('dashboard_'::text || query_execution.dashboard_id) AS dashboard_qualified_id,&#10;    query_execution.pulse_id,&#10;    query_execution.database_id,&#10;    ('database_'::text || query_execution.database_id) AS database_qualified_id,&#10;    query_execution.cache_hit,&#10;    query_execution.action_id,&#10;    ('action_'::text || query_execution.action_id) AS action_qualified_id,&#10;    query.query&#10;   FROM (query_execution&#10;     LEFT JOIN query ON ((query_execution.hash = query.query_hash)));">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="started_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="2" name="running_time_seconds" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="result_rows" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_native" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="query_source" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="error" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="card_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="card_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="dashboard_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="dashboard_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="pulse_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="database_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="database_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="cache_hit" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="action_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="action_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="query" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_subscriptions" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" WITH agg_recipients AS (&#10;         SELECT pulse_channel_recipient.pulse_channel_id,&#10;            string_agg((core_user.email)::text, ','::text) AS recipients&#10;           FROM (pulse_channel_recipient&#10;             LEFT JOIN core_user ON ((pulse_channel_recipient.user_id = core_user.id)))&#10;          GROUP BY pulse_channel_recipient.pulse_channel_id&#10;        )&#10; SELECT pulse.id AS entity_id,&#10;    ('pulse_'::text || pulse.id) AS entity_qualified_id,&#10;    pulse.created_at,&#10;    pulse.updated_at,&#10;    pulse.creator_id,&#10;    pulse.archived,&#10;    ('dashboard_'::text || pulse.dashboard_id) AS dashboard_qualified_id,&#10;    pulse_channel.schedule_type,&#10;    pulse_channel.schedule_day,&#10;    pulse_channel.schedule_hour,&#10;    pulse_channel.channel_type AS recipient_type,&#10;    agg_recipients.recipients,&#10;    pulse_channel.details AS recipient_external,&#10;    pulse.parameters&#10;   FROM ((pulse&#10;     LEFT JOIN pulse_channel ON ((pulse.id = pulse_channel.pulse_id)))&#10;     LEFT JOIN agg_recipients ON ((pulse_channel.id = agg_recipients.pulse_channel_id)))&#10;  WHERE (pulse.alert_condition IS NULL);">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="creator_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="archived" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="dashboard_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="schedule_type" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="schedule_day" nullable="true" remarks="" size="64" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="schedule_hour" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="recipient_type" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="recipients" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="recipient_external" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="parameters" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_tables" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id AS entity_id,&#10;    ('table_'::text || id) AS entity_qualified_id,&#10;    created_at,&#10;    updated_at,&#10;    name,&#10;    display_name,&#10;    description,&#10;    active,&#10;    db_id AS database_id,&#10;    schema,&#10;    is_upload,&#10;    entity_type,&#10;    visibility_type,&#10;    estimated_row_count,&#10;    view_count,&#10;    owner_email,&#10;    owner_user_id&#10;   FROM metabase_table;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="name" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="display_name" nullable="true" remarks="" size="256" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="database_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="schema" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_upload" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="entity_type" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="visibility_type" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="estimated_row_count" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="view_count" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="owner_email" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="owner_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
      </table>
      <table name="v_task_runs" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id,&#10;    run_type,&#10;    entity_type,&#10;    entity_id,&#10;        CASE&#10;            WHEN ((entity_type)::text = 'database'::text) THEN ('database_'::text || entity_id)&#10;            WHEN ((entity_type)::text = 'card'::text) THEN ('card_'::text || entity_id)&#10;            WHEN ((entity_type)::text = 'dashboard'::text) THEN ('dashboard_'::text || entity_id)&#10;            ELSE (((entity_type)::text || '_'::text) || entity_id)&#10;        END AS entity_qualified_id,&#10;    started_at,&#10;    ended_at,&#10;        CASE&#10;            WHEN (ended_at IS NOT NULL) THEN (EXTRACT(epoch FROM (ended_at - started_at)))::double precision&#10;            ELSE NULL::double precision&#10;        END AS duration_seconds,&#10;    status,&#10;    process_uuid,&#10;    updated_at&#10;   FROM task_run;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="run_type" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="entity_type" nullable="true" remarks="" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="started_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="ended_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="7" name="duration_seconds" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="status" nullable="true" remarks="" size="21" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="process_uuid" nullable="true" remarks="" size="36" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
      </table>
      <table name="v_tasks" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id,&#10;    task,&#10;    status,&#10;    ('database_'::text || db_id) AS database_qualified_id,&#10;    started_at,&#10;    ended_at,&#10;    ((duration)::double precision / (1000)::double precision) AS duration_seconds,&#10;    task_details AS details,&#10;    run_id,&#10;    logs&#10;   FROM task_history;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="task" nullable="true" remarks="" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="status" nullable="true" remarks="" size="21" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="database_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="started_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="ended_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="17" id="6" name="duration_seconds" nullable="true" remarks="" size="17" type="float8" typeCode="8"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="details" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="run_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="logs" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="v_users" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT core_user.id AS user_id,&#10;    ('user_'::text || core_user.id) AS entity_qualified_id,&#10;    core_user.type,&#10;        CASE&#10;            WHEN ((core_user.type)::text = 'api-key'::text) THEN NULL::citext&#10;            ELSE core_user.email&#10;        END AS email,&#10;    core_user.first_name,&#10;    core_user.last_name,&#10;    COALESCE((((core_user.first_name)::text || ' '::text) || (core_user.last_name)::text), (core_user.first_name)::text, (core_user.last_name)::text) AS full_name,&#10;    core_user.date_joined,&#10;    core_user.last_login,&#10;    core_user.updated_at,&#10;    core_user.is_superuser AS is_admin,&#10;    core_user.is_active,&#10;    core_user.sso_source,&#10;    core_user.locale&#10;   FROM core_user&#10;UNION&#10; SELECT 0 AS user_id,&#10;    'user_0'::text AS entity_qualified_id,&#10;    'anonymous'::character varying AS type,&#10;    NULL::citext AS email,&#10;    'External'::character varying AS first_name,&#10;    'User'::character varying AS last_name,&#10;    'External User'::text AS full_name,&#10;    NULL::timestamp with time zone AS date_joined,&#10;    NULL::timestamp with time zone AS last_login,&#10;    NULL::timestamp with time zone AS updated_at,&#10;    false AS is_admin,&#10;    NULL::boolean AS is_active,&#10;    NULL::character varying AS sso_source,&#10;    NULL::character varying AS locale;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="type" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="email" nullable="true" remarks="" size="2147483647" type="citext" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="first_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="last_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="full_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="date_joined" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="last_login" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="updated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_admin" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="is_active" nullable="true" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="sso_source" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="locale" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
      </table>
      <table name="v_view_log" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT id,&#10;    &quot;timestamp&quot;,&#10;    COALESCE(user_id, 0) AS user_id,&#10;    model AS entity_type,&#10;    model_id AS entity_id,&#10;    (((model)::text || '_'::text) || model_id) AS entity_qualified_id&#10;   FROM view_log;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="1" name="timestamp" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="entity_type" nullable="true" remarks="" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="entity_id" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="entity_qualified_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
      </table>
      <table name="view_log" remarks="{&quot;what&quot;:&quot;Log of user views of model instances, one row per view event.&quot;,&quot;why&quot;:&quot;Without it, no record of who saw what and when, so usage analytics and access audits are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.244751465+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each view log entry.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.255354301+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the user who performed the view; null if anonymous.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute views to specific users for per-user history or access control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.266497865+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_view_log_ref_user_id" implied="false" onDeleteCascade="true" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="model" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the viewed model type, e.g. 'Article' or 'Project'.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish which model the view refers to, making model_id ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.278248763+00:00&quot;}" size="16" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="model_id" nullable="false" remarks="{&quot;what&quot;:&quot;Primary key of the viewed record within the model.&quot;,&quot;why&quot;:&quot;Without it, cannot identify which specific record was viewed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.301549662+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="timestamp" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of when the view occurred.&quot;,&quot;why&quot;:&quot;Without it, no temporal ordering of views, so time-based analytics or session reconstruction is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.320094446+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="metadata" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form JSON or text with extra view context, e.g. referrer or device.&quot;,&quot;why&quot;:&quot;Without it, additional context that may be needed for debugging or analysis is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.334673549+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="has_access" nullable="true" remarks="{&quot;what&quot;:&quot;Whether the user had access to the record at view time; null if unknown.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish authorized views from unauthorized attempts or access-control failures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.351539577+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="context" nullable="true" remarks="{&quot;what&quot;:&quot;Short string describing the view context, e.g. 'list' or 'detail'.&quot;,&quot;why&quot;:&quot;Without it, cannot tell if the view came from a list or direct link, affecting engagement analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.363143072+00:00&quot;}" size="32" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="embedding_client" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the client that generated the embedding, e.g. 'openai'.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute embedding generation to a specific provider for cost or quality tracking.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.379693494+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="embedding_version" nullable="true" remarks="{&quot;what&quot;:&quot;Version string of the embedding model used.&quot;,&quot;why&quot;:&quot;Without it, cannot reproduce or compare embeddings across model versions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:46.394829677+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="view_log_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_view_log_entity_qualified_id" unique="false"/>
         <index name="idx_view_log_model_id" unique="false">
            <column ascending="true" name="model_id"/>
         </index>
         <index name="idx_view_log_timestamp" unique="false">
            <column ascending="true" name="timestamp"/>
         </index>
         <index name="idx_view_log_user_id" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="workspace" remarks="{&quot;what&quot;:&quot;A workspace is a container for a database schema, its connection details, and status flags.&quot;,&quot;why&quot;:&quot;Without it, there is no way to group related database settings and track their lifecycle.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:15.031739070+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for the workspace.&quot;,&quot;why&quot;:&quot;Needed to reference a workspace from other tables and for joins.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:15.045540141+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="workspace_id" foreignKey="fk_collection_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="collection"/>
            <child column="workspace_id" foreignKey="fk_workspace_graph_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_graph"/>
            <child column="workspace_id" foreignKey="fk_workspace_input_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_input"/>
            <child column="workspace_id" foreignKey="fk_workspace_input_external_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_input_external"/>
            <child column="workspace_id" foreignKey="fk_workspace_log_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_log"/>
            <child column="workspace_id" foreignKey="fk_workspace_merge_workspace_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_merge"/>
            <child column="workspace_id" foreignKey="fk_workspace_merge_transform_workspace_id" implied="false" onDeleteCascade="false" schema="public" table="workspace_merge_transform"/>
            <child column="workspace_id" foreignKey="fk_workspace_output_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_output"/>
            <child column="workspace_id" foreignKey="fk_workspace_output_external_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_output_external"/>
            <child column="workspace_id" foreignKey="fk_workspace_transform_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="true" remarks="{&quot;what&quot;:&quot;Human-readable name for the workspace, e.g., 'Production'.&quot;,&quot;why&quot;:&quot;Used to distinguish workspaces in UI and logs; without it, only IDs are available.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:15.532571937+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the parent collection that groups this workspace.&quot;,&quot;why&quot;:&quot;Enables hierarchical organization; without it, workspaces cannot be grouped.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:15.778522706+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the user who created the workspace.&quot;,&quot;why&quot;:&quot;Tracks ownership and enables access control based on creator.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.100482344+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="api_key_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the API key used to create or access the workspace.&quot;,&quot;why&quot;:&quot;Links workspace to the API key for audit and permission checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.376628864+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="execution_user" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the user account that executes operations in this workspace.&quot;,&quot;why&quot;:&quot;Determines which user's permissions apply when running queries or jobs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.407338430+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="database_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the underlying database instance this workspace connects to.&quot;,&quot;why&quot;:&quot;Identifies the target database for all operations; without it, no data source.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.423638923+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="schema" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the database schema within the database that this workspace uses.&quot;,&quot;why&quot;:&quot;Specifies the schema namespace; without it, queries are ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.454575538+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="database_details" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form JSON or connection details for the database.&quot;,&quot;why&quot;:&quot;Holds connection parameters needed to connect; without it, database cannot be accessed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.475888540+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'uninitialized'::character varying" digits="0" id="9" name="db_status" nullable="false" remarks="{&quot;what&quot;:&quot;Current status of the database connection, e.g., 'uninitialized', 'connected'.&quot;,&quot;why&quot;:&quot;Drives UI state and retry logic; without it, readiness is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.500431026+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'empty'::character varying" digits="0" id="10" name="base_status" nullable="false" remarks="{&quot;what&quot;:&quot;Status of the base schema, e.g., 'empty', 'migrated'.&quot;,&quot;why&quot;:&quot;Indicates whether the schema has been initialized; without it, migrations cannot be scheduled.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.562650483+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="11" name="graph_version" nullable="false" remarks="{&quot;what&quot;:&quot;Monotonic version number of the workspace's graph or schema definition.&quot;,&quot;why&quot;:&quot;Used for optimistic concurrency control; without it, concurrent updates could overwrite.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.577506050+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="12" name="created_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the workspace row was created.&quot;,&quot;why&quot;:&quot;Provides audit trail and allows sorting by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.684565303+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="13" name="updated_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to the workspace row.&quot;,&quot;why&quot;:&quot;Tracks modification time for caching and change detection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:16.716783051+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_api_key_id" unique="false">
            <column ascending="true" name="api_key_id"/>
         </index>
         <index name="idx_workspace_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_workspace_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_workspace_execution_user_id" unique="false">
            <column ascending="true" name="execution_user"/>
         </index>
         <index name="idx_workspace_name_unique" unique="true">
            <column ascending="true" name="name"/>
         </index>
      </table>
      <table name="workspace_graph" remarks="{&quot;what&quot;:&quot;One row per workspace holding its current graph definition.&quot;,&quot;why&quot;:&quot;Persists graph data so it survives restarts and is accessible across sessions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.841485082+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each graph row.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced for updates or deletes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.855224561+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the workspace this graph belongs to.&quot;,&quot;why&quot;:&quot;Without it, graphs cannot be associated with a specific workspace, making multi-tenant isolation impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.870215743+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_graph_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="graph" nullable="false" remarks="{&quot;what&quot;:&quot;Serialized graph content (e.g., JSON) defining nodes and edges.&quot;,&quot;why&quot;:&quot;Without it, there is no graph data to display or edit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.892429566+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="3" name="graph_version" nullable="false" remarks="{&quot;what&quot;:&quot;Integer counter incremented on each graph update; starts at 0.&quot;,&quot;why&quot;:&quot;Without it, concurrent edits could overwrite each other silently.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.917101539+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of row insertion.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ordering of graph creation are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.934275074+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp with time zone of last modification.&quot;,&quot;why&quot;:&quot;Without it, you cannot tell if a graph changed since a client last fetched it.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:03.945995870+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_graph_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_graph_workspace_version" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="graph_version"/>
         </index>
      </table>
      <table name="workspace_input" remarks="External tables that workspace transforms consume from source databases" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this workspace input row.&quot;,&quot;why&quot;:&quot;Uniquely identifies each row for joins and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.596994591+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the workspace that owns this input.&quot;,&quot;why&quot;:&quot;Scopes inputs to a workspace; without it, inputs from different workspaces mix.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.613755905+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_input_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the database connection this input queries.&quot;,&quot;why&quot;:&quot;Determines which database to access; without it, the source database is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.624663958+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="schema" nullable="true" remarks="{&quot;what&quot;:&quot;Database schema name (e.g., public) for the input table; null if not specified.&quot;,&quot;why&quot;:&quot;Disambiguates tables with the same name across schemas.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.634204565+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="table" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the table or view in the database that this input reads.&quot;,&quot;why&quot;:&quot;Specifies the data source; without it, no table to query.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.646342366+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional identifier for the table in a metadata catalog; null if not linked.&quot;,&quot;why&quot;:&quot;Links to table metadata for validation; without it, only the name is available.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.657502190+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_input_table_id" implied="false" onDeleteCascade="false" schema="public" table="metabase_table"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="ref_id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique reference string (e.g., UUID) for this input, used externally.&quot;,&quot;why&quot;:&quot;Provides a stable identifier for API calls; without it, external systems cannot refer to this input.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.668802568+00:00&quot;}" size="36" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="7" name="access_granted" nullable="false" remarks="{&quot;what&quot;:&quot;Whether the workspace has been granted access to this input; defaults to false.&quot;,&quot;why&quot;:&quot;Controls visibility/usage; without it, access state is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.680864393+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="8" name="transform_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the transform applied to this input; starts at 0.&quot;,&quot;why&quot;:&quot;Tracks transform changes to invalidate caches; without it, stale data may be used.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.690036993+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this input was created, in UTC.&quot;,&quot;why&quot;:&quot;Audits creation time; without it, cannot track when the input was added.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.702315339+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this input, in UTC.&quot;,&quot;why&quot;:&quot;Tracks modifications for concurrency; without it, stale updates are undetectable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:56.714962390+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_input_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_input_ref_id" unique="false">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="ref_id"/>
         </index>
         <index name="idx_workspace_input_table_id" unique="false">
            <column ascending="true" name="table_id"/>
         </index>
         <index name="idx_workspace_input_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="uq_workspace_input_versioned" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="ref_id"/>
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="schema"/>
            <column ascending="true" name="table"/>
            <column ascending="true" name="transform_version"/>
         </index>
      </table>
      <table name="workspace_input_external" remarks="{&quot;what&quot;:&quot;External data source linked to a workspace; identifies a row in an external DB table.&quot;,&quot;why&quot;:&quot;Tracks which external rows are inputs to a workspace for graph processing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:17.754529137+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this external input record.&quot;,&quot;why&quot;:&quot;Enables stable reference and joins from other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.048802745+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the workspace this input belongs to.&quot;,&quot;why&quot;:&quot;Links the input to its workspace; without it, ownership is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.185277059+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_input_external_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the external database connection.&quot;,&quot;why&quot;:&quot;Identifies which external database to query; ambiguous without it.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.216651015+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="schema" nullable="true" remarks="{&quot;what&quot;:&quot;Schema name in the external database, if any.&quot;,&quot;why&quot;:&quot;Disambiguates tables with same name across schemas.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.240534872+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="table" nullable="false" remarks="{&quot;what&quot;:&quot;Table name in the external database.&quot;,&quot;why&quot;:&quot;Specifies which table holds the input row; required for lookup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.675640902+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Primary key value of the row in the external table.&quot;,&quot;why&quot;:&quot;Identifies the specific row; null means whole table is input.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.687680383+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="6" name="access_granted" nullable="false" remarks="{&quot;what&quot;:&quot;Whether the workspace has permission to read this external data.&quot;,&quot;why&quot;:&quot;Prevents querying unauthorized data; without it, access control is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.708415379+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="graph_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the graph that last used this input.&quot;,&quot;why&quot;:&quot;Tracks staleness; helps decide when to refresh the graph.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.750553457+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this input record was created.&quot;,&quot;why&quot;:&quot;Audit trail; needed for debugging and lifecycle analysis.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.786279610+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last update to this record.&quot;,&quot;why&quot;:&quot;Shows when access or version changed; important for concurrency.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:18.893800356+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_input_external_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_input_external_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="uq_workspace_input_external_versioned" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="db_id"/>
            <column ascending="true" name="schema"/>
            <column ascending="true" name="table"/>
            <column ascending="true" name="graph_version"/>
         </index>
      </table>
      <table name="workspace_log" remarks="{&quot;what&quot;:&quot;Log entry for a task executed on a workspace; one row per task attempt.&quot;,&quot;why&quot;:&quot;Without it, no audit trail of workspace operations exists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.598160353+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for each log entry.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.611020159+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the workspace the task belongs to.&quot;,&quot;why&quot;:&quot;Without it, cannot associate log entries with a specific workspace.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.622844064+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_log_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="task" nullable="false" remarks="{&quot;what&quot;:&quot;Name or type of task performed, e.g., 'backup'.&quot;,&quot;why&quot;:&quot;Without it, the purpose of the log entry is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.637351818+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the log entry was first inserted.&quot;,&quot;why&quot;:&quot;Without it, cannot order entries by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.656713909+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last modification to this log entry.&quot;,&quot;why&quot;:&quot;Without it, cannot detect if entry details changed after creation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.674540903+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="started_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the task execution started.&quot;,&quot;why&quot;:&quot;Without it, task duration cannot be computed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.688768261+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="completed_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the task finished; null if still running.&quot;,&quot;why&quot;:&quot;Without it, cannot know if task completed or its duration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.706049057+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="status" nullable="true" remarks="{&quot;what&quot;:&quot;Current state of the task, e.g., 'running', 'success', 'failed'.&quot;,&quot;why&quot;:&quot;Without it, cannot filter or report on task outcomes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.722878536+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="message" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form details or error output from the task.&quot;,&quot;why&quot;:&quot;Without it, failure reasons or progress details are lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:07:54.745507394+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_log_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_log_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
      </table>
      <table name="workspace_merge" remarks="{&quot;what&quot;:&quot;Log of workspace merge operations, one row per merge.&quot;,&quot;why&quot;:&quot;Tracks merge history for audit and rollback decisions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.603883759+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique merge event identifier; primary key.&quot;,&quot;why&quot;:&quot;Uniquely identifies each merge for referencing in logs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.620650038+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="workspace_merge_id" foreignKey="fk_workspace_merge_transform_workspace_merge_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_merge_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="true" remarks="{&quot;what&quot;:&quot;ID of the workspace being merged into; null if workspace deleted.&quot;,&quot;why&quot;:&quot;Links merge to workspace; null preserves history if workspace removed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.639584803+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_merge_workspace_id" implied="false" onDeleteCascade="false" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="workspace_name" nullable="false" remarks="{&quot;what&quot;:&quot;Workspace name at merge time; denormalized copy.&quot;,&quot;why&quot;:&quot;Keeps name searchable even if workspace renamed or deleted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.663715868+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="commit_message" nullable="false" remarks="{&quot;what&quot;:&quot;User-supplied message describing the merge.&quot;,&quot;why&quot;:&quot;Provides context for why merge was done; used in audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.683395330+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="creator_id" nullable="false" remarks="{&quot;what&quot;:&quot;User ID who performed the merge.&quot;,&quot;why&quot;:&quot;Attributes merge to a user for accountability.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.697520574+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_merge_creator_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when merge was recorded, timezone-aware.&quot;,&quot;why&quot;:&quot;Orders merges chronologically; supports time-based queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:01.720489436+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_merge_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_merge_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_workspace_merge_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
      </table>
      <table name="workspace_merge_transform" remarks="Tracks individual transform merges. Linked to workspace_merge for batch merges, standalone for single-transform merges." schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique numeric identifier for this merge-transform record.&quot;,&quot;why&quot;:&quot;Provides a stable key for referencing the record in other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.372364355+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_merge_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the merge operation this transform was part of.&quot;,&quot;why&quot;:&quot;Links the transform application to the specific merge event it belongs to.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.386044375+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_merge_transform_workspace_merge_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_merge"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="workspace_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the workspace being merged, if known.&quot;,&quot;why&quot;:&quot;Allows filtering merge-transform records by workspace even when the workspace name changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.406405177+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_merge_transform_workspace_id" implied="false" onDeleteCascade="false" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="workspace_name" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the workspace at the time of the merge.&quot;,&quot;why&quot;:&quot;Preserves the workspace name snapshot for audit, since workspace_id may be null or renamed later.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.424721651+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="transform_id" nullable="true" remarks="{&quot;what&quot;:&quot;Identifier of the transform applied during the merge.&quot;,&quot;why&quot;:&quot;Identifies which transform was used; null if no transform was applied.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.435695052+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_merge_transform_transform_id" implied="false" onDeleteCascade="true" schema="public" table="transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="commit_message" nullable="false" remarks="{&quot;what&quot;:&quot;Commit message associated with the merge-transform action.&quot;,&quot;why&quot;:&quot;Records the user-provided description of the change for history and review.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.445539171+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="merging_user_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the user who performed the merge.&quot;,&quot;why&quot;:&quot;Attributes the action to a user for accountability and audit trails.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.455240232+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_merge_transform_merging_user_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="7" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the merge-transform record was created.&quot;,&quot;why&quot;:&quot;Provides chronological ordering and time-based filtering of merge-transform events.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:08:11.473296732+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_merge_transform_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_merge_transform_merging_user_id" unique="false">
            <column ascending="true" name="merging_user_id"/>
         </index>
         <index name="idx_workspace_merge_transform_transform_id" unique="false">
            <column ascending="true" name="transform_id"/>
         </index>
         <index name="idx_workspace_merge_transform_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="idx_workspace_merge_transform_workspace_merge_id" unique="false">
            <column ascending="true" name="workspace_merge_id"/>
         </index>
      </table>
      <table name="workspace_output" remarks="{&quot;what&quot;:&quot;Records where each workspace's output is written and with which transform version.&quot;,&quot;why&quot;:&quot;Without it, outputs have no defined destination or versioning.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.636630918+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for each output record.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be individually referenced or updated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.691360466+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;Numeric identifier of the workspace that owns this output.&quot;,&quot;why&quot;:&quot;Without it, outputs from different workspaces would be indistinguishable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.801624781+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_output_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
            <parent column="workspace_id" foreignKey="fk_workspace_output_ref_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="ref_id" nullable="false" remarks="{&quot;what&quot;:&quot;Character reference code for this output, e.g., a UUID.&quot;,&quot;why&quot;:&quot;Without it, no stable external link to this output exists.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.868922857+00:00&quot;}" size="36" type="bpchar" typeCode="1">
            <parent column="ref_id" foreignKey="fk_workspace_output_ref_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;Numeric identifier of the database connection this output targets.&quot;,&quot;why&quot;:&quot;Without it, the target database is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.887716760+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="global_schema" nullable="true" remarks="{&quot;what&quot;:&quot;Schema name for the global table; null if global output is absent.&quot;,&quot;why&quot;:&quot;Without it, the global table cannot be located if not in default schema.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.929335762+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="global_table" nullable="false" remarks="{&quot;what&quot;:&quot;Name of the table in the global database where output is written.&quot;,&quot;why&quot;:&quot;Without it, there is no destination for global output.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.965960767+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="global_table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Numeric identifier of the global table record in metadata; null if unassigned.&quot;,&quot;why&quot;:&quot;Without it, cannot join to global table metadata.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:53.978790594+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="isolated_schema" nullable="true" remarks="{&quot;what&quot;:&quot;Schema name for the isolated table; null if isolated output is absent.&quot;,&quot;why&quot;:&quot;Without it, the isolated table cannot be located if not in default schema.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:54.000580656+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="isolated_table" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the table in the isolated database; null if no isolated output.&quot;,&quot;why&quot;:&quot;Without it, there is no destination for isolated output.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:54.018807721+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="isolated_table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Numeric identifier of the isolated table record; null if unassigned.&quot;,&quot;why&quot;:&quot;Without it, cannot join to isolated table metadata.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:54.055681751+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="10" name="transform_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the transformation logic that produced this output; starts at 0.&quot;,&quot;why&quot;:&quot;Without it, cannot know if output is stale or needs regeneration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:54.103726196+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this output record was created.&quot;,&quot;why&quot;:&quot;Without it, the creation time is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:54.135860051+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this output record was last modified.&quot;,&quot;why&quot;:&quot;Without it, the last update time is unknown, breaking cache invalidation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:54.154360389+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_output_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_output_ref_id" unique="false">
            <column ascending="true" name="ref_id"/>
         </index>
         <index name="idx_workspace_output_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="uq_workspace_output_versioned" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="ref_id"/>
            <column ascending="true" name="transform_version"/>
         </index>
      </table>
      <table name="workspace_output_external" remarks="Output tables produced by external transforms enclosed in a workspace" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;Unique integer identifier for this output record.&quot;,&quot;why&quot;:&quot;Needed to reference a specific output row in joins and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:36.843063534+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the workspace that owns this output.&quot;,&quot;why&quot;:&quot;Associates output to a workspace; without it, output is orphaned.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:36.939021173+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_output_external_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="transform_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the transform that produced this output.&quot;,&quot;why&quot;:&quot;Links output to its source transform, enabling lineage and re-run detection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.031377343+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_output_external_transform_id" implied="false" onDeleteCascade="true" schema="public" table="transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="db_id" nullable="false" remarks="{&quot;what&quot;:&quot;ID of the database connection used for this output.&quot;,&quot;why&quot;:&quot;Identifies which database the output is written to, required for connection management.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.175678526+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="global_schema" nullable="true" remarks="{&quot;what&quot;:&quot;Schema name in the global database namespace, if any.&quot;,&quot;why&quot;:&quot;Distinguishes global schema when multiple; null if not applicable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.371134651+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="global_table" nullable="false" remarks="{&quot;what&quot;:&quot;Table name in the global database namespace.&quot;,&quot;why&quot;:&quot;Identifies the target table for global output, essential for write operations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.422417420+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="global_table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Internal ID of the global table, if known.&quot;,&quot;why&quot;:&quot;Allows direct reference to table metadata without name lookup, improving performance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.444822233+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="isolated_schema" nullable="true" remarks="{&quot;what&quot;:&quot;Schema name in the isolated (per-workspace) namespace, if any.&quot;,&quot;why&quot;:&quot;Distinguishes isolated schema when multiple; null if not applicable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.483514777+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="isolated_table" nullable="false" remarks="{&quot;what&quot;:&quot;Table name in the isolated database namespace.&quot;,&quot;why&quot;:&quot;Identifies the target table for isolated output, essential for write operations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.595649424+00:00&quot;}" size="254" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="isolated_table_id" nullable="true" remarks="{&quot;what&quot;:&quot;Internal ID of the isolated table, if known.&quot;,&quot;why&quot;:&quot;Allows direct reference to table metadata without name lookup, improving performance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.737683673+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="10" name="graph_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the graph definition at time of output.&quot;,&quot;why&quot;:&quot;Ensures output corresponds to a specific graph version; detects stale outputs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.830665034+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this output record was created.&quot;,&quot;why&quot;:&quot;Needed for auditing and ordering of outputs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.846176373+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when this output record was last updated.&quot;,&quot;why&quot;:&quot;Tracks changes to output metadata; used for conflict detection.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:14:37.999348332+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="workspace_output_external_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_workspace_output_external_transform_id" unique="false">
            <column ascending="true" name="transform_id"/>
         </index>
         <index name="idx_workspace_output_external_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="uq_workspace_output_external_versioned" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="transform_id"/>
            <column ascending="true" name="graph_version"/>
         </index>
      </table>
      <table name="workspace_transform" remarks="{&quot;what&quot;:&quot;A transformation definition scoped to a workspace, with source/target logic and execution metadata.&quot;,&quot;why&quot;:&quot;Without it, there is no record of transformation definitions or their execution state.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.103012707+00:00&quot;}" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="ref_id" nullable="false" remarks="{&quot;what&quot;:&quot;Alphanumeric identifier for the transformation, unique per workspace.&quot;,&quot;why&quot;:&quot;Identifies the transformation in URLs or API calls; without it, the row cannot be uniquely addressed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.122502698+00:00&quot;}" size="36" type="bpchar" typeCode="1">
            <child column="ref_id" foreignKey="fk_workspace_output_ref_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_output"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="workspace_id" nullable="false" remarks="{&quot;what&quot;:&quot;Numeric ID of the workspace that owns this transformation.&quot;,&quot;why&quot;:&quot;Scopes the transformation to a workspace; without it, the same ref_id could collide across workspaces.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.139550345+00:00&quot;}" size="10" type="int4" typeCode="4">
            <child column="workspace_id" foreignKey="fk_workspace_output_ref_id" implied="false" onDeleteCascade="true" schema="public" table="workspace_output"/>
            <parent column="id" foreignKey="fk_workspace_transform_workspace_id" implied="false" onDeleteCascade="true" schema="public" table="workspace"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="global_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional numeric ID for a global counterpart, if this is a copy or reference.&quot;,&quot;why&quot;:&quot;Allows sharing or referencing a transformation across workspaces; without it, the transformation is workspace-only.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.165071508+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_transform_global_id" implied="false" onDeleteCascade="false" schema="public" table="transform"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="collection_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional numeric ID of the collection this transformation belongs to.&quot;,&quot;why&quot;:&quot;Groups transformations into collections for organization; without it, the transformation is ungrouped.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.179405540+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_transform_collection_id" implied="false" onDeleteCascade="false" schema="public" table="collection"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="creator_id" nullable="true" remarks="{&quot;what&quot;:&quot;Numeric ID of the user who created this transformation.&quot;,&quot;why&quot;:&quot;Tracks ownership and audit; without it, the creator is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.207537126+00:00&quot;}" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="fk_workspace_transform_creator_id" implied="false" onDeleteCascade="false" schema="public" table="core_user"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name of the transformation, e.g., 'Daily Sales Rollup'.&quot;,&quot;why&quot;:&quot;Used for display and identification in UI; without it, users cannot distinguish transformations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.226175854+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Optional free-text description of the transformation's purpose or logic.&quot;,&quot;why&quot;:&quot;Provides context for maintainers; without it, the transformation's intent is undocumented.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.253218847+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="source" nullable="false" remarks="{&quot;what&quot;:&quot;Definition of the source data or query, e.g., SQL or table name.&quot;,&quot;why&quot;:&quot;Defines where input data comes from; without it, the transformation has no input.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.274552135+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="target" nullable="false" remarks="{&quot;what&quot;:&quot;Definition of the output destination or query, e.g., table name or file path.&quot;,&quot;why&quot;:&quot;Defines where results are written; without it, the transformation has no output.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.292062612+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="entity_id" nullable="true" remarks="{&quot;what&quot;:&quot;Optional identifier of a specific entity (e.g., row or object) this transformation applies to.&quot;,&quot;why&quot;:&quot;Narrows the transformation to a single entity; without it, the transformation applies to the whole source.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.318484738+00:00&quot;}" size="21" type="bpchar" typeCode="1"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="checked_out_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the transformation was locked for editing, in UTC.&quot;,&quot;why&quot;:&quot;Prevents concurrent edits; without it, two users could overwrite each other.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.341455185+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="archived_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the transformation was soft-deleted, in UTC; null means active.&quot;,&quot;why&quot;:&quot;Allows recovery and audit; without it, deleted transformations are permanently lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.363608727+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the transformation was created, in UTC.&quot;,&quot;why&quot;:&quot;Provides creation time for audit and ordering; without it, creation time is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.383247366+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to the transformation definition, in UTC.&quot;,&quot;why&quot;:&quot;Tracks modification time for conflict detection; without it, stale edits cannot be detected.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.400682636+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="last_run_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the most recent execution attempt, in UTC; null if never run.&quot;,&quot;why&quot;:&quot;Shows execution recency; without it, users cannot know if the transformation is stale.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.420116151+00:00&quot;}" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="last_run_message" nullable="true" remarks="{&quot;what&quot;:&quot;Free-text message from the last execution, e.g., error or success details.&quot;,&quot;why&quot;:&quot;Provides execution feedback; without it, failures are silent.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.439176338+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="last_run_status" nullable="true" remarks="{&quot;what&quot;:&quot;Status of the last execution, e.g., 'success', 'failed', 'running'.&quot;,&quot;why&quot;:&quot;Indicates whether the last run succeeded; without it, the transformation's health is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.531715934+00:00&quot;}" size="20" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="true" digits="0" id="17" name="definition_changed" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the transformation definition changed since the last run; default true.&quot;,&quot;why&quot;:&quot;Triggers re-analysis on next run; without it, changes might be missed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.588668798+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="18" name="analysis_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the analysis logic used for the transformation; increments on definition changes.&quot;,&quot;why&quot;:&quot;Tracks which analysis version produced results; without it, results cannot be matched to logic.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.701079458+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="19" name="input_data_changed" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating whether the input data changed since the last run; default false.&quot;,&quot;why&quot;:&quot;Determines if a re-run is needed; without it, stale results may be used.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:15:04.758327776+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <primaryKey column="workspace_id" sequenceNumberInPK="1"/>
         <primaryKey column="ref_id" sequenceNumberInPK="2"/>
         <index name="pk_workspace_transform" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="ref_id"/>
         </index>
         <index name="idx_workspace_transform_collection_id" unique="false">
            <column ascending="true" name="collection_id"/>
         </index>
         <index name="idx_workspace_transform_creator_id" unique="false">
            <column ascending="true" name="creator_id"/>
         </index>
         <index name="idx_workspace_transform_global_id" unique="false">
            <column ascending="true" name="global_id"/>
         </index>
         <index name="idx_workspace_transform_workspace_global_unique" unique="true">
            <column ascending="true" name="workspace_id"/>
            <column ascending="true" name="global_id"/>
         </index>
         <index name="idx_workspace_transform_workspace_id" unique="false">
            <column ascending="true" name="workspace_id"/>
         </index>
         <index name="workspace_transform_entity_id_key" unique="true">
            <column ascending="true" name="entity_id"/>
         </index>
      </table>
   </tables>
   <routines>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext(boolean)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[booltext]]></definition>
         <parameters>
            <parameter mode="IN" type="boolean"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext(character)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[rtrim1]]></definition>
         <parameters>
            <parameter mode="IN" type="character"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext(inet)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[network_show]]></definition>
         <parameters>
            <parameter mode="IN" type="inet"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_cmp(citext, citext)" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_cmp]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_eq(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_eq]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_ge(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_ge]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_gt(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_gt]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_hash(citext)" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_hash]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_hash_extended(citext, bigint)" returnType="bigint" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_hash_extended]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="bigint"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_larger(citext, citext)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_larger]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_le(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_le]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_lt(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_lt]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_ne(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_ne]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_pattern_cmp(citext, citext)" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_pattern_cmp]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_pattern_ge(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_pattern_ge]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_pattern_gt(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_pattern_gt]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_pattern_le(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_pattern_le]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_pattern_lt(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_pattern_lt]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citext_smaller(citext, citext)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[citext_smaller]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citextin(cstring)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[textin]]></definition>
         <parameters>
            <parameter mode="IN" type="cstring"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="citextout(citext)" returnType="cstring" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[textout]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="citextrecv(internal)" returnType="citext" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[textrecv]]></definition>
         <parameters>
            <parameter mode="IN" type="internal"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="citextsend(citext)" returnType="bytea" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[textsend]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="max(citext)" returnType="citext" securityType="INVOKER" type="AGGREGATE">
         <comment/>
         <definition language="internal"><![CDATA[aggregate_dummy]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="min(citext)" returnType="citext" securityType="INVOKER" type="AGGREGATE">
         <comment/>
         <definition language="internal"><![CDATA[aggregate_dummy]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_match(string citext, pattern citext)" returnType="text[]" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_match(string citext, pattern citext, flags text)" returnType="text[]" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
            <parameter mode="IN" name="flags" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_matches(string citext, pattern citext)" returnType="SETOF text[]" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_matches(string citext, pattern citext, flags text)" returnType="SETOF text[]" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
            <parameter mode="IN" name="flags" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_replace(string citext, pattern citext, replacement text)" returnType="text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
            <parameter mode="IN" name="replacement" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_replace(string citext, pattern citext, replacement text, flags text)" returnType="text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
            <parameter mode="IN" name="replacement" type="text"/>
            <parameter mode="IN" name="flags" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_split_to_array(string citext, pattern citext)" returnType="text[]" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_split_to_array(string citext, pattern citext, flags text)" returnType="text[]" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
            <parameter mode="IN" name="flags" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_split_to_table(string citext, pattern citext)" returnType="SETOF text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="regexp_split_to_table(string citext, pattern citext, flags text)" returnType="SETOF text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" name="string" type="citext"/>
            <parameter mode="IN" name="pattern" type="citext"/>
            <parameter mode="IN" name="flags" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="replace(citext, citext, citext)" returnType="text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="split_part(citext, citext, integer)" returnType="text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="integer"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="strpos(citext, citext)" returnType="integer" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticlike(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticlike]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticlike(citext, text)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticlike]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticnlike(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticnlike]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticnlike(citext, text)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticnlike]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticregexeq(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticregexeq]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticregexeq(citext, text)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticregexeq]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticregexne(citext, citext)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticregexne]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="texticregexne(citext, text)" returnType="boolean" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="internal"><![CDATA[texticregexne]]></definition>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="translate(citext, citext, text)" returnType="text" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="sql"/>
         <parameters>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="citext"/>
            <parameter mode="IN" type="text"/>
         </parameters>
      </routine>
   </routines>
</database>
