<?xml version="1.0" encoding="UTF-8"?><database name="actionrhythm" schema="public" type="PostgreSQL - 18.4 (Ubuntu 18.4-1.pgdg24.04+1)">
   <sequences>
      <sequence increment="1" name="canvas_annotations_id_seq" startValue="1"/>
      <sequence increment="1" name="finding_adjudications_id_seq" startValue="1"/>
      <sequence increment="1" name="room_documents_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="action_items" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="action_items_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="title" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'us'::text" digits="0" id="4" name="owner" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="owner_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'pending'::text" digits="0" id="6" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="due_date" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="2" digits="0" id="8" name="priority" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="source" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="11" name="completed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="action_items_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_actions_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="bookings" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="bookings_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="buyer_name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="buyer_email" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="scheduled_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="30" digits="0" id="5" name="duration_minutes" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="'confirmed'::text" digits="0" id="6" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="notes" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="bookings_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_bookings_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="canvas_annotations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('canvas_annotations_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="biz_profile_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="deal_rooms"/>
            <child column="wp_user_id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="wp_credentials"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="8" id="2" name="x" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="0" digits="8" id="3" name="y" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="''::text" digits="0" id="4" name="body" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="author_email" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="target_node_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'shared'::text" digits="0" id="7" name="visibility" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="8" name="resolved" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="canvas_annotations_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
      </table>
      <table name="card_comments" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="(gen_random_uuid())::text" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="card_comments_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="node_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="author_name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="author_email" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="body" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="card_comments_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_card_comments_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
         <index name="idx_card_comments_room_node" unique="false">
            <column ascending="true" name="room_id"/>
            <column ascending="true" name="node_id"/>
         </index>
      </table>
      <table name="card_layout_spec" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="card_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="width" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="height" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="120" digits="0" id="3" name="gap_x" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="240" digits="0" id="4" name="gap_below" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="column_group" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="100" digits="0" id="6" name="sort_order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="notes" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="aspect_ratio" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
         <column autoUpdated="false" defaultValue="'scale'::text" digits="0" id="10" name="fit_strategy" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="card_type" sequenceNumberInPK="1"/>
         <index name="card_layout_spec_pkey" unique="true">
            <column ascending="true" name="card_type"/>
         </index>
      </table>
      <table name="concerns" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="concerns_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="concern" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="category" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'open'::text" digits="0" id="4" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="response" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="resolved_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="concerns_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_concerns_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="deal_customers" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="customer_id" foreignKey="deal_payments_customer_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_payments"/>
            <child column="customer_id" foreignKey="deal_rooms_customer_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="stripe_customer_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="email" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="company_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="phone" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="website" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="billing_address" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="shipping_address" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="'none'::text" digits="0" id="9" name="tax_exempt" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="tax_ids" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="company_size" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="metadata" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="13" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="14" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_customers_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="deal_customers_stripe_customer_id_key" unique="true">
            <column ascending="true" name="stripe_customer_id"/>
         </index>
         <index name="idx_customers_email" unique="false">
            <column ascending="true" name="email"/>
         </index>
         <index name="idx_customers_stripe" unique="false">
            <column ascending="true" name="stripe_customer_id"/>
         </index>
      </table>
      <table name="deal_documents" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="document_id" foreignKey="deal_line_items_document_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_line_items"/>
            <child column="document_id" foreignKey="deal_signatures_document_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_signatures"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_documents_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="doc_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="title" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'draft'::text" digits="0" id="4" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="5" name="version" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="1" digits="0" id="6" name="page_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="obj_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="file_size" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="'application/pdf'::text" digits="0" id="9" name="content_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="pdfx_manifest" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="'{}'::jsonb" digits="0" id="11" name="metadata" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="12" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="13" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="content_html" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="15" name="sort_order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="short_obj_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="pdfx_manifest_short" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_documents_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_docs_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
         <index name="idx_docs_room_doctype" unique="false">
            <column ascending="true" name="room_id"/>
            <column ascending="true" name="doc_type"/>
         </index>
      </table>
      <table name="deal_downloads" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_downloads_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="payment_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_downloads_payment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_payments"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="obj_key" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="filename" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="file_size_bytes" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="download_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="generated_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_downloads_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_downloads_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="deal_events" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="(gen_random_uuid())::text" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_events_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="'system'::text" digits="0" id="2" name="actor" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="event_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="document_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="details" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="6" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="detail" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_events_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_events_room" unique="false">
            <column ascending="true" name="room_id"/>
            <column ascending="false" name="created_at"/>
         </index>
      </table>
      <table name="deal_line_items" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="document_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_line_items_document_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_documents"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="description" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="1" digits="8" id="3" name="quantity" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="null" digits="8" id="4" name="unit_price" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="null" digits="8" id="5" name="total" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="6" name="sort_order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_line_items_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_items_doc" unique="false">
            <column ascending="true" name="document_id"/>
         </index>
      </table>
      <table name="deal_payments" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="payment_id" foreignKey="deal_downloads_payment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_downloads"/>
            <child column="payment_id" foreignKey="deal_refunds_payment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_refunds"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_payments_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="stripe_session_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="stripe_payment_intent" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="amount_cents" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="'usd'::text" digits="0" id="5" name="currency" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'pending'::text" digits="0" id="6" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="customer_email" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="paid_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="customer_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_payments_customer_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_customers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="billing_address" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="phone" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="custom_fields" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="payment_method" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="15" name="fee_cents" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_payments_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="deal_payments_stripe_session_id_key" unique="true">
            <column ascending="true" name="stripe_session_id"/>
         </index>
         <index name="idx_payments_customer" unique="false">
            <column ascending="true" name="customer_id"/>
         </index>
         <index name="idx_payments_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
         <index name="idx_payments_session" unique="false">
            <column ascending="true" name="stripe_session_id"/>
         </index>
      </table>
      <table name="deal_refunds" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_refunds_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="payment_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_refunds_payment_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_payments"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="stripe_refund_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="amount_cents" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="reason" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'pending'::text" digits="0" id="6" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="refunded_by" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_refunds_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="deal_refunds_stripe_refund_id_key" unique="true">
            <column ascending="true" name="stripe_refund_id"/>
         </index>
         <index name="idx_refunds_payment" unique="false">
            <column ascending="true" name="payment_id"/>
         </index>
         <index name="idx_refunds_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="deal_rooms" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="room_id" foreignKey="action_items_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="action_items"/>
            <child column="room_id" foreignKey="bookings_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="bookings"/>
            <child column="room_id" foreignKey="card_comments_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="card_comments"/>
            <child column="room_id" foreignKey="concerns_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="concerns"/>
            <child column="room_id" foreignKey="deal_documents_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_documents"/>
            <child column="room_id" foreignKey="deal_downloads_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_downloads"/>
            <child column="room_id" foreignKey="deal_events_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_events"/>
            <child column="room_id" foreignKey="deal_payments_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_payments"/>
            <child column="room_id" foreignKey="deal_refunds_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_refunds"/>
            <child column="room_id" foreignKey="finding_adjudications_room_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="finding_adjudications"/>
            <child column="room_id" foreignKey="meeting_notes_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="meeting_notes"/>
            <child column="room_id" foreignKey="resources_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="resources"/>
            <child column="room_id" foreignKey="room_documents_room_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="room_documents"/>
            <child column="room_id" foreignKey="wp_credentials_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wp_credentials"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="domain" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="title" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="client_name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="client_email" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="''::text" digits="0" id="5" name="seller_name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'draft'::text" digits="0" id="6" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="welcome_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="8" name="visit_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="9" name="last_visited_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="10" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="slug" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="cms_type" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="cms_profile" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="15" name="price_cents" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="stripe_price_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="17" name="customer_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_rooms_customer_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_customers"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="18" name="access_code" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="19" name="biz_profile_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="canvas_annotations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="20" name="executive_summary" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="21" name="bizhub_business_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="22" name="template" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="23" name="template_slots" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="24" name="created_by" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="25" name="deleted_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="26" name="droom_obj_key" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="27" name="first_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="28" name="audit_url" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'{audit}'::text[]" digits="0" id="29" name="deliverables" nullable="false" remarks="" size="2147483647" type="_text" typeCode="2003"/>
         <column autoUpdated="false" defaultValue="false" digits="0" id="30" name="is_demo" nullable="false" remarks="" size="1" type="bool" typeCode="-7"/>
         <column autoUpdated="false" defaultValue="49900" digits="0" id="31" name="list_price_cents" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="32" name="last_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="33" name="business_name" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_rooms_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_rooms_bizhub_biz" unique="false">
            <column ascending="true" name="bizhub_business_id"/>
         </index>
         <index name="idx_rooms_customer" unique="false">
            <column ascending="true" name="customer_id"/>
         </index>
         <index name="idx_rooms_domain" unique="false">
            <column ascending="true" name="domain"/>
         </index>
         <index name="idx_rooms_slug" unique="true">
            <column ascending="true" name="slug"/>
         </index>
      </table>
      <table name="deal_signatures" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="document_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="deal_signatures_document_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_documents"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="signer_name" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="signer_email" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'client'::text" digits="0" id="4" name="signer_role" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="5" name="page_index" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="8" id="6" name="x" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="0" digits="8" id="7" name="y" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="200" digits="8" id="8" name="width" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="60" digits="8" id="9" name="height" nullable="false" remarks="" size="8" type="float4" typeCode="7"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="signed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="signature_data" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="ip_address" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="user_agent" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="deal_signatures_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_sigs_doc" unique="false">
            <column ascending="true" name="document_id"/>
         </index>
      </table>
      <table name="finding_adjudications" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('finding_adjudications_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="finding_adjudications_room_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="violation_id" nullable="false" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="rule_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="criterion_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="tier" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="verdict" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="notes" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="adjudicated_by" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="adjudicated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="finding_adjudications_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="finding_adjudications_violation_id_adjudicated_by_key" unique="true">
            <column ascending="true" name="violation_id"/>
            <column ascending="true" name="adjudicated_by"/>
         </index>
         <index name="idx_adjudications_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
         <index name="idx_adjudications_rule" unique="false">
            <column ascending="true" name="rule_id"/>
            <column ascending="true" name="verdict"/>
         </index>
         <checkConstraint constraint="(verdict = ANY (ARRAY['true_positive'::text, 'false_positive'::text, 'unclear'::text]))" name="finding_adjudications_verdict_valid"/>
      </table>
      <table name="meeting_notes" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="meeting_notes_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="title" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="summary" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="raw_transcript" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="duration_seconds" nullable="true" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="attendees" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="key_topics" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="meeting_date" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="9" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="meeting_notes_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_meetings_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="resources" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="resources_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="title" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'link'::text" digits="0" id="3" name="resource_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="url" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="description" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="topic_tags" nullable="true" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="7" name="view_count" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="8" name="added_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="resources_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_resources_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="room_documents" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('room_documents_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="19" type="bigserial" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="room_documents_room_id_fkey" implied="false" onDeleteCascade="true" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="scan_id" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="document_kind" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'violations'::text" digits="0" id="4" name="document_type" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="file_path" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="file_bytes" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="sha256" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="room_url" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="room_password" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="10" name="findings_total" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="11" name="findings_shown" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="12" name="findings_locked" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="13" name="findings_citable" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="14" name="generated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="room_documents_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_room_documents_kind" unique="false">
            <column ascending="true" name="document_kind"/>
         </index>
         <index name="idx_room_documents_room" unique="false">
            <column ascending="true" name="room_id"/>
            <column ascending="false" name="generated_at"/>
         </index>
         <index name="room_documents_room_id_scan_id_document_kind_document_type_key" unique="true">
            <column ascending="true" name="room_id"/>
            <column ascending="true" name="scan_id"/>
            <column ascending="true" name="document_kind"/>
            <column ascending="true" name="document_type"/>
         </index>
         <checkConstraint constraint="((findings_shown + findings_locked) = findings_total)" name="room_documents_counts_balance"/>
         <checkConstraint constraint="(document_kind = ANY (ARRAY['preview'::text, 'full'::text]))" name="room_documents_kind_valid"/>
      </table>
      <table name="room_verify_attempts" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="client_ip" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="0" digits="0" id="2" name="tries" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="3" name="window_start" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="room_id" sequenceNumberInPK="1"/>
         <primaryKey column="client_ip" sequenceNumberInPK="2"/>
         <index name="room_verify_attempts_pkey" unique="true">
            <column ascending="true" name="room_id"/>
            <column ascending="true" name="client_ip"/>
         </index>
      </table>
      <table name="rule_precision" numRows="0" remarks="" schema="public" type="VIEW" viewSql=" SELECT rule_id,&#10;    criterion_id,&#10;    count(*) FILTER (WHERE (verdict = 'true_positive'::text)) AS true_positives,&#10;    count(*) FILTER (WHERE (verdict = 'false_positive'::text)) AS false_positives,&#10;    count(*) FILTER (WHERE (verdict = 'unclear'::text)) AS unclear,&#10;    count(*) AS adjudicated,&#10;        CASE&#10;            WHEN (count(*) FILTER (WHERE (verdict = ANY (ARRAY['true_positive'::text, 'false_positive'::text]))) = 0) THEN NULL::numeric&#10;            ELSE round(((count(*) FILTER (WHERE (verdict = 'true_positive'::text)))::numeric / (count(*) FILTER (WHERE (verdict = ANY (ARRAY['true_positive'::text, 'false_positive'::text]))))::numeric), 3)&#10;        END AS &quot;precision&quot;&#10;   FROM finding_adjudications&#10;  GROUP BY rule_id, criterion_id;">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="rule_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="criterion_id" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="true_positives" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="false_positives" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="unclear" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="adjudicated" nullable="true" remarks="" size="19" type="int8" typeCode="-5"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="precision" nullable="true" remarks="" size="0" type="numeric" typeCode="2"/>
      </table>
      <table name="schema_migrations" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="version" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <child column="wp_version" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="wp_credentials"/>
         </column>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="1" name="applied_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="version" sequenceNumberInPK="1"/>
         <index name="schema_migrations_pkey" unique="true">
            <column ascending="true" name="version"/>
         </index>
      </table>
      <table name="site_deploy_certifications" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="(gen_random_uuid())::text" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="domain" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="decision" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'[]'::jsonb" digits="0" id="4" name="gates" nullable="false" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="'{}'::jsonb" digits="0" id="5" name="report" nullable="false" remarks="" size="2147483647" type="jsonb" typeCode="1111"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="approval_token" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="emailed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="approved_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="approved_by" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="10" name="deployed_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="11" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="site_deploy_certifications_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_sdc_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
      <table name="wp_credentials" remarks="" schema="public" type="TABLE">
         <column autoUpdated="false" defaultValue="null" digits="0" id="0" name="id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="room_id" nullable="false" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="id" foreignKey="wp_credentials_room_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="deal_rooms"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="site_url" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="username" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="app_password" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="wp_user_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="canvas_annotations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="wp_version" nullable="true" remarks="" size="2147483647" type="text" typeCode="12">
            <parent column="version" foreignKey="Implied Constraint" implied="true" onDeleteCascade="false" schema="public" table="schema_migrations"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="active_theme" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="'pending'::text" digits="0" id="8" name="status" nullable="false" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="error_message" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="remediation_step" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="child_theme_slug" nullable="true" remarks="" size="2147483647" type="text" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="12" name="verified_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="13" name="revoked_at" nullable="true" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="14" name="created_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <column autoUpdated="false" defaultValue="now()" digits="6" id="15" name="updated_at" nullable="false" remarks="" size="35" type="timestamptz" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="wp_credentials_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="idx_wp_creds_room" unique="false">
            <column ascending="true" name="room_id"/>
         </index>
         <index name="idx_wp_creds_room_unique" unique="true">
            <column ascending="true" name="room_id"/>
         </index>
      </table>
   </tables>
</database>
