<?xml version="1.0" encoding="UTF-8"?><database name="azimutt" schema="public" type="PostgreSQL - 18.4 (Ubuntu 18.4-1.pgdg24.04+1)">
   <tables>
      <table name="clever_cloud_resources" remarks="{&quot;what&quot;:&quot;A Clever Cloud addon resource instance, linking addon, owner, user, and organization.&quot;,&quot;why&quot;:&quot;Without it, there is no record of which addons are provisioned, for whom, and with what configuration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:36.609315331+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;UUID primary key, unique identifier for the resource.&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:03:36.679078808+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="addon_id" nullable="false" remarks="{&quot;what&quot;:&quot;External identifier of the addon product (e.g., from Clever Cloud catalog).&quot;,&quot;why&quot;:&quot;Without it, the resource cannot be linked to its addon definition or pricing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:36.695232027+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="owner_id" nullable="false" remarks="{&quot;what&quot;:&quot;Identifier of the owning entity (e.g., app or team) in the platform.&quot;,&quot;why&quot;:&quot;Without it, ownership and billing attribution for the resource is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:36.762327662+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="owner_name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable name of the owner, denormalized for display.&quot;,&quot;why&quot;:&quot;Without it, owner names require a join to the owner table, slowing lookups.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:36.773503062+00:00&quot;}" size="255" type="varchar" 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 created or manages this resource.&quot;,&quot;why&quot;:&quot;Without it, the responsible user for the resource cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:36.840562709+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="plan" nullable="false" remarks="{&quot;what&quot;:&quot;Service plan name (e.g., 'free', 'standard') for this resource.&quot;,&quot;why&quot;:&quot;Without it, pricing, limits, and features of the resource are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:36.979548403+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="region" nullable="false" remarks="{&quot;what&quot;:&quot;Geographic region where the resource is deployed (e.g., 'eu-west-1').&quot;,&quot;why&quot;:&quot;Without it, latency, compliance, and failover behavior cannot be assessed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.027619521+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="callback_url" nullable="false" remarks="{&quot;what&quot;:&quot;URL that Clever Cloud calls to notify the owner of resource events.&quot;,&quot;why&quot;:&quot;Without it, the platform cannot send provisioning or deprovisioning notifications.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.048913648+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="logplex_token" nullable="false" remarks="{&quot;what&quot;:&quot;Token used to authenticate log drains to Logplex.&quot;,&quot;why&quot;:&quot;Without it, logs cannot be securely streamed to the owner's log system.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.268668143+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="options" nullable="true" remarks="{&quot;what&quot;:&quot;JSON object with addon-specific configuration options (e.g., size, features).&quot;,&quot;why&quot;:&quot;Without it, addon-specific settings are lost, making the resource non-functional.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.288867948+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="organization_id" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the organization that owns this resource, if any.&quot;,&quot;why&quot;:&quot;Without it, resources cannot be grouped or billed at the organization level.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.301183994+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="clever_cloud_resources_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the resource was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, resource age and audit history are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.321936432+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this resource, in UTC.&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-23T04:03:37.356157861+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="deleted_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the resource was soft-deleted, null if active.&quot;,&quot;why&quot;:&quot;Without it, deleted resources would disappear, breaking audit and billing history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:37.383443133+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="clever_cloud_resources_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="events" remarks="{&quot;what&quot;:&quot;A row per event occurrence, identified by UUID, with a name and optional JSON payloads.&quot;,&quot;why&quot;:&quot;Without it, system activity is untraceable and cannot be audited.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.720511614+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 event, generated as UUID.&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-22T23:57:13.744013817+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Short event type name, e.g. 'user.login'.&quot;,&quot;why&quot;:&quot;Without it, the event's meaning is unknown and cannot be filtered by type.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.765824156+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="data" nullable="true" remarks="{&quot;what&quot;:&quot;Arbitrary JSON payload with event-specific fields.&quot;,&quot;why&quot;:&quot;Without it, event context is lost; details like request parameters are unavailable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.785112609+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="details" nullable="true" remarks="{&quot;what&quot;:&quot;Additional JSON metadata, separate from primary data.&quot;,&quot;why&quot;:&quot;Without it, secondary information such as error stack traces or user agent is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.803606291+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the user or actor who triggered the event.&quot;,&quot;why&quot;:&quot;Without it, accountability for the event is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.819592262+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="events_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the event was recorded.&quot;,&quot;why&quot;:&quot;Without it, event ordering and time-based analysis are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.840352208+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="organization_id" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the organization the event belongs to.&quot;,&quot;why&quot;:&quot;Without it, events cannot be scoped to an organization for multi-tenant isolation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.854827876+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="events_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="project_id" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the project the event belongs to.&quot;,&quot;why&quot;:&quot;Without it, events cannot be associated with a specific project for filtering.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-22T23:57:13.869773859+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="events_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="events_created_at_created_by_index" unique="false">
            <column ascending="true" name="created_at"/>
            <column ascending="true" name="created_by"/>
         </index>
         <index name="events_created_at_index" unique="false">
            <column ascending="true" name="created_at"/>
         </index>
         <index name="events_created_by_index" unique="false">
            <column ascending="true" name="created_by"/>
         </index>
         <index name="events_name_index" unique="false">
            <column ascending="true" name="name"/>
         </index>
         <index name="events_organization_id_index" unique="false">
            <column ascending="true" name="organization_id"/>
         </index>
         <index name="events_project_id_index" unique="false">
            <column ascending="true" name="project_id"/>
         </index>
      </table>
      <table name="gallery" remarks="{&quot;what&quot;:&quot;Rows representing gallery entries for projects, each with presentation and descriptive metadata.&quot;,&quot;why&quot;:&quot;Without it, there is no way to display a curated gallery of projects.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.586630184+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;UUID that uniquely identifies this gallery row.&quot;,&quot;why&quot;:&quot;Without it, cannot reference or join to this row.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.666236195+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="project_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the project this gallery entry belongs to.&quot;,&quot;why&quot;:&quot;Without it, cannot associate gallery content with a project.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.689570161+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="gallery_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;URL-safe string for this gallery entry, e.g., 'my-project'.&quot;,&quot;why&quot;:&quot;Without it, cannot have human-readable URLs or lookup by slug.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.708467199+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;Path or URL to the icon image for this gallery entry.&quot;,&quot;why&quot;:&quot;Without it, the gallery cannot display an icon.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.719939224+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="color" nullable="false" remarks="{&quot;what&quot;:&quot;Hex color code (e.g., '#FF5733') used for theming or accent.&quot;,&quot;why&quot;:&quot;Without it, the gallery entry lacks a brand color for UI.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.808616233+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="website" nullable="false" remarks="{&quot;what&quot;:&quot;URL to the project's website or external link.&quot;,&quot;why&quot;:&quot;Without it, users cannot navigate to the project's site.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.860913229+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="banner" nullable="false" remarks="{&quot;what&quot;:&quot;Path or URL to the banner image for the gallery entry.&quot;,&quot;why&quot;:&quot;Without it, the gallery cannot display a banner.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.905977383+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="tips" nullable="false" remarks="{&quot;what&quot;:&quot;Free-form text with usage tips or notes for the project.&quot;,&quot;why&quot;:&quot;Without it, users miss guidance on how to use the project.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:38.997316741+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="description" nullable="false" remarks="{&quot;what&quot;:&quot;Free-form text describing the project or gallery entry.&quot;,&quot;why&quot;:&quot;Without it, the gallery lacks context for what the project is.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:39.011518204+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="analysis" nullable="false" remarks="{&quot;what&quot;:&quot;Free-form text containing analysis or evaluation of the project.&quot;,&quot;why&quot;:&quot;Without it, the gallery lacks performance or quality insights.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:39.027249781+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the gallery entry was created.&quot;,&quot;why&quot;:&quot;Without it, cannot sort or filter by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:39.061562755+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to this gallery entry.&quot;,&quot;why&quot;:&quot;Without it, cannot know if content is stale.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:39.088530530+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="gallery_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="gallery_project_id_index" unique="true">
            <column ascending="true" name="project_id"/>
         </index>
         <index name="gallery_slug_index" unique="true">
            <column ascending="true" name="slug"/>
         </index>
      </table>
      <table name="heroku_resources" remarks="{&quot;what&quot;:&quot;A provisioned Heroku add-on or app with plan, region, and OAuth credentials.&quot;,&quot;why&quot;:&quot;Without it, no record of provisioned resources exists, breaking billing and management.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.144804938+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;UUID primary key, unique identifier for each resource.&quot;,&quot;why&quot;:&quot;Without it, resources cannot be referenced or joined uniquely.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.180940922+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable resource name, e.g., 'my-app-postgres'.&quot;,&quot;why&quot;:&quot;Without it, users cannot identify the resource in UI or logs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.201958798+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="app" nullable="true" remarks="{&quot;what&quot;:&quot;Heroku app name the resource is attached to, if any.&quot;,&quot;why&quot;:&quot;Without it, the owning app is unknown, breaking per-app resource listings.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.218820811+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="plan" nullable="false" remarks="{&quot;what&quot;:&quot;Heroku plan identifier, e.g., 'hobby-dev'.&quot;,&quot;why&quot;:&quot;Without it, billing and capacity limits cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.233152944+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="region" nullable="false" remarks="{&quot;what&quot;:&quot;Heroku region code, e.g., 'us' or 'eu'.&quot;,&quot;why&quot;:&quot;Without it, latency and data residency compliance cannot be assessed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.246705033+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="options" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form JSON configuration options for the resource.&quot;,&quot;why&quot;:&quot;Without it, custom settings are lost, breaking resource behavior.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.264937825+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="callback" nullable="false" remarks="{&quot;what&quot;:&quot;URL to call for provisioning or deprovisioning events.&quot;,&quot;why&quot;:&quot;Without it, Heroku cannot notify the provider of lifecycle changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.281464553+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="oauth_code" nullable="false" remarks="{&quot;what&quot;:&quot;OAuth authorization code used to obtain access tokens.&quot;,&quot;why&quot;:&quot;Without it, token exchange cannot be performed, blocking API access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.301946890+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="oauth_type" nullable="false" remarks="{&quot;what&quot;:&quot;OAuth grant type, e.g., 'authorization_code'.&quot;,&quot;why&quot;:&quot;Without it, the token request flow is ambiguous and may fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.315035833+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="oauth_expire" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the OAuth token expires.&quot;,&quot;why&quot;:&quot;Without it, expired tokens are used, causing authentication failures.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.326989233+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="organization_id" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the owning organization, if any.&quot;,&quot;why&quot;:&quot;Without it, resources cannot be scoped to an organization for access control.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.341172864+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="heroku_resources_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the resource record was created.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ordering are impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.357177065+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp of the last update to this record.&quot;,&quot;why&quot;:&quot;Without it, stale data cannot be detected or reconciled.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.374774832+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="deleted_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when the resource was soft-deleted, null if active.&quot;,&quot;why&quot;:&quot;Without it, deleted resources would disappear, breaking historical references.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:16.389206084+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="heroku_resources_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="organization_invitations" remarks="{&quot;what&quot;:&quot;Invitations for users to join an organization with a role.&quot;,&quot;why&quot;:&quot;Tracks pending, cancelled, and answered invitations to control access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.086503732+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 each invitation row.&quot;,&quot;why&quot;:&quot;Enables referencing and joining invitation data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.115527864+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="sent_to" nullable="false" remarks="{&quot;what&quot;:&quot;Email address the invitation was sent to.&quot;,&quot;why&quot;:&quot;Identifies the invitee and is used for delivery and lookup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.142770137+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="organization_id" nullable="false" remarks="{&quot;what&quot;:&quot;Organization the invitee is asked to join.&quot;,&quot;why&quot;:&quot;Determines which organization's membership is being granted.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.154100040+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_invitations_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="expire_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp after which the invitation is no longer valid.&quot;,&quot;why&quot;:&quot;Prevents indefinite pending invitations and enforces time limits.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.170132902+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="created_by" nullable="false" remarks="{&quot;what&quot;:&quot;User ID of the person who created the invitation.&quot;,&quot;why&quot;:&quot;Provides audit trail and accountability for invitations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.244568900+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_invitations_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;UTC timestamp when the invitation was created.&quot;,&quot;why&quot;:&quot;Enables sorting and tracking invitation age.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.361709455+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="cancel_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when the invitation was cancelled, if ever.&quot;,&quot;why&quot;:&quot;Distinguishes cancelled invitations from pending or answered ones.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.479010368+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="answered_by" nullable="true" remarks="{&quot;what&quot;:&quot;User ID of the invitee who responded, if any.&quot;,&quot;why&quot;:&quot;Links the response to the invitee's account for verification.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.634696014+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_invitations_answered_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="refused_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when the invitee declined the invitation.&quot;,&quot;why&quot;:&quot;Records rejection to prevent re-invitation and track decisions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.679503761+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="accepted_at" nullable="true" remarks="{&quot;what&quot;:&quot;UTC timestamp when the invitee accepted the invitation.&quot;,&quot;why&quot;:&quot;Marks successful onboarding and triggers membership creation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.707372545+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="role" nullable="true" remarks="{&quot;what&quot;:&quot;Role assigned to the invitee upon acceptance, e.g., 'admin'.&quot;,&quot;why&quot;:&quot;Defines initial permissions; null if not specified or pending.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:29.719451529+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="organization_invitations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="organization_invitations_organization_id_index" unique="false">
            <column ascending="true" name="organization_id"/>
         </index>
      </table>
      <table name="organization_members" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID identifying the user account; part of composite primary key.&quot;,&quot;why&quot;:&quot;Without it, a membership cannot be associated with a specific user, preventing listing a user's organizations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.033969382+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_members_user_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="organization_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID identifying the organization the user belongs to.&quot;,&quot;why&quot;:&quot;Without it, a membership cannot be associated with a specific organization, preventing listing an organization's members.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.074016600+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_members_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="created_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who created this membership record.&quot;,&quot;why&quot;:&quot;Without it, the audit trail for who added the member is lost, making accountability impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.087672916+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_members_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="updated_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who last updated this membership record.&quot;,&quot;why&quot;:&quot;Without it, cannot track who changed the role or other fields, losing change history.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.111429767+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organization_members_updated_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (no timezone) when the membership was created.&quot;,&quot;why&quot;:&quot;Without it, cannot know when the user joined the organization, affecting tenure calculations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.126538270+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (no timezone) when the membership was last updated.&quot;,&quot;why&quot;:&quot;Without it, cannot detect stale or recently modified memberships for synchronization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.160070554+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'owner'::character varying" digits="0" id="6" name="role" nullable="false" remarks="{&quot;what&quot;:&quot;Role name such as 'owner' or 'member'; controls permissions within the organization.&quot;,&quot;why&quot;:&quot;Without it, all members would have identical access, making permission differentiation impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:18.175534265+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="user_id" sequenceNumberInPK="1"/>
         <primaryKey column="organization_id" sequenceNumberInPK="2"/>
         <index name="organization_members_pkey" unique="true">
            <column ascending="true" name="user_id"/>
            <column ascending="true" name="organization_id"/>
         </index>
      </table>
      <table name="organizations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID primary key uniquely identifying each organization.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be referenced reliably from other tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.174198017+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <child column="organization_id" foreignKey="clever_cloud_resources_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="clever_cloud_resources"/>
            <child column="organization_id" foreignKey="events_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="events"/>
            <child column="organization_id" foreignKey="heroku_resources_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="heroku_resources"/>
            <child column="organization_id" foreignKey="organization_invitations_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_invitations"/>
            <child column="organization_id" foreignKey="organization_members_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_members"/>
            <child column="organization_id" foreignKey="projects_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
            <child column="team_organization_id" foreignKey="user_profiles_team_organization_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="user_profiles"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;URL-friendly identifier like 'acme-corp' for public routes.&quot;,&quot;why&quot;:&quot;Without it, no stable human-readable reference for links and APIs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.217206622+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Display name shown in UI and communications.&quot;,&quot;why&quot;:&quot;Without it, users cannot recognize the organization.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.305589821+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="logo" nullable="false" remarks="{&quot;what&quot;:&quot;URL or path to the organization's logo image.&quot;,&quot;why&quot;:&quot;Without it, no visual branding in interfaces.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.328594348+00:00&quot;}" size="255" 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 organization's purpose.&quot;,&quot;why&quot;:&quot;Without it, no context for users evaluating the org.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.352201273+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="github_username" nullable="true" remarks="{&quot;what&quot;:&quot;GitHub account username linked to this organization.&quot;,&quot;why&quot;:&quot;Without it, cannot associate or authenticate with GitHub.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.388653355+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="twitter_username" nullable="true" remarks="{&quot;what&quot;:&quot;Twitter handle (without @) for the organization.&quot;,&quot;why&quot;:&quot;Without it, no social media link or integration.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.430244308+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="stripe_customer_id" nullable="true" remarks="{&quot;what&quot;:&quot;Stripe customer identifier for billing and payments.&quot;,&quot;why&quot;:&quot;Without it, cannot charge or manage subscriptions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.449229149+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="is_personal" nullable="false" remarks="{&quot;what&quot;:&quot;Boolean flag: true if this is a personal account.&quot;,&quot;why&quot;:&quot;Without it, cannot differentiate personal vs team billing and permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.481593246+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who created this organization.&quot;,&quot;why&quot;:&quot;Without it, ownership and audit trail for creation is lost.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.506341128+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organizations_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="updated_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who last updated this organization.&quot;,&quot;why&quot;:&quot;Without it, no accountability for recent changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.520561858+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organizations_updated_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (no timezone) when the organization was created.&quot;,&quot;why&quot;:&quot;Without it, cannot sort or audit by creation time.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.534725948+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (no timezone) of the last update to this row.&quot;,&quot;why&quot;:&quot;Without it, cannot detect stale data or concurrency conflicts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.559952393+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="deleted_by" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the user who soft-deleted this organization.&quot;,&quot;why&quot;:&quot;Without it, cannot attribute who performed the deletion.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.574274657+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="organizations_deleted_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="deleted_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp (no timezone) when soft-deleted, null if active.&quot;,&quot;why&quot;:&quot;Without it, cannot filter out deleted organizations from queries.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.590382867+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="data" nullable="true" remarks="{&quot;what&quot;:&quot;Arbitrary JSON metadata for flexible future fields.&quot;,&quot;why&quot;:&quot;Without it, schema changes are required for every new attribute.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.601678847+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="plan" nullable="true" remarks="{&quot;what&quot;:&quot;Subscription plan name (e.g., 'pro', 'free').&quot;,&quot;why&quot;:&quot;Without it, cannot enforce feature limits or access levels.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.631545499+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="plan_freq" nullable="true" remarks="{&quot;what&quot;:&quot;Billing frequency: 'monthly' or 'yearly'.&quot;,&quot;why&quot;:&quot;Without it, renewal and pricing calculations are ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.652103337+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="plan_status" nullable="true" remarks="{&quot;what&quot;:&quot;Subscription status (e.g., 'active', 'past_due').&quot;,&quot;why&quot;:&quot;Without it, cannot manage payment failures or access revocation.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.661865645+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="plan_seats" nullable="true" remarks="{&quot;what&quot;:&quot;Number of allowed member seats in the current plan.&quot;,&quot;why&quot;:&quot;Without it, cannot enforce maximum member count.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.673980103+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="plan_validated" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the plan was last validated against the gateway.&quot;,&quot;why&quot;:&quot;Without it, no record of plan checks or syncs.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.689531665+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="21" name="free_trial_used" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the free trial was used, null if never.&quot;,&quot;why&quot;:&quot;Without it, users could start multiple trials.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.704699695+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="gateway" nullable="true" remarks="{&quot;what&quot;:&quot;Payment gateway name (e.g., 'stripe') for billing.&quot;,&quot;why&quot;:&quot;Without it, cannot determine which gateway to use for transactions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:34.730965819+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="organizations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="organizations_slug_index" unique="true">
            <column ascending="true" name="slug"/>
         </index>
         <index name="organizations_stripe_customer_id_index" unique="true">
            <column ascending="true" name="stripe_customer_id"/>
         </index>
      </table>
      <table name="project_tokens" remarks="grant access to projects" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID primary key; unique identifier for each token.&quot;,&quot;why&quot;:&quot;Enables referencing a specific token for updates, revocation, or audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.119793227+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="project_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the project this token grants access to.&quot;,&quot;why&quot;:&quot;Scopes the token to one project; without it a token's target is unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.184909090+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="project_tokens_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Human-readable label for the token, e.g. 'CI deploy'.&quot;,&quot;why&quot;:&quot;Lets users distinguish multiple tokens for the same project.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.207354625+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="nb_access" nullable="false" remarks="{&quot;what&quot;:&quot;Count of times the token has been used for access.&quot;,&quot;why&quot;:&quot;Tracks usage to detect overuse or enforce quotas.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.236017722+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="last_access" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the most recent use; null if never used.&quot;,&quot;why&quot;:&quot;Shows activity; helps identify stale tokens for cleanup.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.311660915+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="expire_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the token automatically becomes invalid; null for no expiry.&quot;,&quot;why&quot;:&quot;Enforces time-limited access; without it tokens never expire.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.353716688+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="revoked_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the token was manually revoked; null if active.&quot;,&quot;why&quot;:&quot;Records revocation to stop acceptance; without it revoked tokens remain valid.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.381394612+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="revoked_by" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the user who revoked the token; null if not revoked.&quot;,&quot;why&quot;:&quot;Provides audit trail for who disabled access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.401430540+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="project_tokens_revoked_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the token was created.&quot;,&quot;why&quot;:&quot;Establishes token age for lifecycle and audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.415255390+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="created_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who created the token.&quot;,&quot;why&quot;:&quot;Attributes token creation for accountability and ownership.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:22.453698886+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="project_tokens_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="project_tokens_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="projects" remarks="{&quot;what&quot;:&quot;Container for a data modeling project with metadata and content counts.&quot;,&quot;why&quot;:&quot;Without it, there is no grouping for schemas, sources, and layouts; all project-scoped data would be orphaned.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.281660465+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 project; primary key.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced by foreign keys or updated reliably.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.297452148+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <child column="project_id" foreignKey="gallery_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="gallery"/>
            <child column="project_id" foreignKey="project_tokens_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="project_tokens"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="organization_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the organization that owns this project.&quot;,&quot;why&quot;:&quot;Without it, projects cannot be scoped to an organization, and cross-tenant access control is impossible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.311082462+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="projects_organization_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;URL-friendly project identifier, unique within the organization.&quot;,&quot;why&quot;:&quot;Without it, project URLs and API routes cannot be stable and human-readable.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.326008198+00:00&quot;}" size="2147483647" type="citext" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Display name of the project, e.g., 'Sales Analytics'.&quot;,&quot;why&quot;:&quot;Without it, users cannot distinguish projects in lists or pickers.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.339844075+00:00&quot;}" size="255" 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 project's purpose or scope.&quot;,&quot;why&quot;:&quot;Without it, context for future maintainers is lost, making project discovery harder.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.356090882+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="encoding_version" nullable="false" remarks="{&quot;what&quot;:&quot;Version number of the project's serialization format.&quot;,&quot;why&quot;:&quot;Without it, older project files cannot be migrated or read correctly after format changes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.375201736+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="storage_kind" nullable="false" remarks="{&quot;what&quot;:&quot;Storage backend type, e.g., 'file' or 'database'.&quot;,&quot;why&quot;:&quot;Without it, the system cannot decide how to load or persist the project's data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.385851722+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="file" nullable="true" remarks="{&quot;what&quot;:&quot;Path or key to the project file in the storage backend.&quot;,&quot;why&quot;:&quot;Without it, the project's content cannot be located when storage_kind requires a file.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.394056266+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="local_owner" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the user who owns the project locally, if any.&quot;,&quot;why&quot;:&quot;Without it, local ownership and personal project scoping are ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.403484416+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="projects_local_owner_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="nb_sources" nullable="false" remarks="{&quot;what&quot;:&quot;Count of data sources defined in the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all sources.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.413681880+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="nb_tables" nullable="false" remarks="{&quot;what&quot;:&quot;Count of tables defined in the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all tables.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.424593643+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="nb_columns" nullable="false" remarks="{&quot;what&quot;:&quot;Count of columns across all tables in the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all columns.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.435810935+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="nb_relations" nullable="false" remarks="{&quot;what&quot;:&quot;Count of relationships between tables in the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all relations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.446608905+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="nb_types" nullable="false" remarks="{&quot;what&quot;:&quot;Count of custom data types defined in the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all types.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.463689881+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="nb_comments" nullable="false" remarks="{&quot;what&quot;:&quot;Count of comments attached to project elements.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all comments.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.476765454+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="15" name="nb_notes" nullable="false" remarks="{&quot;what&quot;:&quot;Count of notes attached to project elements.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all notes.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.488515877+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="nb_layouts" nullable="false" remarks="{&quot;what&quot;:&quot;Count of layouts (diagrams) defined in the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all layouts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.503320408+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="created_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who created the project.&quot;,&quot;why&quot;:&quot;Without it, audit trails and ownership history are incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.518345686+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="projects_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="updated_by" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user who last updated the project.&quot;,&quot;why&quot;:&quot;Without it, audit trails and change attribution are incomplete.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.532469835+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="projects_updated_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="19" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the project was created, in UTC.&quot;,&quot;why&quot;:&quot;Without it, project age and ordering cannot be determined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.824933345+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="20" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the project was last updated, in UTC.&quot;,&quot;why&quot;:&quot;Without it, stale projects cannot be identified or sorted by recency.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.836612013+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="archived_by" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the user who archived the project, if archived.&quot;,&quot;why&quot;:&quot;Without it, archive actions cannot be attributed to a user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.849300988+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="projects_archived_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="6" id="22" name="archived_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the project was archived, if archived.&quot;,&quot;why&quot;:&quot;Without it, archive status and duration cannot be tracked.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.862302181+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="'none'::character varying" digits="0" id="23" name="visibility" nullable="false" remarks="{&quot;what&quot;:&quot;Visibility level, e.g., 'none', 'public', 'internal'.&quot;,&quot;why&quot;:&quot;Without it, access control and sharing behavior are undefined.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.873494774+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="24" name="nb_memos" nullable="false" remarks="{&quot;what&quot;:&quot;Count of memos attached to the project.&quot;,&quot;why&quot;:&quot;Without it, project size and complexity cannot be summarized without scanning all memos.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:30.887439056+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="projects_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="projects_organization_id_slug_index" unique="true">
            <column ascending="true" name="organization_id"/>
            <column ascending="true" name="slug"/>
         </index>
      </table>
      <table name="schema_migrations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="version" nullable="false" remarks="{&quot;what&quot;:&quot;Migration version number, typically a timestamp or sequence.&quot;,&quot;why&quot;:&quot;Uniquely identifies each migration; used to check if already applied.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:25.339274813+00:00&quot;}" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="inserted_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the migration was applied.&quot;,&quot;why&quot;:&quot;Shows when each migration ran; missing it leaves no audit trail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:25.398602149+00:00&quot;}" size="22" type="timestamp" typeCode="93"/>
         <primaryKey column="version" sequenceNumberInPK="1"/>
         <index name="schema_migrations_pkey" unique="true">
            <column ascending="true" name="version"/>
         </index>
      </table>
      <table name="user_auth_tokens" remarks="{&quot;what&quot;:&quot;Authentication tokens issued to users for API access.&quot;,&quot;why&quot;:&quot;Without it, there is no way to validate user sessions or revoke access.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:46.916576657+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 UUID for each token record.&quot;,&quot;why&quot;:&quot;Needed to reference a specific token for revocation or updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.053388221+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user account that owns the token.&quot;,&quot;why&quot;:&quot;Associates tokens with users to enforce per-user access and listing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.065851629+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="user_auth_tokens_user_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Label for the token, e.g., 'mobile' or 'web'.&quot;,&quot;why&quot;:&quot;Distinguishes multiple tokens belonging to the same user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.467572581+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="nb_access" nullable="false" remarks="{&quot;what&quot;:&quot;Number of times the token has been used.&quot;,&quot;why&quot;:&quot;Tracks usage for rate limiting or detecting abnormal activity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.492654085+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="last_access" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp of the most recent token use.&quot;,&quot;why&quot;:&quot;Allows detection of inactive tokens for cleanup or expiry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.645331495+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="expire_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the token becomes invalid.&quot;,&quot;why&quot;:&quot;Enforces token lifetime and forces re-authentication after expiry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.697020751+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the token was issued.&quot;,&quot;why&quot;:&quot;Provides token age for audit and comparison with expiry.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.723580140+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="deleted_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when the token was soft-deleted.&quot;,&quot;why&quot;:&quot;Allows revocation while preserving history for audit.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:47.735153061+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="user_auth_tokens_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="user_profiles" remarks="{&quot;what&quot;:&quot;Extended profile data for a user, one row per user.&quot;,&quot;why&quot;:&quot;Keeps optional profile fields separate from core auth to reduce table width.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.212249029+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;Primary key; unique UUID for each profile.&quot;,&quot;why&quot;:&quot;Provides a stable reference for updates, deletes, and foreign keys.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.225204159+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user account this profile belongs to.&quot;,&quot;why&quot;:&quot;Links profile to auth user; without it, profile cannot be associated.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.241386955+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="user_profiles_user_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="usecase" nullable="true" remarks="{&quot;what&quot;:&quot;Text describing the user's primary use case for the product.&quot;,&quot;why&quot;:&quot;Helps tailor onboarding and support based on user goals.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.260388596+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="usage" nullable="true" remarks="{&quot;what&quot;:&quot;Text describing how the user plans to use the product.&quot;,&quot;why&quot;:&quot;Informs feature prioritization and user education.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.273306239+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="role" nullable="true" remarks="{&quot;what&quot;:&quot;User's job role or title.&quot;,&quot;why&quot;:&quot;Personalizes content and helps understand user context.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.295721213+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="location" nullable="true" remarks="{&quot;what&quot;:&quot;Geographic location, e.g., city or country.&quot;,&quot;why&quot;:&quot;Enables region-specific features or compliance checks.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.308437349+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="description" nullable="true" remarks="{&quot;what&quot;:&quot;Free-form text about the user or their organization.&quot;,&quot;why&quot;:&quot;Captures additional context not covered by structured fields.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.317961408+00:00&quot;}" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="company" nullable="true" remarks="{&quot;what&quot;:&quot;Name of the user's company or organization.&quot;,&quot;why&quot;:&quot;Identifies employer for account grouping and sales insights.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.337258506+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="company_size" nullable="true" remarks="{&quot;what&quot;:&quot;Number of employees at the user's company.&quot;,&quot;why&quot;:&quot;Segments customers by size for pricing or support tiers.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.347661022+00:00&quot;}" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="team_organization_id" nullable="true" remarks="{&quot;what&quot;:&quot;UUID of the team or organization this profile is associated with.&quot;,&quot;why&quot;:&quot;Links profile to a team/org for shared billing or permissions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.365847542+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="user_profiles_team_organization_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="organizations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="plan" nullable="true" remarks="{&quot;what&quot;:&quot;Subscription plan name, e.g., free, pro, enterprise.&quot;,&quot;why&quot;:&quot;Determines feature access and billing; without it, entitlements are unknown.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.378078343+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="discovered_by" nullable="true" remarks="{&quot;what&quot;:&quot;Channel or source through which the user discovered the product.&quot;,&quot;why&quot;:&quot;Evaluates marketing channel effectiveness.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.388645185+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="previously_tried" nullable="true" remarks="{&quot;what&quot;:&quot;List of prior products or tools the user has tried.&quot;,&quot;why&quot;:&quot;Informs competitive positioning and onboarding messaging.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.404668229+00:00&quot;}" size="255" type="_varchar" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="product_updates" nullable="true" remarks="{&quot;what&quot;:&quot;Boolean flag for opting into product update emails.&quot;,&quot;why&quot;:&quot;Controls email notifications; without it, consent is ambiguous.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.417505470+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the profile was created.&quot;,&quot;why&quot;:&quot;Needed for auditing and tracking user lifecycle.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.452501282+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of the last update to the profile.&quot;,&quot;why&quot;:&quot;Shows data freshness and helps detect stale records.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.472528649+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="phone" nullable="true" remarks="{&quot;what&quot;:&quot;User's contact phone number.&quot;,&quot;why&quot;:&quot;Used for direct support or verification; without it, contact method is missing.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.504748673+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="industry" nullable="true" remarks="{&quot;what&quot;:&quot;Industry sector of the user's company.&quot;,&quot;why&quot;:&quot;Enables industry-specific reporting and feature relevance.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:44.516964179+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="user_profiles_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="user_tokens" remarks="{&quot;what&quot;:&quot;Issued authentication or authorization tokens for users, one row per token.&quot;,&quot;why&quot;:&quot;Without it, there is no record of which tokens are valid or what they were issued for.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.260982114+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;UUID primary key, unique identifier for each token record.&quot;,&quot;why&quot;:&quot;Provides a stable reference for token rows in joins and updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.274176607+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="user_id" nullable="false" remarks="{&quot;what&quot;:&quot;UUID of the user account that owns this token.&quot;,&quot;why&quot;:&quot;Links tokens to users so access can be revoked or audited per user.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.286526823+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <parent column="id" foreignKey="user_tokens_user_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="users"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="token" nullable="false" remarks="{&quot;what&quot;:&quot;Binary token value, likely hashed or encrypted, used for authentication.&quot;,&quot;why&quot;:&quot;Stores the secret credential that must be verified on each request.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.297495696+00:00&quot;}" size="2147483647" type="bytea" typeCode="-2"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="context" nullable="false" remarks="{&quot;what&quot;:&quot;String describing the token's purpose, e.g., 'password_reset' or 'api'.&quot;,&quot;why&quot;:&quot;Distinguishes token types so different flows can be validated separately.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.311390533+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="sent_to" nullable="true" remarks="{&quot;what&quot;:&quot;Email address or phone number the token was delivered to; nullable.&quot;,&quot;why&quot;:&quot;Records the delivery target for audit or to resend if needed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.321870268+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp (without time zone) when the token was issued.&quot;,&quot;why&quot;:&quot;Enables expiry checks and cleanup of stale tokens.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T00:01:24.334203204+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="user_tokens_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="user_tokens_context_token_index" unique="true">
            <column ascending="true" name="context"/>
            <column ascending="true" name="token"/>
         </index>
         <index name="user_tokens_user_id_index" unique="false">
            <column ascending="true" name="user_id"/>
         </index>
      </table>
      <table name="users" remarks="{&quot;what&quot;:&quot;Registered user accounts; central identity for authentication and authorization.&quot;,&quot;why&quot;:&quot;Without it, no persistent identity for login, permissions, or per-user data.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.476874535+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;UUID primary key; unique identifier for each user.&quot;,&quot;why&quot;:&quot;Without it, rows cannot be uniquely referenced by foreign keys or lookups.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.490350338+00:00&quot;}" size="2147483647" type="uuid" typeCode="1111">
            <child column="created_by" foreignKey="events_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="events"/>
            <child column="answered_by" foreignKey="organization_invitations_answered_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_invitations"/>
            <child column="created_by" foreignKey="organization_invitations_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_invitations"/>
            <child column="created_by" foreignKey="organization_members_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_members"/>
            <child column="updated_by" foreignKey="organization_members_updated_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_members"/>
            <child column="user_id" foreignKey="organization_members_user_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="organization_members"/>
            <child column="created_by" foreignKey="organizations_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
            <child column="deleted_by" foreignKey="organizations_deleted_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
            <child column="updated_by" foreignKey="organizations_updated_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="organizations"/>
            <child column="created_by" foreignKey="project_tokens_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="project_tokens"/>
            <child column="revoked_by" foreignKey="project_tokens_revoked_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="project_tokens"/>
            <child column="archived_by" foreignKey="projects_archived_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
            <child column="created_by" foreignKey="projects_created_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
            <child column="local_owner" foreignKey="projects_local_owner_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
            <child column="updated_by" foreignKey="projects_updated_by_fkey" implied="false" onDeleteCascade="false" schema="public" table="projects"/>
            <child column="user_id" foreignKey="user_auth_tokens_user_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="user_auth_tokens"/>
            <child column="user_id" foreignKey="user_profiles_user_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="user_profiles"/>
            <child column="user_id" foreignKey="user_tokens_user_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="user_tokens"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="slug" nullable="false" remarks="{&quot;what&quot;:&quot;Custom-type unique slug; likely used in URLs or public references.&quot;,&quot;why&quot;:&quot;Without it, no stable human-readable identifier for public profiles or API paths.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.614897355+00:00&quot;}" size="2147483647" type="citext" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="{&quot;what&quot;:&quot;Display name of the user; free-form text.&quot;,&quot;why&quot;:&quot;Without it, UI and emails lack a personal address; ambiguous identity.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.640038684+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="email" nullable="false" remarks="{&quot;what&quot;:&quot;Email address in a custom type; used for login and contact.&quot;,&quot;why&quot;:&quot;Without it, no way to authenticate or recover account; duplicates possible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.897882972+00:00&quot;}" size="2147483647" type="citext" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="provider" nullable="true" remarks="{&quot;what&quot;:&quot;OAuth provider name (e.g., 'github') if signup via OAuth.&quot;,&quot;why&quot;:&quot;Without it, cannot distinguish OAuth vs password accounts or merge identities.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.919563086+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="provider_uid" nullable="true" remarks="{&quot;what&quot;:&quot;Unique identifier from the OAuth provider for this user.&quot;,&quot;why&quot;:&quot;Without it, cannot link provider account to user; duplicate accounts possible.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.938565911+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="avatar" nullable="false" remarks="{&quot;what&quot;:&quot;URL or path to the user's avatar image.&quot;,&quot;why&quot;:&quot;Without it, UI lacks a visual identifier; default avatar needed.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:50.981578802+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="github_username" nullable="true" remarks="{&quot;what&quot;:&quot;GitHub username if linked; used for public profile.&quot;,&quot;why&quot;:&quot;Without it, GitHub-specific features or lookups fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.009268215+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="twitter_username" nullable="true" remarks="{&quot;what&quot;:&quot;Twitter handle if linked; used for public profile.&quot;,&quot;why&quot;:&quot;Without it, Twitter-specific features or lookups fail.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.033679003+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="is_admin" nullable="false" remarks="{&quot;what&quot;:&quot;Flag indicating admin privileges; true for admins.&quot;,&quot;why&quot;:&quot;Without it, no way to enforce admin-only actions; security risk.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.055413224+00:00&quot;}" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="hashed_password" nullable="true" remarks="{&quot;what&quot;:&quot;Bcrypt or similar hash of the password; null for OAuth-only.&quot;,&quot;why&quot;:&quot;Without it, password login impossible; but nullable for OAuth users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.080494570+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="last_signin" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last successful sign-in; UTC.&quot;,&quot;why&quot;:&quot;Without it, cannot track activity or expire sessions.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.092121334+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="created_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp when the user record was created; UTC.&quot;,&quot;why&quot;:&quot;Without it, no audit trail or ordering of signups.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.111746797+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="updated_at" nullable="false" remarks="{&quot;what&quot;:&quot;Timestamp of last update to the record; UTC.&quot;,&quot;why&quot;:&quot;Without it, cannot detect stale or conflicting updates.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.125974543+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="confirmed_at" nullable="true" remarks="{&quot;what&quot;:&quot;Timestamp when email was confirmed; null if unconfirmed.&quot;,&quot;why&quot;:&quot;Without it, cannot enforce email verification or restrict unconfirmed accounts.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.136521611+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="deleted_at" nullable="true" remarks="{&quot;what&quot;:&quot;Soft-delete timestamp; null if active.&quot;,&quot;why&quot;:&quot;Without it, hard delete loses history; cannot restore or filter deleted users.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.153251562+00:00&quot;}" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="data" nullable="true" remarks="{&quot;what&quot;:&quot;Arbitrary JSON metadata for the user; flexible schema.&quot;,&quot;why&quot;:&quot;Without it, cannot store user-specific custom fields without migrations.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.168113679+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="onboarding" nullable="true" remarks="{&quot;what&quot;:&quot;Current onboarding step or state; e.g., 'profile' or 'done'.&quot;,&quot;why&quot;:&quot;Without it, cannot resume or track onboarding progress.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.194826884+00:00&quot;}" size="255" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="provider_data" nullable="true" remarks="{&quot;what&quot;:&quot;Raw JSON payload from the OAuth provider.&quot;,&quot;why&quot;:&quot;Without it, cannot refresh tokens or access provider-specific info.&quot;,&quot;by&quot;:&quot;fleet-annotator-worker&quot;,&quot;at&quot;:&quot;2026-09-23T04:03:51.222827299+00:00&quot;}" size="2147483647" type="jsonb" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="users_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="users_email_index" unique="true">
            <column ascending="true" name="email"/>
         </index>
         <index name="users_slug_index" unique="true">
            <column ascending="true" name="slug"/>
         </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>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v1()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_generate_v1]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v1mc()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_generate_v1mc]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_generate_v3(namespace uuid, name text)" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_generate_v3]]></definition>
         <parameters>
            <parameter mode="IN" name="namespace" type="uuid"/>
            <parameter mode="IN" name="name" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="false" name="uuid_generate_v4()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_generate_v4]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_generate_v5(namespace uuid, name text)" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_generate_v5]]></definition>
         <parameters>
            <parameter mode="IN" name="namespace" type="uuid"/>
            <parameter mode="IN" name="name" type="text"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_nil()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_nil]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_dns()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_ns_dns]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_oid()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_ns_oid]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_url()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_ns_url]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
      <routine dataAccess="MODIFIES" deterministic="true" name="uuid_ns_x500()" returnType="uuid" securityType="INVOKER" type="FUNCTION">
         <comment/>
         <definition language="c"><![CDATA[uuid_ns_x500]]></definition>
         <parameters>
            <parameter mode="IN"/>
         </parameters>
      </routine>
   </routines>
</database>
