<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<database name="riwi" schema="public" type="PostgreSQL - 15.8 (Debian 15.8-1.pgdg110+1)">
   <sequences>
      <sequence increment="1" name="country_id_seq" startValue="1"/>
      <sequence increment="1" name="percentformat_id_seq" startValue="1"/>
      <sequence increment="1" name="predefinedvalue_id_seq" startValue="1"/>
      <sequence increment="1" name="predefinedvariable_id_seq" startValue="1"/>
      <sequence increment="1" name="project_id_seq" startValue="1"/>
      <sequence increment="1" name="projecttenantlink_id_seq" startValue="1"/>
      <sequence increment="1" name="samplesize_id_seq" startValue="1"/>
      <sequence increment="1" name="savedquery_id_seq" startValue="1"/>
      <sequence increment="1" name="summarypage_id_seq" startValue="1"/>
      <sequence increment="1" name="survey_id_seq" startValue="1"/>
      <sequence increment="1" name="target_id_seq" startValue="1"/>
      <sequence increment="1" name="tenant_id_seq" startValue="1"/>
      <sequence increment="1" name="value_id_seq" startValue="1"/>
      <sequence increment="1" name="variable_id_seq" startValue="1"/>
      <sequence increment="1" name="variabletype_id_seq" startValue="1"/>
      <sequence increment="1" name="wave_id_seq" startValue="1"/>
      <sequence increment="1" name="wavevariablelink_id_seq" startValue="1"/>
   </sequences>
   <tables>
      <table name="country" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('country_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="country_id" foreignKey="samplesize_country_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="samplesize"/>
            <child column="country_id" foreignKey="target_country_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="target"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="code" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="country_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="country_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="percentformat" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('percentformat_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="percentformat_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="percentformat_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="predefinedvalue" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('predefinedvalue_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="label_html" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="predefinedvariable_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="predefinedvalue_predefinedvariable_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="predefinedvariable"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="predefinedvalue_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="predefinedvalue_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="predefinedvariable" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('predefinedvariable_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="predefinedvariable_id" foreignKey="predefinedvalue_predefinedvariable_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="predefinedvalue"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="label_html" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="type" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="8" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="predefinedvariable_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="predefinedvariable_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="project" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('project_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="project_id" foreignKey="projecttenantlink_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="projecttenantlink"/>
            <child column="project_id" foreignKey="savedquery_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="savedquery"/>
            <child column="project_id" foreignKey="summarypage_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="summarypage"/>
            <child column="project_id" foreignKey="survey_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="survey"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="r" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="path" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="by_variable" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="table_name" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="filename_pattern" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="is_ready_for_data" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="is_legacy" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="is_shareable" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="is_active" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="is_favorite" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="14" name="is_complete" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="16" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="project_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="project_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="projecttenantlink" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('projecttenantlink_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="tenant_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="projecttenantlink_tenant_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="tenant"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="project_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="projecttenantlink_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="project"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="projecttenantlink_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="project_tenant_constraint" unique="true">
            <column ascending="true" name="project_id"/>
            <column ascending="true" name="tenant_id"/>
         </index>
         <index name="projecttenantlink_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="samplesize" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('samplesize_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="created_at" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="updated_at" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="wave_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="samplesize_wave_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wave"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="country_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="samplesize_country_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="country"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="samplesize_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="samplesize_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="savedquery" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('savedquery_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="query" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="is_active" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="project_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="savedquery_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="project"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="tenant_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="savedquery_tenant_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="tenant"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="savedquery_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="savedquery_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="summarypage" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('summarypage_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_active" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="project_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="summarypage_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="project"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="summarypage_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="summarypage_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="survey" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('survey_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="survey_id" foreignKey="variable_survey_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="variable"/>
            <child column="survey_id" foreignKey="wave_survey_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wave"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="is_active" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="project_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="survey_project_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="project"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="survey_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="survey_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="target" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('target_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="value" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="wave_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="target_wave_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wave"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="country_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="target_country_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="country"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="target_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="target_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="tenant" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('tenant_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="tenant_id" foreignKey="projecttenantlink_tenant_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="projecttenantlink"/>
            <child column="tenant_id" foreignKey="savedquery_tenant_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="savedquery"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="is_active" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="tenant_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="tenant_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="value" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('value_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="label_html" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="7" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="variable_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="value_variable_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="variable"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="value_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="value_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="variable" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('variable_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="variable_id" foreignKey="value_variable_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="value"/>
            <child column="variable_id" foreignKey="wavevariablelink_variable_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wavevariablelink"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="label_html" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="type" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="skip_logic" nullable="true" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="7" name="order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="8" name="summarypage_describe_by" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="9" name="adhocquery_describe" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="10" name="adhocquery_by" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="11" name="adhocquery_filter" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="12" name="timequery_describe" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="13" name="timequery_filter" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="14" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="15" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="16" name="survey_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="variable_survey_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="survey"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="variable_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="variable_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="variabletype" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('variabletype_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="label" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="order" nullable="false" remarks="" size="10" type="int4" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="6" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="variabletype_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="variabletype_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="wave" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('wave_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4">
            <child column="wave_id" foreignKey="samplesize_wave_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="samplesize"/>
            <child column="wave_id" foreignKey="target_wave_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="target"/>
            <child column="wave_id" foreignKey="wavevariablelink_wave_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wavevariablelink"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="2" name="name" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="3" name="description" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="4" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="5" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="6" name="survey_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="wave_survey_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="survey"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="wave_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="wave_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
      <table name="wavevariablelink" remarks="" schema="public" type="TABLE">
         <column autoUpdated="true" defaultValue="nextval('wavevariablelink_id_seq'::regclass)" digits="0" id="0" name="id" nullable="false" remarks="" size="10" type="serial" typeCode="4"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="1" name="uuid" nullable="false" remarks="" size="2147483647" type="varchar" typeCode="12"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="2" name="created_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="6" id="3" name="updated_at" nullable="false" remarks="" size="29" type="timestamp" typeCode="93"/>
         <column autoUpdated="false" defaultValue="null" digits="0" id="4" name="wave_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="wavevariablelink_wave_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="wave"/>
         </column>
         <column autoUpdated="false" defaultValue="null" digits="0" id="5" name="variable_id" nullable="true" remarks="" size="10" type="int4" typeCode="4">
            <parent column="id" foreignKey="wavevariablelink_variable_id_fkey" implied="false" onDeleteCascade="false" schema="public" table="variable"/>
         </column>
         <primaryKey column="id" sequenceNumberInPK="1"/>
         <index name="wavevariablelink_pkey" unique="true">
            <column ascending="true" name="id"/>
         </index>
         <index name="wave_variable_constraint" unique="true">
            <column ascending="true" name="wave_id"/>
            <column ascending="true" name="variable_id"/>
         </index>
         <index name="wavevariablelink_uuid_key" unique="true">
            <column ascending="true" name="uuid"/>
         </index>
      </table>
   </tables>
</database>
